Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Disable wildcard subscription

Hi Xuejie,

This isn't currently possible. Version 3.1.1 of the spec allows for
denying accessing to SUBSCRIBE requests, so I've included this
capability in the 1.4 branch of mosquitto.

At the moment it uses the MOSQ_ACL_READ access, but I am going to
change that to MOSQ_ACL_SUBSCRIBE, to allow plugins to distinguish
between a client attempting to make a new subscription, and when the
broker is about to deliver a message to a client (i.e. MOSQ_ACL_READ).



On Wed, Aug 20, 2014 at 4:03 PM, Xuejie "Rafael" Xiao <xxuejie@xxxxxxxxx> wrote:
> Hi guys,
> I'm now working on a mosquitto auth plugin. And what we need is to disable
> wildcard subscription for certain users. In other words, the user can
> subscribe to any of the following items:
> a/b/c
> a/c/c
> a/d/c
> a/e/c
> a/f/c
> ...
> But not this one:
> a/+/c
> However, from what I've tested, is that mosquitto_auth_acl_check will
> receive the specific topic instead of a topic with wildcards. That is to
> say, only when a message is sent to mosquitto will it check the subscriber
> against the topic.
> So my question is: is there any way that I can disable wildcard subscription
> as a whole unit using mosquitto plugin? And if not, is there any plan to
> support this feature?
> Thanks a lot for the help!
> --
> Best Regards,
> 肖雪洁
> Xuejie "Rafael" Xiao
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit

Back to the top