Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-19380

Enhance CqlSession to refresh the auth credentials dynamically

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Not A Problem
    • None
    • Client/java-driver
    • 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,

      1. To dynamically refresh the credentials at runtime within existing CqlSession instance.
      2. 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); 

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            rgampa Ranjith Gampa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: