[rabbitmq-discuss] Access Control required for RabbitMQ and Management plugin
Simon MacMullen
simon at rabbitmq.com
Fri Dec 20 12:33:58 GMT 2013
On 20/12/13 06:43, Saurabh Sharma wrote:
> 1) i want to create a user who can make call to api for aliveness test
> and querying queues.
> i am setting permission like
>
> rabbitmqctl set_permissions -p / monitor "^(.\.aliveness-test.*)$"
> "^(.\.aliveness-test.*)$" ".*"
>
> but still getting the error that
> "error":"not_authorised","reason":"ACCESS_REFUSED - access to queue
> 'aliveness-test' in vhost '/' refused for user 'monitor'"
Those brackets and dots are not needed. Also the aliveness-test
publishes to the queue via the default exchange, so you need to define
permissions for that. So:
$ rabbitmqctl set_permissions -p / monitor "^aliveness-test$"
"^amq.default$" ".*"
should work.
Cheers, Simon
--
Simon MacMullen
RabbitMQ, Pivotal
More information about the rabbitmq-discuss
mailing list