dsh-ui-auth
Authentication gate for the DeepSeek Harness Web UI: the login gate covers pages, /api, /plugins and WebSocket upgrades; PBKDF2 password hashing, HttpOnly SameSite session cookies and IP-based login lockout; invite-code registration; two-factor login with TOTP or passkeys (WebAuthn: several keys per account, phone enrolment by QR, username-less sign-in, and a password or second-factor step-up before any login factor is added or removed); a user-management settings panel (users edit their own profile and manage their own TOTP and passkeys, admins add or remove users, reset passwords, manage invites and clear the passkeys of a lost device); admin-only model and API-key configuration guards; per-user isolation on the REST/list APIs and on the WebSocket event streams; session persistence across restarts; a JSONL audit log; and a fail-closed gateway. Runs on both DSH transport lines (0.1.1-rc.2 legacy and 0.1.2+ modern) with no configuration; passkey login needs a localhost or HTTPS origin because browsers require a secure context.
DeepSeek Harness Web UI 认证网关:登录门禁覆盖页面、/api、/plugins 与 WebSocket 升级;PBKDF2 口令哈希、HttpOnly SameSite 会话 Cookie、按源 IP 登录锁定;邀请码注册;两步验证可用 TOTP 动态码或通行密钥(WebAuthn:一个账号可绑定多个密钥,手机可扫码添加,支持免用户名登录,改动登录因子前必须二次验证);设置面板内置用户管理(普通用户可修改本人资料与密码并管理自己的 TOTP 与通行密钥,管理员可新增/删除用户、重置密码、管理邀请码、清除丢失设备的通行密钥);模型配置与 API Key 仅管理员可修改;REST/列表接口与 WebSocket 事件流均按用户隔离;会话重启后免登录恢复;JSONL 审计日志;存储故障时保持 fail-closed。同时支持两条 DSH 传输线(0.1.1-rc.2 legacy 与 0.1.2+ modern),无需配置;因浏览器要求安全上下文,通行密钥需通过 localhost 或 HTTPS 访问。
How to install
dsh plugin add dsh-ui-auth About
dsh-ui-auth — DSH Web UI 认证网关插件 在 DSH Web UI 前套一层用户名/密码登录校验,未登录用户无法访问任何页面、API 或 WebSocket 通道。 功能 **全接口拦截**:直接包装 DSH 的 node:http 服务器,在路由分发之前检查会话, 因此 /api/*(全部 RPC/SSE/下载)、/plugins/*(前端模块)、HMR、SPA fallback 以及 /api/events.mux、/api/events.host 两个 WebSocket 升级通道全部被覆盖, 没有旁路。 未登录:页面请求 302 → /auth/login;API/静态资源 401;WS 升级直接销毁连接。 登录后:原请求原样透传,功能零影响。 **登录页**:/auth/login 提供自带样式的登录页(中文),登录成功写 dsh_auth Cookie(HttpOnly + SameSite=Strict,12 小时滑动续期)。 **注册(0.5.0)**:/auth/register 注册页——新用户凭**邮箱 + 用户名 + 密码 + 有效邀请码**注册(邮箱暂不校验真实性,注册后可在「用户管理」中自行修改; 邮箱验证将在后续版本提供)。邀请码由管理员在【用户管理】→【邀请码管理】中 生成,可查看每个码的已用/可注册次数与剩余数,可撤销。注册成…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 5
- mo. downloads
- –
- Last push
- 2026-09-16
- Created
- 2026-08-23
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh-plugin
Related plugins
dsh-auto-mode
NanmiCoder/dsh-auto-mode
Adds an Auto permission preset between Workspace Write and Full access: routine work stays in the official workspace-write sandbox while the current session model reviews escalation and destructive calls, granting one exact wider access once, asking when the intent is ambiguous, and denying critical paths.
dsh-passwords
slywalker2006/dsh-passwords
Turns DeepSeek Harness into a server-grade multi-tenant platform: remote access + auto HTTPS, subuser permissions & token/daily quotas, sandbox enforcement, encrypted auth & audit log.
sofagent
KongFangXun/sofagent/tree/main/engine/dsh-plugins/cordis-plugin-sofagent-audit
Commit-time audit harness for AI coding agents: 24 git-diff rules (secrets, out-of-scope edits, prompt injection), HMAC-signed audit trail, snapshot rollback, and an MCP server with 84 tools. Installable via dsh plugin add.
dsh-vault
Ox0400/dsh-vault
Encrypted local credentials vault for the Harness: a web settings page and vault_* tools to store, search and copy passwords, API keys, TOTP secrets and card data, with health audits, expiry rotation, imports/exports and read-only/ask access modes.