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

Long lived kubeconfig for trusted clusters? #4405

Closed
cnelson opened this issue Sep 30, 2020 · 5 comments · Fixed by #4446
Closed

Long lived kubeconfig for trusted clusters? #4405

cnelson opened this issue Sep 30, 2020 · 5 comments · Fixed by #4446

Comments

@cnelson
Copy link
Contributor

cnelson commented Sep 30, 2020

Is it possible to use tctl auth sign --format kubernetes on a "main cluster" to generate a kubeconfig for a "trusted / leaf / remote cluster" that's connected to the main cluster tctl is being run on?

#2985 mentions trusted clusters, but the feature added in #2825 doesn't mention how to generate a long-lived kubeconfig for a leaf cluster.

@awly
Copy link
Contributor

awly commented Sep 30, 2020

@cnelson it's not possible right now, but I agree that we should support this.
For now you'll have to run tctl auth sign on the leaf cluster.

Our roadmap for 4.4/5.0/5.1 is pretty loaded right now, we can't work on this in the near future.
A PR is always welcome though!

@awly awly added this to the Runway Milestone milestone Sep 30, 2020
@webvictim
Copy link
Contributor

I guess the biggest issue is for leaf clusters that don't have an endpoint exposed to the world. We'd need to expose some logic for setting RouteToCluster in the certificate metadata.

@cnelson
Copy link
Contributor Author

cnelson commented Sep 30, 2020

@awly thanks for letting me know I wasn't missing something stupid here :)

@webvictim Yes this is exactly my use case here -- the leaf cluster is only accessible via the main cluster.

@cnelson
Copy link
Contributor Author

cnelson commented Sep 30, 2020

@awly Obviously this would need tests, docs, etc. But if I were to submit a PR to add this feature, is this generally the right approach?

https://github.com/gravitational/teleport/compare/master...cultivateai:feat/auth-sign-k8s-leaf?expand=1

@awly
Copy link
Contributor

awly commented Sep 30, 2020

@cnelson yep, that looks roughly correct.
We can polish it during review if you open a PR 👌

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