-
Notifications
You must be signed in to change notification settings - Fork 21
Add support for Cassandra clusters with SSL enabled #25
Conversation
That's an interesting issue causing one of the test environments to fail. Looks like Kotlin must be coercing the "localhost" string to an InetAddress somewhere along the way? |
Hi @jcam3ron , I have to check the code but you might be right I've re-run the test twice and it is failing consistently on the point mentioned. I wonder why it is failing for Apache Cassandra but passing for DataStax and embedded Cassandra. |
Hi @jcam3ron , I just noticed that the tests for Apache Cassandra is failing as well on an unrelated branch. Looking at your PR and other failing tests, my guess is that it could either be:
The latter seems more likely as we haven't updated any of the library / driver dependency version, and it was passing fine before recent commits and PRs. I will create a separate issue for the failing CI, however, how important is this PR to you? I would prefer to address the failing CI before merging this in. Thoughts? Notes: |
Hi @hhandoko, thanks for the quick response! I'm fine with waiting for the CI fix - I can use a build from my branch until then. It's an odd issue, because the test that is failing doesn't appear to be using Cassandra at all - it simply creates a new Is it possible that the |
Thanks for the additional info @jcam3ron , I'll look into that possibility as well. |
0d4838d
to
c075e4d
Compare
done - ready to merge. Thanks @hhandoko |
Thanks @jcam3ron . Just to elaborate, I found no evidence of coercion from What I did was to create a workaround for assertion to accept either Notes: |
Cool - thanks for the followup, that's good to know |
Summary
This change allows use with Cassandra clusters that have SSL enabled. It also supports SSL client auth if a keystore is supplied. I have updated tests, but there is no test that uses SSL because embedded Cassandra (cassandra-unit) does not support SSL connections. I have tested this manually, however.
Pull Request (PR) Checklist
Documentation
README.md
or Wiki updatedCode Review
TODO
s, or call them out in the PR commentsTests