S
S
saibaneko2022-01-27 11:14:05
RabbitMQ
saibaneko, 2022-01-27 11:14:05

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.
61f252ef8c208485347483.png

But when I try to bind in the rtarif_in queue, I get Access refused Tell me
61f2533a88bbe412311438.png

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

1 answer(s)
S
saibaneko, 2022-01-28
@saibaneko

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 question

Ask a Question

731 491 924 answers to any question