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

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

Can you share more about why you need to interrupt existing connections? 
Typically it's sufficient to wait until the next natural reconnection attempt, 
since already-authenticated connections are not impacted by credential 
rotations where the password for a given user changes.


> 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