Tailscale
How catch gets a tagged identity and how services get their own tailnet nodes.
Yeet uses Tailscale in two places:
- catch exposes host access through an embedded Tailscale node.
- Services can get their own Tailscale identity with
--net=ts.
Catch joins your tailnet, but the local yeet CLI does not run its own
Tailscale client. Normal yeet commands use HTTP and WebSocket connections to
the catch hostname, so your workstation must have network reachability to that
Tailscale address. In the standard setup, install Tailscale on the workstation
and connect it to the same tailnet. Commands that query local tailnet state,
such as yeet list-hosts, also use the local Tailscale client API.
There are two separate questions here: can your workstation reach catch, and what is the caller allowed to do after it reaches catch? Tailscale handles both layers, but they fail differently.
Open Access controls in the Tailscale admin console and look under
tagOwners in your tailnet policy. Match the three rows on Review tailnet
settings to tags your OAuth client can assign.
| Installer row | Default tag | What joins your tailnet |
|---|---|---|
| Machine | tag:yeet-host | The operating system you SSH into |
| Yeet server | tag:catch | The server your workstation contacts for Yeet commands |
| New services | tag:app | Each app you deploy with automatic enrollment |
For example, if you already use tag:server for machines, choose Change
machine tag in the installer and use that name in the policy below.
The owner tag (here, tag:yeet) goes on the OAuth client. It gives the
client permission to assign the three device tags. Create the credential and check the policy example.
For a machine named homelab, use ssh yeet@homelab for a regular shell and
yeet --host=yeet-homelab status to manage deployments. Grant operators TCP
22 on the machine tag and grant app clients the ports they need on the
service tag. Enable MagicDNS to reach devices by name.
With automatic service enrollment selected, yeet run web nginx:alpine
uses svc,ts and the installer's service tag. An explicit --net=svc keeps
that service private to Yeet. Existing services retain their networking.
A VM has its own guest operating system and controls its own Tailscale login.
The installer also offers Yeet-server-only setup for browser sign-in or an auth key.
- In Access controls, merge the
tagOwnersentries below into your existing policy. Use the machine and app tags you selected in the installer. - Open Trust credentials in the Tailscale admin console and create an OAuth client. Choose the Auth Keys write scope and select the owner tag,
tag:yeetin this example. - Copy the client secret and paste it into the installer over SSH. The installer checks each tag before you confirm the disks. If a tag fails, check its spelling and owners in the policy or change the corresponding installer setting.
{
"tagOwners": {
"tag:yeet": ["autogroup:admin"],
"tag:yeet-host": ["tag:yeet"],
"tag:catch": ["tag:yeet"],
"tag:app": ["tag:yeet"],
},
"grants": [
{
"src": ["autogroup:admin"],
"dst": ["tag:catch"],
"ip": ["tcp:41548"],
"app": {
"yeetrun.com/app/yeet": [{ "allow": ["read", "manage", "ssh"] }],
},
},
{
"src": ["tag:catch"],
"dst": ["tag:catch"],
"ip": ["tcp:41548"],
},
],
}
The first grant lets Tailscale admins run the first setup and normal admin
commands. See Tailscale Access Grants
for the read, manage, and ssh permissions attached to that grant.
Keep autogroup:admin directly in the grant src; do not put it inside a
custom policy-file group.
Choose the machine and Yeet server names in the installer. For a machine named minilab, use ssh yeet@minilab for a shell and yeet --host=yeet-minilab status to list apps. Use a distinct name for each tailnet device.
Use ts when a service should get its own tailnet identity, tailnet IP, tags,
ACLs, or Tailscale Serve config.
For most services, use svc,ts instead of plain ts:
yeet run <svc> ./compose.yml --net=svc,ts --ts-tags=tag:app
svc,ts keeps yeet DNS, private service-to-service traffic, and ordinary
internet egress through the catch host. It also gives the service its own
Tailscale identity.
Use plain ts only for deliberately tailnet-only services:
yeet run <svc> ./compose.yml --net=ts --ts-tags=tag:app
yeet ip <svc>
Plain ts does not provide ordinary outbound internet by itself. Configure an
exit node when a ts-only service needs internet access:
yeet run <svc> ./compose.yml --net=ts --ts-tags=tag:app --ts-exit=<exit-node>
For an existing Tailscale service, update the desired exit node through
service set:
yeet service set <svc> --ts-exit=<exit-node>
yeet service set <svc> --ts-exit=
Use iso,ts when an isolated container-backed service needs both public IPv4
egress and its own tailnet identity:
yeet run <svc> ./compose.yml --net=iso,ts --ts-tags=tag:app
Ordinary traffic still uses iso's Catch NAT, while tailnet routes and MagicDNS
use the service-owned Tailscale interface. Selecting ts is an explicit
exception to iso's otherwise public-internet-only policy. VMs do not support a
Yeet-managed iso,ts mode; install Tailscale inside the guest instead.
Make sure the OAuth client saved during catch setup can assign every tag you
pass with --ts-tags. If the credential cannot mint the tag, deployment fails.
Use yeet run network flags when creating the service. Change an existing
non-VM service through yeet service set:
yeet service set <svc> --net=ts --ts-tags=tag:app
yeet service set <svc> --ts-exit=<exit-node>
yeet service set <svc> --ts-exit=
--net replaces the complete mode set. The other supplied Tailscale flags
patch one setting, and an explicit empty value clears tags, version, or exit
node. Omitted values stay unchanged. Whenever the resulting modes include
ts, the resulting tag list must be non-empty; existing valid tags can be
inherited. Yeet uses --ts-auth-key only for the current enrollment and never
shows it in info output or saves it to yeet.toml.
To add a Tailscale identity to an existing LAN service while keeping LAN access, include both modes:
yeet service set <svc> --net=lan,ts --ts-tags=tag:app
This also applies to services on custom paths or ZFS datasets. The service root and payload stay in place. Catch checks the replacement Tailscale configuration before stopping the current service; if that check fails, it keeps running with its previous network settings.
Options:
--ts-tags=<tag>sets service tags. Repeat it to replace the list with multiple tags.--ts-exit=<node>uses a Tailscale exit node.--ts-ver=<ver>selects a Tailscale version for the service.--ts-auth-key=<key>passes a transient, write-only auth key for the operation.
See Networking for when to choose svc, lan,
ts, iso, or a combination.
Run Tailscale commands for a service identity:
yeet tailscale <svc> -- status
yeet ts <svc> -- debug daemon-logs
Update the yeet-managed service Tailscale binary:
yeet ts <svc> update
yeet ts <svc> update --version=1.95.112
If you intentionally want Tailscale's own upstream update subcommand, pass it
through after --:
yeet ts <svc> -- update
Expose a service over HTTPS on your tailnet:
yeet ts <svc> serve --bg 3000
Serve requires tailnet HTTPS. With --bg, the Serve config persists across
reboots.
When you remove a service, yeet attempts to delete that service's Tailscale device from your tailnet. Cleanup matters because old service identities are old access paths.
- https://tailscale.com/docs/features/access-control/auth-keys
- https://tailscale.com/docs/features/oauth-clients
- https://tailscale.com/docs/features/tags
- https://tailscale.com/docs/reference/syntax/policy-file
- https://tailscale.com/docs/reference/syntax/grants
- https://tailscale.com/kb/1242/tailscale-serve