add lockAgentDownload to schema and config

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Nov 15, 2023 at 14:30 UTC fb8883a9d911ea336c7c62021d7fe897f7e1de2d
3 files changed +22
docs/docs/meshcentral/config.md
+10
@@ -385,6 +385,11 @@ See description for information about each item.
385 ],
386 "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."
387 },
388 + "lockAgentDownload": {
389 + "type": "boolean",
390 + "default": false,
391 + "description": "When enabled, MeshCentral will block all downloads of MeshAgent including install scripts, if the user is not logged in"
392 + },
393 "ignoreAgentHashCheck": {
394 "type": [
395 "boolean",
@@ -1700,6 +1705,11 @@ See description for information about each item.
1705 }
1706 }
1707 },
1708 + "lockAgentDownload": {
1709 + "type": "boolean",
1710 + "default": false,
1711 + "description": "When enabled, MeshCentral will block all downloads of MeshAgent including install scripts, if the user is not logged in"
1712 + },
1713 "geoLocation": {
1714 "type": "boolean",
1715 "default": false,
meshcentral-config-schema.json
+10
@@ -378,6 +378,11 @@
378 ],
379 "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."
380 },
381 + "lockAgentDownload": {
382 + "type": "boolean",
383 + "default": false,
384 + "description": "When enabled, MeshCentral will block all downloads of MeshAgent including install scripts, if the user is not logged in"
385 + },
386 "ignoreAgentHashCheck": {
387 "type": [
388 "boolean",
@@ -1693,6 +1698,11 @@
1698 }
1699 }
1700 },
1701 + "lockAgentDownload": {
1702 + "type": "boolean",
1703 + "default": false,
1704 + "description": "When enabled, MeshCentral will block all downloads of MeshAgent including install scripts, if the user is not logged in"
1705 + },
1706 "geoLocation": {
1707 "type": "boolean",
1708 "default": false,
sample-config-advanced.json
+2
@@ -101,6 +101,7 @@
101 "_mpsTlsOffload": true,
102 "_mpsHighSecurity": true,
103 "_no2FactorAuth": true,
104 + "_lockAgentDownload": true,
105 "_runOnServerStarted": "c:\\tmp\\mcstart.bat",
106 "_runOnServerUpdated": "c:\\tmp\\mcupdate.bat",
107 "_runOnServerError": "c:\\tmp\\mcerror.bat",
@@ -312,6 +313,7 @@
313 "_twoFactorCookieDurationDays": 30,
314 "_agentInviteCodes": true,
315 "_agentNoProxy": true,
316 + "_lockAgentDownload": true,
317 "_geoLocation": true,
318 "_novnc": false,
319 "_mstsc": true,