How to change druid admin default password?

In Druid I am using default basic authenticator

My config look like this

druid.auth.authenticatorChain=[“MyBasicMetadataAuthenticator”]
druid.auth.authenticator.MyBasicMetadataAuthenticator.type=basic
druid.auth.authenticator.MyBasicMetadataAuthenticator.initialAdminPassword=password1
druid.auth.authenticator.MyBasicMetadataAuthenticator.initialInternalClientPassword=password2
druid.auth.authenticator.MyBasicMetadataAuthenticator.credentialsValidator.type=metadata

If I change admin password from password1 to another. it is not reflecting on druid console!!
It giving error!!!

So How to modify admin password in Druid?

@msheean figured this out recently and shared this post Change webUI admin user password when using mysql

Excerpt from that post that does what you need:
Set password:
curl -X POST -u admin:[your password] -H “Content-Type: application/json” -d ‘{“password”: “[your new password]”}’ http://[your coordinator ip or hostname]:8081/druid-ext/basic-security/authentication/db/BasicAuthenticator/users/[your user]/credentials

2 Likes

It resolved.Thanks a lot sergio_Ferragut.

1 Like