-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Question: Using Boto with SOCKS5 #880
Comments
So botocore does not support SOCKS5 as we use As to current interfaces, the best way to set the proxy in botocore is by using the |
FYI requests 2.10.0 (2016-04-29) includes it: |
Cool. So now all we will need to do is switch dependency of requests to 2.10.0 now to pick up support. |
@kyleknap is it going to be done? |
I see the requests was recently un-vendored (#1829). Does this mean that boto3 will use the default requests library from the environment? What does this mean in terms of socks proxy support in boto3? Will we be able to use a socks proxy assuming the version of requests we have installed supports it? |
We've stumbled on this recently as well. It seems that currently there is code that handles HTTP/HTTPS proxies, but not SOCKS proxies. For example, see: botocore/botocore/httpsession.py Lines 116 to 122 in f71d67a
As you see, this code does not check if a different/wrong URI scheme has been provided. This means that if one naively provides a SOCKS URI, they will see this misleading error:
Are there any plans to fix this? |
Greetings! It looks like this issue hasn’t been active in longer than one year. We encourage you to check if this is still an issue in the latest release. Because it has been longer than one year since the last update on this, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment to prevent automatic closure, or if the issue is already closed, please feel free to open a new one. |
Are there any integration points/configuration parameters to use botocore with a SOCKS5 proxy? That would include routing DNS requests through the proxy.
The text was updated successfully, but these errors were encountered: