laoin114514/dsh-gateway1

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.

包名
dsh-gateway-plugin
版本
0.1.0
许可证
MIT
最近更新
2026年8月23日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:laoin114514/dsh-gateway

配置(cordis.patch.ymldsh-gateway 行)

字段默认说明
gatewayHost'127.0.0.1'网关监听地址;对外暴露设为 '0.0.0.0'(harness 本体仍保持回环)
gatewayPort0网关监听端口;0 由系统分配(启动日志打印实际地址)
sessionTtlHours24会话 cookie 有效期(小时);密码修改或进程重启也会使所有会话失效
minKeyLength8密码最短长度
maxLoginFailures5连续失败多少次后进入冷却
loginCooldownSeconds30冷却窗口(秒)
accessKey(空)初始密码;为空即进入"首次设置"模式(此时配置此字段等价于预先指定密码)。设置服务就绪时该值作为组合 base 层,可被安全页覆盖

密码本身存放在设置命名空间 dsh-gateway(字段 accessKey,用户设置文件),声明为 role('secret'),任何 wire 响应都不会携带它。