Skip to content

Commit

Permalink
security: remove not needed rbac rules from operator webhook
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
  • Loading branch information
SchSeba committed Aug 28, 2024
1 parent c1f0f05 commit 14e1bb8
Showing 1 changed file with 8 additions and 33 deletions.
41 changes: 8 additions & 33 deletions bindata/manifests/operator-webhook/002-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,23 @@ kind: ClusterRole
metadata:
name: operator-webhook
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
- certificatesigningrequests/approval
verbs:
- '*'
- apiGroups:
- ""
resources:
- secrets
verbs:
- '*'
- apiGroups:
- ""
resources:
- nodes
- configmaps
verbs:
- get
- update
- list
- watch
- apiGroups:
- admissionregistration.k8s.io
- "sriovnetwork.openshift.io"
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
- "*"
verbs:
- '*'
- apiGroups:
- ""
resources:
- services
verbs:
- '*'
- apiGroups:
- "sriovnetwork.openshift.io"
resources:
- "*"
verbs:
- "*"
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down

0 comments on commit 14e1bb8

Please sign in to comment.