Interview Prep/CI/CD/Supply Chain and Pipeline Security

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...
All CI/CD questions

More on Supply Chain and Pipeline Security