Skip to content

Instantly share code, notes, and snippets.

View slavino's full-sized avatar
🏠
Working from home

Slavomir Hustaty slavino

🏠
Working from home
View GitHub Profile
@TheAshwanik
TheAshwanik / MQTT_Mosquittto_ACL.md
Created March 14, 2015 00:37
How to make Access Control Lists (ACL) work for Mosquitto MQTT Broker with Auth Plugin?

Source:http://my-classes.com/2015/02/05/acl-mosquitto-mqtt-broker-auth-plugin/

How to make Access Control Lists (ACL) work for Mosquitto MQTT Broker with Auth Plugin?

If you planning to strengthening your MQTT service, then access control lists (ACL) are mandatory. Mosquitto broker supports this ACL feature through auth plugins.

One versatile auth-plugin for mosquitto that you should consider using is https://github.com/jpmens/mosquitto-auth-plug. It is very flexible, in that it can support multiple backends as auth provider databases, ranging from CDB, Redis to MySQL and Http. However, getting it compiled and making it start to work is not that straight forward or easy. Hence, this post. It gives some starting point to our students who are venturing into Mosquitto Authentication systems to get started.

Building the Mosquitto-Auth-Plugin