Skip to content

Commit b326b3b

Browse files
committed
operator: strict verb restrictions in rbac role
1 parent e1687f6 commit b326b3b

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
### Added
1111
- Integration test for cluster_controller written with envtest and ginkgo
1212

13+
### Changed
14+
- Requested verbs for a RBAC role Tarantool: remove all * verbs and resources
15+
1316
### Fixed
1417
- Not working update of replicaset roles
1518

ci/helm-chart/templates/role.yaml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ rules:
1515
- configmaps
1616
- secrets
1717
verbs:
18-
- '*'
18+
- get
19+
- create
20+
- update
21+
- watch
22+
- list
23+
- patch
24+
- delete
1925
- apiGroups:
2026
- apps
2127
resources:
@@ -24,7 +30,13 @@ rules:
2430
- replicasets
2531
- statefulsets
2632
verbs:
27-
- '*'
33+
- get
34+
- create
35+
- update
36+
- watch
37+
- list
38+
- patch
39+
- delete
2840
- apiGroups:
2941
- monitoring.coreos.com
3042
resources:
@@ -43,10 +55,15 @@ rules:
4355
- apiGroups:
4456
- tarantool.io
4557
resources:
46-
- '*'
4758
- clusters
4859
- roles
4960
- statefulsettemplatespecs
5061
- replicasettemplates
5162
verbs:
52-
- '*'
63+
- get
64+
- create
65+
- update
66+
- watch
67+
- list
68+
- patch
69+
- delete

0 commit comments

Comments
 (0)