Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ how to set user permission for a routing key in direct exchange?

I have set up a direct exchange model where many producers produces messages to a direct exchange and then many consumers consumes those messages by a routing key, so I want them to only be able to consume these messages that routing keys I assigned to them. I've looked over the rabbitmq docs and found nothing about this. Is this even possible? Or maybe i should change the exchange model?

like image 305
DualCore Avatar asked Oct 19 '25 08:10

DualCore


1 Answers

It looks like you may want to use a topic exchange and use set_topic_permissions to limit which topics each RabbitMQ user can access.

like image 110
legohead Avatar answered Oct 22 '25 03:10

legohead