Skip to content

Commit

Permalink
Merge pull request #54 from appuio/fix/user-rbac/create-permission
Browse files Browse the repository at this point in the history
Adjust OrgMember permissions
  • Loading branch information
bastjan authored Mar 28, 2022
2 parents 9d5b15a + f6db10f commit 5c46014
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/rbac/controller/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ rules:
resources:
- organizationmembers
verbs:
- create
- delete
- get
- list
- patch
Expand Down
2 changes: 1 addition & 1 deletion config/user-rbac/organization-admin-role.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rules:
verbs: ["get", "watch", "list", "patch", "update", "create"]
- apiGroups: ["appuio.io"]
resources: ["organizationmembers"]
verbs: ["get", "watch", "list", "patch", "update", "create"]
verbs: ["get", "watch", "list", "patch", "update"]
- apiGroups: ["appuio.io"]
resources: ["teams"]
verbs: ["get", "watch", "list", "patch", "update", "create", "delete"]
Expand Down
1 change: 1 addition & 0 deletions controllers/organization_members_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type OrganizationMembersReconciler struct {
// Needed so that we are allowed to delegate common member roles
//+kubebuilder:rbac:groups="rbac.appuio.io",resources=organizations,verbs=get;list;watch;create;delete;patch;update
//+kubebuilder:rbac:groups="organization.appuio.io",resources=organizations,verbs=get;list;watch;create;delete;patch;update
//+kubebuilder:rbac:groups=appuio.io,resources=organizationmembers,verbs=get;list;watch;create;delete;patch;update
//+kubebuilder:rbac:groups="appuio.io",resources=teams,verbs=get;list;watch;create;delete;patch;update
//+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;list;watch;create;update;patch;delete

Expand Down

0 comments on commit 5c46014

Please sign in to comment.