fix(config): route _SECRET-suffixed keys to .env

_is_env_config_key() already routes _API_KEY and _TOKEN suffixed
keys to .env for safe credential storage. Add _SECRET to the suffix
list so keys like CLIENT_SECRET and ENCRYPTION_SECRET are stored
in .env (excluded from git by default) rather than config.yaml.
This commit is contained in:
Baophan00 2026-07-31 22:43:38 +07:00 committed by Teknium
parent c74f4c5335
commit 750ef49c07
1 changed files with 1 additions and 1 deletions

View File

@ -1159,7 +1159,7 @@ def _is_env_config_key(key: str) -> bool:
]
return (
key_upper in api_keys
or key_upper.endswith(('_API_KEY', '_TOKEN'))
or key_upper.endswith(('_API_KEY', '_TOKEN', '_SECRET'))
or key_upper.startswith('TERMINAL_SSH')
)