IMD SolutionComputing LibraryShop main store

Explainer

What secures a Node-RED dashboard on an industrial controller

Edge computing and IIoT Published 7 min read

Short answer

On an industrial controller that runs Node-RED behind its own management firewall and web login, the dashboard is already protected by HTTPS with the controller certificate and the same managed user accounts the view pages use. The failure you will actually meet is an embedded iframe that loads on one client and not another, which is certificate trust and network reachability on the viewing client, not a login problem.

On this page
  1. Where the authentication boundary sits
  2. What the boundary does and does not give you
  3. One login reused by another application
  4. Why an iframe fails on one client and not another
  5. The test sequence, with numbers
  6. Where this leaves your design
  7. Questions asked

On an industrial controller that runs Node-RED behind its own management web interface, the dashboard's security is already decided by where Node-RED sits: the runtime is placed behind the controller's firewall, and every dashboard request passes through the same HTTPS endpoint and the same managed user accounts that the controller's view pages use. You do not configure a second login system, and you cannot switch the dashboard login off without weakening the whole boundary. The problem engineers actually hit afterwards is different: a dashboard chart embedded in an iframe renders on a workstation but stays blank on the display attached to the controller. That is a client-side certificate-trust and network-reachability problem, and it has a fixed test sequence.

Where the authentication boundary sits #

The controller's software stack puts Node-RED behind two layers at once. The first is a network firewall inside the controller: only the management ports are exposed, and the Node-RED editor, its HTTP admin API and its dashboard all arrive through that single managed entry point. The second is the management web interface itself, which terminates HTTPS with the controller's certificate and requires a login before any page behind it is served.

The practical consequence is that the dashboard shares the accounts you already maintain for the controller's view and management pages. There is one user-management system and one certificate. A technician with a management account reaches the dashboard; without an account, the request stops at the management boundary before Node-RED ever sees it.

Node-RED's own documentation describes exactly these three areas for a standalone install: enabling HTTPS on the runtime, securing the editor and admin API, and securing the dashboard. On a controller the first two are handled for you by the management layer, which is why you never edit the runtime's HTTPS settings by hand on such a device.

What the boundary does and does not give you #

Shared logins answer the question "who can reach Node-RED at all". They do not answer "what can this user do once inside". Page-level or flow-level authorization is not part of that boundary: if an account can open one dashboard route, treat every route as reachable with that account until you have tested otherwise on your installed software version.

The same applies to anonymous dashboard access. Because the management login guards all Node-RED pages together, you cannot keep the editor protected while dropping the login only for the dashboard. Requests that want that split, such as a shop-floor application that shows the dashboard inside its own window after its own login, need a separately verified architecture, typically a reverse proxy in front of Node-RED doing the authentication. The general pattern of separating what operators may reach from what the editor exposes is the same one behind keeping publish and control paths apart in Node-RED IO data MQTT setup: keep publish and control separate.

One login reused by another application #

A common request is single sign-on from a shop-floor app: the operator is already logged into the app, and the dashboard loads in an embedded view without a second prompt. Through the controller's own boundary this does not happen, because the management interface will ask for its own credentials.

The decision: accept the second login as the cost of the boundary, or move the authentication into a reverse proxy you control and prove it with a test matrix. For the second case, commit to this test before rollout:

  1. Open the dashboard through the proxy in a fresh browser session and confirm the proxy prompts, not the controller.
  2. Sign in with a view-only account and try the Node-RED editor URL directly. It must be refused.
  3. Sign in with an account that should not see a route, and open every dashboard route. Record which ones it reaches.

If step 3 shows the account reaching routes it should not, the proxy is not enforcing path rules, and the design is not deployable.

Why an iframe fails on one client and not another #

An iframe is not an image the dashboard serves; it is a pointer the viewing browser resolves on its own. The browser that renders the dashboard fetches the embedded URL itself, so three conditions must hold on that specific client: it must be able to route to the graph host, the host's TCP port must be reachable from it, and it must accept the host's HTTPS certificate.

That explains the classic symptom: the chart appears on a workstation but is missing on the display connected to the controller. The two clients have different network paths and different certificate stores. The Node-RED login is irrelevant; the user is authenticated and the dashboard rendered, only the embedded content failed.

The cause is usually one of these, in the order to check them:

  • Mixed content. If the dashboard is served over HTTPS and the iframe URL is plain HTTP, modern browsers block it outright. Check the iframe URL scheme first; fixing this is changing the embedded URL to HTTPS.
  • Routing. The controller may not have a route to the graph host at all, even when the workstation does. Compare gateways on the two clients.
  • Port reachability. The graph host's port may be filtered on the controller's path.
  • Certificate trust. A self-signed certificate accepted on one client is unknown to the other, and a browser inside an iframe context often refuses to even offer the "proceed anyway" override it would show on a top-level page. Loading a certificate file onto the controller does not help here, because the trust decision happens in the viewing client, not on the controller.

