From 9c797162f46cb2d6212dd6beaf221097107ca750 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Tue, 29 Aug 2023 20:33:58 +0000 Subject: [PATCH] only Manual is supported in insecure mode --- api/tacticalrmm/agents/views.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/tacticalrmm/agents/views.py b/api/tacticalrmm/agents/views.py index dfa81eb0..3153ae05 100644 --- a/api/tacticalrmm/agents/views.py +++ b/api/tacticalrmm/agents/views.py @@ -570,6 +570,14 @@ def install_agent(request): from agents.utils import get_agent_url from core.utils import token_is_valid + if getattr(settings, "TRMM_INSECURE", False) and request.data["installMethod"] in { + "exe", + "powershell", + }: + return notify_error( + "Not available in insecure mode. Please use the 'Manual' method." + ) + # TODO rework this ghetto validation hack # https://github.com/amidaware/tacticalrmm/issues/1461 try: