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
dashboard https Unauthorized #31665
Comments
I have the same issue. And I think author maybe haven't consider it yet. |
I'm guessing that your clusters are using certificates for secure communication over HTTPS. There are 2 issues here.
It's easy to authorize with curl because you can easily provide required data. With browser it's more complicated than that. There are several ways to access dashboard:
Regarding second option. I can provide some information how to do that using firefox.
If certificates are generated correctly then popup will be displayed on next attempt to access api server over HTTPS. You may need to clear browser cache. You should see the dashboard now. :) I don't know how to use bearer token in browser. Possibly it requires some manual work to add data to HTTP header before sending request to api server. There are of course other options to authorize user. Kubernetes supports ABAC, RBAC and much more. |
The browser is required to authenticate when accessing the secured API server port. As #31665 (comment) demonstrates, that can be done with certificate-based authentication. For token-based authentication, browsers do not give you a way to send bearer tokens automatically with your requests. The dashboard describes how you can use |
Dashboard version: 1.1
Kubernetes version: 1.3.6
Operating system: ubuntu14.04
Go version:1.6.2
Ideploy kubernetes and dashboard as http://kubernetes.io/docs/getting-started-guides/ubuntu/
I can access the dashboard http://master-ip:8080/
bur when I access https://master-ip:6443/ ,return "Unauthorized"
why?
The text was updated successfully, but these errors were encountered: