Skip to content
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

Menu element missing when K8s user is with Edit K8s Role #1917

Open
HristoA opened this issue Jan 8, 2021 · 4 comments
Open

Menu element missing when K8s user is with Edit K8s Role #1917

HristoA opened this issue Jan 8, 2021 · 4 comments
Labels
area/rbac Something related to Kube RBAC permissions bug Something isn't working

Comments

@HristoA
Copy link

HristoA commented Jan 8, 2021

Describe the bug
When used kubeconfig file is for user that have only edit role , Lens not show menu of the menu like HPA. Using the same kubeconfig via kubectl i can verify that editing and view of HPA is possible.

To Reproduce
Steps to reproduce the behavior:

  1. Create Service account
  2. Rolebinding him to edit role
  3. Use personal kubeconfig

Expected behavior
All allowed from RBAG items to be shown under Lens menu

Screenshots
image

Environment (please complete the following information):

  • Lens Version: 4.0.6
  • OS: Ubuntu 18.04
  • Installation method (e.g. snap or AppImage in Linux): Snapcraft
@HristoA HristoA added the bug Something isn't working label Jan 8, 2021
@jakolehm
Copy link
Contributor

jakolehm commented Jan 8, 2021

@HristoA I assume it works if you also grant list role?

@HristoA
Copy link
Author

HristoA commented Jan 28, 2021

Hi.
I try this and here is part of my edit role where have keyword horizontalpodautoscalers:

{
    "apiGroups": ["autoscaling"],
    "resources": ["horizontalpodautoscalers"],
    "verbs": ["create", "delete", "deletecollection", "patch", "update", "list"]
},
{
    "apiGroups": ["autoscaling"],
    "resources": ["horizontalpodautoscalers", "horizontalpodautoscalers/status"],
    "verbs": ["get", "list", "watch"]
}

Still problem exist.
Thanks

@Nokel81 Nokel81 added the area/rbac Something related to Kube RBAC permissions label Mar 25, 2021
@Nokel81
Copy link
Collaborator

Nokel81 commented Mar 25, 2021

So just to confirm, HPA is not being displayed even if you have list permissions? I guess we could show it if you have update permissions but how would you view them?

Though if you have create permissions then I guess it would make sense to display it so that you can create them.

@ahippler
Copy link
Contributor

might also be related to #6613

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rbac Something related to Kube RBAC permissions bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants