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:

ArtifactSignatureSBOM (SPDX, signed)Build provenance (SLSA, signed)
ghcr.io/future-pirate-king/wardn-server, wardn-web, wardn-tools, operator, cliYesYesYes
ghcr.io/future-pirate-king/charts/wardn-tiny, wardn-standard, wardn-scaleYesNo: a chart runs the images aboveYes
CLI archives on the GitHub releasechecksums.txt is signedNoNo

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.0

For 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 sboms
sbom: sboms/wardn-server.spdx.json
  188 packages, 18 allowed, 170 without license information

Packages 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

OptionDefaultWhat it does
--registry HOST/NAMESPACEghcr.io/future-pirate-kingWhere the release is. Point it at a mirror whose content you copied with its signatures, such as an air-gapped registry.
--repo OWNER/NAMEwardn/wardnThe repository whose release workflow must have signed it.
--images "A B" / --charts "A B"every image and chartCheck only these. --charts "" skips the charts.
--key FILEkeylessVerify against a cosign public key instead, for a mirror you re-signed with your own key.
--no-tlogoffWith --key: accept signatures that are in no transparency log.
--sbom-dir DIRnoneWrite each image's verified SBOM to DIR/<image>.spdx.json.
--allow-httpoffReach 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

On this page