[rabbitmq-discuss] Permission on routing key
underattack7
underattack7 at googlemail.com
Fri Jan 7 15:06:46 GMT 2011
Hi Matthias,
This looks interesting, however how can I allow a user to use a specific
exchange only ?
Let's say we have an exchange:
- exchange_main
Then 3 exchanges bound to it:
- exchange1 : bound to exchange_main with "site1".#
- exchange2 : bound to exchange_main with "site2".#
- exchange3 : bound to exchange_main with "site3".#
then how can I allow :
-user1 to create queue bound to exchange1 only
-user2 to create queue bound to exchange2 only
-user3 to create queue bound to exchange3 only
Cheers,
Fabine
On 7 January 2011 14:44, Matthias Radestock <matthias at rabbitmq.com> wrote:
> Fab,
>
>
> underattack7 wrote:
>
>> That's not that easy as the routing key has the format:
>>
>> site.user.param1.param2.param3
>>
>> and different users are interested in different things, for example :
>> "site1"."toto".#, "site2".#, "site1"."toto"."paramtoto".# .....
>>
>> so we cannot really create all the queue in advance.
>>
>
> Are you saying that there are constraints on what users can bind to but
> they may only be interested in a *subset* of that?
>
> In which case create an internal topic exchange per user and bind that with
> all their *allowed* bindings to the main exchange. Users can then create
> queues and bind them to their internal exchange for stuff they are
> interested in.
>
> See http://www.rabbitmq.com/extensions.html#exchange-bindings
>
> Regards,
>
> Matthias.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110107/16e1e5f7/attachment.htm>
More information about the rabbitmq-discuss
mailing list