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

Add token to the kube config file for kubernetes dashboard #53

Closed
arcalys opened this issue Apr 9, 2019 · 6 comments
Closed

Add token to the kube config file for kubernetes dashboard #53

arcalys opened this issue Apr 9, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@arcalys
Copy link

arcalys commented Apr 9, 2019

Hi,

Kubernetes dashboard does not support auth-provider when trying to log in with the config file instead of a token, it needs a token at the same level as the auth-provider under user, e.g.:

- name: username
  user:
    auth-provider:
      config:
        client-id: id
        client-secret: secret
        id-token: token
        idp-issuer-url: https://accounts.google.com
        refresh-token: xx
      name: oidc
    token: token

Would be nice if the generated token could be added as well in order for the kubeconfig file to be usable to log in as well.

@aperullo
Copy link

Ooh seconded

@cameronbraid
Copy link

Another idea would be to support a command to print out the current id_token for a copy/paste into the login page

kubelogin --token

@int128 int128 added the enhancement New feature or request label Aug 22, 2019
@int128
Copy link
Owner

int128 commented Aug 22, 2019

Thank you for your proposal. I am developing kauthproxy, an authentication proxy working with kubelogin. We can access the Kubernetes Dashboard through kauthproxy and there is no plan to add this feature for now.

It may be valuable if kubelogin has an authentication proxy feature (i.e. integrate kubelogin with kauthproxy), but I cannot decide it for now. Any suggestion is welcome!

@cameronbraid
Copy link

kauthproxy looks interesting.

Hope it is able to pick an unused port and open the browser automatically :)

@aperullo
Copy link

After posting this I did also find your kubernetes dashboard proxy and have been happily using that in the mean time.

@int128
Copy link
Owner

int128 commented Aug 23, 2019

This may be a FAQ and I will add the topic to README.

Hope it is able to pick an unused port and open the browser automatically :)
Thank you for your idea!

@int128 int128 closed this as completed Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants