Address the follow-ups of the provenance reviews #4594
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 308 lines diff across 3 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.343
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4594"
general
weight: 0.35
xmudrii
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
The two follow-ups from the reviews of #4551 and #4550:
application/vnd.dev.sigstore.bundle…) of a known size of at most 4 MiB are read now, before anything is downloaded. They are read as stored, without decompressing them, since cosign writes bundles uncompressed: a small gzip layer can't expand past the limit, and the registry client checks the blob against the size and digest of the manifest. A limited reader backs that up. A bundle layer that can't be read, like one planted with a blob that doesn't match, is skipped with a warning instead of failing the step; at worst the bundle gets attached once more.krel releasetakes the account to sign the final provenance as from the new--signing-accountflag, which defaults toGOOGLE_SERVICE_ACCOUNT_NAME, instead ofSignProvenancereading the environment. The account is part ofReleaseOptionsnow, so the release job, which sets the variable, behaves the same. The account is only needed when there is something to sign, so local mock runs without final attestations don't need it. The flag only applies to local runs (--submit=false); submitted jobs sign as the account of the release job, so setting it together with--submitlogs a warning.Which issue(s) this PR fixes:
Part of #2616
Special notes for your reviewer:
The registry test plants our statement in a layer of another media type, in a bundle layer above the limit and in a gzipped bundle layer; none counts. A referrer whose bundle layers have an unknown size or a blob that was never pushed is skipped. Without the size check, or with the layers decompressed again, that test fails. The release tests pass the account through the options. The regenerated fake uses counterfeiter v6.12.2 like the existing one, so it only changes
SignProvenance.Does this PR introduce a user-facing change?
``
release-note--signing-accountkrel release takes the Google service account to sign the provenance as from the new
flag, which defaults toGOOGLE_SERVICE_ACCOUNT_NAME.
``