Verifying Stolonic-signed images

Every Stolonic release image is signed with Cosign and carries a signed SBOM and a signed vulnerability report. Verify them before you install: it proves the image came from Stolonic, unmodified, with a known dependency tree and a known CVE state.

1. Establish the trust anchor first

The whole chain rests on one value: the SHA-256 of cosign.pub. Take it from an independent channel — the trust anchor page or a signed release announcement from security@stolonic.com — before you run any verify command.

SHA-256 of cosign.pub
9651b1ac12e4433e23f5cf66be9e73ab2c754d0104cf67920070be59165701b2
If your local value does not match: stop. Do not run verify-release.sh. Contact security@stolonic.com and quote both values.

2. Quick verify

# Download the release files with the release token Stolonic gave you
oras login stolonicrelease.azurecr.io -u cust-YOUR_ID
oras pull stolonicrelease.azurecr.io/release/stolonic/release-files:<version>
# -> release-manifest.json(.sig), cosign.pub, verify-release.sh, verify-bundle.sh

shasum -a 256 cosign.pub          # must equal the trust anchor above

chmod +x verify-release.sh
./verify-release.sh <version> --registry stolonicrelease.azurecr.io/release \
  --pubkey cosign.pub \
  --expected-pubkey-sha 9651b1ac12e4433e23f5cf66be9e73ab2c754d0104cf67920070be59165701b2

The script checks, in order: the trust anchor, the signature on the release manifest, that the manifest names the same key, and then for every image its Cosign signature, both SBOM attestations, the vulnerability attestation and that the registry digest matches the manifest. Any non-zero exit means: stop installing. The last line says which check failed.

3. Cosign version

Cosign v2.2.0 or newer (cosign version). Install with brew install cosign on macOS, or download the binary from the Sigstore releases. Stolonic signs and verifies with two different Cosign versions on purpose, so a bug in one version cannot approve its own output.

4. Why --insecure-ignore-tlog is correct here

Stolonic uses keyed signing: the signature itself proves it was made with the private key, and your copy of cosign.pub is the anchor. The flag only says "do not require an entry in Sigstore's public transparency log". Keyed signing lets air-gapped installs verify without reaching sigstore.dev, and keeps your releases out of a public log.

5. Offline (air-gapped) verify

# On a connected machine: pull the release files and the air-gap bundle
oras pull stolonicrelease.azurecr.io/release/stolonic/release-files:<version>
oras pull stolonicrelease.azurecr.io/release/stolonic/airgap-bundle:<version>-amd64
shasum -a 256 cosign.pub          # compare with the trust anchor

# Inside the air gap: load the images into your registry mirror, then verify against it
skopeo copy oci-archive:backend-<version>.tar docker://your-mirror.local/stolonic/backend:<version>
./verify-release.sh <version> --registry your-mirror.local \
  --pubkey cosign.pub --manifest release-manifest.json --manifest-sig release-manifest.json.sig \
  --expected-pubkey-sha 9651b1ac12e4433e23f5cf66be9e73ab2c754d0104cf67920070be59165701b2

6. What each image carries

Cosign signature
Stolonic built and signed this exact image
SPDX SBOM
Every dependency (pip, OS packages, Go, npm)
CycloneDX SBOM
The same SBOM for scanners that prefer it
Trivy report
Every CVE at signing time, unfiltered

The vulnerability report is the full list — every severity, fixable and unfixable — so you can apply your own policy.

cosign download attestation --predicate-type spdxjson \
  stolonicrelease.azurecr.io/release/stolonic/backend:<version> \
  | jq -r '.payload | @base64d | fromjson | .predicate' > backend-spdx.json

cosign download attestation --predicate-type vuln \
  stolonicrelease.azurecr.io/release/stolonic/backend:<version> \
  | jq -r '.payload | @base64d | fromjson | .predicate' > backend-trivy.json

7. The worker checks again before it runs an image

Before deploying an agent on the shared runtime image, your worker resolves the tag to its digest, reads the Cosign signature stored beside it, checks that the signature names exactly that digest and verifies it with the Stolonic key built into the worker. In required mode it then runs exactly that digest. Set the mode with STOLONIC_IMAGE_VERIFICATION or image_verification: in the worker config:

required
An image that does not verify is not deployed (default on your own install)
warn
Verified and logged; deploys either way
off
No check (development only)

If you copy images into your own registry, copy the signature tags too (cosign copy). Images your worker builds itself (tools, custom agents) are trusted by their local build, not by this check.

8. Optional: enforce in the cluster

The Helm chart ships an opt-in Kyverno policy that admits only verified Stolonic images and pins them to their digest:

helm upgrade ... --set imageVerification.kyverno.enabled=true \
  --set imageVerification.kyverno.validationFailureAction=Audit   # observe first, then Enforce

A Sigstore policy-controller ClusterImagePolicy with the contents of cosign.pub works the same way.

9. Troubleshooting

Trust anchor MISMATCH
Stop and contact security@stolonic.com
Manifest signature INVALID
Re-download manifest, .sig and cosign.pub; if it persists, contact us
Image signature INVALID
Re-pull the image; if it persists, treat as an incident
Registry digest MISMATCH
Tag changed or old manifest; re-download, then escalate
Attestation INVALID
Re-download; escalate if it persists
cosign too old
Upgrade to v2.2.0 or newer

Key rotation

When the signing key rotates, the trust anchor page publishes the new fingerprint within 24 hours and keeps the previous one with its rotation date, so older releases stay verifiable. Each release manifest names the key that signed it.