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:
parent
c74f4c5335
commit
750ef49c07
|
|
@ -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')
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue