dsh-client-connection-authz
Run the following command in DeepSeek Harness:
dsh plugin install sperictao/dsh-client-connection-authz
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install sperictao/dsh-client-connection-authz in DeepSeek Harness to install; source available at https://github.com/sperictao/dsh-client-connection-authz
About this plugin
DeepSeek Harness 0.1.0-rc.x ships a built-in connection module that manages HTTP, shared and dedicated RPC, WebSocket, and browser-client transports. In real deployments, if an external auth plugin is missing or misconfigured, that built-in connection can silently fall back to anonymous mode — a gap that is easy to miss in logs but dangerous in practice. dsh-client-connection-authz is a complete drop-in replacement for the built-in module that enforces an externally supplied ConnectionRequestAuthorizer before every remote entry point. If the authorizer plugin is absent or fails to configure, the connection refuses to start; there is no anonymous fallback path.
Under the hood, the package uses dual matching on both id and name to disable the upstream module (explicitly warning if the upstream renames itself), then injects the external authorization module with a forced connectionRequestAuthorizer. The per-connection execution order is fixed: Host / Origin / DNS-rebinding fence, loopback check, external authorizer, body read / protocol upgrade, business handler. A valid local bypass requires both a loopback Host header and a loopback TCP peer; a remote endpoint that merely spoofs Host: 127.0.0.1 is still routed to the authorizer. Shared RPC snapshots its handler and authority into the same target before authorization, closing timing-based interceptor-switching races. The authorizer receives rich context — transport, channel, endpoint, headers, TCP peer address, and the target authority (trusted-host or loopback) — enabling fine-grained permission tiering between ordinary API calls and privileged operations such as settings, credentials, and host-file access.
This package is intended for teams running Harness in trusted or semi-trusted network environments where connection-level authentication must be delegated to an external system, for example alongside dsh-auth-tailscale. It guarantees that every remote entry point is explicitly authorized before any business logic executes, rather than relying on a default-trust posture.
Use Cases
- Replace the built-in connection module with a mandatory external authorizer on every remote entry point
- Prevent anonymous-mode fallback when the auth plugin is missing or misconfigured
- Enforce fine-grained trusted-host vs loopback authority while blocking Host spoofing and interceptor races
Best For
- Teams deploying Harness in trusted or semi-trusted hybrid network environments
- Operators who need to delegate connection-level authentication to an external system such as Tailscale
- Security architects who require strict privilege tiering between ordinary and privileged APIs with no default-trust posture
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.