pipeline.release.artefact-integrity

Released artefacts can be verified against the build that produced them

Every artefact a pipeline publishes carries an integrity statement bound to the build that produced it, so a consumer can confirm the bytes they received are the bytes that were built.

High Planned Preventive

Assertion

for every published artefact r: an integrity statement s exists for r, s is bound to the build that produced r, and the bytes of r verify against s

Evaluated against the forge release and attestation records for each published artefact, read through the forge API, collected on-push.

Rationale

The expectation is that a released artefact is the one its build produced, and that anyone downstream can establish this for themselves rather than trust it. An artefact that cannot be tied back to a build is a gap in the supply chain: it may have been rebuilt from a different tree, swapped in a compromised registry, or corrupted in transit, and nothing about the artefact itself would say so. The expectation is not that one particular tool signs one particular thing; it is that the link from source to build to artefact is verifiable at all, by a party who holds only the artefact and the public record.

This is deliberately an expectation, not a rule that every artefact be signed with a named scheme. The responsibility it places on a team is to make the link checkable; which capability establishes the link is the team’s to choose.

Observation

Several capabilities can satisfy this expectation, and more than one often applies at once:

  • a cryptographic digest published alongside the artefact, so a consumer can confirm the bytes match;
  • a signature over that digest from a key or identity the consumer can trace, so the digest itself cannot be swapped;
  • build provenance, a statement that names the source revision, the builder, and the inputs, bound to the artefact it describes; and
  • a reproducible build, where rebuilding the named source yields the same bytes, so the link needs no trusted signer at all.

A suitable check reads the artefact and its integrity statement from wherever they are published and confirms three things: the statement exists, it is bound to the build that produced the artefact, and the artefact verifies against it. The catalog does not mandate which of the capabilities above produces the statement, only that one of them does and that the result is verifiable by a consumer who holds only the public record.

This control is planned. The expectation and the property it asserts are defined and reviewed; no collector is reading release records yet, so no claim is made about any artefact until one is.

Remediation

Make the link verifiable with whichever capability fits the artefact and the pipeline that builds it. A container image, a language package, and a signed tarball reach the same property by different means, and a team that already pins its actions and commits its lockfiles has most of the inputs a provenance statement needs. The organisation’s Specifications describe concrete approaches a pipeline can adopt; a control references such a Specification as one way to meet the expectation, never as the only way. What the catalog asks is that some verifiable link exist, not that a specific one be chosen here.