spring-boot-starter-data-cassandra
has option for enabling ssl (by setting spring.data.cassandra.ssl=true
), but when we are enabling this there is no way to provide truststore filename and truststore password so that SSLContext is created based on truststore provided.
We have this kind of future already available for kafka(spring.kafka.ssl.truststore-location= # Location of the trust store file
. spring.kafka.ssl.truststore-password= # Store password for the trust store file
). If same kind of option is provided for spring-data-cassandra, it will be more helpful
PFB Stack Overflow Question which I posted for more Details.
http://stackoverflow.com/questions/42550406/how-to-configure-ssl-between-spring-boot-application-and-cassandra-using-cassand/42563559#42563559
Comment From: snicoll
As of 1.5, you can register a ClusterBuilderCustomizer
implementation and do whatever you want with SSL options. Have you tried that?
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Comment From: aadarshsingh191198
@snicoll I think what @gokulrl meant was - Isn't there a straightforward way to add the filename and truststore password just like adding contact-point and port, etc.? Put them in application.properties and spring takes care of the rest...
Comment From: wilkinsona
@aadarshsingh191198 That change is being tracked by https://github.com/spring-projects/spring-boot/issues/25602.