From fb8883a9d911ea336c7c62021d7fe897f7e1de2d Mon Sep 17 00:00:00 2001 From: si458 Date: Wed, 15 Nov 2023 14:30:53 +0000 Subject: [PATCH] add lockAgentDownload to schema and config Signed-off-by: si458 --- docs/docs/meshcentral/config.md | 10 ++++++++++ meshcentral-config-schema.json | 10 ++++++++++ sample-config-advanced.json | 2 ++ 3 files changed, 22 insertions(+) diff --git a/docs/docs/meshcentral/config.md b/docs/docs/meshcentral/config.md index 5705ac10..5e790616 100644 --- a/docs/docs/meshcentral/config.md +++ b/docs/docs/meshcentral/config.md @@ -385,6 +385,11 @@ See description for information about each item. ], "description": "The HTTP proxy to use when contacting the time stamping server, if false, no proxy is used. By default, the npmproxy value is used." }, + "lockAgentDownload": { + "type": "boolean", + "default": false, + "description": "When enabled, MeshCentral will block all downloads of MeshAgent including install scripts, if the user is not logged in" + }, "ignoreAgentHashCheck": { "type": [ "boolean", @@ -1700,6 +1705,11 @@ See description for information about each item. } } }, + "lockAgentDownload": { + "type": "boolean", + "default": false, + "description": "When enabled, MeshCentral will block all downloads of MeshAgent including install scripts, if the user is not logged in" + }, "geoLocation": { "type": "boolean", "default": false, diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index 6e19412e..0b22f9cd 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -378,6 +378,11 @@ ], "description": "The HTTP proxy to use when contacting the time stamping server, if false, no proxy is used. By default, the npmproxy value is used." }, + "lockAgentDownload": { + "type": "boolean", + "default": false, + "description": "When enabled, MeshCentral will block all downloads of MeshAgent including install scripts, if the user is not logged in" + }, "ignoreAgentHashCheck": { "type": [ "boolean", @@ -1693,6 +1698,11 @@ } } }, + "lockAgentDownload": { + "type": "boolean", + "default": false, + "description": "When enabled, MeshCentral will block all downloads of MeshAgent including install scripts, if the user is not logged in" + }, "geoLocation": { "type": "boolean", "default": false, diff --git a/sample-config-advanced.json b/sample-config-advanced.json index 074c6fbc..0cd4dcf6 100644 --- a/sample-config-advanced.json +++ b/sample-config-advanced.json @@ -101,6 +101,7 @@ "_mpsTlsOffload": true, "_mpsHighSecurity": true, "_no2FactorAuth": true, + "_lockAgentDownload": true, "_runOnServerStarted": "c:\\tmp\\mcstart.bat", "_runOnServerUpdated": "c:\\tmp\\mcupdate.bat", "_runOnServerError": "c:\\tmp\\mcerror.bat", @@ -312,6 +313,7 @@ "_twoFactorCookieDurationDays": 30, "_agentInviteCodes": true, "_agentNoProxy": true, + "_lockAgentDownload": true, "_geoLocation": true, "_novnc": false, "_mstsc": true,