Skip to content

Commit 02f5f42

Browse files
imjasonhtekton-robot
authored andcommitted
Further limit cluster-wide read-write permissions
Signed-off-by: Jason Hall <[email protected]>
1 parent 967a654 commit 02f5f42

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

config/200-clusterrole.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,17 @@ metadata:
5050
app.kubernetes.io/instance: default
5151
app.kubernetes.io/part-of: tekton-pipelines
5252
rules:
53+
# Read-write access to create Pods, K8s Events and PVCs (for Workspaces)
5354
- apiGroups: [""]
54-
resources: ["pods", "pods/log", "events", "configmaps", "persistentvolumeclaims", "limitranges"]
55+
resources: ["pods", "pods/log", "events", "persistentvolumeclaims"]
5556
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
57+
# Read-only access to these.
5658
- apiGroups: [""]
57-
resources: ["secrets", "serviceaccounts"]
59+
resources: ["configmaps", "limitranges", "secrets", "serviceaccounts"]
5860
verbs: ["get", "list", "watch"]
59-
# Unclear if this access is actually required. Simply a hold-over from the previous
60-
# incarnation of the controller's ClusterRole.
61+
# Read-write access to StatefulSets for Affinity Assistant.
6162
- apiGroups: ["apps"]
62-
resources: ["deployments", "statefulsets"]
63-
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
64-
- apiGroups: ["apps"]
65-
resources: ["deployments/finalizers"]
63+
resources: ["statefulsets"]
6664
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
6765
---
6866
kind: ClusterRole

0 commit comments

Comments
 (0)