MQTT Wildcard # usage on root topic with user limited topic permission #9125
-
RabbitMQ 3.11.13 I did limit the MQTT topic permission for a user to the following topics: The limitation gets done via the LDAP attribute
The according user object has two attributes with postalAddress, which are set as followed: If I subscribe with the wildcard to the two topics seperately, then it works fine, but when I subscribe to the root wildcard, then it fails. The log shows that the permission got denied to the root topic
I expected to get all the topics back to which the user has permission to when I place the # wildcard on the root, but it just denies the access. Is this the desired behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
What is "then"? Could you please provide a series of commands I can run to see what you are observing? Right now a lot of details are being left out. |
Beta Was this translation helpful? Give feedback.
-
Yes, this is desired behaviour. Subscribing to topic
See https://www.rabbitmq.com/access-control.html#authorisation Assigning permissions in RabbitMQ do not act automatically as an MQTT topic filter. |
Beta Was this translation helpful? Give feedback.
Yes, this is desired behaviour.
Subscribing to topic
#
must fail if the user hasn't sufficient permissions to subscribe to all topics. RabbitMQ must not return "Success" for such a subscription and subsequently silently return only a subset of messages the user actually has permissions for.Subscribing to topic
#
means that RabbitMQ creates a queue and binds it to the topic exchange receiving all messages published to the topic exchange. When binding the MQTT queue to the topic exchange, multiple access control checks take place. The user must have the following permissions:See https://www.rabbitmq.com/access-contr…