dsh-webui-auth: Adding Persistent Authentication Gate to DSH WebUI

@multidsh/dsh-webui-auth, maintained by multidsh, provides disk-persisted sessions and four-layer route wrapping (static assets, /plugins, /api, and WebSocket) for DeepSeek Harness WebUI, blocking access when unauthenticated. It modifies no core source code and enforces a fail-closed state upon enabling failure. Forked from dsh-webui-auth@0.3.6, it incorporates the 0.3.7 fix regarding login redirects with the X-Forwarded-Host header in reverse proxies. The article details npm/GitHub installation commands, deployment considerations for trustedHosts and public-url, as well as adaptations for the DSH Desktop profile, host bridging, and UI-level locking. Review the MIT-licensed source code and the implications regarding process permissions before installing.

Read More
dsh-webui-auth: Adding Persistent Login Access Control to DSH WebUI

dsh-webui-auth is the authentication plugin for DeepSeek Harness (DSH) WebUI, licensed under MIT and with zero dependencies. This plugin wraps core routes at runtime, providing four layers of protection for WebUI resources, API endpoints, and WebSocket connections without modifying the DSH source code, forcing unauthenticated users to log in. Its core features include: storing passwords with scrypt hashing, session persistence in sessions.jsonl maintained by HttpOnly cookies; implementing login rate limiting (5 attempts per minute per IP) and security header configuration; recording pseudonymized audit logs; supporting Setup Token initialization on first startup. Passwords can be reset by deleting the credential file if forgotten. Installation is done via npm.

Read More