Topic permissions do not have any effect on the default exchange #3849
-
I want to limit the access for a given user. I want this user to be able to use only the default exchange. Moreover I want him to use default exchange only with specified routing key. Setting permission is working as expected. It limits to default exchange. My expectation is that topic permission will cause the routing key limitation, but it isn't. I start rabbitmq using docker: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
-
Topic permissions by definition won't apply to the default exchange because, well, it's of type |
Beta Was this translation helpful? Give feedback.
-
Does this mean it's not possible to achieve what the OP wants? |
Beta Was this translation helpful? Give feedback.
-
Why not make it possible to add the routing key to the exchange resource permissions checks? You're right that, in most cases, you should just use a topic exchange but if, for some reason, I need to allow a particular user to write to the default exchange that user now has direct write access to every queue because of the implicit binding that exists between all queues and the default exchange. |
Beta Was this translation helpful? Give feedback.
Topic permissions by definition won't apply to the default exchange because, well, it's of type
direct
. Topic permissions only apply to topic exchanges, and require a topic exchange when declared. There are no permissions for routing keys.