tabbify.io
Documentation
Product directionEDGE BOX
ReferenceArchitecture

Routing & public access

Every Tabbify app gets its own address on the private mesh, derived from its UUID. The public node is the one component with a public listener — it joins the mesh and proxies external requests to those addresses. This page covers both halves: the per-app address and the public edge in front of it.

Per-app addresses

An app's mesh address is a deterministic IPv6 ULA derived from its UUID via BLAKE3, in the fd5a:1f02::/32 block:

fn derive_app_ula(app_uuid: Uuid) -> Ipv6Addr {
  let b = blake3::hash(app_uuid.as_bytes());
  let b = b.as_bytes();
  Ipv6Addr::new(
    0xfd5a, 0x1f02,
    u16::from_be_bytes([b[0], b[1]]),
    u16::from_be_bytes([b[2], b[3]]),
    u16::from_be_bytes([b[4], b[5]]),
    0, 0, 1,
  ) // fd5a:1f02:<48-bit hash>::1
}

This is the address of the app's first instance generation. Redeploys keep the address; when an app is moved to another host it starts a new generation with a new address, and the node routes public traffic to the active generation from its own registry. Do not hard-code an app's mesh address in another app's configuration; reference it by name (see Private Mesh). Each app's runner binds [app_ula]:8730.

Per-instance addresses for managed data

Managed PostgreSQL, KV and object-storage instances are addressed the same way, in their own fd5a:1f03::/32 block: the address is BLAKE3 over the instance id instead of an app UUID, so it too is recomputed rather than stored, and it is the address your connection string names:

postgresql://app_rw@[fd5a:1f03:a1b2:c3d4:e5f6::1]/mydb

No port is printed — every managed protocol is reached on its own default port (PostgreSQL 5432, Redis 6379, S3 443) — and no DNS name is created for an instance: the address is derived, and libpq and every mainstream client library accept a bracketed IPv6 literal as-is.

An instance is not a mesh peer itself; its door (the managed proxy for that protocol) holds the address and answers on it, and only peers holding a grant on that instance are told the address exists. That is why a leaked connection string is not access on its own: reaching the address is a question of the grant, and the credentials in the string are the second factor.

Your app's address on tbfy.app

Every app is served at its own host: https://<slug>.tbfy.app/. That is the one address the console, the MCP tools and the deploy output show. The app receives requests at the root path, with no prefix in front of them.

Why each app has its own host. Browsers keep cookies, localStorage, IndexedDB and service workers per origin. On a host of its own, nothing one app stores is visible to any other app, and a platform cookie is never set on the shared .tbfy.app parent: every cookie the platform sets (the app password, the sign-in handoff) is host-only on your app's host.

The slug. Tabbify picks the slug when the app is created: the app's name and your account's login in lowercase ASCII, joined by -, with every other run of characters turned into - — for example my-shop-alice. If that is taken, - and four random letters or digits are added. A slug is unique across all apps.

Renaming. Pick another name in the console under Settings → Custom domains → Platform address → Rename, or with the MCP tool app_rename. You need the environment.publish permission (formerly network.publish) on the app. An app may take back its own previous slug at any time. A slug:

  • uses only a-z, 0-9 and -, and is 3 to 32 characters long;
  • does not start or end with -, and has no -- (so no xn-- either);
  • is not one of the platform's own names (www, api, app, apps, admin, auth, mail, smtp, docs, status, registry, console, mcp, ssh, git, cdn, static, assets, login, id, help, support, billing, blog, dev, staging, test) and does not start with tabbify or tbfy.

After a rename the old address answers 308 to the new one, path and query kept, for 30 days. During those 30 days no other app can take the old slug, so a link someone saved cannot be picked up by a lookalike app. After that the old slug is free again.

The old uuid path. https://app.tabbify.io/app/<uuid>/<path> answers 308 to https://<slug>.tbfy.app/<path>, query kept, so links from before app subdomains keep working.

Apps built for a path prefix. An app built to live under a path ([routes] under_prefix = true, a Next.js basePath) breaks at the root of a host. It stays on https://app.tabbify.io/app/<uuid>/, without a redirect, until you rebuild it for the root path; the console says "rebuild to move to <slug>.tbfy.app" on its settings page.

The public edge

tabbify-node serves the standard public application routes. It joins the mesh and installs routes to advertised app ULAs; the mesh carries the hop to the selected workload host, directly or through the managed relay. The public edge terminates HTTPS, so applications do not expose their guest ports to the internet.

