hull package sign
Sign an existing .hull.tgz archive with a PGP private key, producing a
detached .prov provenance file.
When to use it
- To sign an archive that was built without
--sign, or to re-sign one after a key rotation. - When the archive and the signing key live on different machines, so signing is a separate step from packaging.
What happens
- hull reads
<archive.hull.tgz>and computes its digest. - It loads the PGP private key from
--key(required) and produces a cleartext-signed provenance document over the archive. - It writes
<archive.hull.tgz>.provnext to the archive and printsSuccessfully signed: <prov-path>.
Anyone can later confirm the archive is untampered with
hull package verify using your public key.
Usage
hull package sign <archive.hull.tgz> [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--key |
string | — | path to the PGP private key file (required) |
Worked example
Sign an archive, then verify it validates against the matching public key:
hull package sign ./build/my-app-1.0.0.hull.tgz --key ./cosign.key
Successfully signed: ./build/my-app-1.0.0.hull.tgz.prov
hull package verify ./build/my-app-1.0.0.hull.tgz --keyring ./cosign.pub
The verify command exits 0 with no output, confirming the signature is valid.
See also
package— package and sign in one step (--sign)package verify— check the signaturekeyring— manage trusted public keyspublish