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
Enable Transport configuration for http client #129
Enable Transport configuration for http client #129
Conversation
Quick question: is this primarily to allow using a proxy? If so, have you tried setting the HTTP_PROXY and HTTPS_PROXY environment variables, or is that mechanism insufficient? |
Hi @rcypher-databricks thanks for the quick response! |
You should be able to use socks5, based on the documentation. But of course this still could not be sufficient for your needs. Just want to make sure we're not reinventing the wheel here. |
You are right on that :) However, we are also needing to set the TLS configuration (certificates), which we do use the On the other hand, we have multiple connectors in the same system, and not all of them are connected to the proxy or use different credentials, which invalidates also the env variables approach (it would be shared across all the system). |
@rcypher-databricks Thanks for the approval! |
hi @rcypher-databricks did you had a chance to review the workflows to check if it is ok to merge?? |
Hi @rcypher-databricks sorry to bother you again, is there anything else I can do to move this along? cc: @susodapop @andrefurlan-db also sorry to ping you as well, it shows me that you are also owners of some files in this PR, but I can't ask for review |
We want to add this to the next point release. Would id be possible for you to sign the commit with a DCO |
…d test Signed-off-by: Leandro Deveikis <leandro.deveikis@gmail.com>
Thanks @rcypher-databricks. I just squashed both commits and signed them off. I don't usually do that, so let me know if there is something wrong or missing. Thanks! |
Context:
This change enables passing a RoundTripper as a configuration parameter (via the WithTransport() func) to use, for instance, a Socks5 proxy.
If the transport is not configured, it remains with the original behavior.
Changes made:
http.RoundTripper
(is returned as that atPooledTransport()
)