Skip to content

Commit

Permalink
feat(coder): add RBAC configuration for coder access to secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
qjoly committed Jan 11, 2025
1 parent 10c9e79 commit ca1a6bc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cortado/apps/coder/access.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: coder-secrets-access
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: secret-reader
subjects:
- kind: ServiceAccount
name: coder-code-server
namespace: coder
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: secret-reader
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list", "watch"]
1 change: 1 addition & 0 deletions cortado/apps/coder/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- app.yaml
- access.yaml

0 comments on commit ca1a6bc

Please sign in to comment.