Skip to content

Commit faada31

Browse files
authored
fix: Avoid having the permission to use any scc (#619)
1 parent 22506e5 commit faada31

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

bundle/manifests/operand-deployment-lifecycle-manager.clusterserviceversion.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,13 @@ spec:
322322
resources:
323323
- '*'
324324
verbs:
325-
- '*'
325+
- create
326+
- delete
327+
- get
328+
- list
329+
- patch
330+
- update
331+
- watch
326332
serviceAccountName: operand-deployment-lifecycle-manager
327333
strategy: deployment
328334
installModes:

config/rbac/role.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,10 @@ rules:
6868
resources:
6969
- '*'
7070
verbs:
71-
- '*'
71+
- create
72+
- delete
73+
- get
74+
- list
75+
- patch
76+
- update
77+
- watch

0 commit comments

Comments
 (0)