Skip to content

Commit 8ce026b

Browse files
committed
Remove RBAC grants when App & API Protection is not enabled
1 parent a8982f4 commit 8ce026b

38 files changed

+8
-1192
lines changed

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.156.4
4+
5+
* Remove RBAC grants when App & API Protection is not enabled.
6+
37
## 3.156.3
48

59
* Fix mounts of `/host/run/systemd` and pod-resources socket in system-probe container when GPU monitoring.

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.156.3
4+
version: 3.156.4
55
appVersion: "7"
66
description: Datadog Agent
77
keywords:

charts/datadog/README.md

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

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

55
[Datadog](https://www.datadoghq.com/) is a hosted infrastructure monitoring platform. This chart adds the Datadog Agent to all nodes in your cluster via a DaemonSet. It also optionally depends on the [kube-state-metrics chart](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-state-metrics). For more information about monitoring Kubernetes with Datadog, please refer to the [Datadog documentation website](https://docs.datadoghq.com/agent/basic_agent_usage/kubernetes/).
66

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ rules:
368368
- get
369369
{{- include "orchestratorExplorer-config-crs" . }}
370370
{{- end }}
371+
{{- if .Values.datadog.appsec.injector.enabled }}
371372
# Used by datadog.appsec.injector feature
372373
- apiGroups:
373374
- "gateway.networking.k8s.io"
@@ -404,6 +405,7 @@ rules:
404405
- get
405406
- create
406407
- delete
408+
{{- end }}
407409
---
408410
apiVersion: {{ template "rbac.apiVersion" . }}
409411
kind: ClusterRoleBinding

test/datadog/baseline/manifests/adp_enabled.yaml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -401,41 +401,6 @@ rules:
401401
- list
402402
- watch
403403
- get
404-
- apiGroups:
405-
- gateway.networking.k8s.io
406-
resources:
407-
- gateways
408-
- gatewayclasses
409-
verbs:
410-
- get
411-
- list
412-
- watch
413-
- patch
414-
- apiGroups:
415-
- gateway.networking.k8s.io
416-
resources:
417-
- referencegrants
418-
verbs:
419-
- get
420-
- delete
421-
- create
422-
- patch
423-
- apiGroups:
424-
- gateway.envoyproxy.io
425-
resources:
426-
- envoyextensionpolicies
427-
verbs:
428-
- get
429-
- delete
430-
- create
431-
- apiGroups:
432-
- networking.istio.io
433-
resources:
434-
- envoyfilters
435-
verbs:
436-
- get
437-
- create
438-
- delete
439404
---
440405
apiVersion: rbac.authorization.k8s.io/v1
441406
kind: ClusterRole

test/datadog/baseline/manifests/agent-clusterchecks-deployment_default.yaml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -418,41 +418,6 @@ rules:
418418
- list
419419
- watch
420420
- get
421-
- apiGroups:
422-
- gateway.networking.k8s.io
423-
resources:
424-
- gateways
425-
- gatewayclasses
426-
verbs:
427-
- get
428-
- list
429-
- watch
430-
- patch
431-
- apiGroups:
432-
- gateway.networking.k8s.io
433-
resources:
434-
- referencegrants
435-
verbs:
436-
- get
437-
- delete
438-
- create
439-
- patch
440-
- apiGroups:
441-
- gateway.envoyproxy.io
442-
resources:
443-
- envoyextensionpolicies
444-
verbs:
445-
- get
446-
- delete
447-
- create
448-
- apiGroups:
449-
- networking.istio.io
450-
resources:
451-
- envoyfilters
452-
verbs:
453-
- get
454-
- create
455-
- delete
456421
---
457422
apiVersion: rbac.authorization.k8s.io/v1
458423
kind: ClusterRole

test/datadog/baseline/manifests/agent-workload_exclude.yaml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -401,41 +401,6 @@ rules:
401401
- list
402402
- watch
403403
- get
404-
- apiGroups:
405-
- gateway.networking.k8s.io
406-
resources:
407-
- gateways
408-
- gatewayclasses
409-
verbs:
410-
- get
411-
- list
412-
- watch
413-
- patch
414-
- apiGroups:
415-
- gateway.networking.k8s.io
416-
resources:
417-
- referencegrants
418-
verbs:
419-
- get
420-
- delete
421-
- create
422-
- patch
423-
- apiGroups:
424-
- gateway.envoyproxy.io
425-
resources:
426-
- envoyextensionpolicies
427-
verbs:
428-
- get
429-
- delete
430-
- create
431-
- apiGroups:
432-
- networking.istio.io
433-
resources:
434-
- envoyfilters
435-
verbs:
436-
- get
437-
- create
438-
- delete
439404
---
440405
apiVersion: rbac.authorization.k8s.io/v1
441406
kind: ClusterRole

test/datadog/baseline/manifests/cluster-agent-deployment_default.yaml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -414,41 +414,6 @@ rules:
414414
- list
415415
- watch
416416
- get
417-
- apiGroups:
418-
- gateway.networking.k8s.io
419-
resources:
420-
- gateways
421-
- gatewayclasses
422-
verbs:
423-
- get
424-
- list
425-
- watch
426-
- patch
427-
- apiGroups:
428-
- gateway.networking.k8s.io
429-
resources:
430-
- referencegrants
431-
verbs:
432-
- get
433-
- delete
434-
- create
435-
- patch
436-
- apiGroups:
437-
- gateway.envoyproxy.io
438-
resources:
439-
- envoyextensionpolicies
440-
verbs:
441-
- get
442-
- delete
443-
- create
444-
- apiGroups:
445-
- networking.istio.io
446-
resources:
447-
- envoyfilters
448-
verbs:
449-
- get
450-
- create
451-
- delete
452417
---
453418
apiVersion: rbac.authorization.k8s.io/v1
454419
kind: ClusterRole

test/datadog/baseline/manifests/cluster-agent-deployment_default_advanced_AC_injection.yaml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -414,41 +414,6 @@ rules:
414414
- list
415415
- watch
416416
- get
417-
- apiGroups:
418-
- gateway.networking.k8s.io
419-
resources:
420-
- gateways
421-
- gatewayclasses
422-
verbs:
423-
- get
424-
- list
425-
- watch
426-
- patch
427-
- apiGroups:
428-
- gateway.networking.k8s.io
429-
resources:
430-
- referencegrants
431-
verbs:
432-
- get
433-
- delete
434-
- create
435-
- patch
436-
- apiGroups:
437-
- gateway.envoyproxy.io
438-
resources:
439-
- envoyextensionpolicies
440-
verbs:
441-
- get
442-
- delete
443-
- create
444-
- apiGroups:
445-
- networking.istio.io
446-
resources:
447-
- envoyfilters
448-
verbs:
449-
- get
450-
- create
451-
- delete
452417
---
453418
apiVersion: rbac.authorization.k8s.io/v1
454419
kind: ClusterRole

test/datadog/baseline/manifests/cluster-agent-deployment_default_minimal_AC_injection.yaml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -414,41 +414,6 @@ rules:
414414
- list
415415
- watch
416416
- get
417-
- apiGroups:
418-
- gateway.networking.k8s.io
419-
resources:
420-
- gateways
421-
- gatewayclasses
422-
verbs:
423-
- get
424-
- list
425-
- watch
426-
- patch
427-
- apiGroups:
428-
- gateway.networking.k8s.io
429-
resources:
430-
- referencegrants
431-
verbs:
432-
- get
433-
- delete
434-
- create
435-
- patch
436-
- apiGroups:
437-
- gateway.envoyproxy.io
438-
resources:
439-
- envoyextensionpolicies
440-
verbs:
441-
- get
442-
- delete
443-
- create
444-
- apiGroups:
445-
- networking.istio.io
446-
resources:
447-
- envoyfilters
448-
verbs:
449-
- get
450-
- create
451-
- delete
452417
---
453418
apiVersion: rbac.authorization.k8s.io/v1
454419
kind: ClusterRole

0 commit comments

Comments
 (0)