TurboPanel Docs
Database

Access, Audit and Configuration

Authorization grants, the audit ledger, instance-wide settings and the global lease table the schedulers coordinate through.

Tables in this group: audit, certificate, ingress, lease, origin, permission, setting.

audit

Append-only trail of security-relevant operator actions (rows never updated or deleted, no updated_at), written by recordAudit after the action succeeded.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
organization_iduuidnoOrganization the action belongs to, which the org-scoped read filters on; null for an instance-wide action such as a superadmin editing an org-less forge.
actor_user_iduuidnoUser who acted, a plain id with no FK so it survives the account's deletion; null only for an action the platform took on nobody's behalf.
actor_emailtextnoActor's email denormalised at write time so the trail still names who acted after the account is deleted.
actiontextyesDot-joined subject and verb from AUDIT_ACTIONS (such as server.delete, grant.create, organization.acme.set); a label only, not CHECKed so it can grow.
target_typetextyesWhat the action was done to: organization, server, forge, or the entity_type of the grant being created or deleted.
target_iduuidnoId of the target row when there is one (server, forge, organization or grant entity); nullable and without an FK so the trail outlives the target.
contextjsonbnoSmall non-secret JSON facts kept beside the action, such as purged, acmeEnabled, deployHooksEnabled or the grant details; never a credential.

certificate

Uploaded control-plane certificate pair; several origin rows may reference one pair when its names cover them.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
kindtextyesuploaded for an operator upload, acme-dns-01 for a pair the control plane issued itself over DNS-01; issued pairs are never listed as uploads.
labeltextyesOperator-chosen name for the uploaded pair, shown in the admin certificate list.
cert_pemtextyesPublic certificate PEM, chain allowed; the leaf is parsed for names and expiry when the pair is stored.
key_pemtextyesPrivate key PEM sealed as a tpsecret envelope; the admin API never returns it.
dns_namesjsonbyesJSON array of DNS names and IP addresses parsed from the leaf, used to test which hostnames the pair covers.
not_aftertimestamp(3) with time zoneyesLeaf expiry copied from the parsed certificate when the pair is stored.

ingress

One install-level provider account for the control plane's own names, used by edge modes for tunnels, DNS and certificates.

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.
created_by_user_iduuidnoSuperadmin who added this account; NULL after that user is deleted.
providertextyesProvider of this account: cloudflare or bunny.
labeltextyesOperator-chosen name shown in the admin screens.
account_idtextnoProvider account id (for example the Cloudflare account); NULL when the provider has none.
zone_idsjsonbyesJSON array of provider zone ids this account may change, written by the superadmin who adds it.
token_envelopetextyesProvider API token sealed as a tpsecret envelope; held inline because secret requires an organization, and never returned by the admin API.
scopesjsonbnoLast preflight result written by the panel: whether the token can manage tunnels and DNS, and when it was checked.
last_verified_attimestamp(3) with time zonenoWhen the panel last confirmed the token works; NULL until a check runs.
last_errortextnoLast provider error for this account; NULL when the last check succeeded.

lease

Cross-isolate compare-and-swap lease: one row per name (plus organization for the billing lock) with an owner token and expires_at; four callers share it.

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_iduuidnoNull for the three global leases, set for the per-organization BILLING_QUANTITY_LOCK; unique with name under NULLS NOT DISTINCT so one global row per name.
nametextyesLease name: OFFLINE_SWEEP_LOCK, LEAF_RENEWAL_SWEEP_LOCK and REENCRYPT_SWEEP_LOCK are global, BILLING_QUANTITY_LOCK is per organization.
ownertextyesRandom UUID minted by the holder and checked on every steal or release; empty string plus expired expires_at is a release tombstone (offline, leaf).
expires_attimestamp(3) with time zoneyesMoment the hold lapses and the row becomes stealable (TTL 60 s billing, 90 s offline sweep, 120 s leaf renewal and reencrypt); extended or reset by the holder.
cursorjsonbnoKeyset resume point (notAfter, id) written only by the leaf-renewal sweep and compared on every steal with owner and expires_at; null elsewhere.

origin

One control-plane public name operators publish, with its certificate source and any Let's Encrypt attempt state.

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.
uploaded_cert_iduuidnoPair (certificate.id) this name serves: the upload when source is uploaded (required), or the issued pair when source is acme-dns-01; otherwise NULL.
ingress_iduuidnoParent ingress row (on delete set null).
hosttextyesNormalized public URL entry (origin, host, or host:port) in the form public URL parsing already stores.
sourcetextyesCertificate source for this name: platform-ca, uploaded, acme-http-01 (Let's Encrypt over HTTP-01) or acme-dns-01 (Let's Encrypt over DNS-01).
acme_last_attempt_attimestamp(3) with time zonenoWhen this instance last tried Let's Encrypt for this name; NULL until an attempt runs.
acme_last_errortextnoLast Let's Encrypt error for this name; NULL when the last attempt succeeded or none has run.
not_aftertimestamp(3) with time zonenoLeaf expiry for this name when known; NULL for platform-ca and for Let's Encrypt before a leaf exists.
modetextyesHow visitors reach this name: direct, lan-only, cloudflare-tunnel, cloudflare-proxy, bunny-proxy, private-overlay or passthrough.
public_portintegeryesPort visitors use for this name (1 to 65535); the control plane itself always listens on 8443.
ingress_statejsonbnoProvider state for this name, such as tunnel id, DNS record id and last status; the shape depends on mode and the provider writes it.
acme_statejsonbnoDNS-01 order and renewal progress for an acme-dns-01 name (stage, attempts, retry and renewal times, alerts sent); holds no key or token, NULL otherwise.
is_primarybooleanyesTrue for the one name used for links, sign-in callbacks and the default install URL; a partial unique index allows at most one row.
is_daemon_dialbooleanyesWhether install commands and the daemon URL list may name this hostname; false keeps it for people only.

permission

Allow-only ACL row: one positive grant of permission from a subject (actor_type, actor_id) on an entity; written by access routes, invitations, install.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
actor_typetextyesSubject kind holding the grant: user, team or organization (SUBJECT_TYPES in src/client/authz/catalog.ts).
actor_iduuidyesId of the subject row named by actor_type (a user, team or organization id); no FK because the referenced table varies.
entity_typetextyesKind of the entity granted on: a resource-tree kind or team (GRANT_ENTITY_TYPES); principal and repository are deliberately excluded.
entity_iduuidyesId of the entity row named by entity_type; no FK because the referenced table varies, and ancestry is resolved from the domain tables at evaluation time.
permissiontextyesGrantable permission key: organization:own, organization:manage, team:own, team:manage, system:read or system:operate; never system:manage.

setting

Instance-wide key/value store: one row per upper-case key with a JSON value, written by the settings resolvers, install state and the billing side-ledgers.

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.
keytextyesUnique upper-case key such as SYSTEM_EMAIL, SYSTEM_AUTH_PROVIDERS, IS_SIGNUP_ENABLED, or BILLING_PENDING_CHANGES: followed by an organization id.
valuejsonbyesJSON value for the key (scalar, array or object); any secret inside it is stored only as a sealed tpsecret envelope, never in plaintext.
Edit on GitHub

Last updated on

On this page