Search code examples
cassandradatastaxquarkus

How to use encrypt Cassandra password credentials in config in Quarkus?


Problem Statement

The requirement is to set encrypted password in configuration for Cassandra so that Quarkus automatically decrypts the password at runtime (like jasypt).

Example

quarkus.cassandra.auth.username=john
quarkus.cassandra.auth.password=s3cr3t  --> instead of this
quarkus.cassandra.auth.password=ENC(1k9u)  --> something like this

Solution

  • I've reached out to the team who maintain the Quarkus extension for Apache Cassandra and got confirmation that unfortunately it's not possible to do that. Cheers!