hxy91819/dsh-auth

Plugin插件 Native原生 ⭐ 6 MIT Sessions & Context会话与上下文

Caddy-fronted administrator authentication for DeepSeek Harness: Argon2id, revocable sessions, bilingual UI, zero upstream forks.

Project Overview项目介绍

dsh-auth is an unofficial community-built native plugin for DeepSeek Harness (DSH) that adds secure administrator authentication to the DSH web application. It locks DSH to only listen on the loopback interface, and deploys a project-owned Caddy reverse proxy with forward authentication to protect all access to pages, APIs, downloads, SSE streams, and WebSockets. To install the latest stable version, users can run sudo npm install -g dsh-auth to get the CLI, then execute sudo dsh-auth setup to start the interactive configuration process. Version 0.2.0 is a breaking release, so users with older legacy deployments must uninstall the previous version before running the new setup.

This plugin is intended for system administrators who need to add access control to a publicly deployed DSH web instance. The interactive setup workflow guides users through selecting the existing DSH systemd service, choosing an administrator initialization method, setting the public HTTPS hostname, and configuring TLS mode. Before making any changes to the host system, the installer outputs a full plan of the changes it will make and requires explicit user confirmation to proceed. Users can also run the dsh-auth plan command to preview the planned changes without making any modifications to the filesystem.

dsh-auth is released under the permissive MIT open source license. Supported deployment environments are limited to Linux systems running on x64 or ARM64 hardware, with systemd, Node.js 24.7 or newer, and DSH Web version 0.1.0-rc.7 or higher. This release supports only one administrator identity per installation, and does not include support for multiple accounts, self-service password recovery, multi-factor authentication, or multi-tenancy. All passwords are stored as Argon2id hashes, plaintext credentials are never saved to disk, and session cookies are secured with standard industry security hardening attributes.

dsh-auth 是专门为 DeepSeek Harness(DSH)开发的社区原生身份验证插件,用于为 DSH Web 应用添加安全的管理员登录功能。它将 DSH 服务限制仅在环回地址监听,同时通过项目自带的 Caddy 服务配置 forward_auth 边缘认证,保护所有页面、API、下载、SSE 流和 WebSocket 连接,避免未授权访问。当前最新版本是 0.2.0,针对旧版部署做了不兼容升级,旧配置需要重新安装。

该插件适合需要为公开部署的 DSH Web 服务添加访问控制的管理员使用。安装时需要先通过 npm 全局安装 CLI 工具,然后执行 sudo dsh-auth setup 进入交互式配置流程。安装程序会询问 DSH 服务单元、管理员初始化方式(密码或登录令牌)、HTTPS 主机名和 TLS 模式,展示预执行计划,获得用户确认后才会修改系统配置。

dsh-auth 采用 MIT 许可证开源,正常部署要求运行环境为 Linux x64 或 ARM64 架构,需要 systemd、Node.js 24.7 或更新版本,以及 DSH Web 0.1.0-rc.7 或以上版本。当前版本每个安装实例仅支持一个管理员身份,不支持多账号、多租户、自助找回账户和 MFA 等功能。密码以 Argon2id 哈希存储,不会保存明文。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:hxy91819/dsh-auth

把 hxy91819/dsh-auth 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-auth

English | 简体中文

npm version CI license

Unofficial community plugin for DeepSeek Harness. Add a secure administrator login to the DeepSeek Harness Web app. dsh-auth keeps Harness on loopback and installs a project-owned Caddy forward_auth edge for pages, APIs, downloads, SSE, and WebSockets.

Version 0.2.0 is a breaking upgrade from legacy v1 deployments. Previous installer flags, Nginx-managed installations, and old sessions are not migrated. Uninstall the previous installation, then run setup again.

Quick start

Interactive setup

Install the published CLI, then start from an existing DSH Web systemd service whose upstream listens only on loopback:

sudo npm install -g dsh-auth
sudo dsh-auth setup

npm install -g dsh-auth installs the current stable CLI, and the installer pins that same version in the selected DSH profile. For controlled production rollout, install the exact version approved by your supply-chain policy:

sudo npm install -g dsh-auth@0.2.3

Plugin pre-install is not enabled authentication

dsh plugin --profile web add dsh-auth (or a local tarball) only adds the bundle to the Web profile. With both core environment variables absent the bundle stays dormant: Web keeps booting normally, no authentication routes or settings UI appear, and nothing is exposed. A partially supplied configuration still fails loudly instead of booting. Enabling authentication always requires the globally installed CLI and sudo dsh-auth setup; the plugin command never creates secrets, installs Caddy, or protects anything.

When setup finds a pre-installed bundle whose package name, version, and build content exactly match the running CLI, it adopts it: no package is reinstalled, and the bundle keeps external ownership. Any other pre-installed build is refused before the host changes. Rollback and uninstall leave an adopted bundle in place; without managed configuration it simply returns to dormancy.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-llm-newapi 下一个 Next deepseek-harness-themes →