[JAVA-4347] Add support for connecting through a Socks5 Proxy Created: 13/Oct/21  Updated: 28/Oct/23  Resolved: 09/Sep/23

Status: Closed
Project: Java Driver
Component/s: Connection Management
Affects Version/s: None
Fix Version/s: 4.11.0

Type: New Feature Priority: Major - P3
Reporter: PM Bot Assignee: Slav Babanin
Resolution: Fixed Votes: 1
Labels: spec-compliance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Issue split
Related
related to JAVA-5205 Add SOCKS5 Proxy Support to the React... Backlog
related to JAVA-5206 Add SOCKS5 Support for CSFLE and KMS ... Backlog
Quarter: FY24Q2, FY24Q3
Case:
Upstream Changes Summary:

DRIVERS-1357:
Epic for Node driver to support Socks5 Proxy

Documentation Changes: Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
This feature pertains to configuring proxy settings, allowing the driver to connect through a SOCKS5 proxy. It's important to note that this functionality is exclusive to the synchronous version of the driver with SocketStreamFactory and it does not pertain to KMS, encryption settings or auto-encryption settings.
2. Would you like the user to see examples of the syntax and/or executable code and its output?
No code examples.
3. Which versions of the driver/connector does this apply to?
4.11


 Description   

This ticket was split from DRIVERS-1357, please see that ticket for a detailed description.



 Comments   
Comment by Ashni Mehta [ 25/Oct/23 ]

Hi extern.schnupp_tobias@allianz.de – appreciate the feedback. I've filed JAVA-5206 for SOCKS5 KMS support. Please have a look, and feel free to comment on the ticket with any further details around your use case.

Comment by Tobias Schnupp [ 11/Oct/23 ]

ashni.mehta@mongodb.com Hi, thanks for the update. We tried this but we are missing the possibility to define hosts that shall not use the proxy. We are accessing the DB directly and the AWS KMS via proxy. 

From Java I know there is a "https.nonProxyHosts" variable where I can exclude hosts. This is really important for us to have a usable setting.

Comment by Ashni Mehta [ 10/Oct/23 ]

Hi all, SOCKS5 Proxy Support is now available in the MongoDB Java Sync Driver. Please have a look at our documentation, and feel free to reach out with any questions.

https://www.mongodb.com/docs/drivers/java/sync/current/fundamentals/connection/socks/#std-label-java-connect-socks

Comment by Githook User [ 08/Sep/23 ]

Author:

{'name': 'Viacheslav', 'email': 'frest0512@gmail.com', 'username': 'vbabanin'}

Message: Introduce SOCKS5 proxy support (#1180)

This commit introduces SOCKS5 proxy support for the synchronous version of MongoClient with SocketStreamFactory.

JAVA-4347
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/d3008cc26fd3520e6b4f0e1beb3d61ad68eb91d2

Comment by Jeffrey Yemin [ 03/Apr/23 ]

Link: https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html

Question is whether this is implemented in a way that will work seamlessly with Socket, Netty, etc.

Generated at Thu Feb 08 09:01:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.