[PAR] Restrict executor IPC endpoint permissions and stop logging action failure messages #58498
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 284 lines diff across 3 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.338
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #58498"
general
weight: 0.35
dd-gplassard
<!-- dd-meta {"pullId":"b7edfdd0-b326-4f6d-b23b-edffc4a1dbdb","source":"chat","resourceId":"8b96e5bc-33f5-4029-a412-d1a52dddfb5e","workflowId":"d7962eb3-4c24-4315-9b02-bb47b2b978a4","codeChangeId":"d7962eb3-4c24-4315-9b02-bb47b2b978a4","sourceType":"chat"} -->
<!--Please give us some feedback on your experience writing this PR ! https://app.datadoghq.com/forms/43db4c02-6837-400c-8083-692e141b1b88 !-->
What does this PR do?
Hardens the Private Action Runner's local IPC and failure logging:
0600, regardless of umask. It is bound in a private0700staging directory and renamed into place, so it is never briefly exposed. Setup failures close the listener and return an error.Motivation
Security review findings for the PAR executor:
Describe how you validated your changes
nobodygetsEACCESconnecting to the socket. Setting the mode to0666makes the test fail, so it catches a regression.TestExecutorPipeAdmitsOnlyIntendedAccountsinTestWindowsPARSplitLifecycleSuite. It checks that the live pipe:- is owned by the non-admin Agent account;
- has exactly the intended DACL;
- denies an unrelated local user.
TestExecutorStartsForSignedWorkconfirms par-control still connects and runs a signed action. The whole suite passes.