From aef337e86f3b44519170a09f61bcdb6a3837dddd Mon Sep 17 00:00:00 2001 From: YueGuobin Date: Tue, 3 Mar 2026 18:16:37 +0800 Subject: [PATCH] feat(config): load secret files even without main config When no configuration file is found or readable, the server now still loads secret files. This ensures that secret configurations (like API keys or passwords) are available even if the primary config file is missing, improving robustness and security in environments where secrets are stored separately. --- gns3server/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/config.py b/gns3server/config.py index f82eff70d..e478c50e8 100644 --- a/gns3server/config.py +++ b/gns3server/config.py @@ -261,6 +261,8 @@ class Config: if not parsed_files: log.warning("No configuration file could be found or read") self._settings = ServerConfig() + # Still load secret files even without a config file + self._load_secret_files() return for file in parsed_files: