← Back to team overview

mosquitto-users team mailing list archive

mosquitto.conf and "pattern" vs "topic" (ACL)

 

I was playing with both mentioned options. I'm not using any auth here, plain pub / sub. Mosquitto version 1.2

My simple setup is:

(1) mosquitto.conf: mostly default, with added

"acl_file /etc/mosquitto/mosquitto_acl.conf"

(2) mosquitto_acl.conf content

  (a) only "pattern /clid/%c/data"
  (b) only "topic /clid/#"

(3) on first terminal:
  mosquitto_sub -h localhost -v -t "#"

(4) on second terminal:
  mosquitto_pub -h localhost -i "pippo" -t "/clid/pippo/data" -m "99"

Done several tests with (a) and (b), looking at logs etc and it seems that while (b) works filtering only /clid/# topics, (a) does not work in this setup: nothings is published.

Maybe "pattern" only works for authenticated clients? But it makes reference only to client id in this setup.

Thanks

--
   Stefano Costa, R&D Manager
   M +39 335 6565749
   Skype stefanocosta.bluewind
   Twitter @stefanobluewind
   http://www.bluewind.it


Follow ups