Is there a way to disable impersonation in Kubernetes for all admin/non Admin users?
kubectl get pod --as user1
The above command should not provide answer due to security concerns. Thank you in advance.
Is there a way to disable impersonation in Kubernetes for all admin/non Admin users?
kubectl get pod --as user1
The above command should not provide answer due to security concerns. Thank you in advance.
Copyright © 2021 Jogjafile Inc.
Unless all your users are already admins they should not be able to impersonate users. As
cluster-adminyou can do "anything" and pre-installed roles/rb should not be edited under normal circumstances.The necessary Role to enable impersonation is:
As long as normal users don't have those permissions, they should not be allowed to perform
--as.