njh / ruby-mqtt

Pure Ruby gem that implements the MQTT protocol, a lightweight protocol for publish/subscribe messaging.
http://www.rubydoc.info/gems/mqtt
MIT License
541 stars 135 forks source link

Dynamic Proxying of MQTT based on client auth. #65

Closed nzfarmer1 closed 9 years ago

nzfarmer1 commented 9 years ago

Here is a challenge that's been troubling me for sometime.

Let's say we have multiple mqtt clients and multiple mqtt backends BUT only one public facing server/port.

We want to identify a user via say their client's SSL Cert or username/password, then proxy all requests for that Client Id (source port/address) to a specific broker based on a lookup table.

Would we be able to configure your tool to support this requirement?

Thank you.

njh commented 9 years ago

Hello,

It isn't far off but the following limitations probably make it worth looking at something else:

Node.js might be a better choice for this type of thing.

nick.

nzfarmer1 commented 9 years ago

Thanks nick

You inspired me to roll this today: https://github.com/nzfarmer1/mqtt-proxy

andrew

njh commented 9 years ago

Great!