Answer the question
In order to leave comments, you need to log in
User permissions in rabbitmq. How to allow binding to a user only in a specific queue?
Hello.
I don’t work with rabbitmq so much, so I still don’t fully understand some points, for example, users with permissions. Help, please, to understand.
What I want to get is a
User with permissions that can only edit, read and write in queues starting with rtarif_ I give
him the following rights (see picture). The exchange DEV type is topic.
But when I try to bind in the rtarif_in queue, I get Access refused Tell me
what I'm doing wrong, and what entities are affected by user permissions?
Answer the question
In order to leave comments, you need to log in
I answer myself :)
Perhaps someone will come in handy later too.
How permissions work is described here https://www.rabbitmq.com/access-control.html#autho...
Accordingly, in my case, the regular expression ^rtarif_.* does not take into account the exchange, and I get the error Binding error: access to exchange ' DEV' in vhost 'DEV' refused for user 'railtarif'
As a result, I made this expression ^(DEV|rtarif_.*), which works and I hope it is correct.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question