less than a minute
mqtt_broker
section.rbacEnabled
parameter and change its value from false
to true
.Now all MQTT connections require password authentication with the following defaults:
node-red
INSECURE_INSECURE_INSECURE
To change these defaults:
Open a Pod shell in Lens.
Go to the installation directory of the RBAC extension: cd extensions/hivemq-file-rbac-extension/
Generate a password hash with this command: java -jar hivemq-file-rbac-extension-4.5.3.jar -p <password>
(replace <password>
with your desired password, which should not contain whitespaces).
Copy the generated hash.
Open the united-manufacturing-hub-hivemqce-extension
configmap.
Replace the password hash with the one generated in step 3.
Save the changes.
Don’t forget to update Node-Red connectors and any other service that uses MQTT to use the new authentication settings.