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.

包名
dsh-simple-auth
版本
0.2.2
许可证
MIT
最近更新
2026年9月10日

安装

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

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.