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

Add SOCKS proxy support #2081

Closed
wants to merge 2 commits into from
Closed

Add SOCKS proxy support #2081

wants to merge 2 commits into from

Conversation

dbevacqua
Copy link

Although this "works for me", it's still work in progress and needs at least some more tests in test_http_session.py to cover cases where URLLib3Session is configured with SOCKS proxies. Before going any further I wanted to verify the general approach.

One particular question is how to avoid warnings from importing urlib3.contrib.socks when socks (an optional dependency) is not available.

@codecov-commenter
Copy link

codecov-commenter commented Jun 18, 2020

Codecov Report

Merging #2081 into develop will decrease coverage by 0.08%.
The diff coverage is 73.91%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2081      +/-   ##
===========================================
- Coverage    93.11%   93.03%   -0.09%     
===========================================
  Files           60       60              
  Lines        11096    11136      +40     
===========================================
+ Hits         10332    10360      +28     
- Misses         764      776      +12     
Impacted Files Coverage Δ
botocore/awsrequest.py 95.31% <36.36%> (-2.26%) ⬇️
botocore/httpsession.py 91.08% <85.71%> (-1.40%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b195fc0...1e0c731. Read the comment docs.

@dbevacqua dbevacqua marked this pull request as draft June 22, 2020 09:45
@hnousiainen
Copy link

I have a need to access AWS endpoints over SOCKS5 proxy and I've tested this modification successfully in that environment. Are you still working on this PR, and is there anything I could help with?

hnousiainen added a commit to hnousiainen/pghoard that referenced this pull request Apr 21, 2021
Extend proxy support to s3 driver as well. Socks support requires
botocore with boto/botocore#2081 merged.
vkantchev added a commit to vkantchev/botocore that referenced this pull request Jun 14, 2021
@zhan9san
Copy link
Contributor

@dbevacqua

Are you still working on this feature? Would you mind if I pick it up?

@dbevacqua
Copy link
Author

@zhan9san please be my guest

@zhan9san zhan9san mentioned this pull request Oct 25, 2021
rdunklau pushed a commit to Aiven-Open/rohmu that referenced this pull request Apr 27, 2022
Extend proxy support to s3 driver as well. Socks support requires
botocore with boto/botocore#2081 merged.
rdunklau pushed a commit to Aiven-Open/rohmu that referenced this pull request Apr 27, 2022
Extend proxy support to s3 driver as well. Socks support requires
botocore with boto/botocore#2081 merged.
rdunklau pushed a commit to Aiven-Open/rohmu that referenced this pull request Apr 27, 2022
Extend proxy support to s3 driver as well. Socks support requires
botocore with boto/botocore#2081 merged.
rdunklau pushed a commit to Aiven-Open/rohmu that referenced this pull request Apr 27, 2022
Extend proxy support to s3 driver as well. Socks support requires
botocore with boto/botocore#2081 merged.
juha-aiven pushed a commit to Aiven-Open/rohmu that referenced this pull request Apr 27, 2022
Extend proxy support to s3 driver as well. Socks support requires
botocore with boto/botocore#2081 merged.
juha-aiven pushed a commit to Aiven-Open/rohmu that referenced this pull request Apr 27, 2022
Extend proxy support to s3 driver as well. Socks support requires
botocore with boto/botocore#2081 merged.
alexole pushed a commit to Aiven-Open/rohmu that referenced this pull request Apr 27, 2022
Extend proxy support to s3 driver as well. Socks support requires
botocore with boto/botocore#2081 merged.
rdunklau pushed a commit to Aiven-Open/rohmu that referenced this pull request Apr 27, 2022
Extend proxy support to s3 driver as well. Socks support requires
botocore with boto/botocore#2081 merged.
@tim-finnigan
Copy link
Contributor

Thank you for creating this PR. After bringing this up for discussion with the team we decided to continue tracking this request in #2541 going forward, with the latest update here: #2541 (comment)

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.

5 participants