Open fatsolko opened 2 days ago
hi, thanks for opening an issue
how to fix this: there's an "Allowed namespaces" setting that you can set which will restrict all the requests to those particular namespaces
I understand that the problem is most likely that headlamp first tries to get all the pods in the cluster (I did not give such permissions) and filter them on the frontend.
you're right, currently by default headlamp fetches all the pods and then filters by namespace. there's a related issue with a similar problem here https://github.com/headlamp-k8s/headlamp/issues/1195
how to fix this: there's an "Allowed namespaces" setting that you can set which will restrict all the requests to those particular namespaces
I don’t think this is a good way when we have a lot of namespaces, it’s still worth reconsidering this logic
Describe the bug
Log in to headlamp, go to the dex namespace in which I gave the user full access.
And I can get all the info if I navigate through the namespace tab through the resources. But if I go to the pod\secret\etc tab, they will not be available.
If I go to the same in Lens with the same account, everything works as expected
I understand that the problem is most likely that headlamp first tries to get all the pods in the cluster (I did not give such permissions) and filter them on the frontend. https://blabla.dev/c/main/pods?namespace=dex And if you open the pod directly, then everything is ok https://blabla.dev/c/main/pods/dex/dex-66c5fdc5b7-ng2bg
if I give
get list
permissions to pods in clusterRole, everything will work, but i don't want to give permissions to pods in whole clusterEnvironment:
Are you able to fix this issue?
No