eclipse-ditto / ditto

Eclipse Ditto™: Digital Twin framework of Eclipse IoT - main repository
https://eclipse.dev/ditto/
Eclipse Public License 2.0
696 stars 230 forks source link

Support hmac on MQTT Azure IoT connections #1371

Open BobClaerhout opened 2 years ago

BobClaerhout commented 2 years ago

Currently the connectivity service supports HMAC for Azure IoT hub connections via AMQP and HTTP. It would be nice if HMAC support is also added for Azure IoT hub MQTT connections.
I don't really have an idea about how much work this is and where to start in ditto. Can somebody give me a rough estimate on this and some pointers on what is required to do this?

thjaeckle commented 2 years ago

I would check if our used MQTT client - HiveMQ MQTT client - even supports that. As this client strictly follows the MQTT protocols (and not interpretations of MQTT from arbitrary cloud providers), I have my doubts that this will work out of the box - but you'll have to try it for yourself.

I e.g. found this thread in the HiveMQ community about that topic: https://community.hivemq.com/t/connect-mqtt-broker-with-pre-signed-url/751