lt9/dsh-simple-auth0

dsh-simple-auth

Ultra-light DeepSeek Harness login gate: shared key or master/guest keys, ACL-filtered session list, owner-only share/unshare FAB. Zero production dependencies.

AI 分析

核心用途是为 DSH Web 服务添加轻量级的访问控制和登录页面。适合将 DSH 部署在公网或局域网服务器上、需要防止未授权访问的多用户共享场景。

パッケージ
dsh-simple-auth
バージョン
0.2.2
ライセンス
MIT
最終更新
2026/09/10

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lt9/dsh-simple-auth

ドキュメント

README 全文を読む ↗

Configuration

All keys are optional. Defaults are applied in code (home-layer patch config replaces the whole object, it does not deep-merge).

KeyDefaultMeaning
keyEnvDSH_SIMPLE_AUTH_KEYEnvironment variable that holds the access key
keyFile""If set, read the key from this file (trimmed). Takes precedence over keyEnv
cookieNamedsh_simple_authSession cookie name
sessionTtl604800Cookie lifetime in seconds (7 days)
cookieSecureautoauto follows X-Forwarded-Proto; true / false force the Secure flag
rewriteLoopbacktruePresent authenticated traffic as `127.0.0.1:
` so dsh’s reverse-proxy Host fence does not 403 privileged APIs
titleDeepSeek HarnessLogin heading
hint(built-in zh/en copy)Login subtitle
remembertrueShow “remember key on this device” (localStorage only; the server still uses the cookie)
rpcMinTimeoutMs120000Floor for AbortSignal.timeout injected into the web index. dsh’s unary RPC default is 30s; large session.history pages over a tunnel abort with The user aborted a request. 0 disables the inject

Never put the key itself in YAML or git.