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

[v11] Fix multiple profile handling for kube credentials #23718

Merged
merged 1 commit into from Mar 29, 2023

Conversation

tigrato
Copy link
Contributor

@tigrato tigrato commented Mar 28, 2023

Backport of #23705 to branch/v11

This PR fixes the multi profile handling for Kubernetes Access flow.
Previously, `tsh kube credentials` assumed the default profile because
no proxy was provided when kubectl invokes the credentials plugin which
resulted in usage of wrong certificates.

This PR prevents that by appending the `--proxy` flag to kubectl exec
plugin which allows `tsh kube credentials` to correctly identify the
correct profile.
@github-actions github-actions bot added backport size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Mar 28, 2023
@tigrato tigrato enabled auto-merge March 29, 2023 06:51
@tigrato tigrato added this pull request to the merge queue Mar 29, 2023
Merged via the queue into branch/v11 with commit 92f50d2 Mar 29, 2023
18 checks passed
@tigrato tigrato deleted the tigrato/fix-multi-profile-kube-creds-b11 branch March 29, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants