Skip to content

Commit

Permalink
OCPBUGS-31351: Minimize wildcard privileges for nodes and namespaces
Browse files Browse the repository at this point in the history
- Restricted wildcard namespace permissions exclusively to operand namespace.
- Scoped node permissions to readonly to enable infromer watches.
  • Loading branch information
alebedev87 committed Nov 26, 2024
1 parent 208d50c commit d339623
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions manifests/0000_70_dns-operator_00-cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,25 @@ rules:
- configmaps
- endpoints
- pods
verbs:
- "*"

- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- list
- watch

- apiGroups:
- ""
resources:
- namespaces
resourceNames:
- openshift-dns
verbs:
- "*"

- apiGroups:
Expand Down

0 comments on commit d339623

Please sign in to comment.