-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.
Description
Environment
Installation method: minikube v1.4.0 and development container for dashboard
Kubernetes version: 1.16.0
Dashboard version: master
Operating system: Ubuntu 18.04 LTS
Node.js version ('node --version' output): 11.15.0
Go version ('go version' output): 1.12.6
Steps to reproduce
Add kubernetes-dashboard resources into minikube.
- Deploy dashboard and resources needed with running
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended.yamlinto minikube. - Attach
cluster-adminClusterRolewithkubernetes-dashboardServiceAccountin newClusterRoleBindinglabeledk8s-app: kubernetes-dashboard. - Edit
typeasNodePortindashboard-metrics-scraperofService
Run dashboard.
- Run dashboard using development container according to Getting started.
Show dashboard in browser.
- Get token for
kubernetes-dashboardServiceAccount. - Log in with the token above.
- Show secret list.
- Right click
kubernetes-dashboard-certsorkubernetes-dashboard-key-holder.
Observed result
They have Edit menu, but it could not get its YAML in edit view.
And got 401 error in browser console.
Expected result
If user does not have permission for the resource, it's better to hide Edit menu.
Comments
maciaszczykm, g-sree, asthasr and pierluigilenocipierluigilenoci
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.