Skip to content

Commit

Permalink
Give Auditbeat k8s Clusterrole job permissions (#36703)
Browse files Browse the repository at this point in the history
Update the Auditbeat Kubernetes cluster role to add read permissions on jobs/cronjobs. These permissions were added to other Cluster Role permissions previously, but was missed on auditbeat.
  • Loading branch information
mjwolf authored Oct 13, 2023
1 parent df4d550 commit ee455fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/kubernetes/auditbeat-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ rules:
resources:
- replicasets
verbs: ["get", "list", "watch"]
- apiGroups: ["batch"]
resources:
- jobs
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down
4 changes: 4 additions & 0 deletions deploy/kubernetes/auditbeat/auditbeat-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ rules:
resources:
- replicasets
verbs: ["get", "list", "watch"]
- apiGroups: ["batch"]
resources:
- jobs
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down

0 comments on commit ee455fc

Please sign in to comment.