Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the password of an user in rabbitmq?

How to get the password of an existing user in Rabbitmq from CLI? I got the name of the user by CLI command "sudo rabbitmqctl list_users" and the outupt is as follows:

Listing users ... guest [administrator] openstack []

I want to know the 'openstack' user password.

like image 200
nirmit Avatar asked Oct 30 '25 10:10

nirmit


2 Answers

The user passwords are stored using a one-way hash so there is no way to retrieve their value. You should use the rabbitmqctl change_password command to change that user's password to a known value.

like image 76
Luke Bakken Avatar answered Nov 02 '25 20:11

Luke Bakken


If you used a deployment solution you might find the password in it's configuration. For example, when you deploy Openstack using kolla-ansible you find the password in /etc/kolla/passwords.yml.

user@deployhost:~$ grep -E ^rabbitmq_password: /etc/kolla/passwords.yml
rabbitmq_password: haH2ZPjVVKmiqoXdRPCYJcdQyzP2cqeU

It might be stored in some secure way, for example an vault if ansible is used for deployment, in this case you need to check the deployment framework on how to retrieve it.

like image 27
Gerald Schneider Avatar answered Nov 02 '25 19:11

Gerald Schneider



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!