[ 
https://issues.apache.org/jira/browse/CASSANDRA-19380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17815856#comment-17815856
 ] 

Abe Ratnofsky commented on CASSANDRA-19380:
-------------------------------------------

"ALTER ROLE WITH LOGIN=FALSE" also will not disconnect existing clients; 
they'll continue to work but fail on the next authentication attempt.

> Enhance CqlSession to refresh the auth credentials dynamically
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-19380
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19380
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Client/java-driver
>            Reporter: Ranjith Gampa
>            Priority: Normal
>
> 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.
>  
> {code:java}
> cqlSessionBuilder.withConfigLoader(driverConfigLoader)
>                     .withAuthCredentials(userName, password); {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to