<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-03-03 13:06 GMT+04:00 Grzegorz Gębura <span dir="ltr"><<a href="mailto:grzegorz.gebura@gmail.com" target="_blank">grzegorz.gebura@gmail.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">1) user can get login and password and create his own connection and subscribe to my exchange with # routing key and read all messages. Is there any possibility to disallow subscribing with # routing key (maybe by determining user permissions)? I want to use only one user with restricted permissions (only reading defined exchange and creating auto-deleted, exclusive queues).<br>

I don't want to create exchanges per user (this will solve my problem), because I will have to create and manage users and exchanges by HTTP API.<br></div></blockquote><div><br></div><div>See <a href="http://www.rabbitmq.com/access-control.html">http://www.rabbitmq.com/access-control.html</a></div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">2) user can subscribe many queues so he can create million of queues and crush my rabbit server. Can I handle that by limiting queues per connection or exchange?</div>

</blockquote></div><br><div>There is no such limit. Channels/queues/exchanges can be monitored over HTTP API (which is what hosted RabbitMQ</div><div>solutions use), which also allows you to forcefully close connections:</div>

<div><br></div><div><a href="http://www.rabbitmq.com/management.html">http://www.rabbitmq.com/management.html</a><br></div><div><a href="http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_2_3/priv/www/api/index.html">http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_2_3/priv/www/api/index.html</a><br>

</div>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br><a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br>


</div></div>