Do not sign blobs again on reruns #4611
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
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.325
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4611"
general
weight: 0.35
xmudrii
What type of PR is this?
/kind feature
What this PR does / why we need it:
When the release is rerun,
krel sign blobssigned 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 blobsbuilt from this branch against the signed files of a mock release: forbin/linux/amd64in the bucket with--output-path, all 17 files are skipped, nothing is copied back, and the output path gets their existing signatures. For a localkubectl, 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 blobskeeps the signatures of a previous run that still verify, so rerunning a release no longer signs all files again.
``