Verify Wardn's images
Check that every image and chart of a release was built and signed by Wardn's release workflow, with its SBOM and provenance, before you install it.
Every Wardn release is built and published by one GitHub Actions workflow, .github/workflows/release.yml, from a version tag. It signs what it publishes with cosign keyless signing: the signature's certificate names the workflow file and the tag it ran from, and GitHub's OIDC issuer vouches for it. Nobody holds a signing key that could be stolen, and a signature from any other workflow, branch or repository does not match.
What each release carries:
| Artifact | Signature | SBOM (SPDX, signed) | Build provenance (SLSA, signed) |
|---|---|---|---|
ghcr.io/future-pirate-king/wardn-server, wardn-web, wardn-tools, operator, cli | Yes | Yes | Yes |
ghcr.io/future-pirate-king/charts/wardn-tiny, wardn-standard, wardn-scale | Yes | No: a chart runs the images above | Yes |
| CLI archives on the GitHub release | checksums.txt is signed | No | No |
The licenses in each image's SBOM are checked against Wardn's license allowlist before the SBOM is attached, so a release cannot ship an image whose contents fail that check.
Verify a whole release
deploy/scripts/verify-release.sh, in the Wardn repository, runs every check for every image and chart of a version. It needs cosign v3 and jq.
Run the script
deploy/scripts/verify-release.sh 0.1.0For each image it resolves the tag to a digest once, through the signature check, then checks the SBOM and the provenance of that digest, so a tag moved between two checks cannot pass. Output for a good release:
Verifying Wardn 0.1.0 in ghcr.io/future-pirate-king, signed by https://github.com/wardn/wardn/.github/workflows/release.yml@refs/tags/v0.1.0
image wardn-server
ok signature on ghcr.io/future-pirate-king/wardn-server@sha256:…
ok SBOM (190 packages)
ok provenance (built by https://github.com/…)
…
chart wardn-tiny
ok signature on ghcr.io/future-pirate-king/charts/wardn-tiny@sha256:…
ok provenance (built by https://github.com/…)
Every image and chart of Wardn 0.1.0 is signed and attested by the release workflow.Any failed check prints FAIL, the reason from cosign, and the script exits non-zero after running the rest:
image wardn-server
FAIL signature on ghcr.io/future-pirate-king/wardn-server:0.1.0
Error: no matching signatures: …
Verification FAILED: do not install this release.Pin what you install
Install the digests the script printed, not the tags. With the charts, set image.server.digest, image.web.digest and image.tools.digest (Helm chart values); a pod then runs repository:tag@digest, and the digest decides.
Check the licenses yourself (optional)
--sbom-dir writes each image's verified SBOM, and the repository's license check reads them:
deploy/scripts/verify-release.sh 0.1.0 --sbom-dir sboms
scripts/check-licenses.sh sbom sbomssbom: sboms/wardn-server.spdx.json
188 packages, 18 allowed, 170 without license informationPackages with no license in the SBOM are counted, not failed: syft records no license for Go modules, and CI checks their licenses from source on every change.
Options
| Option | Default | What it does |
|---|---|---|
--registry HOST/NAMESPACE | ghcr.io/future-pirate-king | Where the release is. Point it at a mirror whose content you copied with its signatures, such as an air-gapped registry. |
--repo OWNER/NAME | wardn/wardn | The repository whose release workflow must have signed it. |
--images "A B" / --charts "A B" | every image and chart | Check only these. --charts "" skips the charts. |
--key FILE | keyless | Verify against a cosign public key instead, for a mirror you re-signed with your own key. |
--no-tlog | off | With --key: accept signatures that are in no transparency log. |
--sbom-dir DIR | none | Write each image's verified SBOM to DIR/<image>.spdx.json. |
--allow-http | off | Reach the registry over plain HTTP. |
Verify one image by hand
The script runs these cosign commands; you can run them yourself for one image.
IDENTITY=https://github.com/wardn/wardn/.github/workflows/release.yml@refs/tags/v0.1.0
ISSUER=https://token.actions.githubusercontent.com
cosign verify ghcr.io/future-pirate-king/wardn-server:0.1.0 \
--certificate-identity "$IDENTITY" --certificate-oidc-issuer "$ISSUER"
# The SBOM and the provenance, by the digest the signature check printed
cosign verify-attestation --type spdxjson ghcr.io/future-pirate-king/wardn-server@sha256:<digest> \
--certificate-identity "$IDENTITY" --certificate-oidc-issuer "$ISSUER"
cosign verify-attestation --type slsaprovenance1 ghcr.io/future-pirate-king/wardn-server@sha256:<digest> \
--certificate-identity "$IDENTITY" --certificate-oidc-issuer "$ISSUER"The charts verify the same way at ghcr.io/future-pirate-king/charts/wardn-tiny, ghcr.io/future-pirate-king/charts/wardn-standard and ghcr.io/future-pirate-king/charts/wardn-scale, without the SBOM. The CLI page shows how to check the CLI archives.
Pin --certificate-identity to the exact tag you install. A regular expression such as release\.yml@refs/tags/v.* accepts any release's signature, so an older, signed image put under a newer tag would pass.
Next
Snapshot signing
Wardn signs every snapshot it makes, and each deployment's lifecycle jobs and health rules, and each cluster's operator checks the signatures before it applies or runs anything. How it works, how to turn it on for an existing install, and how to rotate the key.
Upgrading
Move to a new Wardn version in the right order, keep operators within the supported skew, and go back if you must.