The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(dashboard-auth): replace stale insecure guidance
fangliquan7cc92cb134d3
diff --git a/hermes_cli/dashboard_auth/login_page.py b/hermes_cli/dashboard_auth/login_page.pyindex 1ccdfcba4f5..d5046159212 100644--- a/hermes_cli/dashboard_auth/login_page.py+++ b/hermes_cli/dashboard_auth/login_page.py@@ -385,16 +385,19 @@ _EMPTY_HTML = """\font-family: 'Courier New', monospace;font-size: 0.9em;}+ a { color: var(--midground); }</style></head><body><main><h1>Sign-in unavailable</h1><p>This dashboard is bound to a non-loopback host but no authentication-providers are installed.</p>-<p>Install <code>plugins/dashboard-auth-nous</code> (default) or another-auth provider, or restart with <code>--insecure</code> to bypass the-auth gate (not recommended on untrusted networks).</p>+providers are available.</p>+<p>Configure the bundled username/password provider or an OAuth provider.+See the <a href="https://hermes-agent.nousresearch.com/docs/user-guide/features/web-dashboard#authentication">dashboard+authentication documentation</a> for setup instructions.</p>+<p>For auth-free local use, bind to <code>127.0.0.1</code> and connect through+an SSH tunnel or Tailscale.</p></main></body></html>diff --git a/tests/hermes_cli/test_dashboard_auth_gate.py b/tests/hermes_cli/test_dashboard_auth_gate.pyindex 6f2be0aa0b7..83df9610e1a 100644--- a/tests/hermes_cli/test_dashboard_auth_gate.py+++ b/tests/hermes_cli/test_dashboard_auth_gate.py@@ -59,6 +59,25 @@ def test_should_require_auth_truth_table(host, allow_public, expected):assert should_require_auth(host, allow_public) is expected+def test_empty_provider_login_page_shows_supported_auth_paths():+ from hermes_cli.dashboard_auth import clear_providers+ from hermes_cli.dashboard_auth.login_page import render_login_html++ clear_providers()+ html = render_login_html()++ assert "--insecure" not in html+ assert "username/password provider" in html+ assert "OAuth provider" in html+ assert "127.0.0.1" in html+ assert "SSH tunnel" in html+ assert "Tailscale" in html+ assert (+ 'href="https://hermes-agent.nousresearch.com/docs/'+ 'user-guide/features/web-dashboard#authentication"'+ ) in html++# ---------------------------------------------------------------------------# start_server stashes auth_required on app.state (Task 0.3)# ---------------------------------------------------------------------------diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/cli-commands.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/cli-commands.mdindex 55062381e72..70611ad70b9 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/cli-commands.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/cli-commands.md@@ -1152,7 +1152,7 @@ hermes dashboard [options]| `--port` | `9119` | Web 服务器运行端口 || `--host` | `127.0.0.1` | 绑定地址 || `--no-open` | — | 不自动打开浏览器 |-| `--insecure` | 关闭 | 允许绑定到非 localhost 主机。会在网络上暴露控制台凭据;仅在受信任的网络控制下使用。 |+| `--insecure` | 关闭 | **已弃用 / 无实际作用。** 此参数曾用于在非回环绑定上绕过鉴权;自 2026 年 6 月安全加固后,公网绑定始终需要用户名/密码或 OAuth 鉴权提供方。若需保持仅本地访问,请绑定 `127.0.0.1` 并通过隧道连接。 || `--stop` | — | 停止正在运行的 `hermes dashboard` 进程并退出。 || `--status` | — | 列出正在运行的 `hermes dashboard` 进程并退出。 |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-dashboard.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-dashboard.mdindex a3183843ea7..df76c682bef 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-dashboard.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-dashboard.md@@ -23,7 +23,7 @@ hermes dashboard| `--port` | `9119` | Web 服务器运行端口 || `--host` | `127.0.0.1` | 绑定地址 || `--no-open` | — | 不自动打开浏览器 |-| `--insecure` | 关闭 | 允许绑定到非 localhost 主机(**危险**——会在网络上暴露 API 密钥;请配合防火墙和强认证使用) |+| `--insecure` | 关闭 | **已弃用 / 无实际作用。** 此参数曾用于在非回环绑定上绕过鉴权;自 2026 年 6 月安全加固后,公网绑定始终需要用户名/密码或 OAuth 鉴权提供方。若需保持仅本地访问,请绑定 `127.0.0.1` 并通过隧道连接。 |```bash# 自定义端口