Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

karthikeyanperumal84_153621 avatar image
karthikeyanperumal84_153621 asked ·

What happens to requests when password is changed and using a custom authenticator?

what happens to my app that is connected to cassandra and a password update happens on the cassandra server. If the existing connections does not drop i want all the new connections to use updated password. If there a way to override newAuthenticator in plaintextauthprovider

password authentication
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

@karthikeyanperumal84_153621 for the Cassandra authenticator, the old password will persist for as long as the credentials cache is valid (default is 2000ms). But since you are using a custom authenticator, it won't automatically use the cache so depending on how you've implemented your authenticator the password reset will be effective immediately.

Note that the password reset will not affect requests which are already authenticated. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.