Push MQTT Credentials

I've been looking at how to update MQTT credentials as well and I believe nodered can achieve this. Each new user would require a new password, and the ability to modify the password. I've been using mosquitto with tools for password file management (mosquitto_passwd).

  1. On UNIX and Linux, the configuration files will be re-read by the MQTT broker (like mosquitto) if a command "pkill -HUP mosquitto" is run.

  2. It should be possible to update the password and acl files (topic permissions) from nodered. (Their file locations are specified by mosquitto.conf)

My plan is to update those two files and then send the -HUP signal to my MQTT broker.