Networking
Datacenters as logical routing domains, the org network registry, managed addresses, and the TurboFabric mesh (fabric, relays, subnets).
Tables in this group: address, badge, bulwark, carrier, datacenter, doorway, edict, fabric, ip, network, portal, record, relay, subnet, tunnel.
address
An address clients use to reach a server, set by an operator: one public entry per server and one per datacenter the server belongs to.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
options | jsonb | no | External port per listener under ports (postgres, mysql, http, https); absent = the listen port, null = not reachable here. |
organization_id | uuid | yes | Organization that owns the server, copied from it on save; entries cascade away with the organization. |
server_id | uuid | yes | The server this entry belongs to; entries cascade away when the server is deleted. |
datacenter_id | uuid | no | The datacenter whose address this entry names; set if and only if scope = 'datacenter'; cascades away with the datacenter. |
scope | text | yes | Which side of the server this entry describes: public, or datacenter for one datacenter the server belongs to. |
hostname | varchar(253) | no | Optional DNS name clients type, lower case and always containing a dot; it fills connection strings and goes on the database certificate. |
address_v4 | inet | no | Optional IPv4 address clients use when it is not the server's own, such as a router; NULL = the server's own address on that side. |
address_v6 | inet | no | Optional IPv6 address clients use when it is not the server's own; NULL = the server's own address on that side. |
is_primary | boolean | yes | True on the entry that fills the main connection string, at most one per server; with none marked the public entry is used. |
badge
One API token on a carrier; the token itself is sealed in the secret row it points to and this row keeps the label, last four characters and what it can do.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Non-secret descriptors written by the panel; no keys are read by the platform today. |
options | jsonb | no | Written by each check: kind (account or user, who owns the token), tokenId (the provider own token id, to catch the same token added twice) and extras. |
carrier_id | uuid | yes | Parent carrier row (on delete cascade). |
secret_id | uuid | yes | The sealed token in secret, one badge per secret; a secret under a badge cannot be deleted alone, so a badge is removed with it. |
status | text | yes | active while the last check succeeded, attention once a check was refused or failed. |
label | text | yes | Operator label for the token, shown beside its last four characters. |
capabilities | jsonb | yes | Last check result written by the panel: tunnels (boolean, account-wide) and dns and certificates (lists of zone id and name the token reaches). |
last_four | text | yes | Last 4 characters of the token, the only part of it ever shown; never enough to use the token. |
last_checked_at | timestamp(3) with time zone | no | When the panel last checked the token with the provider; NULL until then. |
expires_at | timestamp(3) with time zone | no | When the provider says the token stops working; NULL when it reports none. |
bulwark
One server's firewall state: its mode, the generation last sent, what the host last answered, and whether the last ruleset was kept.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
server_id | uuid | yes | The server this state belongs to; one row per server, cascade-deleted with it. |
mode | text | yes | observe shows the ruleset and applies nothing (the default), managed enforces it and off leaves the firewall alone. |
generation | integer | yes | Rises by one each time the desired ruleset changes, so a host can tell a stale push from a current one. |
last_digest | text | no | The sha256 hex the host last reported for its rendered rulesets; the drift key. |
last_result | jsonb | no | What the host last answered: applied or refused, the rule count and any warnings; null before any report. |
last_kind | text | no | Which kind of record last_result holds: preview, apply or remove; the firewall sweep filters on it, and it is null before any record. |
state | text | yes | idle, pending (awaiting confirmation), confirmed or rolled_back (undone by the host guard). |
deadline_at | timestamp(3) with time zone | no | When the host guard undoes an unconfirmed ruleset; null unless state is pending. |
last_applied_at | timestamp(3) with time zone | no | When the host last applied a ruleset; null before the first. |
confirmed_at | timestamp(3) with time zone | no | When the last ruleset was confirmed as keeping the host reachable; null before the first. |
carrier
A provider account an organization connected for tunnels; its API tokens are badge rows and nothing secret is stored here.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Non-secret descriptors written by the panel; no keys are read by the platform today. |
options | jsonb | no | Provider-specific non-secret details from the provider (for example the account name); no keys are read by the platform today. |
organization_id | uuid | yes | Parent organization row (on delete cascade). |
name | text | yes | Operator label for the account; unique only together with the provider and account id. |
status | text | yes | active while a token on it works, attention when none does. |
provider | text | yes | Tunnel provider, cloudflare for now; widened by a forward migration. |
external_account_id | text | no | The provider own account id; NULL for a provider with no account concept (rows with NULL never collide). |
datacenter
Logical routing domain (not a building) of mutually routable private subnets, operator-created per org; a server may belong to zero or many via ip pins.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Free-form jsonb returned by the datacenter API; no control-plane code path writes or interprets any key on it today. |
options | jsonb | no | Operator settings jsonb: sshPort, ntp, timezone defaults and the location override; the routing policy lives in real columns. |
organization_id | uuid | yes | Parent organization row (on delete cascade). |
name | text | no | Operator-chosen display name; also seeded onto the site network row created together with the datacenter. |
kind | text | no | What the network is: lan, backplane or provider_private; NULL means the operator never said. |
description | text | no | Optional operator free-text note about the datacenter. |
priority | integer | yes | Routing-ladder rank among a server's datacenters, 0 to 1000, lower wins, default 100 (API field priority). |
address_preference | text | yes | Address family tried first among a server's pins here, ipv6 (default) or ipv4 (API field options.addressPreference). |
is_trusted | boolean | yes | True when the operator controls the datacenter's L2 (default); false keeps server-to-server traffic off it (API field trusted). |
doorway
One hostname a tunnel carries to a site, with the provider route and DNS record ids; unique per routing organization, like hostname.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Non-secret descriptors written by the panel; no keys are read by the platform today. |
options | jsonb | no | Provider-specific route details; no keys are read by the platform today. |
routing_organization_id | uuid | yes | Organization whose servers answer for this name, named as on hostname; half of the unique key with the name. |
tunnel_id | uuid | yes | Parent tunnel row (on delete cascade). |
hosting_id | uuid | no | The site this name serves; SET NULL when the site is deleted, leaving the doorway unattached. |
kind | text | yes | Kind of traffic carried, http for now; ssh, rdp, vnc and tcp are added by a forward migration. |
status | text | yes | pending until route and DNS name exist, live, attention after a provider error, removing while being taken down. |
hostname | text | yes | Lower-case DNS name (1 to 253 characters) the tunnel carries; unique per routing organization. |
external_dns_record_id | text | no | The provider id of the DNS record the panel created for this name; NULL until created. |
is_local_only | boolean | yes | True (the default) when the web server answers this name only for the local connector and datacenter peers. |
edict
One firewall rule an operator typed, in the wire contract words; rules derived from what is deployed are computed per server and never stored here.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
organization_id | uuid | yes | Owning organization; cascade-deletes the rule with the org. |
server_id | uuid | no | The one server the rule applies to; null means every server in the organization. |
created_by | uuid | no | User who created the rule; null once that user is deleted. |
label | text | yes | Operator label shown in the console, also sent to the host as the rule's comment, so it uses the comment alphabet. |
scope | text | yes | host for the host's own listeners or published for a port Docker publishes for a container. |
action | text | yes | accept allows, drop blocks silently and reject blocks and tells the sender. |
proto | text | yes | tcp, udp or any; ports are meaningful only for tcp and udp. |
ports | text | no | One port or an inclusive ascending range such as 5432-5440; null means every port, which only a block may say. |
source_kind | text | yes | Who the rule is about: any, servers (the organization's other servers), datacenter, fabric or addresses. |
source_addresses | inet[] | yes | Explicit addresses or CIDRs, one to 256 of them; only for source_kind addresses, empty for every other kind. |
is_enabled | boolean | yes | False keeps the rule but leaves it out of the ruleset sent to hosts. |
fabric
Org TurboFabric WireGuard mesh (tp0), at most one row per organization; absent means off, is_enabled = false means paused; never holds private keys.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Free-form jsonb; no control-plane code path writes or reads it today. |
options | jsonb | no | Mesh policy jsonb: containerPool (relay prefix pool, default 10.192.0.0/12), listenPort (default 51821), mtu (1280..9000, default 1420), allowRelay. |
organization_id | uuid | yes | Parent organization row (on delete cascade). |
name | text | no | Optional display name (1..255 chars of letters, digits, space, dot, underscore, dash); no control-plane code path writes it today. |
cidr | cidr | yes | Host tp0 address range that relay address values are carved from, auto-picked at enable to avoid every occupied org range (default 10.250.0.0/16). |
is_enabled | boolean | yes | False while the mesh is paused: every tunnel is down but relays, keys and container networks are kept so turning it back on is instant. |
ip
Single registry of every managed address per org, one row per address: public VPS addresses, datacenter free-pool rows and per-server membership pins.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Pin markers written by the automatic repin pass: repin (at, from = previous address) and stale (since, reason) when no clear replacement exists. |
options | jsonb | no | Free-form jsonb accepted on address create and echoed by the API; no control-plane code path interprets any key on it. |
organization_id | uuid | yes | Parent organization row (on delete cascade). |
datacenter_id | uuid | no | Datacenter this address belongs to; required when scope = 'datacenter', null on public addresses; rows cascade away when the datacenter is deleted. |
network_id | uuid | no | Site subnet the address sits in; required on a membership pin (scope = 'datacenter' plus server_id), null on public and free-pool rows, set null on delete. |
server_id | uuid | no | Server holding this address; null marks a datacenter free-pool row, non-null together with datacenter_id makes a membership pin; server delete is restricted. |
address | inet | yes | IPv4 or IPv6 address (inet, unique per organization); the family is derived from it, not stored; immutable after create except via the automatic repin pass. |
allocation | text | yes | Operator-chosen consumer model, dedicated (one consumer) or shared; immutable after create, and pins made by the datacenter routes are always dedicated. |
scope | text | yes | Reachability class, public (world-reachable) or datacenter (inside one of the org's site subnets, datacenter_id required); immutable after create. |
description | text | no | Optional operator note and the only editable field on an address; addresses are identified by address, never named. |
repin_pending_fanout_at | timestamp(3) with time zone | no | Set by the automatic repin apply pass when a pin moved address, cleared by the maintenance sweep once the routing fan-out was enqueued; null = nothing pending. |
network
Org-owned network registry row of kind datacenter, docker, compose, managed or reserved; which scope FKs and cidr may be set is fixed per kind by a CHECK.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Free-form client jsonb that the networks API accepts; also read as a legacy fallback for metadata.dockerNetworkName when options lacks it. |
options | jsonb | no | Kind-specific jsonb: dockerNetworkName plus optional subnet, ipRange, gateway, mtu on docker rows; dockerNetworkName (row UUID) on compose/managed. |
organization_id | uuid | yes | Parent organization row (on delete cascade). |
datacenter_id | uuid | no | Owning datacenter, required and only allowed on kind = 'datacenter' site CIDR rows (a datacenter may own several); datacenter delete is restricted meanwhile. |
server_id | uuid | no | Optional host pin allowed only on kind = 'docker' external Docker registrations (null = org-wide); every other kind must leave it null. |
environment_id | uuid | no | Optional environment pin for kind = 'compose' spanning networks (null = org-shared); set null when the environment is deleted so the row survives. |
name | varchar(255) | no | Display name; operator-set on docker and reserved rows, seeded from the datacenter name on site rows, and the Compose network key on compose rows. |
kind | text | yes | Row kind: datacenter (site CIDR), docker (external Docker network), compose (TurboFabric spanning network), managed (one per org) or reserved. |
cidr | cidr | no | Registered range: required on datacenter and reserved rows, mirrored from options.subnet on docker rows, null on managed; checked for collisions. |
compose_key | text | no | Compose network key from the environment's document on kind = 'compose' rows (unique per environment), written by ensureComposeNetworkRow; null otherwise. |
portal
A server part in a tunnel: it runs a connector (run) or is left out (skip), with the connector state the server last reported.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Non-secret descriptors written by the panel; no keys are read by the platform today. |
options | jsonb | no | Per-server details such as a local endpoint; no keys are read by the platform today. |
tunnel_id | uuid | yes | Parent tunnel row (on delete cascade). |
server_id | uuid | yes | Parent server row (on delete cascade). |
wanted | text | yes | run when the server carries a connector, skip when an all tunnel leaves it out; chosen is the run rows. |
reported | text | yes | What the server last reported: unknown (default), connected, down or error. |
last_seen_at | timestamp(3) with time zone | no | When the server last reported on the connector; NULL until the first report. |
last_error | text | no | Plain-words error from the last failed report; NULL when none. |
connector_version | text | no | Version of the connector program the daemon reports running here; NULL until the first report. |
version_checked_at | timestamp(3) with time zone | no | When the daemon last reported the connector version; NULL until then. |
record
A DNS record TurboPanel created or adopted at a connected provider, so it never changes a record it does not own.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
organization_id | uuid | no | Organization whose name it is; NULL for the control plane own names, which use an ingress account. |
carrier_id | uuid | no | Organization provider account that serves it; a carrier that still has tunnels cannot be deleted. |
ingress_id | uuid | no | Install-level provider account for the control plane own names; set exactly when carrier_id is not. |
name | text | yes | Fully qualified record name in lower case. |
kind | text | yes | Record type: A, AAAA or CNAME. |
status | text | yes | pending, synced, drifted, removing or failed, as the drift check last found it. |
provider | text | yes | Provider that holds the record; cloudflare only for now. |
zone_id | text | yes | Provider zone id the record lives in. |
external_id | text | no | Provider record id; NULL until the provider created it, unique per provider zone. |
content | text | yes | Record value, 1 to 253 characters: an address for A and AAAA, a host name for CNAME. |
ttl | integer | no | Time to live in seconds, 1 to 86400; NULL leaves the provider automatic value. |
checked_at | timestamp(3) with time zone | no | When the drift check last compared the record with the provider. |
error | text | no | Last provider error in plain words; NULL after a success. |
is_proxied | boolean | yes | Whether the provider proxy fronts the record, as for a tunnel CNAME. |
is_adopted | boolean | yes | True when the record already existed at the provider and an owner adopted it. |
relay
One server's membership in an org TurboFabric mesh (one row per fabric and server), allocated by ensureFabricRelays; holds its tp0 address and peer config.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Control-plane reconcile stamps: appliedPayloadHash, appliedAt, observed (peers the daemon saw) and diagnostics-only paths (selected path per peer). |
options | jsonb | no | Relay policy jsonb merged by PATCH: allowRelay (true or false, null inherits the org and may only tighten) and preferredGatewayIds (ordered, deduped). |
fabric_id | uuid | yes | Parent fabric row (on delete cascade). |
server_id | uuid | yes | Member server, unique per fabric; delete is restricted, so deleteServerFabricMembership must remove the relay and its subnets first. |
kind | text | yes | Peer kind, server (an org server, the only kind built) or external (reserved for a person's device; nothing writes it yet). |
address | inet | yes | Allocated tp0 host address (inet) carved from fabric.cidr, unique per fabric and rendered as a /32 host route in peer AllowedIPs. |
role | text | yes | Mesh role, gateway (advertises advertised_cidrs to remote peers, must belong to a datacenter with a subnet) or member (host route only, the default). |
keepalive | integer | no | Operator WireGuard PersistentKeepalive in seconds (1..65535); null means auto, which is 25 s on direct_nat paths and none otherwise. |
endpoint_address | inet | no | Operator endpoint override (inet, no port); null means the path planner derives the endpoint from datacenter, public and daemon-reported addresses. |
public_key | text | no | Server's WireGuard public key, stamped by the control plane from the first successful server.fabric.reconcile result; null until then, unique per fabric. |
prefix | cidr | yes | Container aggregate CIDR (a /16 from fabric.options.containerPool) allocated to this server and forwarded over tp0; per-network subnets are carved from it. |
advertised_cidrs | cidr[] | yes | Operator-configured LAN CIDRs a gateway relay advertises to remote peers (native cidr[], host bits cleared); must be empty when role = 'member'. |
preshared_key | text | no | Sealed tpsecret envelope of the operator-set WireGuard preshared key; write-only, never returned by the API, resealed for the daemon at reconcile. |
subnet
Per-server realization of a kind = 'compose' spanning network, one row per network and server, written by ensureNetworkSubnet when spanning networks build.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Free-form jsonb; no control-plane code path writes or reads it today. |
network_id | uuid | yes | Spanning network (kind = 'compose' row) this per-server subnet realizes, unique together with server_id; rows cascade away with the network. |
server_id | uuid | yes | Server hosting this segment; delete is restricted, so deleteServerFabricMembership removes the subnets first. |
cidr | cidr | yes | Server-local Docker bridge subnet for the network, the lowest free /24 carved from the server's relay.prefix around org exclusions by requireSubnetCidr. |
tunnel
A tunnel an organization created: a named path from a provider edge to connectors on its servers; the sealed run token is a secret row.
| Column | Type | Required | Description |
|---|---|---|---|
id | uuid | yes | Primary key (uuidv7(), time-ordered). |
created_at | timestamp(3) with time zone | yes | Row creation time. |
updated_at | timestamp(3) with time zone | yes | Last write time; the ORM sets it to now() on every update. |
metadata | jsonb | no | Non-secret descriptors written by the panel; no keys are read by the platform today. |
options | jsonb | no | Provider-specific tunnel settings; no keys are read by the platform today. |
organization_id | uuid | yes | Parent organization row (on delete cascade). |
routing_organization_id | uuid | yes | Organization whose servers and sites the tunnel carries; equal to organization_id for now, enforced in code only. |
carrier_id | uuid | no | Parent carrier row (on delete no action). |
datacenter_id | uuid | no | Parent datacenter row (on delete set null). |
secret_id | uuid | no | The sealed run token in secret; SET NULL if that row goes, NULL for a provider that needs none. |
name | text | yes | Operator name, unique per organization. |
status | text | yes | pending until created, active, attention after a provider error, removing while being taken down. |
provider | text | yes | Tunnel provider, cloudflare for now; widened by a forward migration. |
external_id | text | no | The provider own tunnel id; NULL until the provider created it. |
placement | text | yes | one (exactly one run portal), chosen (the run portals) or all (every server of the datacenter except the skip portals; needs datacenter_id). |
Last updated on