What resource does ${name} refer to in topic_access_query?

34 views
Skip to first unread message

Magnus Bäck

unread,
Oct 24, 2025, 4:31:52 AM (7 days ago) Oct 24
to rabbitmq-users
With LDAP authorization, topic_access_query supports a number of ${var} substitutions. In that context, what does ${name} mean? The documentation says "the name of the resource", but which resource? The exchange?

(The background is that I want to restrict which routing keys people can use when publishing to the amq.default exchange. The names of our queues are prefixed with the username, so I'd like to check if the routing key begins with the username iff the exchange name is amq.default to enforce that people can only publish directly to their own queues.)

Thanks,
Magnus

Luke Bakken

unread,
Oct 28, 2025, 11:16:06 AM (3 days ago) Oct 28
to rabbitmq-users
Hi Magnus,

"name" refers to the name of the topic exchange -


If you increase logging verbosity you should see log messages that show which topic exchange is being checked:

?L("CHECK: ~ts for ~ts", [log_resource(Args), log_user(User)]),

Reply all
Reply to author
Forward
0 new messages