mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
Port from openclaw/openclaw#64586: users who copy .env.example without changing placeholder values (***,changeme,your_api_key,etc.) now get a clear error message at startup instead of a confusing authentication failure from the platform API. Changes: - Extract _validate_gateway_config() from load_gateway_config() for testability - Check enabled platform tokens against has_usable_secret() from hermes_cli.auth — disabled platforms with placeholder tokens get a clear error log and are auto-disabled - Check API_SERVER_KEY against has_usable_secret() when binding to a network-accessible address — placeholder keys are rejected with a helpful error suggesting openssl rand The existing _PLACEHOLDER_SECRET_VALUES set in hermes_cli/auth.py already contains the right patterns (*,**,***,changeme,your_api_key, placeholder,example,dummy,null,none); this PR extends their use from LLM provider credentials to gateway platform tokens. |
||
|---|---|---|
| .. | ||
| builtin_hooks | ||
| platforms | ||
| __init__.py | ||
| channel_directory.py | ||
| config.py | ||
| delivery.py | ||
| display_config.py | ||
| hooks.py | ||
| mirror.py | ||
| pairing.py | ||
| restart.py | ||
| run.py | ||
| session.py | ||
| session_context.py | ||
| status.py | ||
| sticker_cache.py | ||
| stream_consumer.py | ||