Issue with pika.connection.update_secret #1454
-
I have an AWS Lambda rotator to rotate secret on RabbitMQ server running on Amazon MQ. Rotator has multiple steps including set and test secrets. I am using pika connection method - update_secret - to update the connection. This stage goes fine with no errors thrown. When testing secret with the new password, it throws an error. I am wondering if update_password is working correctly. I am rotating the password for the admin user. set_secret code - Log statements - Copy 2023-11-16T11:39:50.842-06:00 Copy 2023-11-16T11:39:50.859-06:00 Copy 2023-11-16T11:39:50.859-06:00 Copy 2023-11-16T11:39:50.859-06:00 Copy 2023-11-16T11:39:50.859-06:00 Copy 2023-11-16T11:39:50.859-06:00 Copy 2023-11-16T11:39:50.859-06:00 Copy 2023-11-16T11:39:50.859-06:00 Copy 2023-11-16T11:39:50.859-06:00 Copy 2023-11-16T11:39:50.859-06:00 Copy |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
What versions of the following software are you using:
Are you certain the new secret is available to RabbitMQ? What does RabbitMQ log at the same time your application logs the |
Beta Was this translation helpful? Give feedback.
The
update_secret
method DOES NOT update the password for a user in RabbitMQ.Please carefully read the docs to which I linked. Updating secrets is generally used in environments that use OAuth2 authentication.
If you are not using OAuth2, your "AWS Lambda rotator" process will have to update the password for the
admin
user (or whatever user you're using) by using either therabbitmqctl
command line, or by using the HTTP API.To update a user's password, you would make a
POST
request to/api/users/USERNAME
with the correct payload.