← Back to Pull requests

[ACTP] Add Private Action Runner feature configuration #3653

Closed
unknown closed this pull request without merging on Nov 23, 2026 16:28 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 10:49 UTC
Author

What does this PR do?

Adds spec.features.privateActionRunner to enable PAR on the Node Agent and Cluster Agent, with shared settings and optional per-component enablement and allowlists:

spec:
  features:
    privateActionRunner:
      enabled: true
      actionsAllowlist:
        - com.datadoghq.http.request

Per-component settings inherit the shared settings when omitted. Allowlists replace inherited lists, including an explicit [], and typed settings take precedence over the corresponding raw YAML settings.

Advanced settings continue to use the existing spec.override.{nodeAgent,clusterAgent}.customConfigurations (datadog.yaml / datadog-cluster.yaml), through configData or configMap.

Legacy annotations remain supported when the feature block is absent. Explicit feature configuration takes precedence over legacy annotations and automatic activation from Kubernetes Actions.

Validation

  • Colima / Kubernetes 1.35, using the Operator built from commit 146264e6 and Agent / Cluster Agent 7.84.5: 12 runtime scenarios passed, covering minimal activation, shared allowlists, component replacement, empty lists over raw YAML, independent component toggles, shared disablement with component activation, both components disabled, advanced inline YAML, ConfigMap key remapping, custom identity Secrets and RBAC, legacy annotations, and feature precedence over annotations.

  • Targeted unit tests for PAR, feature/container selection, overrides, API types, and manifest rendering passed.
  • <details>
    <summary>PAR validation scenarios — 12 runtime checks and 2 schema checks</summary>

  • Minimal configuration enables PAR on both agents.

  • Both agents inherit the shared allowlist.

  • Per-agent allowlists override shared and raw settings.

  • An empty shared allowlist clears raw allowlists.

  • Disable PAR on the Node Agent only.

  • Disable PAR on the Cluster Agent only.

  • Enable Node PAR despite shared disablement.

  • Enable Cluster PAR without shared enablement.

  • Disable both despite raw YAML enabling PAR.

  • Load advanced ConfigMap settings, including custom identity and RBAC.

  • Preserve legacy annotation configuration.

  • Feature settings take precedence over legacy annotations.

  • Reject obsolete typed fields under customConfigurations.

  • Reject non-boolean enabled values.
  • </details>

    Diff: 292 lines (+219 / -73) across 3 files Reviewer: levan-m Review duration: 44979m
    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 · 292 lines diff across 3 files
    0.63
    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.340
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #3653"
    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: 63.1% (MEDIUM) · Higher = larger blast radius
    63.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: 24.9% · Safe to merge
    24.9%