Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Not A Problem
-
None
-
None
-
All
-
None
Description
Our team is working on a feature to automatically deliver the credentials to application when the credentials are rotated without application teams restarting the application. Is this currently supported with "com.datastax.oss.driver.api.core.CqlSession"? If yes, please provide a sample code for the same.
If this feature isn't supported, is it feasible to enhance? Below is our request,
- To dynamically refresh the credentials at runtime within existing CqlSession instance.
- Internally drain the old connections gracefully in resilient manner and establish the new connections with new credentials without doubling the overall number of connections.
This is how we currently set the auth credentials at application startup.
cqlSessionBuilder.withConfigLoader(driverConfigLoader) .withAuthCredentials(userName, password);