TurboPanel Docs
Database

Storage and Secrets

Storage volumes, their copies and mounts, and the sealed secret envelopes.

Tables in this group: archive, copy, mount, secret, storage.

archive

One completed storage-copy backup artifact recorded from a daemon report; unique per (copy_id, backup_id), cascades with the copy.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
copy_iduuidyesParent copy row (on delete cascade).
retention_iduuidnoThe retention whose scheduled run made this artifact; null for a manual backup or once that retention is deleted.
origintextyesbackup when a backup run made the file, import when it was brought in to be restored; existing rows are backup.
backup_idtextyesDaemon-minted bk_ plus hex token that is also the artifact filename on the host; unique per storage copy, not globally.
size_bytesbigintyesArtifact size in bytes as reported by the daemon after writing the archive; re-checked before a restore.
checksumtextyesLowercase SHA-256 hex digest of the artifact computed by the daemon; a restore refuses on mismatch.
pathtextyesArtifact path relative to the backup root of the copy's server (volumes/ plus the copy id, then the file).

copy

One physical copy of a storage identity (docker volume or host path today); one primary per storage, local copies pin server_id, remote ones leave it null.

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 passed through from the copy API; no keys are read by the platform today.
optionsjsonbnoProvider options: compose-registered docker copies carry managed (true when Compose owns the volume) and externalName for external volumes.
storage_iduuidyesParent storage row (on delete cascade).
server_iduuidnoHost holding a local docker or path copy, unique with storage and provider; null for remote/shared providers; ON DELETE RESTRICT.
secret_iduuidnoOptional provider credential from secret for remote providers; ON DELETE RESTRICT; unused by the docker and path providers.
providertextyesdocker or path today; block, nfs, cifs, s3, s3_compatible, sftp, ftp and webdav are reserved and not accepted by the API.
roletextyesprimary (one per storage; anchors the access-mode placement check), replica, scratch (never mountable) or archive.
statetextyesMaterialization state: pending, materializing, ready, syncing, stale, failed or retiring; set via the API, defaults to pending.
pathtextnoHost filesystem path for a path copy; null means the platform layout or the principal's volumes directory is resolved at deploy and never persisted.
endpointtextnoRemote endpoint for network providers; API passthrough, unused by docker and path copies.

mount

Attachment of a storage identity inside one compose service at a container path; unique (service_id, destination_path), written by the storage API and compose.

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 settable through the mount API; no keys are read by the platform today.
optionsjsonbnoReserved jsonb; no current code path writes it.
storage_iduuidyesParent storage row (on delete cascade).
service_iduuidyesConsuming compose service; ON DELETE RESTRICT, so compose unregister clears mounts in the same transaction as the service reconcile.
destination_pathtextyesContainer path the storage is mounted at, unique per service.
subpathtextnoOptional subdirectory of the storage to mount instead of its root; forwarded to the daemon when non-empty.
is_read_onlybooleanyesMount the storage read-only in the container (API field readOnly); default false.

secret

Org-owned sealed secret for storage providers and git deploy keys; secret_envelope is one tpsecret payload, written today only by the deploy-key route.

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; for git_deploy_key rows: publicKey, fingerprint and keyType (ed25519).
organization_iduuidyesParent organization row (on delete cascade).
principal_iduuidnoOptional association with a principal (SET NULL on delete so a principal delete never fails on an org secret); no current writer sets it.
nametextyesOperator label for the secret; not an identifier and not unique.
providertextyess3, s3_compatible, nfs, cifs, sftp, ftp, webdav (reserved), git_deploy_key, carrier_badge or tunnel_run (tunnel tokens).
secret_envelopetextyestpsecret envelope of provider-specific JSON; for git_deploy_key the sealed plaintext is the OpenSSH private key verbatim, resealed unopened for the daemon.

storage

Logical identity of persistent data owned by an organization and scoped to at most one of workspace, project, environment or service; bytes live on copy rows.

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 from the API; dockerVolumeName is stamped to the storage UUID on volume create because the Docker volume name is the storage id.
optionsjsonbnoFree-form jsonb passed through from the storage API; no keys are read by the platform today.
organization_iduuidyesOwning organization stored directly (an intentional exception to derived ownership); cascade-deletes the storage with the org.
workspace_iduuidnoOptional workspace scope, at most one scope column may be set; SET NULL on delete so a retain row survives as org-owned storage.
project_iduuidnoOptional project scope, at most one scope column may be set; SET NULL on delete so a retain row survives as org-owned storage.
environment_iduuidnoOptional environment scope (compose volumes are environment-scoped), at most one scope column set; SET NULL on delete so retain rows survive.
service_iduuidnoOptional service scope, at most one scope column may be set; SET NULL on delete so a retain row survives as org-owned storage.
principal_iduuidnoOptional owning system principal; path copies without an explicit path resolve under that principal's volumes directory; SET NULL on delete.
namevarchar(255)yesOperator label, or the Compose volume key for auto-registered volumes; up to 255 chars with no charset CHECK.
slugtextnoFolder name of a panel-owned volume under the site owner tree; set at creation, locked once a folder row exists, NULL until set.
kindtextyesvolume (named Docker volume), directory, file (sealed content) or object (reserved, not accepted by the API).
access_modetextyessingle_writer (default), multi_reader or multi_writer; single_writer refuses a deploy scheduled on a server other than the primary copy's.
retentiontextyesretain (default) keeps the row as org-owned when its scope parent is deleted; delete removes it with the parent.
content_envelopetextnoSealed file content for kind='file' entries (tpsecret at rest, resealed to tpdaemon at deploy); up to 256 KiB plaintext; null otherwise.
compose_volume_keytextnoCompose top-level volume key for auto-registered volume rows; unique per environment and the idempotency key for compose volume registration.
is_commonbooleanyesTrue when the volume folder is in the common scope shared by every environment; chosen at creation and never changed.
Edit on GitHub

Last updated on

On this page