fix(auth): harden OIDC key selection and startup guidance (#3825)

This commit is contained in:
Rod Boev committed 2026-06-29 22:28:53 -04:00
1 parent 7d0e86ecc5
commit f7a9c98810
4 files changed
+129

No files matched your search

+5
View File
@@ -585,6 +585,7 @@ def main() -> None:
print('[ok] Running within container.', flush=True)
from api.auth import is_auth_enabled
from api.auth_oidc import get_oidc_startup_warning
if HOST not in ('127.0.0.1', '::1', 'localhost') and not is_auth_enabled():
print(f'[!!] WARNING: Binding to {HOST} with NO PASSWORD SET.', flush=True)
print(f' Anyone on the network can access your filesystem and agent.', flush=True)
@@ -597,6 +598,10 @@ def main() -> None:
print(f' and memory via the local API. Set HERMES_WEBUI_PASSWORD to', flush=True)
print(f' enable authentication.', flush=True)
oidc_startup_warning = get_oidc_startup_warning()
if oidc_startup_warning:
print(f'[!!] WARNING: {oidc_startup_warning}', flush=True)
ok, missing, errors = verify_hermes_imports()
if not ok and _HERMES_FOUND:
print(f'[!!] Warning: Hermes agent found but missing modules: {missing}', flush=True)