deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:frozo-ai/dsh-teams
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Team access for the DeepSeek Harness web UI.
The dsh web server ships with no TLS, auth, or origin policy — deliberately out of scope. That's correct for a loopback dev tool, and a problem the moment you want your team on one shared instance.
dsh-teams is a zero-dependency auth gateway: a login wall plus a full HTTP and WebSocket reverse proxy in front of a loopback-bound dsh web. Your dsh stays on 127.0.0.1; the gateway is the only thing exposed.
browser ──> dsh-teams :3081 (auth wall) ──> dsh web 127.0.0.1:3080
# 1. run dsh as usual (loopback-bound, the default)
npx @deepseek-ai/dsh web
# 2. create a user and start the gateway
npx dsh-teams add-user alice
npx dsh-teams start # http://0.0.0.0:3081 -> 127.0.0.1:3080
Point your team at http://<host>:3081. Unauthenticated requests — including WebSocket upgrades — get a login page; authenticated ones are proxied through untouched.
x-dsh-teams-user (audit / future per-user routing)node:http, node:net, node:crypto; survives dsh rc churn because it never touches dsh internalsdsh-teams add-user <name> [password] create user (prompts if password omitted)
dsh-teams start [port] start gateway (default 3081)
dsh-teams remove-user <name>
dsh-teams list-users
Env: DSH_TEAMS_PORT, DSH_TEAMS_HOST, DSH_UPSTREAM_HOST, DSH_UPSTREAM_PORT, DSH_TEAMS_HOME (default ~/.dsh-teams).
Sign in with Google Workspace, Okta, Azure AD, Auth0 — anything speaking OIDC.
Authorization Code + PKCE, with full ID-token verification: RS256 signature
against the issuer's JWKS, plus iss / aud / exp / nonce. state is
single-use and expires in 10 minutes.
export DSH_TEAMS_OIDC_ISSUER=https://accounts.google.com
export DSH_TEAMS_OIDC_CLIENT_ID=xxx.apps.googleusercontent.com
export DSH_TEAMS_OIDC_CLIENT_SECRET=xxx # omit for public clients
export DSH_TEAMS_OIDC_REDIRECT_URI=https://your.host/__teams/sso/callback
export DSH_TEAMS_OIDC_ALLOWED_DOMAINS=corp.example
export DSH_TEAMS_OIDC_LABEL=Google
dsh-teams start
It refuses to start without an allowlist. ALLOWED_DOMAINS or
ALLOWED_EMAILS is mandatory: with a public issuer like Google, no allowlist
means any Google account on earth could sign in. Failing closed is deliberate.
Password login keeps working alongside SSO, so you can keep a break-glass local account.
Verified against a test IdP signing real RS256 tokens. The suite rejects:
tampered payloads, wrong-key signatures, issuer/audience mismatch, expired
tokens, nonce replay, alg=none downgrade, unverified emails, non-allowlisted
domains, forged state, and state replay.
Origindsh's API returns 403 to any request carrying an Origin header — it assumes
loopback-only access, where browsers omit Origin on same-origin requests. Put
any proxy in front and the browser starts sending it, so every /api call 403s
while static assets still load, and the UI half-renders (missing composer,
unstyled text). The gateway therefore strips Origin/Referer and rewrites
Host to the upstream, preserving the original as x-forwarded-host.
Secure over plain HTTP.DSH_HOME per user, gateway routes by identity (true isolation)npm test # 6-check smoke test: wall, bad login, login, proxy, tamper, logout
MIT. Not affiliated with DeepSeek AI.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。