RBAC rule "get *" or "get pods/exec" allows exec into Pods in the Web Terminal
Issue
-
When the following rule is applied to a Role, it is possible to
execinto Pods, why is that?rules: - verbs: - get - list - watch apiGroups: - '*' resources: - '*' -
Users can exec into pods with the WebSocket endpoint even without
pods/exec createprivileges.
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.