← Back to Pull requests

Enable config sync when CWS or CSPM sends from the system-probe #3599

Closed
unknown closed this pull request without merging on Oct 13, 2026 17:33 UTC
View on GitHub
unknown unknown commented on Oct 13, 2026 13:53 UTC
Author

What does this PR do?

Two prerequisites for #3467, which flips features.cws.directSendFromSystemProbe and
features.cspm.runInSystemProbe to true. Neither changes what the Operator renders today.

1. Enable config sync when CWS or CSPM sends from the system-probe. Both settings make the
system-probe submit the payloads itself. The system-probe wires the no-op secrets component, so it
cannot resolve an ENC[...] api_key: with a secret-backed api_key the CWS events and the
compliance findings are silently lost. DD_AGENT_IPC_PORT=5009 and
DD_AGENT_IPC_CONFIG_REFRESH_INTERVAL=60 are now set on the core agent and the system-probe in
that case, reusing the helper from #3368. This is the counterpart of DataDog/helm-charts#2884.

2. Resolve the two defaults in each feature's Configure rather than in the defaulting pass,
as the CNM direct send and service discovery defaults already do. The defaulting pass runs before
the features are built and skips everything under a disabled feature, so a feature enabled through
Status.RemoteConfigConfiguration never got its sub-settings defaulted. Configure runs after
that merge, so both paths resolve the same value.

Motivation

Both settings are opt-in today, so (1) only affects clusters that already turned one of them on —
for them it is a straight bug fix. (2) is what makes the default in #3467 apply to a remotely
enabled feature as well as a spec enabled one.

Keeping them out of #3467 leaves that PR as a two-line flip plus its documentation and test
fallout, which is much easier to review and to revert on its own.

Additional Notes

The defaults still resolve to false when unset, so the node agent DaemonSet is byte for byte
identical and no pod rolls. The only rendered difference is in the two renderer goldens: the
DatadogAgentInternal spec no longer records directSendFromSystemProbe: false up front, because
the write-back now happens after that spec is built. The ddaispechash annotation changes with it;
the DaemonSet's own agentspechash does not.

The resolved value is written back to the spec because the system-probe seccomp profile reads
CSPM.RunInSystemProbe from there.

Minimum Agent Versions

None. The version gates come with the default flip in #3467.

Agent: n/a
Cluster Agent: n/a

Describe your test plan

go test ./... ./api/... and make lint pass.

  • feature/cws and feature/cspm: the config sync env vars are expected on the system-probe and

  • asserted present on the core agent when the payloads are sent from the system-probe, and
    asserted absent otherwise.
  • The two renderer goldens are regenerated; the diff is the two lines described above.
  • Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies

  • 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: 382 lines (+286 / -96) across 4 files Reviewer: levan-m Review duration: 220m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 382 lines diff across 4 files
    0.66
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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
    Diff Size diff_size
    0.356
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #3599"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 66.1% (HIGH) · Higher = larger blast radius
    66.1%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 26.1% · Safe to merge
    26.1%