lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.5k stars 1.46k forks source link

RBAC user with restricted user permission stoped listing pods in 4.x #1820

Closed shettyjm closed 3 years ago

shettyjm commented 3 years ago

Describe the bug I have created a user using Permission Manager. It is listing the pods just fine in the Lens version3.6. Kubectl get pods using this restricted permission user is showing listing the pods as well.

After auto-updating to 4.0.4, suddenly stopped working.

See the attachment for more info.

To Reproduce Steps to reproduce the behavior:

  1. Create a user with limited RBAC permission using the Permission Manager.
  2. Download the kubeconfig file for the Permission Manager user
  3. Add cluster using Lens 3.6 and kubeconfig from step 3
  4. See the pod listing under lens UI Workloads-Pods
  5. Try the same using Lens 4.0..4

Screenshots

Environment (please complete the following information):

lns bug 2 lens 4 0 4 bug
jirayuk commented 3 years ago

I have issue too Y_Y

f0rcas commented 3 years ago

Have a same issue too, permission manager + lens 4.0.4 not working.

jakolehm commented 3 years ago

Have you tried 4.0.5?

f0rcas commented 3 years ago

Yes, doesn't work

mpanchap commented 3 years ago

Same issue!

wccropper commented 3 years ago

Experiencing this same issue.

Nokel81 commented 3 years ago

Fixed by #2003

f0rcas commented 3 years ago

Checked on version 4.0.8, it works correctly