Repository navigation
Description
Current behaviour
ci/release/validate_builder_attestations.py verifies that signed builder manifests cover every staged core and PHOTON binary, but it does not bind those manifests to the canonical source archive produced from the signed release tag.
expected_release_entries() selects staged artifacts using these prefixes:
qbit-<version>-qbit-photon-<version>-
The source archive is named qbit-<version>.tar.gz, so it is not part of either required set. manifest_covers_release_entries() consequently accepts a signed builder manifest when the source archive is missing, renamed, has a different digest, or was produced from another source revision, provided the staged binary entries match.
The publish workflow passes the tag name to the validator, but the validator does not resolve the annotated tag target or reconstruct its canonical source archive.
Affected code:
ci/release/validate_builder_attestations.pyexpected_release_entries()manifest_covers_release_entries()validate_artifact_attestations()parse_args()/main()
.github/workflows/release-publish.ymlcontrib/guix/libexec/build.sh
Why this matters
The release process separately verifies:
- The release tag and signer.
- Builder signatures and staged binary hashes.
It does not currently prove that the source archive attested by those builders was produced from the signed tag target. This leaves a gap in the intended source-to-binary provenance chain.
This does not indicate that the current published release is mismatched. Reconstructing qbit-0.1.2-testnet4.tar.gz from v0.1.2-testnet4^{} produces:
a0a596f778f1add8175f40931d274e50857928d4bff09b9ee4f69ef2231b19da
That digest is present in both operators' core and PHOTON manifests.
Steps to reproduce
- Extend the builder-validator fixtures with a canonical
qbit-<version>.tar.gzentry. - Create otherwise-valid signed manifests that cover every staged binary.
- Test variants where the source entry is:
- omitted;
- renamed;
- assigned a different digest; or
- generated from another tag target.
- Run
ci/release/validate_builder_attestations.py.
The current validator reaches builder quorum for these variants. As a control, changing a staged binary digest correctly prevents that manifest from counting.
Expected behaviour
The release validator should reconstruct the canonical source archive from the verified annotated-tag target using the same semantics as the Guix build:
git archive --prefix="qbit-<version>/" --output="qbit-<version>.tar.gz" <tag-target>Every counted core and PHOTON builder manifest should be required to contain the exact source archive basename and digest.
The source must come from the release tag target, not the tag object or trusted_release_ref.
Acceptance criteria
- Resolve and verify the annotated release tag target.
- Reconstruct
qbit-<version>.tar.gzusing the Guix archive prefix semantics. - Require its exact basename and digest in every counted core manifest.
- Require the same entry in every counted PHOTON manifest.
- Reject missing, renamed, wrong-digest, and wrong-tag source entries.
- Preserve quorum behavior when an individual manifest fails source binding.
- Add a positive canonical-source test and negative tests for each failure case.
- Pass the required source/tag context through the Release Publish workflow.
- Apply the same invariant to the documented local publication path.
- Emit the canonical source digest as release evidence.
- Run a no-publish validation against the immutable
v0.1.2-testnet4inventory.
Related: #69
Activity