Skip to main content
Explorer
October 7, 2020
Solved

Is there a way to add security and password?

  • October 7, 2020
  • 3 replies
  • 1227 views

I plan to show the dashboard via browser to other people, I am afraid they might mess up my flows. Is it possible to add security functionality?

I was trying to comment out as per instructions here:

https://nodered.org/docs/user-guide/runtime/securing-node-red#editor--admin-api-security

but the flows will not show after I enabled

adminAuth

    This topic has been closed for replies.
    Best answer by Richard.Chvr

    No update since a while, closing the post.

    3 replies

    ST Employee
    October 8, 2020

    Hello

    It seems that node-RED need to have a "default" section after the users. Else the design windows may not be displayed. Have you defined one ?

    adminAuth: {
     type: "credentials",
     users: [ /*your list of users */ ],
     default: {
     permissions: "read"
     }
    }

    Can you try ?

    Best regards

    Stephane

    Explorer
    October 8, 2020

    Thanks for the reply.

    Actually, I do not want them to view my flows too.

    Yes, I tried that. It is still possible to view / read only the flows.

    I was trying to change the root path of the UI from

    http://localhost:1880/ui

    to, say something like:

    http://localhost:1880/dontview

    by un-commenting

    httpAdminRoot: '/dontview',

    I was able to view the new "url" and save the flows but the dashboard wont display the data.

    BTW, the Cubemonitor will not show up and display "Error" on it title bar but using the browser, I was able to edit and save the flow.

    Only the problem is when I click the dash board, data wont show up especially the line graph.

    Gauge seems to display, but I cannot confirm if data is correct as I was concentrating on the line graph.

    Technical Moderator
    September 27, 2023

    No update since a while, closing the post.