-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Security Plugin - ACL for subscribe not working? #2549
Comments
I've enabled logging in Mosquitto MQTT with Only clients subscribed to Maybe this is a UTF-8 error? @ralight what do you think? |
Hi, I've just tried to reproduce this behaviour but failed. I'll give you the exact details of what I did and hopefully we can figure out where the difference lies. dynamic-security.json (password is
Subscribe command: Let me know how you get on. |
Hey! I've now noticed it's working as expected using the I had to subscribe manually to the topic that I had enabled in the DynSec file for the user and now it's working as expected. It was previously only working with Thank you for your attention, this is a very nice project. |
I'm using mosquitto 2.0.14 and I have the following role for a
sensor
topic created with the dynamic security plugin:This
sensorrole
allows a user to publish anything to thesensor
topic; I can see the messages with my admin user. I'd like to have users with this role also be able to read from a restricted topic.However, the
publishClientReceive
andsubscribePattern
rules seem to not have any affect for users with thesensorrole
role, as I cannot see any of the published messages in the broker from their perspective.If in the
subscribeLiteral
ACL I change the topic to"topic": "#"
, users with the role it will be able to see every client topic, which is unwanted.What am I doing wrong? Thanks
The text was updated successfully, but these errors were encountered: