Repository navigation
Replies: 4 comments
Triage: #13582Verdict: Accept What was asked
The reporter runs T3 inside a DevPod container. Tailscale Serve runs on the host and proxies a stable t3 pair \
--base-dir /path/to/t3-data \
--base-url https://my-host.my-tailnet.ts.netDiscovery and token minting stay against the running local server. The supplied URL is used only for the pairing link and QR. The command must not configure Tailscale or change the bind address. What the code does today
Discovery is already separate from the advertised URL.
The QR and
No Not a duplicate
No other open issue or PR adds Implementation notesKeep discovery as it is. After
Tests belong next to the existing pair URL tests in RisksThe QR will contain a one-time token aimed at whatever host the user typed. That is the same exposure as the existing auth command. A wrong URL sends the token to the wrong host. Do not try to fix that by probing. This does not fix #8384. |
|
Thanks for raising this! I ran into the same problem with T3 in a Coder workspace: T3 listens on localhost, while Coder exposes it at a public URL through its reverse proxy. The proposed One additional behavior I’d find useful is a server-level public URL setting, so startup pairing output and plain I started a prototype of the server-level setting before finding this issue and the PR. I’m not asking to expand or delay the current PR, but would a separate follow-up be welcome? I’d be happy to adapt my work if useful. |
|
Another case for the server-level setting tpetr describes: T3 running headless in a Kubernetes pod behind an ingress. The server binds @juliusmarminge, would a follow-up PR for |
|
Adding a second use for the server-level public URL that tpetr and SpyrosPsarras asked about above: guest links. ProblemGuest links only work through T3 Connect, even when the server already has a perfectly good public origin.
Many self-hosted deployments already put the server's HTTP port behind a reverse proxy, a Coder workspace port share or a Kubernetes ingress, and don't run a Connect tunnel. The guest routes are reachable there, but a link can't be created. This is the same "the server doesn't know its public URL" gap that keeps coming up:
ProposalOne optional server-level public URL, set where deployments already set host and port: The first PR would cover guest links only:
Pairing (this thread), webhook URLs (#21812) and advertised routes (#28443) could read the same value later, each in its own PR if you want them. We run this as a local patch on a self-hosted deployment, and guest links work through a Coder workspace port share at the public sharing level. Questions
I saw #13750 was closed while outside feature work is paused, so I'm happy to wait. Once the direction is approved, I'll send the guest-links PR. |
Uh oh!
There was an error while loading. Please reload this page.
Problem
t3 paircan generate a terminal QR code using the discovered server address or configure Tailscale Serve with--tailscale, but it does not accept an explicit public URL.My use case is running T3 inside a DevPod container while Tailscale Serve runs on the host. The host exposes a stable HTTPS tailnet URL and proxies to a forwarded container port. The container hostname/IP can change, and Tailscale is intentionally not installed inside the container.
Plain
t3 pairadvertises the local/container address, whilet3 pair --tailscaleassumes it can manage Tailscale on the machine where the command runs.Requested behavior
Allow an explicit public base URL when generating the pairing link and terminal QR code:
The command should still discover the running local server and mint its pairing token, but use the supplied URL for the advertised connection address, pairing link, and QR code. It should not configure Tailscale or change the server bind address; proxy setup remains the responsibility of the user.
This would also support other reverse proxies and SSH-forwarded deployments.
Existing workaround
t3 auth pairing create --base-url https://my-host.my-tailnet.ts.netalready supports an explicit public URL, but does not offer the same terminal QR output ast3 pair. Users must render the resulting link separately, for example withqrencode.Related issues
t3 paircommand still lacks a public URL override.This request is specifically to expose an explicit
--base-urloverride int3 pair, consistent witht3 auth pairing create.All reactions