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

CassandraSinkCluster: rewrite rpc_address #859

Merged
merged 6 commits into from
Oct 18, 2022

Conversation

rukai
Copy link
Member

@rukai rukai commented Oct 14, 2022

By default this field is 0.0.0.0, in that case no mapping is required as 0.0.0.0 is valid no matter what our ip is.
However if a cassandra node does have rpc_address configured properly, then we would be leaking internal cluster ip addresses by not remapping it.
So this PR maps it to shotovers ip address.

Its also worth noting that rpc_address IS the field used to set the address where the client connects to, despite rpc making it sound like it has to do with the old thrift stuff.
The old name is just kept for legacy reasons.

Copy link
Member

@benbromhead benbromhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @XA21X can you double check on the C* driver operation side of this. Sounds right to me

Copy link
Member

@XA21X XA21X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. (Skimmed docs and driver code, but don't have time to go too deep.)

@rukai rukai merged commit 8fb07c2 into shotover:main Oct 18, 2022
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.

4 participants