Interview Prep/DevSecOps/Supply chain: signing, SBOM and dependencies

An image signed in staging fails verification in production with the same digest

AdvancedTroubleshootingSupply chain: signing, SBOM and dependencies
Answer

Likely causes → Images were copied between registries (crane copy/skopeo copy) without the .sig/.att artifacts, or production verifies a different signer identity (prod policy expects the release workflow, staging was signed by CI).

Diagnose →

cosign tree prod.registry/acme/api@sha256:...
cosign verify prod.registry/acme/api@sha256:... --certificate-identity-regexp '.*' --certificate-oidc-issuer-regexp '.*'

Fix → Copy with signatures: cosign copy staging.registry/acme/api@sha256:... prod.registry/acme/api. If the identity differs, sign again in the promotion workflow (an extra signature for "approved for prod").

Prevent → Promotion tooling copies referrers/signatures, and policies are versioned per environment.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply chain: signing, SBOM and dependencies