Enable config sync when CWS or CSPM sends from the system-probe #3599
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
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.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
levan-m
What does this PR do?
Two prerequisites for #3467, which flips
features.cws.directSendFromSystemProbeandfeatures.cspm.runInSystemProbetotrue. 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 thecompliance findings are silently lost.
DD_AGENT_IPC_PORT=5009andDD_AGENT_IPC_CONFIG_REFRESH_INTERVAL=60are now set on the core agent and the system-probe inthat case, reusing the helper from #3368. This is the counterpart of DataDog/helm-charts#2884.
2. Resolve the two defaults in each feature's
Configurerather 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.RemoteConfigConfigurationnever got its sub-settings defaulted.Configureruns afterthat 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
falsewhen unset, so the node agent DaemonSet is byte for byteidentical and no pod rolls. The only rendered difference is in the two
renderergoldens: theDatadogAgentInternalspec no longer recordsdirectSendFromSystemProbe: falseup front, becausethe write-back now happens after that spec is built. The
ddaispechashannotation changes with it;the DaemonSet's own
agentspechashdoes not.The resolved value is written back to the spec because the system-probe seccomp profile reads
CSPM.RunInSystemProbefrom 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/...andmake lintpass.feature/cwsandfeature/cspm: the config sync env vars are expected on the system-probe andasserted present on the core agent when the payloads are sent from the system-probe, and
asserted absent otherwise.
renderergoldens are regenerated; the diff is the two lines described above.Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits