dsh-webui-auth
WebUI authentication enforced at the HTTP/transport layer: four-layer login gate (resources, plugin bundles, /api, WebSocket), server-side sessions with HttpOnly cookies.
WebUI 身份认证:HTTP/传输层强制登录(资源、插件 bundle、/api、WebSocket 四层防护),服务端会话 + HttpOnly Cookie。
How to install
dsh plugin add dsh-webui-auth About
dsh-webui-auth English | 中文 DSH WebUI 身份认证插件(持久化插件)。在「设置 → 身份认证」或首次访问登录页创建账号密码后,**未认证的浏览器无法加载 WebUI 的任何资源、调用任何接口或建立任何实时连接**——认证在 HTTP/传输层强制执行,不可通过浏览器开发者工具绕过。 架构 认证由四层组成: | 层 | 机制 | 未认证行为 | |---|---|---| | WebUI 资源(index.html、/assets/*、SPA 路由) | 插件注册 prefix '' 兜底路由,校验会话后转交 frontend-static | 302 → 登录页 | | 插件 bundle(/plugins/*) | dsh-client-modules 补丁:serveBundle 前校验 webServer.webuiAuthGate | 302 → 登录页 | | /api RPC 接口 | dsh-client-connection 补丁:路由前校验同一闸门 | 401 | | WebSocket(/api/events.mux、/api/events.host) | 同包补丁:升级握手前校验同一闸门 | 403 拒绝升级 | 会话为**服务端内存会话**,由 HttpOnly; SameSite=Lax Cookie(dsh_wua_ses…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 8
- mo. downloads
- 769
- Last push
- 2026-09-16
- Created
- 2026-08-14
Links
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- auth, authorization, dsh, dsh-plugin, gate
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.