-
Notifications
You must be signed in to change notification settings - Fork 211
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
fix: curl proxy cse vars; e2e for noProxy #2814
Conversation
e4073e9
to
483a56e
Compare
483a56e
to
899b8c9
Compare
1912531
to
cec5462
Compare
@@ -141,7 +141,9 @@ | |||
"ContainerdPackageURL": "", | |||
"RuncPackageURL": "", | |||
"FIPSEnabled": false, | |||
"HTTPProxyConfig": null, | |||
"HTTPProxyConfig": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't do anything but tests var syntax in bash
@@ -76,6 +76,9 @@ if [[ "${SHOULD_CONFIGURE_CUSTOM_CA_TRUST}" == "true" ]]; then | |||
fi | |||
|
|||
if [[ -n "${OUTBOUND_COMMAND}" ]]; then | |||
if [[ -n "${PROXY_VARS}" ]]; then | |||
eval $PROXY_VARS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kinda annoying to form this export string properly without eval...
don't love eval, but pretty sure we sanitize this reasonably well in RP
and if we don't...congratulations, you're paying to hack your own VMs via shell script injection
@@ -63,6 +63,9 @@ if [[ "${DISABLE_SSH}" == "true" ]]; then | |||
disableSSH || exit $ERR_DISABLE_SSH | |||
fi | |||
|
|||
apt update && apt install -yq tinyproxy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this works but doesn't handle https serving endpoint for HTTPS_PROXY
you can set HTTPS_PROXY to http://url, but it's not testing full scenario
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note: