@zoho_iot/node-red-zoho-iot 1.0.7
The Zoho IOT Plugin for Node-RED allows seamless integration with Zoho IOT devices, handling TLS certificates, security tokens, and device configurations to connect and communicate with your IoT devices on the Zoho IOT platform.
Zoho IOT Plugin for Node-RED
Important for existing users upgrading to 1.0.7: Existing devices using the old credential format will not reconnect after the update until you complete the one-time credential migration. Updating the package or restarting Node-RED alone is not enough. After updating and restarting, reload the editor and select Review Migration, confirm the prerequisites, then select Migrate and Deploy. Migration reuses saved credentials; no file re-upload, device recreation, or rewiring is required for a normal legacy configuration. Plan a maintenance window and follow the complete upgrade steps before updating. See the 1.0.7 release notes for the required action.
Table of Contents
- Installation
- Security Upgrade
- Release Notes
- Overview
- Nodes Summary
- Device Instance Configuration
- Nodes Usage
- Example Flow Usage
- Documentation
- Support
- Feedback
Installation
Install Zoho IOT Plugin with npm
npm i @zoho_iot/node-red-zoho-iot
Security Upgrade
Version 1.0.7 moves uploaded device configuration, CA certificate, client certificate,
and private-key contents from ordinary flow properties into Node-RED password-type
credentials. Previously, a user with flows.read permission could read uploaded
device tokens and private keys through the normal flow API. Hidden upload inputs
did not protect these values. Node-RED manages credential storage and encryption;
at-rest encryption depends on the deployment's credential encryption settings.
Use a maintained Node-RED release with correct credential filtering on both /flows
and /flow/:id. Testing found that Node-RED 2.0.0 exposes native credentials through
its single-flow API after deployment, even when the plugin uses protected storage.
This is a runtime limitation, not repaired by changing the plugin's credential map.
The migration checks the single-flow API and refuses to report success if it finds
uploaded contents there. Such deployments must upgrade Node-RED before restoring
read-only access. Functional compatibility is not a security guarantee for old runtimes.
New configurations use protected storage immediately. Existing devices configured with the old format cannot reconnect on the updated plugin until migration is complete. The runtime reports that credential migration is required instead of connecting with legacy plaintext. Installing the package alone neither restores those connections nor removes legacy plaintext from saved flows or their API responses. Migration reuses the saved values; original files, new node IDs, and rewiring are not required. This is a one-time step for legacy configurations, not a requirement for every future update of an already migrated device. Restoring an old plaintext flow requires migration again. A controlled restart/deploy is required, not zero downtime.
Guided Editor Migration (Recommended)
Schedule a maintenance window. Restrict the Admin API and editor to the migration administrator, including access through reverse proxies. Secure a recovery backup of the active flow configuration, credential store, and corresponding encryption settings. Backups of legacy flows contain secrets and require restricted access.
Stop the existing Node-RED process. Install
@zoho_iot/[email protected]in its actual user directory or project using the deployment's normal package management. Do not initialize a new user directory or replace existing settings.Restart the same deployment in safe mode (for a CLI deployment, add
--safeto its existing launch command). Keep authentication and network restrictions in place. Safe mode stops flows but does not hide legacy flow values. Reload any open editor before making changes; old tabs can hold stale plaintext data.Open the editor as a Node-RED administrator. Select Review Migration in the upgrade notice, or Zoho IoT Credential Migration in the main menu. The wizard uses the current editor session: no terminal command, bearer-token entry, or file re-upload is needed. A local deployment without authentication also uses this flow, but must remain restricted to trusted loopback access. Do not disable authentication on an authenticated deployment to migrate. If the notice is not visible, reload the editor and use the main-menu migration action. Devices awaiting migration remain disconnected; do not recreate them or upload replacement files just to clear that status.
Main-menu alternative:
Review the saved devices and value counts. Preview does not deploy or display credential contents. Preserve or discard unsaved editor changes before proceeding; do not deploy legacy flows to clear the dirty-editor warning. Legacy device configuration dialogs remain locked until migration, preventing an ordinary Save from removing their old credential source. Review nonzero stale-value counts: existing protected values take precedence over stale plaintext, and intentionally cleared protected values are not restored. Empty legacy fields cannot supply credentials that were already absent.
Confirm the recovery backup and access restriction, then select Migrate and Deploy. This submits a revision-checked deployment and can start the flows, leaving safe mode. Migration moves saved values into per-node credentials, removes ordinary content properties, and verifies both flow API forms and credential-presence flags. IDs, filenames, wiring, connection settings, and unrelated credentials are preserved. After successful verification the editor reloads automatically, discarding its stale pre-migration copy. A revision conflict or verification failure does not retry automatically or report success. A normal Deploy is not a substitute for Migrate and Deploy.
Verify device operation and restart the deployment normally. Before restoring normal access, verify that flow reads/exports no longer contain uploaded contents, ordinary flow storage is sanitized, and devices reconnect and still work after restart. If a device remains disconnected after verified migration, check its Node-RED status and connection logs; do not assume the package update completed migration or delete its saved configuration. The wizard does not establish restart durability or erase historical copies.
Administrators who cannot use the editor or need automation can use the optional advanced command-line migration guide.
Verification and Recovery
Migration does not print flow contents, write a replacement global credential map, or retry conflicting deployments. The editor requires explicit acknowledgement before applying. Rerunning on sanitized flows submits no deployment. If applying fails or verification is interrupted, keep access restricted: the server may have accepted the deploy before the connection failed. Check its current state before retrying. Do not delete remaining credential material. Use the protected recovery backup only if required; restoring an old flow also restores its exposure and requires migration again. Node-RED remains responsible for persistence; a failed write is not guaranteed to be an atomic rollback across flow and credential files. Custom storage/project deployments must validate their normal save/restart behavior during the maintenance window.
Node-RED-generated backups, previous exports, Git/project history, external backups, and previously opened editors can retain plaintext. Review these under your retention policy; the plugin does not automatically delete them. Rotate device tokens and reissue private keys where prior unauthorized access is plausible. Public CA/client certificates do not require rotation solely because they were readable.
Protected credentials are not included in ordinary editor flow exports. Importing such an export into a different instance requires separately provisioning its credentials. Older plaintext exports must use the controlled migration procedure, not be treated as safe because the patched package is installed.
Development Checks
Run npm install and npm test for isolated runtime/editor-contract and migration
tests. npm run test:integration starts a disposable loopback-only Node-RED instance
with synthetic values and admin/viewer roles, verifies the legacy exposure, migrates,
and checks protected storage after restart. Install Node-RED locally or globally first,
or set NODE_RED_HOME to its package directory. The test removes its own user directory
and stops its process; it does not use customer flows or contact Zoho or an MQTT broker.
npm run test:editor additionally needs jsdom and jquery. To keep these optional
tools outside the production dependency tree, install them in a disposable directory:
npm install --prefix /tmp/zoho-iot-editor-tools --ignore-scripts [email protected] [email protected]
EDITOR_TEST_HOME=/tmp/zoho-iot-editor-tools npm run test:editor
The optional real-browser suite also needs Playwright and Chromium (using a current supported Node.js version for the test tooling):
npm install --prefix /tmp/zoho-iot-editor-tools --ignore-scripts [email protected]
/tmp/zoho-iot-editor-tools/node_modules/.bin/playwright install chromium
EDITOR_TEST_HOME=/tmp/zoho-iot-editor-tools npm run test:guided
It uses synthetic credentials in disposable instances, checks locked legacy dialogs, unsaved edits, preview/acknowledgement, revision conflicts, automatic reload, read-only editor restrictions, and authenticated and loopback-only unauthenticated migration with restart persistence. It never uses the currently running customer instance.
The authenticated migration/restart suite has passed on Node-RED 3.1.15 and 5.0.9 using Node.js 22.23.5. The Node-RED 2.0.0 single-flow disclosure is detected and reported as an unsafe runtime; it is not counted as a passing security deployment.
Overview
The Zoho IOT Plugin for Node-RED allows seamless integration with Zoho IOT devices, handling TLS certificates, security tokens, and device configurations to connect and communicate with your IoT devices on the Zoho IOT platform.
Nodes Summary
Zoho IOT Publish Node: Connects with your IoT device on the Zoho IOT platform.
Zoho IOT Command Node: Subscribes to command topics, allowing your Node-RED flow to receive commands from IoT devices.
Zoho IOT Command ACK Node: Publishes acknowledgment messages for commands executed on the IoT device.
Device Instance Configuration
Credential File: Required for device connection, downloaded from the device connection details page.
Connection Types:
Security Token with TLS: Requires Credential File and Root CA File.
Client Certificate with TLS: Requires Credential File, Root CA File, Client Certificate File, and Private Key File.
Security Token without TLS: Requires Credential File.
Nodes Usage
- Zoho IOT Publish Node: Publishes JSON data to your configured Zoho IOT device.
- Zoho IOT Command Node: Subscribes to the device's command topic and automatically acknowledges command receipt.
- Zoho IOT Command ACK Node: Publishes command acknowledgment, with selectable acknowledgment types.
This plugin provides a streamlined way to interact with Zoho IOT devices within your Node-RED flows.
Example Flow Usage
Documentation
Support
For support, email [email protected]
Feedback
If you have any feedback, please reach out to us at [email protected]