Repository navigation
publishing: refuse an unsigned release, attach SBOMs and provenance, and chant release verify (#4049) - #4082
Merged
Merged
Conversation
…and chant release verify (#4049) chant release publish now refuses a release none of whose cuts carries a signature that verifies against .chant/allowed_signers at base (release-unsigned, release-signature-unverified), where it refused one only under identity.gates.release. --allow-unsigned publishes it with a warning and never overrides the release gate. --require-provenance refuses a run with no OIDC token (publish-provenance-missing). Each target attaches an SBOM and the release's provenance statement when it stages, so nothing is visible before they are attached. The statement is an in-toto Statement v1 (predicate https://intentius.io/chant/release/v1) over the target's digests that carries the cut's ssh signature and says whether the run had OIDC. npm: each package carries its SBOM at its root (publish-sbom-missing otherwise, unless sbom: false), npm's --provenance is the provenance in CI, and the reveal runs npm install and npm audit signatures in an empty directory (publish-npm-audit-failed). OCI: the SBOM and the statement are pushed by digest as referrers of the image. Forge: both go on the draft as assets. The OCI and forge SBOM is the file sbom names, or sbom.spdx.json written from the member's lockfile with the hermetic BOM writer, dated with the cut's time so a resume sends the same bytes. chant release verify <label|digest> checks a release offline against .chant/allowed_signers at the release's commit, with its signed history, as workspace evidence verify reads the policy at a revision. Tests use throwaway keys in temp repos, the fake npm (now with install and audit signatures), the registry fake and the forge fake. Level-0 row and changelog entry added. (#4049)
lex00
force-pushed
the
feat/4049-release-signing
branch
from
October 18, 2026 04:01
40b8d3d to
97d79ad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4049
Publishing checks the release's signature, attaches SBOMs and provenance to every target, and
chant release verifychecks a release offline. Stacked on #4048 (PR #4080); retargeted to main once that merges.chant release publishrefuses any release with no cut whose signature verifies against.chant/allowed_signersat base, with or without a release gate (release-unsigned,release-signature-unverified).--allow-unsignedpublishes anyway with a warning, except underidentity.gates.release.--require-provenancerefuses a run with no OIDC token (publish-provenance-missing). Requirement 1 (cut signs with the releaser's key) was done by trust: signed green tags and run statements, a role for who may cut a release, signed release records #4031.chant release verify <label|digest> [--json], offline: the release and its cuts from localchant/lifecycle, and.chant/allowed_signerswith its signed history at the release's own commit, plus the release file's digest. A key added after the release's commit does not make an older release verify.https://intentius.io/chant/release/v1) over its digests, carrying the cut's ssh signature and whether the run had OIDC; no clock values, so a resumed run sends the same bytes. Attached instage, before anything is visible.sbom.spdx.jsonand the like, or the filesbomnames), refused without one unlesssbom: false. In CI provenance is npm's--provenance, and after the reveal the target runsnpm audit signaturesin an empty temp directory (publish-npm-audit-failedon failure). From a workstation the release signature is the only provenance, and the docs say so.subjectis the image. Forge: the SBOM andrelease.intoto.jsongo on the draft as assets. The SBOM for OCI and forge is the declared file, else one written from the nearest lockfile by the existing hermetic BOM writer.actions/attest-build-provenance), as the docs say.Level-0 output changes
On the exceptions page, #2525 and CHANGELOG: publish refuses an unsigned or unverified release without a gate (
--allow-unsignedand--require-provenanceare new); new codespublish-provenance-missing,publish-sbom-missing,publish-sbom-invalid,publish-npm-audit-failed; an npm package without an SBOM is refused; OCI and forge targets attach two more items; in CI the npm reveal also runsnpm installandnpm audit signatures; output and--jsongain the attachments; declarations takesbom;release verifyis new.Acceptance
chant release verify <version>passes for a signed release and fails for an unsigned one and for one signed by an unlisted key, with tests (release-verify.test.ts,release-verify.e2e.test.ts).chant release publishrefuses an unsigned release, with a test (release-publish.test.ts,release.e2e.test.ts,release-verify.e2e.test.ts).npm audit signaturesfor npm (publish-targets.test.ts"SBOMs and provenance (publishing: sign releases with the workstation key and attach SBOMs and provenance #4049)";release-publish-targets.e2e.test.tspublishes a signed release CI-style with a fake npm, asserts the recordedaudit signaturescall, checks the image's referrers carry the SBOM and the signed statement, and thatrelease verifypasses).Checks
npx tsx scripts/typecheck.ts: no regressions (26 baselined)npx tsx scripts/check-lexicons.ts: no untracked tier-1 failuresno-listener,no-egress, level-0 goldens: 242 passed withGITHUB_SHA,GITHUB_RUN_IDandCIset, after rebasing on publishing: resume after a failure without republishing, and all-or-nothing visibility #4048lint-docs-sentences(no regressions),lint-prompts,check-docs-diataxis,./scripts/build-docs.sh: passchant/lifecyclewas unchanged.