sperictao/dsh-client-connection-authz

插件 ⭐ 0 MIT social

支持认证的DeepSeek Harness客户端连接替代方案

catalog 简介:Auth-capable replacement for DeepSeek Harness client connection

安装

`facts` 包含 transport、channel、endpoint、headers、TCP peer address,以及目标
要求的 authority:

- `trusted-host`:普通 API、普通 RPC 和两个 WebSocket downlink。
- `loopback`:设置、凭据、宿主文件操作等特权 API;认证插件只有显式授予更高权限
  才能让远程调用通过。

执行顺序固定为:Host/Origin/DNS-rebinding fence → 本地回环判断 → 外部
authorizer → body 读取/协议升级/业务 handler。有效本地旁路必须同时满足回环 Host
和回环 TCP peer;远端仅伪造 `Host: 127.0.0.1` 仍会进入 authorizer。共享 RPC 会在
授权前把 handler 与 authority 快照为同一 target,避免授权后切换 interceptor 的
时序绕过。

## 安装

这个包故意不能单独启用;profile 还必须安装一个提供 authorizer 的认证包。例如与
[dsh-auth-tailscale](https://github.com/sperictao/dsh-auth-tailscale) 一起安装:

sperictao/dsh-client-connection-authz 加入你的 DSH 配置(web profile)即可启用。

README

展开完整 README 收起

README 内容为空。