server icon indicating copy to clipboard operation
server copied to clipboard

Please add Authentication and ACL support using MySQL or MongoDB and also installation support on Ubuntu OS

Open amin-is opened this issue 2 years ago • 3 comments

I use Mosquitto as Broker and Go-auth plugin for Authentication and ACL manage using MySQL or MongoDB on ubuntu server. I hope you need to add this type of features. When this type of features will add in your Application i will come back from Mosquitto.

Thanks to make mqtt broker Super Fast application using GO Lang.

amin-is avatar Aug 22 '22 10:08 amin-is

Hi @amin-is! Could you provide an example of how the mysql and mongodb plugins are implemented? It should be trivial for someone who uses either to implement this using the github.com/mochi-co/mqtt/server/listeners/auth Controller interface.

mochi-co avatar Sep 02 '22 20:09 mochi-co

Authentication and ACL support using Redis. May refer to https://github.com/wind-c/comqtt .

wind-c avatar Sep 10 '22 13:09 wind-c

@mochi-co @wind-c

Very Sorry for late reply.

Mosquitto Broker is very popular MQTT Broker and Mosquitto Go Auth is a 3rd party authentication and authorization plugin. Using this plugins i can manage very easily users, password and acls for topis permission. This plugins Support Many popular Database. Currently i am using MongoDB Backend. Also Mosquitto MQTT broker and Mosquitto Go Auth plugins available for many OS Support. But for performance Mochi MQTT is much better. I want to install Mochi MQTT on Ubuntu OS and Mange users authentication and acls control with MongoDB.

Best Regards

amin-is avatar Sep 21 '22 07:09 amin-is

It should be quite simple to make an equivalent of this with the new universal hooks in v2.0.0. If nobody else makes one, I will try to get to it at some point in the future 👍🏻

mochi-co avatar Dec 10 '22 22:12 mochi-co

@mochi-co I am working on some technology specific hooks along with more general RPC hooks to fulfill this need inspired by mosquitto-go-auth

dgduncan avatar Feb 10 '23 02:02 dgduncan

For anyone interested, here is the very early beginnings of what I am working on: mochi-cloud-hooks. HTTP is almost done and I am working on firestore, pub/sub, and DynamoDB locally. Please note this is not production ready and is still being actively being worked on.

dgduncan avatar Feb 21 '23 02:02 dgduncan

Comqtt supports multiple authentication ways. It is developed based on the mochi-co/mqtt v2.0 hook, later it can be pulled out and contributed to mochi-co/mqtt. May refer to https://github.com/wind-c/comqtt .

wind-c avatar Mar 11 '23 14:03 wind-c

@mochi-co Should this be closed and moved over to a feature request in our feature roadmap? It seems like less of an issue and more of a feature request.

dgduncan avatar Sep 21 '23 15:09 dgduncan

@dgduncan Good idea! Let's add this to the roadmap - closing this issue.

mochi-co avatar Sep 21 '23 15:09 mochi-co