Skip to content

Commit

Permalink
Merge pull request #108 from bytedance/tighten-rbac
Browse files Browse the repository at this point in the history
Tighten the RBAC permission of manager
  • Loading branch information
Danny-Wei authored Aug 2, 2024
2 parents 51fb36c + d3f10a2 commit 4189738
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
11 changes: 9 additions & 2 deletions config/k8s-resource/rbac/manager-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,19 @@ rules:
- mutatingwebhookconfigurations
verbs:
- create
- delete
- list
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
verbs:
- delete
resourceNames:
- varmor-resource-mutating-webhook-cfg-debug
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- create
9 changes: 8 additions & 1 deletion manifests/varmor/templates/rbac/manager-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,16 @@ rules:
- mutatingwebhookconfigurations
verbs:
- create
- delete
- list
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
verbs:
- delete
resourceNames:
- varmor-resource-mutating-webhook-cfg
- apiGroups:
- authentication.k8s.io
resources:
Expand Down

0 comments on commit 4189738

Please sign in to comment.