Skip to content

fix(install): anchor cosign identity to version tags (D29, #1269 row 4) - #415

Merged
shujaatTracebloc merged 1 commit into
developfrom
fix/1269-cosign-anchor-tags
Jul 27, 2026
Merged

fix(install): anchor cosign identity to version tags (D29, #1269 row 4)#415
shujaatTracebloc merged 1 commit into
developfrom
fix/1269-cosign-anchor-tags

Conversation

@LukasWodka

@LukasWodka LukasWodka commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

#1269 row 4. install.sh verified with --certificate-identity-regexp '.../release.yml@.*'@.* matches any ref, so a binary signed by release.yml on a feature branch verified identically to a tagged release. Anchored to @refs/tags/v.* (real verify in install.sh + the documented command in release.yml). shellcheck clean. Part of tracebloc/backend#1269.


Note

Low Risk
Security-hardening change to install-time signature policy; behavior may reject previously accepted non-tag-signed artifacts, which is intended.

Overview
Tightens cosign verification so installers only accept signatures whose OIDC identity comes from the release workflow on a version tag, not an arbitrary Git ref.

The --certificate-identity-regexp in scripts/install.sh changes from release.yml@.* to release.yml@refs/tags/v.*, so a binary signed from a feature-branch workflow run no longer passes the same check as a tagged release. The documented customer verify command in .github/workflows/release.yml is updated to match.

Reviewed by Cursor Bugbot for commit f3de673. Bugbot is set up for automated code reviews on this repo. Configure here.

install.sh verified downloaded binaries against certificate-identity-regexp
'.../release.yml@.*' — @.* matches ANY ref, so a binary signed by release.yml
running on a feature branch verified identically to a tagged release. Anchor to
'@refs/tags/v.*' so only tag-built releases are trusted. Same anchor applied to
the documented verify command in release.yml.

Part of tracebloc/backend#1269 (row 4).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@LukasWodka LukasWodka self-assigned this Jul 27, 2026
@LukasWodka

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit f3de673. Configure here.

@shujaatTracebloc shujaatTracebloc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed. Correct, well-scoped security fix: anchoring the cosign identity to @refs/tags/v.* closes the @.*-matches-any-ref hole (#1269 row 4). Verified the primary release path (push: tags: v*.*.*) signs under a refs/tags/v* OIDC identity, so legit releases still verify. CI green, Bugbot clean, no unresolved threads.

Note (non-blocking): the workflow_dispatch fallback signs under whatever ref the run is dispatched on — dispatch on the tag itself (not a branch) so its binaries still verify.

@shujaatTracebloc
shujaatTracebloc merged commit 8360674 into develop Jul 27, 2026
26 checks passed
@shujaatTracebloc
shujaatTracebloc deleted the fix/1269-cosign-anchor-tags branch July 27, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants