How do you verify provenance before deploying?
AdvancedProductionSupply Chain and Pipeline Security
Answer
Attach a signed in-toto/SLSA provenance attestation at build time, then verify at promotion or admission that: the artifact digest matches, the builder identity is the expected workflow in the expected repository and ref, and the source commit is on a protected branch. Tools: gh attestation verify, cosign verify-attestation, slsa-verifier, and policy engines (Kyverno verifyImages with attestations, OPA).
gh attestation verify oci://ghcr.io/acme/shop-api@sha256:abc123... --repo acme/shop-api
cosign verify-attestation --type slsaprovenance1 --certificate-identity-regexp '...' --certificate-oidc-issuer https://token.actions.githubusercontent.com ghcr.io/acme/shop-api@sha256:abc123...
More on Supply Chain and Pipeline Security
What is a software supply chain attack, and where does the pipeline fit?BeginnerWhat is an SBOM and why do you generate one in CI?BeginnerHow do you sign container images and verify them at deploy time?IntermediateWhat is SLSA and which level should a typical team aim for?IntermediateHow do you scan images and dependencies in the pipeline without drowning in noise?IntermediateHow do you prevent dependency confusion and typosquatting in build pipelines?Advanced