-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
improve tctl config loading ux #42469
Conversation
🤖 Vercel preview here: https://docs-ptot57dgq-goteleport.vercel.app/docs/ver/preview |
Nice! |
🤖 Vercel preview here: https://docs-14mjru27i-goteleport.vercel.app/docs/ver/preview |
🤖 Vercel preview here: https://docs-6cujf3h0g-goteleport.vercel.app/docs/ver/preview |
🤖 Vercel preview here: https://docs-hawsu40ok-goteleport.vercel.app/docs/ver/preview |
🤖 Vercel preview here: https://docs-ff6ocna1b-goteleport.vercel.app/docs/ver/preview |
🤖 Vercel preview here: https://docs-eny3l0st9-goteleport.vercel.app/docs/ver/preview |
@gabrielcorado this needs G2 |
e19b377
to
d61866b
Compare
🤖 Vercel preview here: https://docs-qmg2sapb9-goteleport.vercel.app/docs/ver/preview |
d61866b
to
6b6ebde
Compare
🤖 Vercel preview here: https://docs-nrqbcsk33-goteleport.vercel.app/docs/ver/preview |
🤖 Vercel preview here: https://docs-npjndv4vh-goteleport.vercel.app/docs/ver/preview |
🤖 Vercel preview here: https://docs-ozurok71t-goteleport.vercel.app/docs/ver/preview |
@GavinFrazar See the table below for backport results.
|
Would it be worthwhile to backport it to v15 as well? I think people are hitting this issue pretty often. |
Nice! |
changelog: tctl will now ignore any configuration file if the auth_service section is disabled, and prefer loading credentials from a given identity file or tsh profile instead.
Fixes #25620
This issue frequently trips customers (and me) up - see the linked issue and the issues linking to it.
This PR checks the config file that tctl finds and ignores it if the auth service section is not enabled.
That makes it far more friendly to use tctl on a host where a teleport agent is running (or even just configured).
I also updated the docs and error messages to hint towards tsh/identity file credential loading.
I'm not sure if this is a "breaking" change, but it seems that tctl only loads the config file to get an auth server address + credentials, both of which are provided by identity file (we already require the address flag be provided with an id file) and tsh profile already, so it seems fine to me.