Skip to content

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.

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.

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:

Terminal window
$ 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 https

One 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:

Terminal window
tailscale serve --bg 8080

HTTPS 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:

Terminal window
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.

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.

  1. On the host, turn on Tailscale SSH with tailscale up --ssh, and allow it in your tailnet’s access rules.
  2. Each engineer connects with their own tailnet identity, as their own user on the host.
  3. On the host, each user runs zt login once, 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.

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.

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.

  • 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 login and a Zentri token.
  • The commands on this page are standard Tailscale usage. Read Tailscale’s documentation for your version.