tabbify.io
Documentation
Product directionEDGE BOX
ReferenceArchitecture

Private Mesh

Every Tabbify supervisor and running application joins a userspace WireGuard overlay. Tenant policy limits which peers are visible, and each application gets a stable IPv6 ULA derived from its UUID. Public application traffic enters through the managed edge rather than exposing the workload port.

WireGuard packets between peers travel directly when a direct path can be established and through the managed relay otherwise; see Production transport below.

Coordinator and joiner

The mesh has two roles, both run by the platform. The coordinator registers peers, assigns peer addresses, and returns an ACL-filtered roster. The joiner runs on each platform host and workload runner, opens a TUN device, and maintains the WireGuard session used for direct or relayed transport. You do not install or configure either: your apps, databases, dev machines and runners are placed on the network when they start.

Peer and per-app ULAs

Addresses come from two blocks. Platform peers get fd5a:1f00::/32. Apps get their own address fd5a:1f02:XXXX:XXXX:XXXX:0:0:1, where the three XXXX groups are the first six bytes of blake3(app_uuid) taken as three big-endian u16s — for example, UUID 0191e7c2-1111-7222-8333-444455556666 derives fd5a:1f02:44a5:240b:121a::1. That is the address of the app's first instance generation; redeploys keep it, and moving the app to another host starts a new generation with a new address. Supervisors advertise the app-ULAs they host on each heartbeat (POST /v1/mesh/heartbeat), and receiving peers install /128 routes so dialing [app_ula]:8730 reaches the right host.

{"peer_id":"<uuid>","ula":"fd5a:1f00:0000:0001::1","display_name":"supervisor-01",
 "tags":["supervisor"],"hosted_app_ulas":["fd5a:1f02:44a5:240b:121a::1"]}

The node keeps the active address of every app in its registry and sends public traffic to [app_ula]:8730; the installed mesh route carries it to the host that runs the app.

Reaching other apps from an app

Inside its microVM an app does not join the mesh itself. There are two ways out, depending on what it calls:

Another app in the same network: ${apps.<name>.mesh_url}. Put the reference in [env]:

[env]
BACKEND_URL = "${apps.backend.mesh_url}"

At deploy time it renders to http://[<address>]:8730, the target's active address. Rules:

  • only apps of the same network resolve; an app in another network, even of the same account, is treated as not found;
  • use the app's UUID instead of its name when two apps share a name;
  • the address is fixed when the caller deploys: if the target later moves to another host, redeploy the caller;
  • the target accepts the call only on the ports it serves to the mesh, and still has to authenticate the caller itself;
  • the caller must run on a host that supports guest IPv6 routing. On a host without it, the deploy is refused with an explanation rather than started with an address it cannot dial.

Write the reference, not a literal fd5a: address: a literal keeps pointing at the old address after the target moves.

A sibling service in the same container deployment: ${services.<name>.mesh_url}. In a container document, the platform wires sibling services for you; the reference renders the sibling's address the same way.

Managed data resources are reached through their own links; see Managed data.

Production transport

Peers first try a direct WireGuard path to each other, including NAT hole-punching, and fall back to the managed relay at https://relay.tabbify.io when a direct path cannot be established. A few platform components are pinned to the relay. Whether a given pair of peers runs direct or relayed depends on their networks and can change; include the relay in latency, capacity, and failure planning, and do not design for either path specifically.

Cost

Traffic on the private network between your own apps, databases, dev machines and runners is free. Only traffic that leaves Tabbify for the internet is billed as egress.

Encryption and access control

WireGuard encrypts mesh packets. Tag-based ACL policy determines which peers share a tenant network and which roster entries they can see. A policy change causes peers to refresh their visible roster.

Certificate use is not uniform across every platform hop today. Do not treat mesh encryption or peer visibility as application-level authorization; services must still validate callers and protect sensitive routes. See Auth & join tokens.