A provenance document may name source revision, build definition, parameters, builder identity, invocation, and subject digest. Those fields are useful only within the trust boundary of the builder that produced the statement. A tenant-controlled job can echo arbitrary metadata, while a protected build service can attest facts observed by its control plane. The release policy must distinguish those assertions rather than treating every well-formed document as equivalent.
Build provenance: verify who asserted how the artifact was made
Operational decision
A settlement service uses a protected release workflow. The release record requires the artifact digest as subject, an allowed builder identity, the approved repository and revision, and a build definition matching the reviewed workflow. The verifier checks the attestation signature or trusted envelope and compares the subject digest with the image that passed tests. Change the repository URL field inside a copied document; signature verification should fail. Create a valid attestation from a disposable but unapproved workflow; cryptography may pass, but policy should reject its builder identity. Then run the approved workflow with a modified external parameter that selects a debug dependency source; the policy must either reject that parameter or record an explicit review. If the build uses a mutable base tag, provenance alone may not identify the exact base bytes; pin or record resolved digests. Preserve the builder's trust configuration and workflow revision for later incident analysis. Do not place signing credentials inside an untrusted build step merely to obtain an attestation; that allows the step to sign a claim about different bytes.
Settlement release provenance gate
Subject: tested image digest
Builder: approved protected release identity
Source: repository and immutable revision
Definition: reviewed workflow identity and parameters
Inputs: resolved base and dependency digests
Negative tests: altered statement and unapproved builderCost and verification
Checking an attestation is small compared with rebuilding the image, but verification must fetch and evaluate every required statement for the subject. For R releases, evidence retention grows with R and with the size of recorded inputs. Measure releases with missing or rejected provenance, unapproved builder attempts, and time to reconstruct a prior build's inputs. A signature proves who signed the claim, not that the signer had an appropriate build boundary.
Common Mistakes
- Do not accept provenance only because its syntax parses.
- Do not equate a valid signature with an approved builder.
- Do not leave mutable input references unresolved in a release record.
Connected lessons
- DevOps: delivery, infrastructure, and reliable operations
- Software supply chain: SBOM and provenance at admission
- Untrusted CI artifacts: separate a pull-request test from promotion
- Reproducible builds: investigate why equal inputs produce different bytes
- Tested artifact identity: deploy the bytes that passed
