Repository navigation
Commit 8076520
authored
atecontroller: Limit the Secrets read to the egress MITM CA pool (agent-substrate#3036)
The controller reads one Secret, egress-mitm-ca-pool in ate-system, but
its RBAC marker granted get, list and watch on every Secret in the
cluster. Add namespace and resourceNames to the marker. The rule moves
from the ClusterRole to the ate-system Role, which is already bound.
<!-- The PR title becomes the release note. Write it for users. -->
Why is this needed? (Or link the issue. Open one first for features,
API, install or CI changes.)
Fixes part of agent-substrate#2936
<!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author
trailers. -->
AI use: I-assisted, I reviewed and tested it.
<!-- Breaking change? Describe what users must do on upgrade and ask for
the `breaking-change` label. -->
- [x] Tests pass
- [ ] Docs updated1 parent 4d98981 commit 8076520
2 files changed
Lines changed: 16 additions & 9 deletions
File tree
- cmd/atecontroller/internal/controllers
- manifests/ate-install/generated
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 30 | | |
39 | 31 | | |
40 | 32 | | |
| |||
141 | 133 | | |
142 | 134 | | |
143 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
0 commit comments