Interview Prep/Docker/Security and scanning

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.

All Docker questions Roadmap: Docker & containers

More on Security and scanning