Skip to content

Commit 4dedf7f

Browse files
[datadog] Add apiKeyOnlyEnrollment for Private Action Runner (#2803)
[datadog] Add apiKeyOnlyEnrollment for Private Action Runner Wire `privateActionRunner.apiKeyOnlyEnrollment` to the underlying `api_key_only_enrollment` config key for both the node agent (via ConfigMap) and the cluster agent (via DD_PRIVATE_ACTION_RUNNER_API_KEY_ONLY_ENROLLMENT env var). The setting is documented in the PAR crosswalk table but was not implemented in the chart templates, causing it to silently have no effect. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> [datadog] Bump chart to 3.231.6, add CHANGELOG entry Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> [datadog] Update README and version badge for 3.231.6 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Merge branch 'main' into irving/par-api-key-only-enrollment Co-authored-by: irving.santiago <irving.santiago@datadoghq.com>
1 parent 0aaccca commit 4dedf7f

6 files changed

Lines changed: 21 additions & 2 deletions

File tree

charts/datadog/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Datadog changelog
22

3+
## 3.231.6
4+
5+
* Add `privateActionRunner.apiKeyOnlyEnrollment` for node agent and cluster agent, wiring it to `api_key_only_enrollment` in the PAR ConfigMap and `DD_PRIVATE_ACTION_RUNNER_API_KEY_ONLY_ENROLLMENT` in the cluster agent deployment respectively.
6+
37
## 3.231.5
48

59
* Add kubernetes use endpointslice config to the node Agent.

charts/datadog/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: v1
33
name: datadog
4-
version: 3.231.5
4+
version: 3.231.6
55
appVersion: "7"
66
description: Datadog Agent
77
keywords:

charts/datadog/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Datadog
22

3-
![Version: 3.231.5](https://img.shields.io/badge/Version-3.231.5-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
3+
![Version: 3.231.6](https://img.shields.io/badge/Version-3.231.6-informational?style=flat-square) ![AppVersion: 7](https://img.shields.io/badge/AppVersion-7-informational?style=flat-square)
44

55
> [!WARNING]
66
> The Datadog Operator is now enabled by default since version [3.157.0](https://github.com/DataDog/helm-charts/blob/main/charts/datadog/CHANGELOG.md#31570) to collect chart metadata for display in [Fleet Automation](https://docs.datadoghq.com/agent/fleet_automation/). We are aware of issues affecting some environments and are actively working on fixes. We apologize for the inconvenience and appreciate your patience while we address these issues.
@@ -672,6 +672,7 @@ helm install <RELEASE_NAME> \
672672
| clusterAgent.podSecurity.securityContextConstraints.create | bool | `false` | If true, create a SCC resource for Cluster Agent pods |
673673
| clusterAgent.priorityClassName | string | `nil` | Name of the priorityClass to apply to the Cluster Agent |
674674
| clusterAgent.privateActionRunner.actionsAllowlist | list | `[]` | List of actions executable by the Private Action Runner |
675+
| clusterAgent.privateActionRunner.apiKeyOnlyEnrollment | bool | `false` | Enroll using only the API key, without requiring an app key |
675676
| clusterAgent.privateActionRunner.enabled | bool | `false` | Enable the Private Action Runner to execute workflow actions |
676677
| clusterAgent.privateActionRunner.identityFromExistingSecret | string | `nil` | Use existing Secret which stores the Private Action Runner URN and private key # The secret should contain 'urn' and 'private_key' keys # If set, this parameter takes precedence over "urn" and "privateKey" |
677678
| clusterAgent.privateActionRunner.identitySecretName | string | `"datadog-private-action-runner-identity"` | Name of the Kubernetes secret used to store PAR identity when self-enrollment is enabled # The Cluster Agent will create and manage this secret for storing the enrolled runner's URN and private key # RBAC permissions are granted specifically for this secret name |
@@ -952,6 +953,7 @@ helm install <RELEASE_NAME> \
952953
| datadog.podAnnotationsAsTags | object | `{}` | Provide a mapping of Kubernetes Annotations to Datadog Tags |
953954
| datadog.podLabelsAsTags | object | `{}` | Provide a mapping of Kubernetes Labels to Datadog Tags |
954955
| datadog.privateActionRunner.actionsAllowlist | list | `[]` | List of actions executable by the Private Action Runner |
956+
| datadog.privateActionRunner.apiKeyOnlyEnrollment | bool | `false` | Enroll using only the API key, without requiring an app key |
955957
| datadog.privateActionRunner.enabled | bool | `false` | Enable the Private Action Runner on the node agent to execute workflow actions |
956958
| datadog.privateActionRunner.identityFromExistingSecret | string | `nil` | Use existing Secret which stores the Private Action Runner URN and private key # The secret should contain 'urn' and 'private_key' keys # If set, this parameter takes precedence over "urn" and "privateKey" |
957959
| datadog.privateActionRunner.privateKey | string | `nil` | Private key for the Private Action Runner (required if selfEnroll is false) # This key is used to authenticate the runner with Datadog |

charts/datadog/templates/cluster-agent-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ spec:
394394
- name: DD_PRIVATE_ACTION_RUNNER_ACTIONS_ALLOWLIST
395395
value: {{ .Values.clusterAgent.privateActionRunner.actionsAllowlist | join "," | quote }}
396396
{{- end }}
397+
{{- if .Values.clusterAgent.privateActionRunner.apiKeyOnlyEnrollment }}
398+
- name: DD_PRIVATE_ACTION_RUNNER_API_KEY_ONLY_ENROLLMENT
399+
value: "true"
400+
{{- end }}
397401
{{- end }}
398402
{{- if .Values.datadog.clusterChecks.enabled }}
399403
- name: DD_CLUSTER_CHECKS_ENABLED

charts/datadog/templates/private-action-runner-configmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ data:
2525
private_key: {{ .Values.datadog.privateActionRunner.privateKey | quote }}
2626
{{- end }}
2727
{{- end }}
28+
{{- if .Values.datadog.privateActionRunner.apiKeyOnlyEnrollment }}
29+
api_key_only_enrollment: true
30+
{{- end }}
2831
{{- if .Values.datadog.privateActionRunner.actionsAllowlist }}
2932
actions_allowlist:
3033
{{- range .Values.datadog.privateActionRunner.actionsAllowlist }}

charts/datadog/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,9 @@ datadog:
558558
# - "com.datadoghq.http.request"
559559
# - "com.datadoghq.gitlab.branches.*"
560560

561+
# datadog.privateActionRunner.apiKeyOnlyEnrollment -- Enroll using only the API key, without requiring an app key
562+
apiKeyOnlyEnrollment: false
563+
561564
## Enable logs agent and provide custom configs
562565
logs:
563566
# datadog.logs.enabled -- Enables this to activate Datadog Agent log collection
@@ -1910,6 +1913,9 @@ clusterAgent:
19101913
# - "com.datadoghq.http.request"
19111914
# - "com.datadoghq.kubernetes.core.*"
19121915

1916+
# clusterAgent.privateActionRunner.apiKeyOnlyEnrollment -- Enroll using only the API key, without requiring an app key
1917+
apiKeyOnlyEnrollment: false
1918+
19131919
# clusterAgent.privateActionRunner.k8sRemediationEnabled -- Enable k8s remediation RBAC for the Private Action Runner
19141920
## When enabled, a ClusterRole and ClusterRoleBinding are created granting the Cluster Agent
19151921
## permissions to read/patch workloads (Deployments, DaemonSets, StatefulSets, ReplicaSets, Pods)

0 commit comments

Comments
 (0)