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

Support for system proxy configuration. #435

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

mook-as
Copy link
Contributor

@mook-as mook-as commented Jul 28, 2021

This adds support for use the system proxy configuration (by asking the embedded Chrome to resolve the proxy configuration). The idea to ask Chrome was from the electron-proxy-agent package; however, it had significant issues on supporting system CA certificates, and the result ended up being a complete rewrite.

We need the wrapper classes for HttpsProxyAgent and SocksProxyAgent so that we can pass the CA options down to the eventual tls.connect() call. This is due to TooTallNate/proxy-agents#89.

I originally wanted to copy the code from electron-proxy-agent (leaving it as MIT licensed with the attribution), but it ended up easier to rewrite the whole thing.

This obsoletes #417, and is meant as part of #384. Note that this still doesn't change what we do for the VM (so it does not completely fix #384).

This adds support for use the system proxy configuration (by asking the
embedded Chrome to resolve the proxy configuration).  The idea to ask
Chrome was from the electron-proxy-agent package; however, it had
significant issues on supporting system CA certificates, and the result
ended up being a complete rewrite.

We need the wrapper classes for HttpsProxyAgent and SocksProxyAgent so that
we can pass the CA options down to the eventual tls.connect() call.  This
is due to TooTallNate/proxy-agents#89

Signed-off-by: Mark Yen <[email protected]>
@mook-as mook-as force-pushed the system-proxy-custom branch from e5f93cf to 83d1a15 Compare August 6, 2021 23:09
@mattfarina mattfarina merged commit c72fdca into rancher-sandbox:main Aug 9, 2021
@mook-as mook-as deleted the system-proxy-custom branch August 12, 2021 16:57
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.

How to configure RD to use an internet proxy?
2 participants