The node exposes two kinds of routes:

  • App-serving — every path on <slug>.tbfy.app, and on app.tabbify.io the old /app/{uuid}, /app/{uuid}/{*rest} and bare /{uuid}, /{uuid}/{*rest} paths, which redirect to the slug host (see above). These are public: they carry no bearer gate, because this is the edge that fronts your deployed app to the open internet. Apps are served on *.tbfy.app and on your custom domains; other *.tabbify.io hosts, including api.tabbify.io, answer 404 on app paths. An unknown slug answers 404.
  • Control — /v1/*. These require Authorization: Bearer <TABBIFY_TOKEN>, the API token issued to your Tabbify account. /health and the docs (/openapi.json, /swagger-ui) are public too.
# Reach a deployed app — public, no auth needed
curl https://<slug>.tbfy.app/some/path

# The old uuid path redirects there (308)
curl -L https://app.tabbify.io/app/<uuid>/some/path

# A control call — requires your Tabbify API token
curl https://api.tabbify.io/v1/apps \
  -H "Authorization: Bearer $TABBIFY_TOKEN"

App-serving routes look up the app's active address and send the request to [app_ula]:8730. Hop-by-hop headers are stripped both ways. An unreachable app returns 502; an unknown slug or a malformed or unknown UUID returns 404.

What your app receives

The public request path is:

browser -> CloudFront -> core edge -> node -> mesh -> runner -> your app

Custom domains enter through the ingress edge instead of CloudFront and then follow the same node -> runner path.

Forwarding headers. The node removes every client-supplied X-Forwarded-For, X-Forwarded-Proto, X-Forwarded-Host, X-Forwarded-Prefix, Forwarded, and X-Real-IP, then sets its own:

HeaderValue
X-Forwarded-Forexactly one address: the client IP the edge saw
X-Forwarded-Protohttps
X-Forwarded-Hostthe host the visitor used (<slug>.tbfy.app or your domain)
X-Forwarded-Prefixabsent on <slug>.tbfy.app and custom domains; /app/<uuid> only for an app still served on the uuid path

Trust exactly one forwarding hop: take X-Forwarded-For as a whole (for example Express trust proxy = 1, or ProxyFix x_for=1, x_proto=1, x_host=1, x_prefix=1). There is no chain to walk, and a value the client sent never reaches your app through the public edge.

These guarantees hold only for traffic that came through the public edge. A call from another app over the private mesh (${apps.<name>.mesh_url}) reaches your app without passing the node, so its X-Forwarded-* headers are whatever the calling app sent. Do not base rate limits or allow-lists on X-Forwarded-For for routes that private callers also use. The Host header your app sees is its own in-VM address and port, not the public name; use X-Forwarded-Host to build absolute URLs.

Paths and trailing slashes. On <slug>.tbfy.app and on a custom domain the path arrives unchanged. For an app still served on the uuid path (built under a prefix), on app.tabbify.io a request to the app root without a trailing slash, /app/<uuid>, is answered with 308 to /app/<uuid>/ (query string kept; method and body kept, so a form POST survives). The /app/<uuid> prefix is then removed before the request reaches your app: /app/<uuid>/ arrives as / and /app/<uuid>/x as /x. Deeper paths are never redirected. An app that declares [routes] under_prefix = true is not redirected and receives the full path as typed, so it owns its own slash policy. Platform cookies are never forwarded to your app.

Timeouts and streaming.

  • CloudFront waits at most 60 seconds for the start of a response and closes a response that is silent for 60 seconds. Long-running requests must answer sooner; Server-Sent Events and long polls need a heartbeat more often than that.
  • WebSockets work over HTTP/1.1. A WebSocket upgrade over HTTP/2 is refused with 400.
  • Responses, including SSE, are streamed at every hop.
  • The node streams request bodies, but the runner in front of your app reads the whole request body into memory before passing it on. There is no explicit body-size limit; send large uploads straight to object storage instead of through your app.

Webhooks behind a password

An app behind a password, or open to your team only, answers a browser by asking for the password or a sign-in. A webhook or another program calling the app cannot do either, so its request is turned away. Give such a caller a service token instead: a revocable secret that opens only the paths and methods you name, and nothing else.

  • The caller sends it in the X-Tabbify-App-Token header. There is no query parameter: a token in a URL ends up in logs and browser history.
  • A token carries a scope: a list of paths, each /exact or /prefix/*, and a list of methods (GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS). A request outside the scope is refused with 401, even with a valid token. Paths are matched in their plain form: a path with .., //, a percent-encoding or a ; never matches a scope.
  • A token lasts up to 365 days (90 when you name none). It is shown once, when it is made. The list afterwards shows its name, scope and expiry, never the value.
  • Revoke it at any time; within a few seconds requests with it are refused. Changing the app's password or signing everyone out also ends every token of that app.
  • Knowing the app's password does not let anyone make a token: only an owner who may publish the app can.

In the console a token is made on the app's settings page, Access for services. Over MCP an agent does it with three tools: app_service_token_create {app_uuid, name, paths, methods, ttl_days}, app_service_token_list {app_uuid} and app_service_token_revoke {app_uuid, token_id}. Give the value to the sender once and store it nowhere else:

curl -X POST https://<slug>.tbfy.app/hook \
  -H 'X-Tabbify-App-Token: <token>' -d '{"event":"ping"}'

A token made for /hook and POST opens that call; the same token on /admin is refused.

Getting a public URL

You don't wire any of this up by hand. When you deploy from a git push, the pipeline clones and builds your repo, runs it as a Firecracker microVM, and the runner binds its derived app_ula. The node already knows how to reach that address, so the app is live the moment the runner is healthy:

  1. git push triggers the deploy pipeline; the supervisor spawns a runner that binds [app_ula]:8730.
  2. A request to https://<slug>.tbfy.app/ goes through CloudFront and the edge to the node, and over the mesh to the runner.

Custom domains and TLS

A tenant can attach a custom hostname to an application through the current domain workflow. Follow the DNS target and verification instructions shown by the console or API. After validation, the public edge serves the hostname with TLS and forwards it to the same application route. The path is not rewritten and no X-Forwarded-Prefix is sent.

Custom ingress does not add application authentication. If a route contains private data or mutations, enforce authentication and authorization in the application.

The deterministic address solves application routing; it does not imply a particular transport: the mesh uses a direct path when it can and the managed relay otherwise. See Private Mesh.