You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to limit the write access to a specific topic for the anonymous users and allow it only for a known user. Also the anonymous users should be allowed to read and write all other topics.
Can this be archived with ACLs?
I tried the following without success:
# for anonymous users
topic readwrite #
topic read mySensitiveDevice/#
# for user myUserForSensitiveDevices
user myUserForSensitiveDevices
topic readwrite mySensitiveDevice/#
With the config from above the anonymous user can still write on mySensitiveDevice/myData.
I am using mosquitto 2.0.14.
Additionally I would like to add that the documentation at https://mosquitto.org/man/mosquitto-conf-5.html#idm44 could be improved, there isn't explained how different ACLs might overwrite each other (beside that deny overrules the others).
Thanks in advance and best regards!
The text was updated successfully, but these errors were encountered:
ahorn42
changed the title
How to deny writing on specific topic for anonymous users with ACL
How to deny writing on specific topic for anonymous users with ACL?
Jan 9, 2023
Hi,
I want to limit the write access to a specific topic for the anonymous users and allow it only for a known user. Also the anonymous users should be allowed to read and write all other topics.
Can this be archived with ACLs?
I tried the following without success:
With the config from above the anonymous user can still write on
mySensitiveDevice/myData
.I am using mosquitto 2.0.14.
Additionally I would like to add that the documentation at https://mosquitto.org/man/mosquitto-conf-5.html#idm44 could be improved, there isn't explained how different ACLs might overwrite each other (beside that
deny
overrules the others).Thanks in advance and best regards!
The text was updated successfully, but these errors were encountered: