Conversation
a8f1070 to
103b7e0
Compare
Creating/updating Istio, IstioRevision, IstioCNI, or ZTunnel resources is equivalent to cluster-admin, since the operator's own ServiceAccount can act on any namespace on the caller's behalf. Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
103b7e0 to
366222f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2335 +/- ##
==========================================
- Coverage 87.95% 87.80% -0.15%
==========================================
Files 56 56
Lines 2723 2723
==========================================
- Hits 2395 2391 -4
- Misses 328 332 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/retest |
1 similar comment
|
/retest |
FilipB
left a comment
There was a problem hiding this comment.
While the documentation is clear we are still not forcing this as the issue is suggesting. It's probably not worth the effort as anyone who is able to create/edit cluster-wide resources should be consider as cluster admin? There is no room for error in this case?
|
/retest |
From my perspective, we have two options: I think to fully solve the issue, b) is the only option, but I'm not sure it's worth the effort, or even really viable*. Giving these sorts of guarantees would also mean that every possible privilege escalation is a critical bug in Sail Operator, creating a lot of work for us. *: we could e.g. only verify this at edit-time using a webhook. At reconciliation time, we simply cannot know which user made which changes to the CR. So effectively, any user with edit permission on webhook configs can circumvent the checks and use Sail Operator for privilege escalation. |
Thank you. Option a) seems good enough. |
Creating/updating Istio, IstioRevision, IstioCNI, or ZTunnel resources is equivalent to cluster-admin, since the operator's own ServiceAccount can act on any namespace on the caller's behalf.
Fixes #2114.