A public certificate only helps if the graph host has a real public domain name to verify. On a plant network of private addresses, the fix is distributing the self-signed certificate into each client's trust store.

The test sequence, with numbers #

Run this from the controller's web management network tools, then from the failing client. Worked example, with example values:

  1. The iframe URL is https://192.168.1.60:8443/graphs/line.html. Its scheme is HTTPS, so mixed content is not the cause.
  2. From the controller's network tools, ping 192.168.1.60. If replies come back, routing is fine; if not, fix the controller's gateway or add a route before anything else.
  3. Run the TCP port test against 192.168.1.60 on port 8443. Open means the graph server is listening and reachable; closed or filtered means the firewall between them is the fault, regardless of certificates.
  4. On the working workstation, open the graph URL directly and read the certificate: note its issuer and subject. On the failing client, open the same URL directly in a fresh session. If the workstation shows a trust warning it once accepted and the display shows a hard failure, the display's store is missing that certificate.
  5. Restart the display's browser to clear cached certificate rejections, distribute the certificate to the display's trust store, and retest in a fresh session.

The decision rule: ping fails means routing, TCP test fails means firewall, direct URL warns but iframe fails means trust in that client. Each of the three faults is fixed on a different device, which is why guessing wastes a shift.

One safety note: if the dashboard or the embedded graphs are used to confirm machine state before intervening on equipment, do not deploy the workaround of serving charts as static files or disabling logins until the operators' view of live state is verified end to end.

Where this leaves your design #

If your requirement is "same accounts as the rest of the controller", you already have it: manage the accounts in the controller's web interface and test that a new user can and cannot reach what you expect. If your requirement is selective or anonymous dashboard access, plan a reverse proxy and run the three-step proxy test. If your requirement is embedded charts from another server, budget for the certificate distribution to every client type, including the one bolted to the controller. The transport and login side of the same problem, getting certificates onto an edge runtime correctly, is covered step by step in Configuring MQTT TLS certificates in Node-RED on an edge PC, and the same trust-store logic explains certificate failures in Run a secure Mosquitto MQTT lab broker with Node-RED.

Questions asked

Can the Node-RED dashboard use the same logins as the controller's view pages?

Yes. Node-RED runs behind the controller's management firewall, and every request to the dashboard passes through that management authentication first. The accounts you manage in the controller's web interface are the ones the dashboard accepts. There is no separate dashboard user database to configure.

Can I let operators open the dashboard without a login while the editor stays protected?

Not from the controller's own boundary: the management login applies to all Node-RED pages at once, so you cannot turn it off for the dashboard alone. If anonymous access is a hard requirement, put a reverse proxy in front of Node-RED and do the authentication there, and verify the installed controller software supports that arrangement before deploying.

Why does an embedded graph show on my PC but not on the display connected to the controller?

The browser on the display must independently reach the graph host and trust its certificate. From the controller's network tools, ping the graph host and run a TCP port test against it, then compare which certificate the working PC accepts. A self-signed certificate trusted on one client is not automatically trusted on the other; restart the display's browser to clear the cached error and retest.

Does buying a certificate from a public authority fix the iframe on the display?

Only if the graph host has a public domain name the authority can verify. These devices sit on private addresses such as 10.x or 192.168.x, and a public certificate for a name that resolves nowhere gains nothing. On an isolated network the fix is distributing the self-signed certificate to every client that needs it.

Does signing in prove the dashboard is secure?

A successful login proves authentication works from that client. It does not prove the certificate is trusted by every client type, and it does not prove page-level permissions: one login that reaches one dashboard route can usually reach the others. Test each client and each route with an account that should be restricted.

Keep reading

  • How-to

    Harden a Node-RED OPC UA server exposing PLC tags

    A default Node-RED OPC UA server accepts any client that can reach its port until three changes land: set message security mode to SignAndEncrypt with the Basic256Sha256 policy, remove mode None and anonymous login, and admit clients only through application-certificate trust lists. Those three changes are the whole decision; the rest is execution.

    Edge computing and IIoT

  • How-to

    Run a secure Mosquitto MQTT lab broker with Node-RED

    Run Mosquitto on port 8883 with TLS, per-user passwords and an ACL that lets each team write only under lab/teamN/# and read all of lab/#, with a separate Node-RED user that reads everything. Distribute ca.crt only, and prove the ACL by publishing to another team's prefix and seeing nothing arrive.

    Edge computing and IIoT

  • Checklist

    Checklist to vet hardware key remote access for OT security

    Accept a hardware key remote access product only on evidence: demand the tunnel protocol and cipher suite, prove the no-inbound-ports claim with a deny-all firewall test on a mirrored host, and keep the paired host in the industrial DMZ as the one door to the floor. Reject any product whose vendor cannot name its cryptography or whose revocation depends on the endpoint.

    OT cybersecurity