From fe456d57fece1e6760f4a2681d99f9914c094589 Mon Sep 17 00:00:00 2001 From: 0xallam Date: Fri, 9 Jan 2026 21:43:19 -0800 Subject: [PATCH] fix: set restrictive permissions on config file Co-Authored-By: Claude Opus 4.5 --- strix/config/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/strix/config/config.py b/strix/config/config.py index f7f0ccc..351b080 100644 --- a/strix/config/config.py +++ b/strix/config/config.py @@ -74,8 +74,10 @@ class Config: def save(cls, config: dict[str, Any]) -> bool: try: cls.config_dir().mkdir(parents=True, exist_ok=True) - with cls.config_file().open("w", encoding="utf-8") as f: + config_path = cls.config_file() + with config_path.open("w", encoding="utf-8") as f: json.dump(config, f, indent=2) + config_path.chmod(0o600) except OSError: return False else: