← Back to Pull requests

Stop setting DD_SBOM_CONTAINER_IMAGE_USE_MOUNT on Agent 7.87+ #3798

Open
unknown opened this pull request with 250 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 16, 2026 10:57 UTC
Author

What does this PR do?

Set DD_SBOM_CONTAINER_IMAGE_USE_MOUNT only for node Agents older than 7.87.0, when features.sbom.containerImage.uncompressedLayersSupport is enabled and overlayFSDirectScan is 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 keeps SYS_ADMIN and 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 the trusted.overlay.opaque xattr 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_MOUNT for Agents before v7.87.0 only.
Cluster Agent: any

Describe your test plan

Test_sbomFeature_Configure covers a 7.86.0 node Agent, which still gets DD_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_ADMIN and the AppArmor annotation are checked in each case. go test ./internal/controller/datadogagent/... and make lint pass. The renderer golden files render the default Agent, 7.85.4, and keep the variable.

Checklist

  • PR has at least one valid label: enhancement

  • PR has a milestone or the qa/skip-qa label

  • All commits are signed (see: [signing commits][1])
  • [1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

    Diff: 250 lines (+187 / -63) across 3 files Reviewer: 0intro Review duration: 9169m
    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
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.0% (MEDIUM) · Higher = larger blast radius
    39.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.8% · Safe to merge
    20.8%