Take the final provenance subjects from the SBOM files only #4624
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 192 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.315
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4624"
general
weight: 0.35
xmudrii
What type of PR is this?
/kind bug
/kind regression
What this PR does / why we need it:
The final
provenance.jsonlists the files of the release. It took them from all SBOM elements with a digest and a location and dropped those located atNONE: the images, their layers and the binaries in them. Since protobom 0.7.0 (#4609), reading the SBOM leaves the download location of those packages empty, so the binaries in the images fall back to their file name and become subjects too. A mock release of master lists 160 subjects instead of 100, with paths likerelease/v1.38.0-beta.1/usr/bin/kubectlthat don't exist in the bucket.The subjects now come from the files of the SBOM, which are exactly the files of the release, so they no longer depend on how a reader represents
NONE. The test covers a binary inside an image. This follows up on #4608, whose filter relied onNONE.Which issue(s) this PR fixes:
None
Special notes for your reviewer:
The fix belongs here, not in protobom: reading
NONEandNOASSERTIONlocations as empty is intended since protobom/protobom#494, as they are not URLs. The filter depended on the literalNONE, which bom passed through as the subject name with protobom 0.6.2.Not released yet: v0.23.0 has protobom 0.6.2. With this change and protobom 0.7.0, the published v1.38.0-beta.0 SBOM gives exactly the subjects of its published
provenance.json: the same 100 names and digests.Does this PR introduce a user-facing change?
``
release-note
``NONE