Repository navigation
Add gated Production release approvals - #1683
Draft
w3irdrobot wants to merge 2 commits into
Draft
w3irdrobot wants to merge 2 commits into
w3irdrobot wants to merge 2 commits into
Conversation
Production legacy signing moves from the EIF build workflow to the Production release statement workflow. Build and attest the selected environment first, then dispatch its approval workflow with that successful build run ID. One protected approval signs both formats and verifies public publication before proposing the legacy approval branch. Create and protect pcr-signing-prod before filling its identity placeholders. Until it is configured, Production CI approvals and release statements are unavailable; the existing manual update-pcr-prod recipe remains available. Older artifacts add missing history without replacing current measurements. Logs name that classification and omit the current-release deployment handoff for history-only approvals. Public storage settings are checked and publisher credentials are resolved before signing, and each environment refuses the other's signing key. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The signer checks commit ancestry and EIF input differences. Give the operator fixture a repository and a real source commit so it reaches the credential and signature checks. Keep its classifier stand-in restricted to the empty diff used by this current-build scenario. Assert checksum and environment refusal reasons in the sibling test to prevent unrelated setup failures from satisfying negative cases.
This branch has not been deployed
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.
What this adds
opensecret-release-statement-prod.yml, the Production sibling of the Dev release-statement workflow. One reviewer-gated job inpcr-signing-prod, started with a build run ID, makes both the legacy PCR0 signature and the Sigstore release statement for the same verified artifact, publishes the bundle toattestations.maple.ai, verifies it from the public URL, and proposes the legacy approval branch.Read this first: what merging changes for Production
Merging removes the Production
signjob fromopensecret-eif-release.ymlright away, and the new workflow refuses to run until its placeholders are filled in. The Production KMS key ARN, signer role ARN and public key are placeholders here, and the preflight stops on them. Between merge and that follow-up commit, the only way to approve a Production build is the manualjust update-pcr-prodrecipe, which signs the legacy format only.So either merge after the Production signing resources exist, or accept the manual path in between.
Order matters when filling them in: create and protect the
pcr-signing-prodenvironment before the commit that fills the placeholders. GitHub creates an unprotected environment for a workflow that names one that does not exist.What else changes
devcannot be signed by the Production workflow, and the reverse. The preflight also refuses a Production identity filled in with Dev's key ARN or public key, and the reverse.ci_sign_pcr.shused to copy the signed build'spcr.jsonoverpcrDev.jsonorpcrProd.jsonevery time. Now a build whose EIF inputs differ from the checkout's is treated as older: it gets its release statement, and a history entry if one is missing, and the snapshot is left alone. The log and step summary say which way it was classified and which paths decided it, and a history-only approval does not print the deployment hand-off. The classifier is deliberately wide: calling a current build older costs a rebuild; calling an older build current would set the snapshot back.dry_runinput onopensecret-eif-release.ymlgoes away with thesignjob; nothing in the repository passed it.scripts/ci/signing-test-tools.nix.release-statements.md,nitro-deploy.md,pcr-compatibility.mdand the secretspec README describe the process for both environments.How to read it
One commit, 22 files. Suggested order:
.github/workflows/opensecret-release-statement-prod.yml, next to the Dev file..github/workflows/opensecret-eif-release.yml: the removedsignjob.services/opensecret/scripts/ci_sign_pcr.shandscripts/ci/opensecret_change_detection.py: the older-build decision.scripts/ci/opensecret_release_statement.pyandscripts/ci/publish_opensecret_approval.sh: preflight and publish.services/opensecret/docs/release-statements.md: the operator's view.About 370 lines are
scripts/ci/test_opensecret_legacy_signing.py, which runs the real signing script against small Git histories.Not checked
handoff.jsonwas listed inSHA256SUMSare still refused.AI assistance was used to write and review this change.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.