You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 #1195
@fatsolko You are right. We need to find a better way to handle this.
Maybe if the currently selected Namespace is just one (and not many), we include it in the requests?
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
The text was updated successfully, but these errors were encountered: