feat(private-action-runner): add packet capture socket mount #3615
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 373 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.354
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3615"
general
weight: 0.35
Mathew-Estafanous
What does this PR do?
Adds opt-in remote packet capture support to the node Private Action Runner. The runner gets access to a system-probe socket that serves only the
packet_capturemodule; the full system-probe socket (/var/run/sysprobe/sysprobe.sock) is not mounted into the runner. The cluster-agent runner is unchanged.Configuration
The annotation accepts only
"true"or"false"; invalid values are rejected before the node pod template is modified. It has no effect unless node PAR is enabled. When enabled, thesystem-probecontainer is added to the node agent pod.Mounts and env
| Item |
system-probe|private-action-runner||---|---|---|
| emptyDir
sysprobe-capture-socket-dirat/var/run/sysprobe-capture| Read-write | Read-only ||
DD_PACKET_CAPTURE_SOCKET=/var/run/sysprobe-capture/capture.sock| Yes | Yes ||
DD_PACKET_CAPTURE_ENABLED=true| Yes | No || emptyDir
sysprobe-socket-dirat/var/run/sysprobe(main socket) | Read-write | Not mounted || Capabilities
SYS_ADMIN,SYS_RESOURCE,NET_ADMIN,NET_RAW,IPC_LOCK| Added | Unchanged |The main socket dir and capabilities are added so system-probe can start when packet capture is its only consumer.
Motivation
The PAR action
com.datadoghq.remoteaction.pcap.runCapturecalls system-probe'spacket_capturemodule. Under the Operator the runner container has no path to system-probe, so the call fails withdial unix ...: no such file or directory.Additional Notes
Depends on a datadog-agent change that adds
packet_capture.socket(DD_PACKET_CAPTURE_SOCKET), a second system-probe socket serving only packet capture. Companion datadog-agent PR: https://github.com/DataDog/datadog-agent/pull/58221.Follows the structure of #3319 (systemd host mounts): separate
packet_capture.go, strict bool annotation parsing, validation before pod template mutation.Minimum Agent Versions
Agent: TBD (release containing the companion datadog-agent change)
Cluster Agent: N/A
Describe your test plan
packet_capture_test.go(annotation parsing, required components, mounts/env, invalid value rejection).system-probecontainer, the capture socket volume and mounts, and no main system-probe socket mount in the runner.go test ./internal/controller/datadogagent/...,go vet,golangci-lintpass.Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits
🤖 Generated with Claude Code