dsh-gateway-plugin
Access-password gateway plugin for DeepSeek Harness Web: every request on the gateway port requires authentication (no unauthenticated surface besides the login/setup page), first visit sets the password, and it can be rotated from the dedicated Security settings page.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:laoin114514/dsh-gateway说明文档
阅读完整 README ↗配置(cordis.patch.yml 中 dsh-gateway 行)
| 字段 | 默认 | 说明 |
|---|---|---|
gatewayHost | '127.0.0.1' | 网关监听地址;对外暴露设为 '0.0.0.0'(harness 本体仍保持回环) |
gatewayPort | 0 | 网关监听端口;0 由系统分配(启动日志打印实际地址) |
sessionTtlHours | 24 | 会话 cookie 有效期(小时);密码修改或进程重启也会使所有会话失效 |
minKeyLength | 8 | 密码最短长度 |
maxLoginFailures | 5 | 连续失败多少次后进入冷却 |
loginCooldownSeconds | 30 | 冷却窗口(秒) |
accessKey | (空) | 初始密码;为空即进入"首次设置"模式(此时配置此字段等价于预先指定密码)。设置服务就绪时该值作为组合 base 层,可被安全页覆盖 |
密码本身存放在设置命名空间 dsh-gateway(字段 accessKey,用户设置文件),声明为 role('secret'),任何 wire 响应都不会携带它。