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

Client: proxy support #84

Open
arthuraraujo-msft opened this issue Feb 27, 2024 · 1 comment
Open

Client: proxy support #84

arthuraraujo-msft opened this issue Feb 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@arthuraraujo-msft
Copy link
Contributor

Support proxies when making the connection to SFS.

Automatic handling should be done during the web requests with the goal of finding the first proxy that enables the connection to be created.

The handling will depend on the HTTP library chosen, but a possible approach is through libproxy/libproxy (github.com), which is also used by the Lite DO Client in the DO SDK.

  • This library does the handling automatically depending on the current platform and returns a list of candidate addresses that should be attempted in order. Here's how DO uses it.
  • The need to use a library arises from the fact that each platform does proxy configuration in a different manner. Windows uses the IE configuration, or the netsh proxy configuration. Some Linux applications read from the environment variable http_proxy. MacOS has a system-wide proxy configuration similar to Windows.

libproxy has a good example with libcurl: https://github.com/libproxy/libproxy/blob/main/docs/samples/libcurl/curlget.c

@arthuraraujo-msft arthuraraujo-msft added the enhancement New feature or request label Feb 27, 2024
@arthuraraujo-msft
Copy link
Contributor Author

Check if cert pinning works through the proxy as well
CONNECT would be used
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant