Hi guys,
I have implemented the rpc_server / rpc_client pattern.
I have a rpc_server that creates queue 'echo' and a rpc_client that creates a reply queue 'echo-client_a94c8432fe990d'.
I've created user 'echo-client' which the rpc_client uses.
Now I would like to restrict this 'echo-client' to only sent messages to the 'echo' queue.
I would have expect to set the following permissions:
configure: '^echo-client_.*'
write: '^echo$'
read: '^echo-client_.*'
This does not work however, after reading and guessing a lot of posts, I've come to the following:
rabbitmqctl set_permissions echo-client 'echo-client_.*' 'amq.default' 'echo-client_.*'
I don't understand why I have to put amq.default in order to write to the 'echo' queue.
And this allows write permissions to all queues if I'm not mistaken.
I think I'm mixing up the permissions and terms like exchanges and queues.
Can somebody shed some light on how to implement what I'm trying to accomplish?
Any help is greatly appreciated!
Kind regards,
Tom van Leeuwen