Tailscale
Zentri has no Tailscale-specific code. Nothing in the coordinator, zt, or the integrations calls Tailscale or reads its identity headers. Tailscale is a private network you can put around a self-hosted coordinator, and Zentri’s design documents use it as the example.
This page shows how the pieces fit, using standard Tailscale features. Zentri’s own tests do not run over Tailscale.
Where Tailscale fits
Section titled “Where Tailscale fits”| Connection | Over a tailnet | What Zentri requires |
|---|---|---|
An engineer to the host where zt and the agents run |
Tailscale SSH | Nothing. zt runs on that host like any other program. |
zt to the coordinator |
The coordinator’s tailnet name | An https URL. Plain http only on loopback. |
| A sandbox to the coordinator | Through the sandbox host | The coordinator host and port go into the sandbox policy. |
| The Slack bot to the coordinator | The coordinator’s tailnet name | An http or https URL in ZENTRI_URL. |
| GitHub to the coordinator, for the merge check | Not over the tailnet, unless the runner is on it | An https URL the runner can reach. |
ADR-0003 names the transport between a launcher and the coordinator as “Tailscale (WireGuard) or TLS”. It also lists Tailscale identity headers from tailscale serve as a login method, deferred and not built.
Serve the coordinator on the tailnet
Section titled “Serve the coordinator on the tailnet”zt refuses a plain http URL unless the host is loopback, so the token never crosses a network in clear text. That rule does not trust WireGuard, so a tailnet name still needs https:
$ zt login --server http://zentri.example-tailnet.ts.net --invite -Error: server URL "http://zentri.example-tailnet.ts.net": plain http is allowed only for a loopback host (127.0.0.0/8, ::1, localhost); use httpsOne way to get https on a tailnet is tailscale serve, which terminates TLS with a certificate for the machine’s tailnet name and proxies to a local port. The Docker Compose file binds the coordinator to 127.0.0.1:8080, so on that host:
tailscale serve --bg 8080HTTPS certificates must be turned on for your tailnet. Check tailscale serve --help for the syntax of your Tailscale version. Then log in with the tailnet name:
zt login --server https://zentri.example-tailnet.ts.net --invite -A reverse proxy with its own certificate works the same way. See Production and Hardening.
Run zt over Tailscale SSH
Section titled “Run zt over Tailscale SSH”The architecture in the repository’s README shows engineers using the zt CLI over Tailscale SSH. The agents, their worktrees, and tmux live on a shared Linux host, and each engineer connects to it.
- On the host, turn on Tailscale SSH with
tailscale up --ssh, and allow it in your tailnet’s access rules. - Each engineer connects with their own tailnet identity, as their own user on the host.
- On the host, each user runs
zt loginonce, installs their agent CLI, and signs in to it with their own account.
Each user’s zt config, session tokens, and agent sign-in stay in that user’s home directory. Do not share one Unix account between engineers. A shared account means a shared agent login, which the vendors forbid. See Never share a subscription.
ADR-0004 plans the same for Windows: run zt on Windows and attach to sandboxes on a Linux host over Tailscale SSH, since Windows cannot run the openshell launcher. That path has not been tested.
Sandboxes and the tailnet
Section titled “Sandboxes and the tailnet”The openshell launcher writes the coordinator’s host and port into the sandbox’s egress policy. Only /usr/local/bin/zentri may reach it, and only on /v1/**, /mcp, and GET /healthz. A loopback coordinator URL becomes host.openshell.internal.
Whether a sandbox resolves a tailnet name depends on how the OpenShell gateway resolves DNS on your host. That has not been tested. See OpenShell policies.
The merge check
Section titled “The merge check”GitHub’s hosted runners are not on your tailnet. For the merge check, either give the coordinator a public https URL or run the check on a self-hosted runner that is on the tailnet.
Limitations
Section titled “Limitations”- No Zentri code is specific to Tailscale, and no Zentri test runs over it.
- Tailscale identity headers are not a login method. Every user still logs in with
zt loginand a Zentri token. - The commands on this page are standard Tailscale usage. Read Tailscale’s documentation for your version.
Related pages
Section titled “Related pages”- Production and Hardening
- Sandboxing
- CLI reference for
zt login - Vendor terms for the Tailscale terms