What is image provenance and what does SLSA level mean for Docker builds?
AdvancedProductionImage Security & Hardening
Answer
Provenance is a signed record of how an image was built: source repo, commit, builder, build args. SLSA levels grade integrity: L1 documented, L2 hosted builder signing provenance, L3 hardened isolated builds. Generate with BuildKit --provenance=mode=max or GitHub's actions/attest-build-provenance, then verify at admission.
More on Image Security & Hardening
Why should containers not run as root, and how do you enforce it?BeginnerWhat is a distroless image and what are the trade-offs?BeginnerHow do you scan an image with Trivy and fail a CI build on serious findings?BeginnerHow do you manage Trivy false positives and accepted risks?IntermediateWhich `docker run` flags make up a hardened runtime baseline?BeginnerWhat does `no-new-privileges` protect against?Beginner