feat(release): sign release tags with cosign keyless #761
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.46) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 478 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.369
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #761"
general
weight: 0.35
joaosa
Closes #760
What
After
publishcreates the release tag, a newsignjob insemver-tag.yml:1. Reads the tag back from GitHub, checks that it points at
target-sha, and writesrelease-statement.json,{"commit":…,"repository":"confidential-dot-ai/C8s","tag":…}(compact,jq -S).2. Signs it with
cosign sign-blob --yes --bundle(keyless, GitHub Actions OIDC), then verifies its own bundle against the identity that downstream checks will use.3. Publishes the statement and
release-statement.sigstore.jsonas assets of a GitHub release for the tag. It makes the release when there is none (gh release create --verify-tag).Downstream verification is documented in
docs/releases.md, "Verify a release tag":After that, check that
.repository,.tagand.commitmatch the tag's commit.Design notes
confidential-dot-ai/C8s. Fulcio puts that exact name in the certificate (fromjob_workflow_ref), andcosign verify-blob --certificate-identitycompares the string exactly. The identity is thereforehttps://github.com/confidential-dot-ai/C8s/.github/workflows/semver-tag.yml@refs/heads/main. A lowercasec8sidentity would not match. The job fails before it signs ifGITHUB_REPOSITORYno longer gives that identity, and it verifies its own bundle before it uploads anything. A wrong identity therefore never reaches a release.signjob hasid-token: write, pluscontents: writefor the release. A called workflow gets only the permissions its caller grants, sodocker.yml'srelease-tagjob now grantsid-token: writetoo. The identity comes fromjob_workflow_ref, so it issemver-tag.yml@refs/heads/maineven thoughdocker.ymlcalls it. The job runs in thereleaseenvironment, does not check out source and runs no repository code.cosign versionmust report the pinned version.v0.9.2, is marked Latest. The workflow passes--latest=<update-latest>fromcalculate, the rule that already moves thelatestimage alias. The newest stable release becomes Latest, which fixes the stale v0.9.2 mark. A repair rerun for an older tag cannot take the mark back. The releases are not marked prerelease because they are stable releases. A release made withGITHUB_TOKENstarts no workflows. The only other side effect is release notifications to repository watchers.Follow-up
Signing the component images (
cosign signon the digests) is optional in the issue and is left for a follow-up.Testing
actionlintv1.7.12 with the repository's ignore flags (shellcheck enabled): clean.pin-hygiene.yml.mainin Actions. The first release after merge exercises it, and the job verifies its own signature before it uploads anything.