Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting our team. We will be in touch shortly.Close

How to manage passwords

Internal operator user

The operator user is used internally by the Charmed MongoDB Operator, the set-password action can be used to rotate its password.

  • To set a specific password for the operator user
juju run mongodb-k8s/leader set-password password=<password>

where is the password you want to set

  • To randomly generate a password for the operator user
juju run mongodb-k8s/leader set-password

Rotate application passwords

To rotate the passwords of users created for related applications, the relation should be removed and related again. That process will generate a new user and password for the application.

juju remove-relation <application> mongodb-k8s
juju add-relation <application> mongodb-k8s

where is the name of your application

Last updated 7 months ago. Help improve this document in the forum.