Cassandra Socks5 Proxy options #131
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have a requirement to get a number of applications/services to route their Cassandra traffic through a Socks5 proxy layer.
This has proven to be an easy task for many of these services as they make use of the com.datastax.driver.core.Cluster library - which exposes methods such as Cluster.withNettyOptions() which makes routing Cassandra traffic through a proxy possible, following this community blog post: https://community.datastax.com/questions/851/connection-to-a-cluster-via-a-socks-proxy.html
However, my instance of Kafka-Connect uses the Datastax/Kafka-Sink library (which consumes this Java-Driver library under the hood) - which sadly does not expose any way to route Cassandra traffic through a Socks 5 proxy. This PR is an attempt to inner source and implement this feature.
The accompanying Java-Driver PR to this change is as follows: apache/cassandra-java-driver#1584
TODO Note: This Kafka-Sink change requires the Java-Driver PR to be reviewed/merged/published first, and then the subsequent latest version of Java Driver is to be consumed in the pom.xml file for this repo.