From 6dcda7c931aa390da118d0294e02ed77c379f23a Mon Sep 17 00:00:00 2001 From: Alexander Myasoedov Date: Thu, 4 Jun 2026 17:53:35 +0300 Subject: [PATCH] fix(fix(security): bind server to 127.0.0.1 instead of 0.0.0.0 by default): --- agentic_security/__main__.py | 6 +++--- agentic_security/config.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agentic_security/__main__.py b/agentic_security/__main__.py index 4af26dd..702cc8d 100644 --- a/agentic_security/__main__.py +++ b/agentic_security/__main__.py @@ -10,13 +10,13 @@ from agentic_security.misc.banner import init_banner class CLI: - def server(self, port: int = 8718, host: str = "0.0.0.0"): + def server(self, port: int = 8718, host: str = "127.0.0.1"): """ Launch the Agentic Security server. Args: port (int): Port number for the server to listen on. Default is 8718. - host (str): Host address for the server. Default is "0.0.0.0". + host (str): Host address for the server. Default is "127.0.0.1". """ sys.path.append(os.path.dirname(".")) config = uvicorn.Config( @@ -34,7 +34,7 @@ class CLI: sys.path.append(os.path.dirname(".")) SecurityScanner().entrypoint() - def init(self, host: str = "0.0.0.0", port: int = 8718): + def init(self, host: str = "127.0.0.1", port: int = 8718): """ Generate the default CI configuration file. """ diff --git a/agentic_security/config.py b/agentic_security/config.py index 7945be3..5ab2dc0 100644 --- a/agentic_security/config.py +++ b/agentic_security/config.py @@ -87,7 +87,7 @@ class SettingsMixin: return default return value - def generate_default_settings(self, host: str = "0.0.0.0", port: int = 8718): + def generate_default_settings(self, host: str = "127.0.0.1", port: int = 8718): # Accept host / port as parameters with open(self.default_path, "w") as f: f.write(