Sub topic 1
Why Image Supply Chain Metadata Matters
Prerequisites
You should know how to write a basic Dockerfile, run docker build, push an image to a registry, and distinguish an image tag from a digest. Familiarity with multi-platform images and reading JSON with tools such as jq is also useful.
Why supply chain metadata matters
A container image is assembled from many inputs: base images, operating-system packages, application dependencies, source code, and build tools. A vulnerability report needs to identify those inputs precisely. An incident investigation also needs to answer where an image came from and how it was built.
Supply chain metadata records this evidence next to the image. Two important forms are:
- An SBOM, or Software Bill of Materials, describes what the image contains.
- Build provenance describes how the image was produced.
The metadata improves vulnerability response and auditing, but it does not automatically make an image trustworthy.
What an SBOM lists
An SBOM is a structured inventory of software components. It commonly includes package names, versions, ecosystem identifiers, licenses, and dependency relationships. For a Linux image, it might list packages installed by apk, apt, or another package manager.
An SBOM helps answer, “Which released images contain this vulnerable package?” It can also reveal transitive dependencies that your application did not list directly.
The result depends on what the scanner can inspect. Files copied into an image without package metadata, dynamically downloaded content, and components hidden in unusual formats may be missed.
What build provenance records
Build provenance is evidence about the build process. It can identify the source revision, builder, build definition, parameters, dependencies, and output digest. SLSA, the Supply-chain Levels for Software Artifacts framework, provides terminology and requirements for describing and improving this evidence.
Provenance answers questions such as:
- Which source revision produced this digest?
- Which builder ran the build?
- Which base image and inputs were used?
- Were build arguments or secrets exposed as metadata?
Attestations as in-toto statements
An attestation is a machine-readable statement about an artifact. BuildKit emits SBOM and provenance attestations using in-toto-style structures. Each statement identifies a subject, such as an image digest, and carries a predicate containing the relevant SBOM or provenance data.
These statements are ready to be signed and verified, but an emitted attestation is not proof of identity by itself. Until a trusted signing and verification process checks it, treat the metadata as useful evidence with an unsigned trust boundary.
Exercise
An image has provenance naming your source revision but no SBOM. Which question can you answer, and which remains unanswered?
Show answer
You can trace the image to its recorded build inputs and source revision. You cannot reliably determine which software packages the image contains.