1.3 KiB
1.3 KiB
Node-RED Authentication
Current Configuration
Node-RED is configured with authentication enabled:
- Username:
admin - Password:
changeme
Changing the Password
- Edit the
generate-password.yamlfile and change the PASSWORD value - Run the password generator:
kubectl delete job nodered-password-generator -n nodered kubectl apply -f generate-password.yaml kubectl logs job/nodered-password-generator -n nodered - Copy the generated hash
- Edit
settings-configmap.yamland replace the password hash - Apply the changes:
kubectl apply -f settings-configmap.yaml kubectl rollout restart deployment/nodered -n nodered
Adding More Users
Edit the settings-configmap.yaml file and add more users to the users array:
users: [{
username: "admin",
password: "$2b$08$...",
permissions: "*"
}, {
username: "viewer",
password: "$2b$08$...",
permissions: "read"
}]
Permissions can be:
*- Full accessread- Read-only access
Securing HTTP Nodes (Optional)
To also secure HTTP endpoints created in Node-RED flows, uncomment the httpNodeAuth line in settings-configmap.yaml.
Disabling Authentication
To disable authentication, remove or comment out the adminAuth section in settings-configmap.yaml.