Repository navigation
feat(cli): uteke upgrade verifies the cosign keyless signature (#1610) - #1613
Merged
Merged
Conversation
Verify checksums-sha256.txt.bundle offline against Sigstore roots embedded in the binary (x509-parser, ring): signature, Fulcio chain, workflow identity at exactly the target tag, GitHub Actions issuer, Rekor signed timestamp inside the certificate validity, and entry consistency. Refuse targets below v0.22.1. Remove the minisign scheme, its signing script, reminder workflow and dependency.
| ("wrong PEM label", { | ||
| let mut b = pki.bundle.clone(); | ||
| b["cert"] = json!( | ||
| B64.encode("-----BEGIN PRIVATE KEY-----\nAAAA\n-----END PRIVATE KEY-----\n") |
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
The fake PRIVATE KEY block in the test tripped secret scanners. Any label other than CERTIFICATE exercises the same check.
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
uteke upgradenow verifies thechecksums-sha256.txt.bundlethe Release workflow already publishes, offline and fail closed, using Sigstore roots compiled into the binary (crates/uteke-cli/trust/): the ECDSA signature over the file, the Fulcio chain to the embedded root, a code-signing non-CA leaf, the identity (this repo'srelease.ymlat exactly the target tag, issued to GitHub Actions), the Rekor signed timestamp inside the certificate's validity, and the entry naming the same file, signature and certificate. Targets below v0.22.1 are refused with no fallback. The minisign scheme is removed:sign-release.sh, its tests, the reminder workflow and script, the public key and theminisign-verifydependency. New dependencies:x509-parser,ringandbase64(already in the tree),rcgen(dev only).Why
The offline minisign step needed a password that was lost (v0.22.0 is unsigned), and rotating a key breaks installed binaries. The design is in docs/plans/2026-10-30-keyless-upgrade-verification.md; the protected
v*tag ruleset it rests on is active. Builds before v0.22.1 cannot verify the new scheme and reinstall once (documented in SECURITY.md and the CHANGELOG).Testing