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

[v9] Default to https scheme for --proxy argument in tctl auth sign #10911

Merged
merged 3 commits into from
Mar 8, 2022

Conversation

vitorenesduarte
Copy link
Contributor

Backport of #10844.

…10844)

Before this commit, if `--proxy` was set, it would be passed as it to the kubeconfig file. Due to this, if the `--proxy` URL did not have a scheme, it would default to `http`,  leading to the issue reported in https://github.com/gravitational/cloud/issues/1358.

With this commit, we now try to parse the `--proxy` URL and set its scheme to `https` in case it's not set.
In case it's set, we only allow `--proxy` URLs with the `http` and `https` schemes.
@github-actions github-actions bot added the tctl tctl - Teleport admin tool label Mar 7, 2022
@github-actions github-actions bot requested review from fspmarshall and jakule March 7, 2022 16:16
@vitorenesduarte vitorenesduarte self-assigned this Mar 7, 2022
@vitorenesduarte vitorenesduarte requested review from hatched and rosstimothy and removed request for fspmarshall March 7, 2022 23:00
@vitorenesduarte vitorenesduarte merged commit d257f56 into branch/v9 Mar 8, 2022
@vitorenesduarte vitorenesduarte deleted the vitor/v9/default-scheme-proxy-flag branch March 8, 2022 13:18
@russjones russjones added the cloud Cloud label Mar 18, 2022
@webvictim webvictim mentioned this pull request Apr 19, 2022
@webvictim webvictim mentioned this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloud Cloud tctl tctl - Teleport admin tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants