Verify acl the right way#2
Conversation
mosquitto_topic_matches_sub is not meant for ACL checking, so leads to errors.
|
I've also adjusted (for myself) |
|
@soundstorm thanks for this PR. I just saw somewhere that the other implementations were left to be fixed later. Would you please tell me how the ACL values are changed due to the latest fixes? It seems that they were not so minor as I thought, both im mosquitto_auth_plug and in mosquitto itself. |
I am having a situation as you had, where my existing setup is with vresion 1.14.7 for mosquitto and was using jpmens/mosquitto-auth-plug plugin. I have to update the server and in order to be safe for future I would like to shift to mosquitto 2.x and the go-auth but I guess that will have a lot of changes required. Do I need to change the plugin acl checks to return true for all acl chhecks where acl check for 1 or 2 is valid or should I change the db column rw as you suggested. Replacing 1 with 5 and 2 with 6 or 7 |
Somehow MongoDB was fixed but other implementations not. Cost me a few hours to figure out.
The plugin is still deprecated but as I had a existing database which needed to be migrated, I'm stuck with it as the go plugin is currently not compilable on the compat-branch.