Interview Prep/DevSecOps/Supply Chain, SBOM, Signing and Image/IaC Scanning

Why sign digests and not tags?

BeginnerConceptSupply Chain, SBOM, Signing and Image/IaC Scanning
Answer

Tags are mutable pointers: app:1.4 can be repointed to different content after you signed or scanned it. A digest (sha256:...) identifies the exact manifest content. Scanning, signing, attestation and deployment should all reference the digest so what you verified is what runs.

Pin digests in manifests (or let a controller resolve tag to digest at admission) for the same reason.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain, SBOM, Signing and Image/IaC Scanning