Image scanning answers 'is this artifact vulnerable?' Signing and provenance answer a different, prior question: 'is this the artifact my pipeline actually built, or something an attacker slipped into the registry?' Between the two sits a large part of software supply-chain security. A vulnerability scan on a tampered image is a careful audit of the wrong thing.
Container image tags are mutable and, on their own, prove nothing about origin. Anyone with push access, legitimately or through a compromised credential, can overwrite app:latest with a backdoored build, and by default nothing downstream will notice. Signing binds an image's immutable content digest to a cryptographic signature, so a consumer can verify both that it came from a trusted signer and that its bytes are unchanged.
What Sigstore changed
Traditional signing struggled with key management: developers had to generate, distribute, and (hardest of all) protect long-lived private keys, and a leaked key silently undermined every signature. Sigstore, a graduated project of the Open Source Security Foundation (OpenSSF), reframes the problem around 'keyless' signing. Its cosign tool obtains a short-lived certificate from the Fulcio CA, bound to an OIDC identity (a CI workflow's token, say, or a developer's SSO identity), signs with an ephemeral key, and records the signature in Rekor, a public append-only transparency log. There is no long-lived secret to steal, and the transparency log makes signatures auditable after the fact.
Provenance and SLSA: signing the build as well as the artifact
A signature proves who signed an image; it does not by itself prove how the image was built. Provenance closes that gap. A build provenance attestation is a signed statement, typically in the in-toto format, describing what source commit was built, by which builder, with which parameters. Verify it and you know the image genuinely came from commit abc123 built by your trusted CI, not from a laptop with registry credentials.
SLSA (Supply-chain Levels for Software Artifacts) frames this as a ladder. In the v1.0 Build track, Build L1 requires that provenance exists, Build L2 requires a hosted build platform that signs it, and Build L3 requires hardened builds in which runs cannot influence one another or reach the signing secrets. You do not need the top rung to benefit: generating and verifying provenance at all defeats tampering such as a push from a laptop with stolen registry credentials.
- Sign every image at build time. Have CI run
cosign signagainst the pushed digest using its workload identity, not a stored key. - Generate build provenance. Emit an in-toto/SLSA attestation binding the image to its source commit and builder, and sign it alongside the image.
- Verify at admission. A policy that no one enforces is a suggestion, so use an admission controller to reject unsigned or unverified images before they run.
- Pin trust to identities. Verify the signer's OIDC identity and issuer (e.g. this specific repo's release workflow), and not a bare check that some valid signature exists.
- Attach the SBOM as a signed attestation too. A signed bill of materials you can trust beats an unsigned one you have to take on faith.
cosign sign --yes registry/app@sha256:9f3c1...
# at admission / deploy
cosign verify \
--certificate-identity-regexp 'https://github.com/acme/app/.github/workflows/release.yml@.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
registry/app@sha256:9f3c1...
Where it fits
Signing and provenance are the trust layer beneath everything else in this series. Minimal images and diligent scanning reduce what can go wrong inside a build you control; signatures and provenance ensure the thing running in production is that build. Enforced at admission with a controller like Kyverno or Sigstore's policy-controller, they turn 'we trust our registry' into a checkable property.
But verification only protects the clusters and pipelines you have wired it into. An unmanaged deployment that pulls whatever tag it is pointed at, with no signature check, re-opens the door you shut everywhere else, which is why knowing every place your organization runs containers comes before trusting any of them.