Skip to content

Commit b4d913e

Browse files
authored
fix(helm): explode verbs instead of wildcarding (#7405)
Updates the Helm chart role specification for Coder to explicitly list required verbs instead of requesting wildcard.
1 parent b3689c8 commit b4d913e

File tree

5 files changed

+90
-10
lines changed

5 files changed

+90
-10
lines changed

helm/templates/rbac.yaml

+18-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,26 @@ metadata:
77
rules:
88
- apiGroups: [""]
99
resources: ["pods"]
10-
verbs: ["*"]
10+
verbs:
11+
- create
12+
- delete
13+
- deletecollection
14+
- get
15+
- list
16+
- patch
17+
- update
18+
- watch
1119
- apiGroups: [""]
1220
resources: ["persistentvolumeclaims"]
13-
verbs: ["*"]
21+
verbs:
22+
- create
23+
- delete
24+
- deletecollection
25+
- get
26+
- list
27+
- patch
28+
- update
29+
- watch
1430

1531
---
1632
apiVersion: rbac.authorization.k8s.io/v1

helm/tests/testdata/default_values.golden

+18-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,26 @@ metadata:
2222
rules:
2323
- apiGroups: [""]
2424
resources: ["pods"]
25-
verbs: ["*"]
25+
verbs:
26+
- create
27+
- delete
28+
- deletecollection
29+
- get
30+
- list
31+
- patch
32+
- update
33+
- watch
2634
- apiGroups: [""]
2735
resources: ["persistentvolumeclaims"]
28-
verbs: ["*"]
36+
verbs:
37+
- create
38+
- delete
39+
- deletecollection
40+
- get
41+
- list
42+
- patch
43+
- update
44+
- watch
2945
---
3046
# Source: coder/templates/rbac.yaml
3147
apiVersion: rbac.authorization.k8s.io/v1

helm/tests/testdata/labels_annotations.golden

+18-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,26 @@ metadata:
2222
rules:
2323
- apiGroups: [""]
2424
resources: ["pods"]
25-
verbs: ["*"]
25+
verbs:
26+
- create
27+
- delete
28+
- deletecollection
29+
- get
30+
- list
31+
- patch
32+
- update
33+
- watch
2634
- apiGroups: [""]
2735
resources: ["persistentvolumeclaims"]
28-
verbs: ["*"]
36+
verbs:
37+
- create
38+
- delete
39+
- deletecollection
40+
- get
41+
- list
42+
- patch
43+
- update
44+
- watch
2945
---
3046
# Source: coder/templates/rbac.yaml
3147
apiVersion: rbac.authorization.k8s.io/v1

helm/tests/testdata/sa.golden

+18-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,26 @@ metadata:
2222
rules:
2323
- apiGroups: [""]
2424
resources: ["pods"]
25-
verbs: ["*"]
25+
verbs:
26+
- create
27+
- delete
28+
- deletecollection
29+
- get
30+
- list
31+
- patch
32+
- update
33+
- watch
2634
- apiGroups: [""]
2735
resources: ["persistentvolumeclaims"]
28-
verbs: ["*"]
36+
verbs:
37+
- create
38+
- delete
39+
- deletecollection
40+
- get
41+
- list
42+
- patch
43+
- update
44+
- watch
2945
---
3046
# Source: coder/templates/rbac.yaml
3147
apiVersion: rbac.authorization.k8s.io/v1

helm/tests/testdata/tls.golden

+18-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,26 @@ metadata:
2222
rules:
2323
- apiGroups: [""]
2424
resources: ["pods"]
25-
verbs: ["*"]
25+
verbs:
26+
- create
27+
- delete
28+
- deletecollection
29+
- get
30+
- list
31+
- patch
32+
- update
33+
- watch
2634
- apiGroups: [""]
2735
resources: ["persistentvolumeclaims"]
28-
verbs: ["*"]
36+
verbs:
37+
- create
38+
- delete
39+
- deletecollection
40+
- get
41+
- list
42+
- patch
43+
- update
44+
- watch
2945
---
3046
# Source: coder/templates/rbac.yaml
3147
apiVersion: rbac.authorization.k8s.io/v1

0 commit comments

Comments
 (0)