TurboPanel Docs
Database

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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
optionsjsonbnoExternal port per listener under ports (postgres, mysql, http, https); absent = the listen port, null = not reachable here.
organization_iduuidyesOrganization that owns the server, copied from it on save; entries cascade away with the organization.
server_iduuidyesThe server this entry belongs to; entries cascade away when the server is deleted.
datacenter_iduuidnoThe datacenter whose address this entry names; set if and only if scope = 'datacenter'; cascades away with the datacenter.
scopetextyesWhich side of the server this entry describes: public, or datacenter for one datacenter the server belongs to.
hostnamevarchar(253)noOptional DNS name clients type, lower case and always containing a dot; it fills connection strings and goes on the database certificate.
address_v4inetnoOptional 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_v6inetnoOptional IPv6 address clients use when it is not the server's own; NULL = the server's own address on that side.
is_primarybooleanyesTrue 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoNon-secret descriptors written by the panel; no keys are read by the platform today.
optionsjsonbnoWritten 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_iduuidyesParent carrier row (on delete cascade).
secret_iduuidyesThe sealed token in secret, one badge per secret; a secret under a badge cannot be deleted alone, so a badge is removed with it.
statustextyesactive while the last check succeeded, attention once a check was refused or failed.
labeltextyesOperator label for the token, shown beside its last four characters.
capabilitiesjsonbyesLast check result written by the panel: tunnels (boolean, account-wide) and dns and certificates (lists of zone id and name the token reaches).
last_fourtextyesLast 4 characters of the token, the only part of it ever shown; never enough to use the token.
last_checked_attimestamp(3) with time zonenoWhen the panel last checked the token with the provider; NULL until then.
expires_attimestamp(3) with time zonenoWhen 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
server_iduuidyesThe server this state belongs to; one row per server, cascade-deleted with it.
modetextyesobserve shows the ruleset and applies nothing (the default), managed enforces it and off leaves the firewall alone.
generationintegeryesRises by one each time the desired ruleset changes, so a host can tell a stale push from a current one.
last_digesttextnoThe sha256 hex the host last reported for its rendered rulesets; the drift key.
last_resultjsonbnoWhat the host last answered: applied or refused, the rule count and any warnings; null before any report.
last_kindtextnoWhich kind of record last_result holds: preview, apply or remove; the firewall sweep filters on it, and it is null before any record.
statetextyesidle, pending (awaiting confirmation), confirmed or rolled_back (undone by the host guard).
deadline_attimestamp(3) with time zonenoWhen the host guard undoes an unconfirmed ruleset; null unless state is pending.
last_applied_attimestamp(3) with time zonenoWhen the host last applied a ruleset; null before the first.
confirmed_attimestamp(3) with time zonenoWhen 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoNon-secret descriptors written by the panel; no keys are read by the platform today.
optionsjsonbnoProvider-specific non-secret details from the provider (for example the account name); no keys are read by the platform today.
organization_iduuidyesParent organization row (on delete cascade).
nametextyesOperator label for the account; unique only together with the provider and account id.
statustextyesactive while a token on it works, attention when none does.
providertextyesTunnel provider, cloudflare for now; widened by a forward migration.
external_account_idtextnoThe 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoFree-form jsonb returned by the datacenter API; no control-plane code path writes or interprets any key on it today.
optionsjsonbnoOperator settings jsonb: sshPort, ntp, timezone defaults and the location override; the routing policy lives in real columns.
organization_iduuidyesParent organization row (on delete cascade).
nametextnoOperator-chosen display name; also seeded onto the site network row created together with the datacenter.
kindtextnoWhat the network is: lan, backplane or provider_private; NULL means the operator never said.
descriptiontextnoOptional operator free-text note about the datacenter.
priorityintegeryesRouting-ladder rank among a server's datacenters, 0 to 1000, lower wins, default 100 (API field priority).
address_preferencetextyesAddress family tried first among a server's pins here, ipv6 (default) or ipv4 (API field options.addressPreference).
is_trustedbooleanyesTrue 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoNon-secret descriptors written by the panel; no keys are read by the platform today.
optionsjsonbnoProvider-specific route details; no keys are read by the platform today.
routing_organization_iduuidyesOrganization whose servers answer for this name, named as on hostname; half of the unique key with the name.
tunnel_iduuidyesParent tunnel row (on delete cascade).
hosting_iduuidnoThe site this name serves; SET NULL when the site is deleted, leaving the doorway unattached.
kindtextyesKind of traffic carried, http for now; ssh, rdp, vnc and tcp are added by a forward migration.
statustextyespending until route and DNS name exist, live, attention after a provider error, removing while being taken down.
hostnametextyesLower-case DNS name (1 to 253 characters) the tunnel carries; unique per routing organization.
external_dns_record_idtextnoThe provider id of the DNS record the panel created for this name; NULL until created.
is_local_onlybooleanyesTrue (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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
organization_iduuidyesOwning organization; cascade-deletes the rule with the org.
server_iduuidnoThe one server the rule applies to; null means every server in the organization.
created_byuuidnoUser who created the rule; null once that user is deleted.
labeltextyesOperator label shown in the console, also sent to the host as the rule's comment, so it uses the comment alphabet.
scopetextyeshost for the host's own listeners or published for a port Docker publishes for a container.
actiontextyesaccept allows, drop blocks silently and reject blocks and tells the sender.
prototextyestcp, udp or any; ports are meaningful only for tcp and udp.
portstextnoOne port or an inclusive ascending range such as 5432-5440; null means every port, which only a block may say.
source_kindtextyesWho the rule is about: any, servers (the organization's other servers), datacenter, fabric or addresses.
source_addressesinet[]yesExplicit addresses or CIDRs, one to 256 of them; only for source_kind addresses, empty for every other kind.
is_enabledbooleanyesFalse 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoFree-form jsonb; no control-plane code path writes or reads it today.
optionsjsonbnoMesh policy jsonb: containerPool (relay prefix pool, default 10.192.0.0/12), listenPort (default 51821), mtu (1280..9000, default 1420), allowRelay.
organization_iduuidyesParent organization row (on delete cascade).
nametextnoOptional display name (1..255 chars of letters, digits, space, dot, underscore, dash); no control-plane code path writes it today.
cidrcidryesHost 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_enabledbooleanyesFalse 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoPin markers written by the automatic repin pass: repin (at, from = previous address) and stale (since, reason) when no clear replacement exists.
optionsjsonbnoFree-form jsonb accepted on address create and echoed by the API; no control-plane code path interprets any key on it.
organization_iduuidyesParent organization row (on delete cascade).
datacenter_iduuidnoDatacenter this address belongs to; required when scope = 'datacenter', null on public addresses; rows cascade away when the datacenter is deleted.
network_iduuidnoSite 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_iduuidnoServer holding this address; null marks a datacenter free-pool row, non-null together with datacenter_id makes a membership pin; server delete is restricted.
addressinetyesIPv4 or IPv6 address (inet, unique per organization); the family is derived from it, not stored; immutable after create except via the automatic repin pass.
allocationtextyesOperator-chosen consumer model, dedicated (one consumer) or shared; immutable after create, and pins made by the datacenter routes are always dedicated.
scopetextyesReachability class, public (world-reachable) or datacenter (inside one of the org's site subnets, datacenter_id required); immutable after create.
descriptiontextnoOptional operator note and the only editable field on an address; addresses are identified by address, never named.
repin_pending_fanout_attimestamp(3) with time zonenoSet 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoFree-form client jsonb that the networks API accepts; also read as a legacy fallback for metadata.dockerNetworkName when options lacks it.
optionsjsonbnoKind-specific jsonb: dockerNetworkName plus optional subnet, ipRange, gateway, mtu on docker rows; dockerNetworkName (row UUID) on compose/managed.
organization_iduuidyesParent organization row (on delete cascade).
datacenter_iduuidnoOwning datacenter, required and only allowed on kind = 'datacenter' site CIDR rows (a datacenter may own several); datacenter delete is restricted meanwhile.
server_iduuidnoOptional host pin allowed only on kind = 'docker' external Docker registrations (null = org-wide); every other kind must leave it null.
environment_iduuidnoOptional environment pin for kind = 'compose' spanning networks (null = org-shared); set null when the environment is deleted so the row survives.
namevarchar(255)noDisplay name; operator-set on docker and reserved rows, seeded from the datacenter name on site rows, and the Compose network key on compose rows.
kindtextyesRow kind: datacenter (site CIDR), docker (external Docker network), compose (TurboFabric spanning network), managed (one per org) or reserved.
cidrcidrnoRegistered range: required on datacenter and reserved rows, mirrored from options.subnet on docker rows, null on managed; checked for collisions.
compose_keytextnoCompose 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoNon-secret descriptors written by the panel; no keys are read by the platform today.
optionsjsonbnoPer-server details such as a local endpoint; no keys are read by the platform today.
tunnel_iduuidyesParent tunnel row (on delete cascade).
server_iduuidyesParent server row (on delete cascade).
wantedtextyesrun when the server carries a connector, skip when an all tunnel leaves it out; chosen is the run rows.
reportedtextyesWhat the server last reported: unknown (default), connected, down or error.
last_seen_attimestamp(3) with time zonenoWhen the server last reported on the connector; NULL until the first report.
last_errortextnoPlain-words error from the last failed report; NULL when none.
connector_versiontextnoVersion of the connector program the daemon reports running here; NULL until the first report.
version_checked_attimestamp(3) with time zonenoWhen 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
organization_iduuidnoOrganization whose name it is; NULL for the control plane own names, which use an ingress account.
carrier_iduuidnoOrganization provider account that serves it; a carrier that still has tunnels cannot be deleted.
ingress_iduuidnoInstall-level provider account for the control plane own names; set exactly when carrier_id is not.
nametextyesFully qualified record name in lower case.
kindtextyesRecord type: A, AAAA or CNAME.
statustextyespending, synced, drifted, removing or failed, as the drift check last found it.
providertextyesProvider that holds the record; cloudflare only for now.
zone_idtextyesProvider zone id the record lives in.
external_idtextnoProvider record id; NULL until the provider created it, unique per provider zone.
contenttextyesRecord value, 1 to 253 characters: an address for A and AAAA, a host name for CNAME.
ttlintegernoTime to live in seconds, 1 to 86400; NULL leaves the provider automatic value.
checked_attimestamp(3) with time zonenoWhen the drift check last compared the record with the provider.
errortextnoLast provider error in plain words; NULL after a success.
is_proxiedbooleanyesWhether the provider proxy fronts the record, as for a tunnel CNAME.
is_adoptedbooleanyesTrue 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoControl-plane reconcile stamps: appliedPayloadHash, appliedAt, observed (peers the daemon saw) and diagnostics-only paths (selected path per peer).
optionsjsonbnoRelay policy jsonb merged by PATCH: allowRelay (true or false, null inherits the org and may only tighten) and preferredGatewayIds (ordered, deduped).
fabric_iduuidyesParent fabric row (on delete cascade).
server_iduuidyesMember server, unique per fabric; delete is restricted, so deleteServerFabricMembership must remove the relay and its subnets first.
kindtextyesPeer kind, server (an org server, the only kind built) or external (reserved for a person's device; nothing writes it yet).
addressinetyesAllocated tp0 host address (inet) carved from fabric.cidr, unique per fabric and rendered as a /32 host route in peer AllowedIPs.
roletextyesMesh role, gateway (advertises advertised_cidrs to remote peers, must belong to a datacenter with a subnet) or member (host route only, the default).
keepaliveintegernoOperator WireGuard PersistentKeepalive in seconds (1..65535); null means auto, which is 25 s on direct_nat paths and none otherwise.
endpoint_addressinetnoOperator endpoint override (inet, no port); null means the path planner derives the endpoint from datacenter, public and daemon-reported addresses.
public_keytextnoServer's WireGuard public key, stamped by the control plane from the first successful server.fabric.reconcile result; null until then, unique per fabric.
prefixcidryesContainer aggregate CIDR (a /16 from fabric.options.containerPool) allocated to this server and forwarded over tp0; per-network subnets are carved from it.
advertised_cidrscidr[]yesOperator-configured LAN CIDRs a gateway relay advertises to remote peers (native cidr[], host bits cleared); must be empty when role = 'member'.
preshared_keytextnoSealed 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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoFree-form jsonb; no control-plane code path writes or reads it today.
network_iduuidyesSpanning network (kind = 'compose' row) this per-server subnet realizes, unique together with server_id; rows cascade away with the network.
server_iduuidyesServer hosting this segment; delete is restricted, so deleteServerFabricMembership removes the subnets first.
cidrcidryesServer-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.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoNon-secret descriptors written by the panel; no keys are read by the platform today.
optionsjsonbnoProvider-specific tunnel settings; no keys are read by the platform today.
organization_iduuidyesParent organization row (on delete cascade).
routing_organization_iduuidyesOrganization whose servers and sites the tunnel carries; equal to organization_id for now, enforced in code only.
carrier_iduuidnoParent carrier row (on delete no action).
datacenter_iduuidnoParent datacenter row (on delete set null).
secret_iduuidnoThe sealed run token in secret; SET NULL if that row goes, NULL for a provider that needs none.
nametextyesOperator name, unique per organization.
statustextyespending until created, active, attention after a provider error, removing while being taken down.
providertextyesTunnel provider, cloudflare for now; widened by a forward migration.
external_idtextnoThe provider own tunnel id; NULL until the provider created it.
placementtextyesone (exactly one run portal), chosen (the run portals) or all (every server of the datacenter except the skip portals; needs datacenter_id).
Edit on GitHub

Last updated on

On this page