Verify a container image supply chain
8 steps · about 3 h 6 min · Intermediate
- Review image inputs and build stages (guide, Docker Docs, 28 min)
Begin with small, rebuildable stages and deliberate base-image choices rather than trusting a scan to fix design problems.
- Control the build context (guide, Docker Docs, 20 min)
Exclude unrelated files so credentials and local artefacts cannot enter the build accidentally.
- Keep build credentials out of image layers (guide, OWASP Cheat Sheet Series, 20 min)
Treat build credentials as short-lived secrets instead of ARG values or copied files that remain in layers or metadata.
- Generate a software bill of materials (guide, Docker Docs, 22 min)
Create an inventory that later review and vulnerability findings can refer to precisely.
- Inspect packages represented in the SBOM (guide, Docker Docs, 20 min)
Check that the inventory matches expected runtimes and exposes unnecessary package surface.
- Scan and prioritise image findings (guide, Docker Docs, 24 min)
Interpret findings in the context of the chosen base and deployed package rather than chasing counts alone.
- Sign the built image identity (guide, Sigstore Docs, 26 min)
Bind a signature to the immutable image digest after the reviewed build completes.
- Verify signature and provenance policy (guide, Sigstore Docs, 26 min)
Test verification by digest and expected identity, including a deliberate failure, before promotion.