[K9VULN-18515] sbom: add ccrid to SBOMEntity #537
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 · 235 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.327
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #537"
general
weight: 0.35
frank-spano
Cloud Resource ID of the resource the SBOM is attached to (ARN, ARM resource ID or Full Resource Name).
<!--
The pull request:
Should only fix one issue or add one feature at a time.
Must update the test suite (if applicable) for the relevant functionality.
Should pass all status checks before being reviewed or merged.
Commit titles should be prefixed with general area of pull request's change.
Draft PRs should be prefixed with
[WIP]in their title.-->
What does this PR do?
Adds
string ccrid = 17toSBOMEntityand regeneratessbom/sbom.pb.go(Ccridfield andGetCcrid()).The field holds the CCRID of the resource the SBOM is attached to: an ARN on AWS, an ARM resource ID on Azure, a Full Resource Name on GCP. It is empty when the resource has no CCRID (for example container images or Azure Marketplace images).
Motivation
CCRID unification across agentless scanning products: findings already carry a
ccrid, SBOMs need the same identifier so that the backend can attach them to a cloud resource without relying on theidfield. The agentless scanner and the agent will fill it once this is released.Additional Notes
The change is additive: field number 17 is the next free one after
cpu_architecture = 16, so old senders and receivers stay compatible in both directions.The Go code was regenerated with the pinned toolchain (protoc 21.12, protoc-gen-go v1.34.1) for the sbom proto only. No release or version bump is part of this PR.
Possible Drawbacks / Trade-offs
None expected, the field is optional and unused until producers set it.
Describe how to test/QA your changes
go build ./sbom/, and check thatgit diffafter runninginv codegen.allis empty.Reviewer's Checklist
Reviewers: please see the review guidelines.