← Back to Pull requests

Do not sign blobs again on reruns #4611

Closed
unknown closed this pull request without merging on Nov 25, 2026 14:44 UTC
View on GitHub
unknown unknown commented on Nov 04, 2026 12:53 UTC
Author

What type of PR is this?

/kind feature

What this PR does / why we need it:

When the release is rerun, krel sign blobs signed all files of the stage again. It now verifies the signature and certificate of a previous run against the expected identity and the current content of the file, including its transparency log entry, and keeps them if they verify. Only new signatures are copied back to the bucket.

This keeps the rule from the issue: files are signed again if and only if they were built since. A release rerun copies the same files from the stage, so their signatures stay. A stage rerun rebuilds them, so their old signatures no longer verify against the new content, and they get signed again. Any other failed check, also a temporary one like an unavailable transparency log, leads to signing the file again: that is always correct and only costs time, while failing would block the release. Signing with a key writes no certificate, so those files are always signed again. With --output-path, skipped files get their existing signature there, so the output path still holds the signatures of all files.

Which issue(s) this PR fixes:

Fixes #4221

Special notes for your reviewer:

Tested with krel sign blobs built from this branch against the signed files of a mock release: for bin/linux/amd64 in the bucket with --output-path, all 17 files are skipped, nothing is copied back, and the output path gets their existing signatures. For a local kubectl, the signature is kept; after changing the file, or with another expected identity, it doesn't verify and krel signs again.

Does this PR introduce a user-facing change?

``release-note
krel sign blobs keeps the signatures of a previous run that still verify, so rerunning a release no longer signs all files again.
``

Diff: 228 lines (+171 / -57) across 2 files Reviewer: xmudrii Review duration: 30351m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 228 lines diff across 2 files
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.325
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4611"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 37.0% (MEDIUM) · Higher = larger blast radius
37.0%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.6% · Safe to merge
14.6%