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

Chore/cliv2 case insensitive env vars #3364

Closed
wants to merge 2 commits into from

Conversation

PeterSchafer
Copy link
Collaborator

@PeterSchafer PeterSchafer commented Jun 21, 2022

What does this PR do?

Some environment variables, especially around proxy configuration, can have either upper or lower case names. Most environments support this, like node and golang. This PR introduces the ability to also handle both cases of variables in CLIv2 when preparing the environment to launch CLIv1.

Example:
HTTP_PROXY = http_proxy

How should this be manually tested?

Using CLIv2 with either environment variable below, should behave the same.

HTTPS_PROXY=http://127.0.0.1:3128
https_proxy=http://127.0.0.1:3128

@PeterSchafer PeterSchafer requested a review from a team as a code owner June 21, 2022 18:18
@PeterSchafer PeterSchafer changed the base branch from master to chore/cliv2_noproxy_filtering June 21, 2022 18:20
@PeterSchafer PeterSchafer force-pushed the chore/cliv2_case_insensitive_env_vars branch from bee004d to 420a72c Compare June 22, 2022 10:01
@PeterSchafer PeterSchafer changed the base branch from chore/cliv2_noproxy_filtering to master June 22, 2022 10:15
avoid accidental and purposeful redirecting of traffic between cliv1 and cliv2

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>
Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>
Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>

chore: support different casing for proxy related env variables

Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>
Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>
@PeterSchafer PeterSchafer force-pushed the chore/cliv2_case_insensitive_env_vars branch from 420a72c to 870d1e7 Compare June 22, 2022 10:22
@github-actions
Copy link
Contributor

Fails
🚫

"Merge branch 'master' into chore/cliv2_case_insensitive_env_vars" is not using a valid commit message format. For commit guidelines, see: CONTRIBUTING.

Generated by 🚫 dangerJS against 7e0eb0b

@PeterSchafer PeterSchafer deleted the chore/cliv2_case_insensitive_env_vars branch June 22, 2022 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant