Skip to content

Commit

Permalink
Update permissions for build team members (redhat-appstudio#2381)
Browse files Browse the repository at this point in the history
STONEBLD-1611

This patch also cleans up several unnecessary permissions that was
granted to some build maintainers.

Signed-off-by: Chenxiong Qi <[email protected]>
  • Loading branch information
tkdchen authored Sep 20, 2023
1 parent 50e146c commit d0806bd
Showing 1 changed file with 16 additions and 42 deletions.
58 changes: 16 additions & 42 deletions components/build-service/base/rbac/build-maintainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,23 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: build-maintainer
rules:
- apiGroups:
- operators.coreos.com
resources:
- installplans
verbs:
- verbs:
- get
- list
- update
- patch
- verbs:
- patch
- get
- update
apiGroups:
- ''
resources:
- serviceaccounts
resourceNames:
- pipeline # TODO: figure out how to 'gitops' this.
- appstudio-pipeline # TODO: figure out how to 'gitops' this.
- verbs:
- create
- get
- list
- watch
- delete
apiGroups:
- ''
resources:
- secrets
- verbs:
- '*' # needed till we figure out how to cleanup workspaces.
apiGroups:
- 'tekton.dev'
resources:
- 'pipelineruns'
- apiGroups:
- results.tekton.dev
resources:
- results
- records
verbs:
- get
- list
- apiGroups:
- ''
resources:
- pods/portforward
verbs:
- create
- apiGroups:
- 'apps'
resources:
- deployments
verbs:
- get
- patch
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -67,10 +29,22 @@ metadata:
subjects:
- kind: User
apiGroup: rbac.authorization.k8s.io
name: sbose78
name: cqi
- kind: User
apiGroup: rbac.authorization.k8s.io
name: mkosiarc
- kind: User
apiGroup: rbac.authorization.k8s.io
name: mmorhun
- kind: User
apiGroup: rbac.authorization.k8s.io
name: rcerven
- kind: User
apiGroup: rbac.authorization.k8s.io
name: susdas
- kind: User
apiGroup: rbac.authorization.k8s.io
name: tnevrlka
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down

0 comments on commit d0806bd

Please sign in to comment.