From 704f47784587777b3b35d016f9a8972a10820841 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 29 Oct 2023 16:55:58 +0100 Subject: [PATCH] Fix permissions in packaging v2 --- manifest.toml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index b291ab3..be43260 100644 --- a/manifest.toml +++ b/manifest.toml @@ -33,12 +33,21 @@ ram.runtime = "50M" type = "path" default = "/nodered" - [install.admin] - type = "user" + [install.init_admin_permission] + type = "group" + default = "admins" + help.en = "Select the group which will be able to access the Node-RED Admin to edit flows. It should *not* be Visitors." + [install.init_ui_permission] + type = "group" + default = "admins" + ask.en = "Who should have access to the Dashboard for this app?" + help.en = "Select the group which will be able to access the Node-RED Dashboard. Be wary of which actions you expose if you choose Visitors." + [install.init_main_permission] type = "group" default = "visitors" + help.en = "Select the group which will be able to access the endpoints you create with the HTTP nodes. Be wary of which actions you expose if you choose Visitors." [resources] [resources.sources.main] @@ -53,5 +62,6 @@ ram.runtime = "50M" [resources.ports] [resources.permissions] + admin.url = "/admin" + ui.url = "/ui" main.url = "/" - main.allowed = "admins"