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've followed the setup details for MySQL plugin as in README, and found ACL rejects for subscribe calls. After setting up additional logging, it seems that the acc value mosquitto is querying with is not from the [1, 2, 3] range - it's actually MOSQ_ACL_SUBSCRIBE, as defined in mosquitto_plugin.h:
mosquitto: 1.6.10
mosquitto-go-auth: 0.8.1 + modifications
I've followed the setup details for MySQL plugin as in README, and found ACL rejects for
subscribe
calls. After setting up additional logging, it seems that theacc
value mosquitto is querying with is not from the[1, 2, 3]
range - it's actuallyMOSQ_ACL_SUBSCRIBE
, as defined inmosquitto_plugin.h
:MySQL query in README:
SELECT topic FROM acl WHERE (username = ?) AND rw >= ?
Therefore if you follow the README docs and examples and assume:
you'd get git with
Acl check is false
upon subscription attempt since the query does not supportMOSQ_ACL_SUBSCRIBE
.More information: jpmens/mosquitto-auth-plug#356
https://mosquitto.org/api/files2/mosquitto_plugin-h.html
The text was updated successfully, but these errors were encountered: