Repository navigation
T3 Connect: Tailcat as the transport, end-to-end encrypted on every client #37831
Replies: 1 comment
|
If T3 Connect adds Tailcat, could it keep the public DERP relays as the default and let each environment specify the hostname of any compatible DERP relay? I run local and remote services across a Mac and a few VMs. I'd like to choose a privately operated relay whether it's reachable only on my LAN or over the internet. Tailcat can embed the relay hostname in the address that the environment would sign. This matters for the proposed web client because its session traffic goes through DERP. When my browser and VM are on the same LAN, they could use a relay on that LAN. Tailcat's self-hosted relay documentation I already run a private DERP relay for Playwriter on my LAN and reach it remotely over my VPN. My derp-stack project is a working Docker Compose example. The container loads a supplied TLS certificate chain and matching key, so it can serve a relay certificate issued by a private CA that the clients trust. It also publishes an HTTPS DERP map that I can select in Playwriter. derp-stack · Playwriter · Playwriter's relay configuration |
Uh oh!
There was an error while loading. Please reload this page.
Problem
T3 Connect sends each environment's traffic through a Cloudflare tunnel. That causes three problems that keep coming up:
cloudflaredis a fragile dependency. Open issues include tunnels breaking when a VPN comes up (T3 Connect tunnel silently breaks when a VPN comes up after cloudflared starts (QUIC MTU not re-probed) #29004, T3 Connect stays offline after a VPN connects under a live tunnel: cloudflared reports 4 ready connections but requests time out #31468), hostnames that never resolve ([Bug]: T3 Connect relay hostname never resolves (NXDOMAIN) although tunnel is connected and link is provisioned #25628), 530/502 errors after a tunnel is recreated ([Bug]: T3 Connect managed hostname returns 530/502 after tunnel re-creation while cloudflared is healthy #33913), compromised certificate intermediates ([Bug]: T3 Connect still accepts cloudflared versions affected by the eMudhra compromise #25608) andGODEBUGaborts (Relay client install fails every 10 min when the host environment sets a GODEBUG value Go has removed (cloudflared 2026.10.4 aborts on tlskyber=0) #28453).Proposal
Keep T3 Connect as it is for sign-in, discovery, pairing, credentials and revocation. Add Tailcat as a new endpoint provider for the data path, next to
cloudflare_tunnelinRelayManagedEndpointProviderKind(packages/contracts/src/relay.ts).Tailcat (BSD-3-Clause) is Tailscale's data plane (WireGuard, NAT traversal and DERP relays) without its control plane. It needs no Tailscale account, no tailnet, no TUN device and no open port. A host gets a short
tc…address, and clients dial it.How it would fit:
tailcat servenext to the server with a saved key, the same way T3 already managescloudflared. It publishes its Tailcat address to the relay, signed with the environment key that T3 Connect already holds for each link.web/main_js.go). The web client loads it and dials the same address.What this gets
cloudflaredtailcat(about 7 MB compressed, per #9525)On cost: a Tailcat environment needs no tunnel or hostname, and most desktop and mobile traffic would go directly between devices without touching T3's infrastructure. Browser traffic, and connections that fall back to a relay, would still go through DERP relays that T3 runs. So the cost wouldn't disappear, but it would grow with the amount of relayed traffic rather than with the number of environments. That might allow a higher limit for Tailcat environments.
Known costs and limits
cmd/derper). That's still a relay cost for web users, but DERP is simple to run, only carries ciphertext and needs no setup per environment. Desktop and mobile traffic would move off the relay.Suggested phases
Related discussions
Those treat Tailcat as a route separate from T3 Connect. This proposal makes it T3 Connect's own transport, so sign-in and discovery stay the same and everyone gets end-to-end encryption without setting anything up.
Questions for maintainers
Happy to help test, or contribute once there's agreement on the shape.
All reactions