TiantianFlow/dsh-one-gateway ↗★ 11
dsh-one-gateway
私有零信任网关插件:提供仅限本地环回的代理、精确的主体准入白名单以及与提供商无关的引导配置。
AI 分析
核心用途是为 DSH 网页端提供安全的远程访问保护。适合需要通过 Tailscale 等安全通道远程访问本地 DSH 的用户。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TiantianFlow/dsh-one-gateway說明文件
閱讀完整 README ↗Configuration
Only the exact fields shown below are accepted. Unknown keys are errors. There
are no listenHost, listenPort, upstream, headerName, jwksUrl,
allowAnonymous, trustPrivateNetwork, public, or funnel keys.
Tailscale — trusted-header means Serve injects the login; routeManagement: ensure means setup will create one missing private Serve route:
enabled: true
externalOrigin: 'https://gateway.example-tailnet.ts.net:8443'
provider:
type: tailscale-serve
routeManagement: ensure
auth:
mode: trusted-header
trustedPrincipals:
- 'login:operator@example.invalid'
Headscale TCP Serve — gateway-credential means possession of a generated
secret; TCP Serve is private reachability only. tls is required:
enabled: true
externalOrigin: 'https://gateway.example.invalid:8443'
provider:
type: headscale-tcp-serve
routeManagement: ensure
tls:
certPath: '/path/to/dsh-one-gateway/cert.pem'
keyPath: '/path/to/dsh-one-gateway/key.pem'
auth:
mode: gateway-credential
trustedPrincipals:
- 'credential:operator-1'
credentialStorePath: '/path/to/dsh-one-gateway/credentials.json'
Cloudflare — signed-jwt means the gateway locally validates the Access
identity JWT; routeManagement: verify-only means you attach Access yourself:
enabled: true
externalOrigin: 'https://dsh.example.invalid'
provider:
type: cloudflare-access
routeManagement: verify-only
teamOrigin: 'https://team.example.invalid'
applicationAudience: 'replace-with-access-application-audience'
auth:
mode: signed-jwt
trustedPrincipals:
- 'email:operator@example.invalid'