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

Use tsh as an exec plugin from kubeconfig #3691

Closed
awly opened this issue May 11, 2020 · 1 comment · Fixed by #4769
Closed

Use tsh as an exec plugin from kubeconfig #3691

awly opened this issue May 11, 2020 · 1 comment · Fixed by #4769

Comments

@awly
Copy link
Contributor

awly commented May 11, 2020

Feature Request

Instead of writing raw client key/cert into kubeconfig on tsh login, generate an exec plugin section.
This will cause kubectl to execute tsh (with configurable flags or env vars) to fetch the client key/cert.
tsh should have some helper logic to generate that exec section in kubeconfig and also prompt login if credentials have expired.

Motivation

  1. when user's credentials expire today, the user gets obscure x509 errors from kubectl; with exec plugin this can be changed to a login prompt or at least a helpful error message.
  2. if a user only works with a fixed set of k8s clusters, they don't need to interact with tsh at all after initial setup.

Who's it for?

OSS User, Pro, Enterprise

cc @webvictim @benarent

@awly
Copy link
Contributor Author

awly commented Jun 11, 2020

#3690 is a good approximation of the UX we expect.
Read through that implementation before starting to learn any gotchas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant