Stop setting DD_SBOM_CONTAINER_IMAGE_USE_MOUNT on Agent 7.87+ #3798
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 250 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.331
Real PR Conversation Timeline
1 comments
"Review active on #3798"
general
weight: 0.35
0intro
What does this PR do?
Set
DD_SBOM_CONTAINER_IMAGE_USE_MOUNTonly for node Agents older than 7.87.0, whenfeatures.sbom.containerImage.uncompressedLayersSupportis enabled andoverlayFSDirectScanis not. An image override without a tag keeps the default Agent version. A version the Operator cannot parse is assumed recent, as for the other version gates. The Agent container keepsSYS_ADMINand the unconfined AppArmor profile.Motivation
Agent 7.87.0 scans container images in place by default, from the containerd snapshotter directories that uncompressedLayersSupport mounts read-only (DataDog/datadog-agent#58913). DataDog/datadog-agent#58914 deprecates
sbom.container_image.use_mount, which then only makes the Agent log a warning at every start.Additional Notes
The Agent container keeps
SYS_ADMIN. The in-place scan reads thetrusted.overlay.opaquexattr of each layer directory, which reads as absent without it, so a directory that a later image layer replaced would show the packages of the earlier layers.The Helm chart change is DataDog/helm-charts#3078.
Minimum Agent Versions
Agent: any. The Operator sets
DD_SBOM_CONTAINER_IMAGE_USE_MOUNTfor Agents before v7.87.0 only.Cluster Agent: any
Describe your test plan
Test_sbomFeature_Configurecovers a 7.86.0 node Agent, which still getsDD_SBOM_CONTAINER_IMAGE_USE_MOUNT, 7.87.0-rc.1 and 7.87.0, which scan in place, and an image override without a tag, which keeps the default Agent.SYS_ADMINand the AppArmor annotation are checked in each case.go test ./internal/controller/datadogagent/...andmake lintpass. The renderer golden files render the default Agent, 7.85.4, and keep the variable.Checklist
enhancementqa/skip-qalabel[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits