Hi All,
Julian asked for a brief writeup of my use of Json Web Tokens with MQTT;
although dynamic credentials are not yet supported by the MQTT nodes in Node Red, a practical description of their use is here:
along with a link to the required MQTT node modifications, and example Mosca code.
As a very brief summary, at Yella Umbrella we use JWT tokens to authorise access to Mosca as an MQTT server running over WSS:. This allows us to centrally issue authentication securely, without the MQTT server needing to know anything about actual users or passwords. The last thing I wanted to have to do was enable access to a user/pwd database from every microservice I wrote....
Any comments welcome, although if you are highlighting a serious security flaw, I'd prefer a private email!
best regards,
Simon