Skip to content

Commit

Permalink
Move SCC RBAC from ClusterRole to Role
Browse files Browse the repository at this point in the history
Working on simplifying and reducing our access scope as much as
possible. It appears moving SCC RBAC from ClusterRole to Role allows
things to continue to work with Prometheus. It's possible further
testing may reveal this will need to reverted.
  • Loading branch information
leifmadsen committed Sep 19, 2023
1 parent 0273250 commit ed7bc56
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions roles/servicetelemetry/tasks/component_prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@
- namespaces
verbs:
- get
- apiGroups:
- security.openshift.io
resourceNames:
- nonroot
- nonroot-v2
resources:
- securitycontextconstraints
verbs:
- use

- name: Create ClusterRoleBinding/prometheus-stf
k8s:
Expand Down Expand Up @@ -102,6 +93,15 @@
- get
- list
- watch
- apiGroups:
- security.openshift.io
resourceNames:
- nonroot
- nonroot-v2
resources:
- securitycontextconstraints
verbs:
- use

- name: Create RoleBinding/prometheus-stf
k8s:
Expand Down

0 comments on commit ed7bc56

Please sign in to comment.