Proving which source commit and builder produced an image (SLSA).
AdvancedScenarioSecurity and scanning
Answer
Situation read → Supply-chain audit requirement.
What I'd do → Build with BuildKit provenance (--provenance=mode=max), or the SLSA GitHub generator, and sign using cosign keyless. Verify with cosign verify-attestation --type slsaprovenance ... or gh attestation verify oci://reg/app@sha256:... -R org/repo.
Why → Provenance links artifact to builder identity and source.
Interview tip → Aim for SLSA Level 3 with isolated, ephemeral builders.
More on Security and scanning
A scan reports 300 CVEs in your base image. How do you triage?IntermediateAdd vulnerability scanning to CI so critical findings block the merge.BeginnerWhy is mounting `/var/run/docker.sock` into a container dangerous?IntermediateA developer asks for `--privileged`. What do you do?IntermediateHarden a container run command for a stateless web API.IntermediateA pentester got root inside a container. How bad is it?Advanced