Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rabbitmq MQTT topic rights

Tags:

rabbitmq

I am using RabbitMQ 3.6.12.

Users are connecting thought MQTT and writing to different topics. How is it possible to restrict MQTT user rights to specific topics?

Currently everything is allowed: enter image description here

I am aware of this documentation, but honestly I cant figure out, what to set: https://www.rabbitmq.com/access-control.html

I tried to set "my-test-topic" in write regexp, but then the client gets disconnected when it tries to write to this topic.

like image 847
Alex Tbk Avatar asked Nov 19 '25 10:11

Alex Tbk


1 Answers

Found an solution. The following configuration will allow the user to write/read only to topics that start with ex-foo

enter image description here

like image 92
Alex Tbk Avatar answered Nov 21 '25 06:11

Alex Tbk



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!