Kairoku

The Kairoku network

How the app reaches your own sandboxes without a VPN, who can reach what, and what it tells Tailscale.

The Kairoku network lets the app on your Mac reach your organization's sandboxes directly, with no VPN to install and no second sign-in. Kairoku runs the network itself.

Where it stands today. The network is on for one organization only. If your organization doesn't have the network, nothing here applies to you.

What it's for

  • Preview. Open a dev server that runs in a sandbox in your browser. See Preview a dev server.
  • kairoku ssh. A shell on one of your sandboxes from your own terminal, signed in with a short-lived certificate. Plain ssh, scp and VS Code work through it. A session stays open while you're connected and ends when the connection drops.

The in-app terminal doesn't use the network. It goes through Kairoku's server.

Who can reach what

Every organization is kept apart from every other. In each one, there are two kinds of member on the network: people (the app on your Mac) and machines (your sandboxes). The rules are:

  • People reach their own organization's sandboxes.
  • Sandboxes can't start a connection to anything over the network: not to people, not to each other, and not to other organizations.
  • People don't reach other people.
  • Nothing crosses from one organization to another.

A sandbox can't pass itself off as a person, even though agents run code as root in it.

A sandbox can see who is connected. It sees each person of its organization who is on the network: the node's name, the operating system and its version, the client version, and the addresses it can be reached at, which include your local network address and your public one. Agents run as root in a sandbox, so anything running there can read this. A person sees only their organization's sandboxes, and two people don't see each other.

Reaching a sandbox isn't the same as having a shell on it. A shell needs a certificate that Kairoku signs for five minutes at a time. But anything listening on a sandbox's own localhost can be reached on any port by the people in that organization while they're on the network.

Traffic between two nodes may pass through Kairoku's relay when they can't connect directly. It stays encrypted between the two ends.

When you sign out or leave the organization, Kairoku deletes your node, and when a sandbox goes away it deletes the sandbox's node. After a member is removed, their open connection usually ends within a minute.

How you join

When you first use Preview, the app asks Kairoku for a key. The key works once and expires after 10 minutes. The app joins with it, then keeps the node only until you sign out or quit. Each person can ask for 20 keys an hour.

No Tailscale account

Nobody needs a Tailscale account, app or plan. Kairoku runs its own control server and its own relay, at net.kairoku.io. This is separate from connecting your own tailnet, which stays as it is.

What it tells Tailscale

The network's software comes from Tailscale's open-source client, and two of its behaviors reach Tailscale's servers.

  • Connectivity checks. Every node may ask controlplane.tailscale.com and login.tailscale.com for /generate_204 over plain HTTP. The request carries no account data and no key. It shows Tailscale that a node exists and from which address.
  • A name lookup. After a failed connection to the Kairoku server, the client may ask Tailscale's relay servers over HTTPS to look up net.kairoku.io. It carries no key and no account data. It shows them that name and your address.

Kairoku's control server makes no requests to Tailscale. The client has no setting that turns these two off.

See the Privacy Policy for what Kairoku stores about the network.

On this page