Verify a container image supply chain

8 steps · about 3 h 6 min · Intermediate

  1. 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.

  2. Control the build context (guide, Docker Docs, 20 min)

    Exclude unrelated files so credentials and local artefacts cannot enter the build accidentally.

  3. 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.

  4. Generate a software bill of materials (guide, Docker Docs, 22 min)

    Create an inventory that later review and vulnerability findings can refer to precisely.

  5. Inspect packages represented in the SBOM (guide, Docker Docs, 20 min)

    Check that the inventory matches expected runtimes and exposes unnecessary package surface.

  6. 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.

  7. Sign the built image identity (guide, Sigstore Docs, 26 min)

    Bind a signature to the immutable image digest after the reviewed build completes.

  8. Verify signature and provenance policy (guide, Sigstore Docs, 26 min)

    Test verification by digest and expected identity, including a deliberate failure, before promotion.