Skip to content

Commit 85201d8

Browse files
authored
Fix *.user.openshift.io RBAC (#86)
Was not noticed because usage profiles require elevated permissions.
1 parent 76b0f57 commit 85201d8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

config/rbac/role.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -80,31 +80,31 @@ rules:
8080
- patch
8181
- update
8282
- apiGroups:
83-
- group.openshift.io
83+
- rbac.authorization.k8s.io
8484
resources:
85-
- users
85+
- clusterrolebindings
8686
verbs:
87-
- create
88-
- delete
8987
- get
9088
- list
91-
- patch
92-
- update
9389
- watch
9490
- apiGroups:
9591
- rbac.authorization.k8s.io
9692
resources:
97-
- clusterrolebindings
93+
- rolebindings
9894
verbs:
95+
- create
9996
- get
10097
- list
98+
- patch
99+
- update
101100
- watch
102101
- apiGroups:
103-
- rbac.authorization.k8s.io
102+
- user.openshift.io
104103
resources:
105-
- rolebindings
104+
- groups
106105
verbs:
107106
- create
107+
- delete
108108
- get
109109
- list
110110
- patch

controllers/groupsync_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const OrganizationMembersManifestName = "members"
4040

4141
const UpstreamFinalizerPrefix = "agent.appuio.io/group-zone-"
4242

43-
//+kubebuilder:rbac:groups=group.openshift.io,resources=users,verbs=get;list;watch;update;patch;create;delete
43+
//+kubebuilder:rbac:groups=user.openshift.io,resources=groups,verbs=get;list;watch;update;patch;create;delete
4444

4545
// Reconcile syncs the Group with the upstream OrganizationMembers or Team resource from the foreign (Control-API) cluster.
4646
func (r *GroupSyncReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {

0 commit comments

Comments
 (0)