-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Karmada plugin shoule use User Impersonation to limit access permission expansion #5485
Comments
@xigang Thanks for your feedback! |
@XiShanYongYe-Chang Kubernetes User Impersionation can be used to control the requested permissions. I have implemented it simply. Is there any problem with this? Sample code:
|
/cc @RainbowMango @ikaven1024 Let’s take a look together. Is there any problem? |
Hi @xigang can you give an example of the impact of this operation? |
@XiShanYongYe-Chang Look at the following diagram to illustrate the path a request takes:
|
Thank you for your detailed explanation. Will this permission magnification cause some damage to the system? For example, can a read-only user modify or delete resources on the karmada control plane through this operation? |
Yes, read-only users will have the permission to modify and delete resources on the karmada control plane, but member clusters will not be affected. you can test this scenario. |
Hi @ikaven1024 @cmicat, would you like to have a look? |
What happened:
When the request reaches the federated cluster, if the
cache
andcluster
plugin cannot handle it, the request reaches thekarmada
plugin, which uses the admin permissions to access the federated clusterkube-apiserver
, causing the cluster access permissions amplification problem.https://github.com/karmada-io/karmada/blob/master/pkg/search/proxy/framework/plugins/karmada/karmada.go#L81
What you expected to happen:
We should use
User Impersionation
to control user access rights.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: