dsh-tailnet-gateway: Access local DSH via Tailscale private network without exposing the Web interface to the public internet
dsh-tailnet-gateway is a DSH plugin maintained by OutLawZhangSan-liii. It provides a reverse proxy with Tailscale identity authentication on the local host (127.0.0.1). When used in conjunction with `tailscale serve` and `grant-access.mjs`, it allows devices within the tailnet, such as mobile phones, to access the loopback-bound dsh web interface without exposing the service to the public internet or relaxing the dsh privileged RPC barriers. The article explains the link design, the `cordis.patch.yml` mounting method, the steps for Serve and browser authorization, configuration options, and the boundaries of available capabilities on the remote side. It also warns of the risks associated with the plugin sharing the same process privileges as dsh and the potential for local identity header spoofing.
Read More