luodeb/dsh-web-auth-gateway
Puts a login page and authenticated reverse proxy in front of DSH Web, on its own loopback port.
Adds the one layer DSH Web does not ship: authentication. It runs as a standalone reverse-proxy plugin, so DSH itself is untouched — the plugin listens on its own loopback port, shows a login page, and only after a successful login proxies requests through to the DSH Web surface. That includes the surfaces that are easy to forget in a proxy: plugin assets, API calls and WebSocket upgrade requests all pass through, so a logged-in session behaves like a direct one. First-run account creation is part of the flow, so there is no seeded password to change and no default credential to leak. Server-side in-memory sessions mean a gateway restart logs everyone out, which is a deliberate trade of convenience for a smaller attack surface.
Install
dsh plugin --profile web add github:luodeb/dsh-web-auth-gatewayThe README documents a GitHub install only — there is no npm package published for this plugin, which is why the GitHub form is what ships and the version field says so. A local-checkout install is also documented (dsh plugin --profile web add link:$(pwd)). After installing, the first visit to the gateway port creates the administrator account; later visits require that account.
Compatibility
Node.js 22 or newer and DeepSeek Harness. It serves its login page on a separate loopback port and proxies the complete DSH Web surface behind it, including normal pages, plugin assets, API requests and WebSocket upgrades. The security design is documented rather than implied: passwords are hashed with scrypt and a random salt and plaintext is never stored, the credential file holds only username, salt and hash with mode 0600, the session cookie is HttpOnly with SameSite=Strict, and sessions live in server memory. The README's security-boundary section is the part to read before exposing it — a loopback-only gateway is a very different risk profile from one bound to a LAN interface.
Details
- Repo: luodeb/dsh-web-auth-gateway
- Category: Infrastructure & Deployment
- Stars: 2
- Version: No npm release — installed from the GitHub repository's default branch, no tag pinned.
Alternatives
SummerSec/dsh-web-auth · lament-z/dsh-bridge-gateway · ChenLuoi/dsh-auth-remote