Build attestations: SBOM and provenance
An attestation is metadata associated with an artifact that makes a claim about it. An SBOM describes software components; provenance records information about the build process and inputs. These help reviewers ask whether an artifact satisfies policy. They do not by themselves establish that a claim is authentic or complete.
Worked example
Use this worksheet offline. Names and values are fictional; no live builder, credentials, Docker daemon or external requests are needed. Commands are illustrations, not observed results. Before separately authorized verification, identify the effective Docker endpoint, client credential configuration, builder and registry destination as applicable. Never disclose credential files or private context details.
Synthetic release evidence (not a real attestation)Subject: artifact ASBOM: component inventoryProvenance: source revision R, builder BPolicy: trusted identity + subject match + vulnerability reviewIllustrative flags: --sbom=true --provenance=mode=minUse the subject digest to tie evidence to the intended artifact. A component list is not a vulnerability scan; a build description is not necessarily a signature. Review trusted issuer or signer, verification policy, freshness and completeness separately. BuildKit supports SBOM and provenance options, but whether metadata survives export depends on the driver, output and image store. Classic image storage cannot preserve image-index attestations. More detailed provenance may reveal build inputs or arguments, so review disclosure before sharing. Never put secrets in build arguments. No evidence is uploaded in this worksheet. BuildKit can attach metadata descriptors to an index for particular image manifests. Identify the subject level required by policy (index or platform manifest), corresponding statement, exporter preservation and trust evidence. Generated metadata alone is not a verified signature.
Common mistake
Do not mark an image safe solely because an SBOM exists, or treat synthetic text as a signed statement.
Manual practice
Identify three distinct checks needed before approving artifact A: artifact match, trust and component risk.
Worksheet: lab-fixtures/docker-buildx-multi-platform/07-attestations/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Build attestations: SBOM and provenance — Knowledge check
Reason about multi-platform build reasoning.
What does an SBOM primarily describe?
What does provenance describe?
What if an attestation refers to another digest?