Turntable

Configuration

Flags and environment variables supported today.

Formerly Longshore

For a few days this project was called Longshore. Nothing that ran under that name needs to change at once. Each old name still works, and most of them warn once at boot:

WasNowWhat happens
LONGSHORE_* environment variablesTURNTABLE_*Read as the new name, with one warning per variable. If both are set, TURNTABLE_* wins and a warning says so. A value that the image sets itself (TURNTABLE_HOST, TURNTABLE_DROP_PRIVILEGES) therefore beats an old LONGSHORE_HOST or LONGSHORE_DROP_PRIVILEGES you set: rename those two.
longshore.db in the data directoryturntable.dbRenamed on first start (with its -wal and -shm files) when turntable.db does not exist. Back up the volume before the first start of a new version.
__longshore_migrations table__turntable_migrationsRenamed in place (SQLite and Postgres), so no migration runs twice. A database with both tables is refused at boot with an error that names them.
ls_ and lsi_ tokenstt_ and tti_Both prefixes are accepted. New tokens use the new ones. Only hashes are stored, so no token changes.
longshore.v1 WebSocket subprotocolturntable.v1The server accepts both and echoes the one the client offered.
longshore://runs/... MCP resource URIsturntable://runs/...Both resolve.
longshore.* container labels, longshore-run sandbox labelturntable.*, turntable-runNew sandboxes get the new labels. Every list, count, reap and destroy path reads both, so sandboxes started before the upgrade are still found and cleaned up.
--longshore-org flag of github-app create--turntable-orgBoth work.
longshore / check run prefixturntable /New check runs use the new prefix.

Fleet names such as longshore-shadow are configuration and stay as you wrote them. A fleet name may start with turntable- or longshore-. Signed or derived values never change with the name: webhook headers (longshore-signature, longshore-event, longshore-delivery, longshore-cursor), approval statement types (longshore.approve_*.v1), key-derivation and AAD contexts, and the provenance build type keep their original spelling, because existing secrets, approvals, signatures and receivers depend on it.

Commands

CommandDescription
turntable serveStart the server.
turntable token generatePrint a new token (stdout) and its sha256 (stderr). Touches no database.
turntable token create | list | revokeManage tokens in a data directory. See the quickstart.
turntable policy show | setPer-project action policy: --require-sha-pins, --allow-owners / --clear-allowlist. See Security.
turntable keys initCreate the master key file for the encrypted secret store.
turntable github-app create | rotate-webhook-secret | statusCreate and manage the GitHub App. See GitHub App.
turntable versionPrint the version. --version also works.
turntable helpPrint usage.

serve flags

FlagDefaultDescription
--port8080TCP port, 0 to 65535. Defaults to the PORT environment variable when set.
--host127.0.0.1Interface to bind. Defaults to TURNTABLE_HOST when set.
--data-dir./dataDirectory that holds turntable.db.
--allowed-originnoneAn extra origin allowed to open the realtime WebSocket. Repeatable. The page’s own origin is always allowed.

Worker and provider flags

With --worker, serve also claims queued jobs and runs each in a sandbox from a provider.

FlagDefaultDescription
--workeroffRun the scheduler and worker in this process.
--providerdockerdocker or daytona. The server checks the provider at startup and exits with its name and the reason if it is unusable.
--provider-confignoneA JSON file of provider options. Secrets never go in it.
--global-cap, --org-cap4, 2Most jobs at once, in total and per org.
--imagebuilt inThe image jobs run in (Docker).
--hostedoffThis is a hosted, multi-tenant instance: every job needs a microvm or vm provider. Docker and Daytona sandboxes are containers, so with --hosted they are refused unless --isolation-override gives a reason. Also set by TURNTABLE_HOSTED=1.
--isolation-overridenoneA reason. Lets jobs run on a provider weaker than their trust class requires. Audited and shown at the top of each affected job’s log.

Daytona options

json
{
  "apiKeyFile": "/run/secrets/daytona-key",
  "baseUrl": "https://app.daytona.io/api",
  "snapshot": "my-runner-snapshot",
  "maxLive": 2,
  "ttlSeconds": 1800,
  "capacityWaitSeconds": 1200
}
OptionDefaultDescription
apiKeyFilenonePath of a file holding the API key. The key is read when first needed and never logged.
apiKeyEnvDAYTONA_API_KEYAn environment variable holding the key, used when apiKeyFile is not set. Set only one of the two.
baseUrlDaytona cloudThe API URL.
snapshotaccount defaultAn existing snapshot to start sandboxes from. Used even when the job names an image. Turntable never creates snapshots.
targetaccount defaultThe Daytona region.
fleetlongshore-devScopes the label, the name prefix and every count, list and delete to one fleet, so two instances on one account never touch each other’s sandboxes. Lower case, starts with turntable-, at most 30 characters (for example longshore-shadow).
maxLive2Live sandboxes of ours at once. At most 10.
ttlSeconds1800Longest sandbox lifetime. At most 1800; longer requests are clamped.
capacityWaitSeconds1200How long a job waits for capacity before it fails as an infrastructure error.
quotaMode"org-usage""org-usage" reads the org’s CPU in use (see ownerCiPreflight); if Daytona answers that read with 403 (a key scoped to sandbox write and delete) it falls back to "own-fleet" and logs it once. "own-fleet" never reads the org: it counts our own live sandboxes by our label and waits while that is maxLive or more. Only a 403 falls back.
ownerCiPreflighttrueThe org-wide CPU check before each create. false turns it off, or give { cpuLimit, diskLimitGiB, memLimitGiB, region, sandboxClass }. Disk and memory are judged against the quotas the usage reply reports unless you set a limit; with neither they are not checked.
allowDomainListConfinementfalseFor the secrets-proxy path: accept a domain-list confinement, which rests on Daytona’s filter reading the TLS server name. See Secrets proxy.
ownerCiLabelsnone{ "key": "project", "values": ["acme-ci"] }: how the account owner’s CI sandboxes are recognised. No default; with none there is no label check.
ownerCiLabelWaitAtoffWait while this many sandboxes matching ownerCiLabels hold quota. Needs ownerCiLabels. Off unless set.

The auto-stop and auto-delete backstops and the rule that only our own sandboxes are listed or deleted are fixed. Our own sandboxes are those with the fleet’s label and name prefix, longshore-dev unless you set fleet. See Providers.

Egress

Egress is deny by default, for every trust class. A job’s sandbox has no network unless its run says otherwise: none unless the run’s plan records "egress": "open" (or "allowlist") from the project’s configuration. Anything else is treated as none.

With --worker and with turntable run:

  • A job is refused (as infra_error, naming the provider) when its provider cannot enforce the policy it asks for. That includes none: a provider that cannot cut the network is not trusted to. Docker and Daytona enforce none and open; neither enforces allowlist yet.
  • A job that holds secrets is never run on open egress.
  • Before a none job runs, a canary probe inside the sandbox tries a public IP and the cloud metadata IP (169.254.169.254). If either answers, the job is not run and ends as infra_error. If the image has no tool to probe with (curl, wget, nc or bash), the job runs with a note in its log, unless it holds secrets, in which case it is refused.

Environment variables

Every variable the server reads is listed, with its flag and default, in the environment reference at the end of this page. It is generated from the code, so it cannot drift.

Endpoints

PathDescription
GET /healthzJSON { "ok": true, "version": "..." }.
GET /openapi.jsonThe OpenAPI 3.1 document for the REST API.
/api/v1/...The REST API, one route per operation. Webhooks arrive at /api/v1/webhooks/github.
/mcpMCP over HTTP.
/api/v1/realtimeThe WebSocket feed of events, log bytes and steps.
/oidc/<org>/...Each org’s OIDC issuer, see OIDC.
GET /The web UI.

Responses carry a strict content security policy. Every API call needs a bearer token, except the signature operations and webhooks, which carry their own proof.

Per-org quotas

An org can live under limits. Quotas limit tenants, so the instance operator sets them, on the host or with an instance token over REST: turntable quotas set --org <slug> --max-concurrent 3 ... [--data-dir ./data] (none removes a limit; turntable quotas show --org <slug> prints them with usage). The only API operation that sets them is set_quotas, which takes the instance token and no org token, so an org’s own tokens, operators and agents cannot raise their limits. They are read with get_quotas (REST and MCP, an org-level token; a project-scoped token is refused), which shows each limit, the usage against it and, for a limit that is reached, why new work is held:

  • max_concurrent: attempts running at once. It can only lower this org’s cap: the effective cap is the smaller of it and the instance’s per-org cap (--org-cap), whatever a stored row says. Raise --org-cap to raise everyone’s.
  • max_runs_per_hour: runs that start in a rolling hour. A run that has already started finishes its jobs; new runs wait.
  • max_sandbox_minutes_per_day: sandbox time in the last 24 hours, counted from the provider’s create to its confirmed destroy. It never counts less than what ran. An attempt with no confirmed destroy counts to its finish plus a grace, never past now, because a sandbox the provider never confirmed destroying may still bill until its TTL. The grace is the sandbox’s own TTL, which the provider reports (Daytona: the shorter of the job’s timeout plus 15 minutes and its ttlSeconds) and the attempt records when the sandbox is created, so it survives a restart or a config change. An attempt with no recorded TTL (older rows, a provider that reports none such as Docker) uses 30 minutes, Daytona’s longest; one with no recorded create time (older rows, or a crash between create and record) counts from when it started. Those figures are marked estimated in the quota status and can over-count. The Usage page counts an unconfirmed attempt to its finish. The cap is checked when a claim is made, so it can overshoot by up to max_concurrent times a sandbox’s lifetime (the attempts already past the check).
  • max_log_bytes: stored job log bytes.
  • max_stored_bytes: recorded artifact bytes plus control-plane cache bytes. (The cache also keeps its own per-class shares inside the org’s cache quota; this is the org-wide total.)

turntable quotas get --url <https://host> --org <slug> --token-file <file> reads them remotely over the API (an org-level reader token), and the Quotas page of the UI shows each limit, its usage and percent, and why new work is held, refreshing as runs change. Both are read-only.

A reached limit holds new claims only: running attempts finish, queued ones wait until the window moves or the limit is raised. Null means no limit. Each metric emits an event when it first crosses 80% and when it is reached, once per window: a quota.warning or quota.reached event (org-level, not an infra.error), with the metric, used and limit.

Settings registry

A setting is defined once in the settings registry (packages/core/src/settings/), the way an operation is defined once in the operations registry. One definition gives its key, scope (instance, org or project), type and validation, default, the role that may change it, whether MCP may change it, and its environment and TOML names. Secrets are never settings: they go to the vault.

A setting has one effective value, resolved in this order, first match wins:

  1. The environment variable named in the table below.
  2. turntable.toml, from --config <path> or TURNTABLE_CONFIG.
  3. The database, set with instance_set_setting or set_setting.
  4. The default.

A value from the environment or from turntable.toml is locked: the set operations refuse it and name where it was set. The get and list operations return the value, its source (env, toml, db or default) and its lock. A setting that raises a limit or widens what a run may do is not changeable over MCP. An org or project setting flagged instanceAdminOnly (the Role column shows it) can be changed by the instance administrator only: set_setting refuses every org token, whatever its role, with “only the instance administrator can change <key>”, and instance_set_setting sets it with target_org and, for a project setting, target_project. set_project_settings and turntable policy set are thin aliases with the same rules.

turntable.toml has the instance settings at the top level, then [orgs.<slug>] and [orgs.<slug>.projects.<slug>] sections for org and project settings. An unknown key or a bad value stops the boot, naming the key and the file. The file is optional: with none, the compiled binary boots from an empty directory.

toml
[backup]
keep = 20

Only some settings are on the registry so far; the rest are still read straight from the environment. Org and project settings in the table below can be read and changed in the web UI: see Settings in the web UI.

KeyScopeTypeDefaultRoleMCPEnvironmentTOMLDescription
backup_keepinstancewhole number, 1 to 1000010instance_adminno: instance settings are changed by the instance administrator, never by an agentTURNTABLE_BACKUP_KEEP[backup] keepHow many backups to keep under <data-dir>/backups, newest first.
approver_rebootstrap_delay_hoursorgwhole number, 1 to 876024instance_admin (instanceAdminOnly)no: it guards who may enrol an org’s release approvers, so only a person changes itTURNTABLE_APPROVER_REBOOTSTRAP_DELAY_HOURSorgs.<slug>.approver_rebootstrap_delay_hoursHours after an org’s last approver was revoked before bootstrap_approver may enrol a new first approver (at least 1). An org that never had an approver has no delay.
org_remint_delay_hoursinstancewhole number, 1 to 876024instance_admin (instanceAdminOnly)no: it guards against re-minting a tenant’s access, so only a person changes itTURNTABLE_ORG_REMINT_DELAY_HOURSorg_remint_delay_hoursHours create_org_token is refused for an org that has had a token, counted from when its last token was revoked or expired (1 to 8760). An org that never had a token is not delayed.
audit_anchor_sink_urlinstancestring""instance_admin (instanceAdminOnly)no: it decides where the audit anchors go, so only the instance administrator changes itTURNTABLE_AUDIT_ANCHOR_SINK_URL[audit] anchor_sink_urlWhere each org’s latest audit anchor (chain head hash, sequence and time, signed with the org’s audit key) is POSTed on every checkpoint and on the interval below. Empty turns the export off. The body is only the org id, sequence, head hash, time and signature. It is signed with TURNTABLE_AUDIT_WEBHOOK_SECRET or TURNTABLE_AUDIT_WEBHOOK_SECRET_FILE, never with a value kept here. A sink on a private address needs TURNTABLE_NET_ALLOW_HOSTS.
audit_anchor_export_minutesinstancewhole number, 1 to 144060instance_admin (instanceAdminOnly)no: it decides how stale the off-instance audit anchor may get, so only a person changes itTURNTABLE_AUDIT_ANCHOR_EXPORT_MINUTES[audit] anchor_export_minutesMinutes between exports of each org’s latest audit anchor to audit_anchor_sink_url, besides the one on every checkpoint (1 to 1440).
untrusted_run_approvalprojectone of “human”, “no_agents”, “any”"no_agents"owner may tighten, instance_admin may loosen (strictness, least to most strict: any < no_agents < human)no: it decides whether agents may approve runs, so only a person changes itnoneorgs.<slug>.projects.<slug>.untrusted_run_approvalWho may approve a run held for an untrusted author: human (an enrolled approver’s signed statement only; assumes the org hardware key policy, since a key file on a machine where agents run lets an agent sign), no_agents (not over MCP, not with an agent token) or any.
approval_policyorgobject{}instance_admin (instanceAdminOnly)no: it decides how many people must approve a release, so only a person changes itTURNTABLE_APPROVAL_POLICYorgs.<slug>.approval_policyApproval policy per environment, a map from environment name to required (distinct approvers, 1 to 10), allow_author_approval (default false) and key_policy (any or hardware, default any). An environment with no entry is production and release at two approvers and every other one ungated.
scheduling_classprojectone of “normal”, “yield”"normal"instance_admin (instanceAdminOnly)no: it decides whose work the shared fleet serves first, so only the instance administrator changes itnoneorgs.<slug>.projects.<slug>.scheduling_classHow the project’s jobs share the fleet: normal, or yield (a yield job is claimed only while no normal job is waiting, and is preempted and requeued when a normal job waits at a cap).
preempt_max_per_jobinstancewhole number, 0 to 10000instance_admin (instanceAdminOnly)no: it decides how much a yield job may be disturbed, so only a person changes itTURNTABLE_PREEMPT_MAX_PER_JOB[scheduler] preempt_max_per_jobHow many times one yield job may be preempted inside preempt_window_minutes (0 to 1000). 0 means no limit and is the default. With 1 or more, the job is not preempted again after that until it finishes: normal work waits for it and the job runs to the end. Trade-off: the cap bounds wasted yield minutes but can make normal work wait for a capped yield job, so on a shared hosted instance enable it only with the affected tenants’ agreement.
preempt_window_minutesinstancewhole number, 1 to 1008060instance_admin (instanceAdminOnly)no: it decides how much a yield job may be disturbed, so only a person changes itTURNTABLE_PREEMPT_WINDOW_MINUTES[scheduler] preempt_window_minutesThe window, in minutes, over which preempt_max_per_job counts the preemptions of one job (1 to 10080). Used only when preempt_max_per_job is 1 or more.

Settings in the web UI

Org settings are under Org settings in the sidebar, and a project’s settings are on its Settings page. Both are generated from the registry through list_settings, so a setting that is added to the registry appears with no UI change. The UI has no instance settings page yet: the instance settings are changed with the instance_ operations, the environment or turntable.toml.

Each field shows its effective value, its source as a badge and whether it is locked:

BadgeMeaning
envAn environment variable sets it. Locked: “Set by TURNTABLE_X”.
tomlturntable.toml sets it. Locked: “Set in turntable.toml”.
ui/dbA value saved through the UI or set_setting.
defaultNothing sets it, so the registry default applies.

A locked field is read-only: change it where the note says. An unlocked field is editable by a member whose role meets the setting’s own role, and never below operator. Other members see it read-only with the role it needs. Saving calls set_setting and shows its refusal (locked, role or a value that fails the setting’s type) as the server wrote it; the page does not validate values itself. After a save the list is read again. Reset to default removes a stored value.

Environment reference

Every environment variable Turntable reads, grouped by area. A variable that stands for a serve flag sets that flag’s default; a flag, when given, wins. This table is generated from packages/core/src/config-reference.ts (scripts/config-reference.ts), and CI fails when it is stale or when the source reads a TURNTABLE_* variable that the list does not name. Each variable here was a LONGSHORE_* variable before the rename: the old name is still read as a fallback, with one deprecation warning per variable at boot, and the TURNTABLE_* name wins when both are set (see Formerly Longshore).

Server

VariableFlagDefaultDescription
PORT--port8080TCP port. Platforms such as Railway set it.
TURNTABLE_HOST--host127.0.0.1Interface to bind. The container image sets 0.0.0.0.
TURNTABLE_DATA_DIR--data-dir./dataDirectory that holds turntable.db and the files the server keeps.
TURNTABLE_ROLES--rolesWhich parts this process runs: web, worker, poller, all (those three), or release, which runs alone. Without it, --worker and --poll decide.
TURNTABLE_PUBLIC_URL--public-urlThe server’s public base URL, linked from check runs and used for WebAuthn and OIDC defaults.
TURNTABLE_ALLOWED_ORIGINS--allowed-originComma-separated extra origins allowed to open the realtime WebSocket. The page’s own origin is always allowed.
TURNTABLE_TRUSTED_PROXIESComma-separated addresses and CIDR ranges of the proxies in front of the server. The webhook failure limiter keys on the client address the forwarded chain reports through them. Required for correct client addresses behind a proxy.
TURNTABLE_TRUST_FORWARDED_PROTOoffSet to 1 behind a TLS-terminating proxy you control: plain-http requests it forwards get a 301 to https (GET and HEAD; 400 otherwise), and secret values sent over x-forwarded-proto: https are accepted.
TURNTABLE_TRUST_FORWARDED_FORNo longer read (a warning is printed). Name your proxies in TURNTABLE_TRUSTED_PROXIES.
TURNTABLE_HSTS_MAX_AGE31536000Strict-Transport-Security max-age in seconds on https responses. 0 or off disables it.
TURNTABLE_HSTS_INCLUDE_SUBDOMAINSonSet to 0 to drop includeSubDomains from the HSTS header.
TURNTABLE_BOOTSTRAP_TOKEN_SHA256sha256 of a token from turntable token generate. On boot, an org with no tokens gets one operator token with this hash.
TURNTABLE_INSTANCE_BOOTSTRAP_TOKEN_SHA256sha256 of a token from turntable token generate --instance. On boot, an instance with no active (unexpired, unrevoked) instance token gets one instance-administrator token with this hash, expiring in 30 days at most. Otherwise it is ignored, and a hash that was registered before is never registered again. Rotate the token once, then remove the variable.
TURNTABLE_INSTANCE_BOOTSTRAP_EXPIRY_DAYS30Lifetime in days of the bootstrap instance token, from 1 to 30. It can lower the limit, never raise it.
TURNTABLE_BOOTSTRAP_ORGlocalThe org that receives the bootstrap token.
TURNTABLE_NET_ALLOW_HOSTSComma-separated hostnames or IP literals the outbound HTTP client may reach even when they resolve to a private address (an audit webhook on a private network, a mock in tests). Everything else private is refused.
TURNTABLE_HOSTED--hostedoffA hosted, multi-tenant instance: every job needs a microvm or vm provider and third-party provider plugins are disabled.
TURNTABLE_CLAIM_INSTALLATIONSoffSet to 1 on a hosted instance: an org claims its own GitHub App installation (start_installation_claim, then GitHub redirects to /api/v1/github/setup).
TURNTABLE_DATABASE_URL--database-urlSQLite in the data dirPostgres connection URL. Every subcommand that opens the database uses it. See Postgres.
TURNTABLE_UI_DIRpackages/ui/distServe the web UI from this directory (it needs an index.html). Only for a run from source: the compiled binary serves its embedded UI and ignores it with a warning.
TURNTABLE_CONFIG--configPath of a turntable.toml of settings. An unknown key or a bad value stops the boot, naming the key and the file; no file is fine. The environment beats the file. See Settings registry.
TURNTABLE_BACKUP_BEFORE_MIGRATESet to 1 to back up the SQLite database at boot when migrations are pending, before they run. A failed backup stops the boot. See Backups.
TURNTABLE_BACKUP_KEEP10How many backups to keep under <data-dir>/backups. The environment name of the backup_keep setting, which turntable.toml and instance_set_setting also set.
TURNTABLE_APPROVER_REBOOTSTRAP_DELAY_HOURS24Hours (at least 1) after an org’s last approver was revoked before bootstrap_approver may enrol a new first approver. The environment name of the approver_rebootstrap_delay_hours setting; set here, it applies to every org and locks the setting. See Instance administration.
TURNTABLE_ORG_REMINT_DELAY_HOURS24Hours create_org_token is refused for an org that has had a token, counted from when its last token was revoked or expired (minimum 1). The environment name of the org_remint_delay_hours setting, which turntable.toml and instance_set_setting also set.
TURNTABLE_PREEMPT_MAX_PER_JOB0How many times one yield job may be preempted inside the window before it is no longer preempted until it finishes (0 to 1000; 0 means no limit). Enabling it bounds wasted yield minutes but can make normal work wait for a capped yield job; on a shared hosted instance, enable it only with the affected tenants’ agreement. The environment name of the preempt_max_per_job setting, which turntable.toml and instance_set_setting also set. See Providers.
TURNTABLE_PREEMPT_WINDOW_MINUTES60The window, in minutes, over which the preemptions of one job are counted (1 to 10080). The environment name of the preempt_window_minutes setting, which turntable.toml and instance_set_setting also set.
TURNTABLE_APPROVAL_POLICYThe approval policy for every org on the instance (JSON): a map from environment name to required, allow_author_approval and key_policy, for example {"release":{"required":1,"allow_author_approval":true}}. The environment name of the approval_policy setting, which turntable.toml sets per org and instance_set_setting sets for one org. A value here locks it: the CLI and the instance op refuse to change it. See Human approvals.

Worker and provider

VariableFlagDefaultDescription
TURNTABLE_WORKER--workeroffRun the scheduler and worker in this process.
TURNTABLE_PROVIDER--providerdockerdocker or daytona.
TURNTABLE_PROVIDER_CONFIG--provider-configPath of a JSON file of provider options. Secrets never go in it.
TURNTABLE_PROVIDER_CONFIG_JSONThe provider options as JSON, for hosts with no files. Used when no config file is named.
TURNTABLE_POLL--pollPath of the poller’s JSON config.
TURNTABLE_POLL_JSONThe poller config as JSON, for hosts with no files. Used when no file is named.
TURNTABLE_IMAGE--imagebuilt inThe image jobs run in (Docker).
TURNTABLE_GLOBAL_CAP--global-cap4Most jobs running at once across the instance.
TURNTABLE_ORG_CAP--org-cap2Most jobs running at once per org. A stored per-org quota (set_quotas) replaces it for that org.
TURNTABLE_LEASE_SECONDS--lease-seconds30How long a worker holds a claimed attempt without a heartbeat.
TURNTABLE_ISOLATION_OVERRIDE--isolation-overrideA reason. Lets jobs run on a provider weaker than their trust class requires. Audited and shown at the top of each affected job’s log.
TURNTABLE_JOB_TOKENSonSet to off to stop issuing a per-job GitHub token.
TURNTABLE_CHECKOUT_TIMEOUT_SECONDS300Wall-clock deadline for one run’s checkout (10 to 3600 seconds). The checkout child is killed when it passes.
TURNTABLE_CHECKOUT_MAX_MEMORY_MIB1536Resident-memory ceiling of the checkout child, read from /proc on Linux (0 turns it off; other systems log once that it is not enforced).
TURNTABLE_CHECKOUT_CONCURRENCY2Checkouts that may run at once (1 to 16).
TURNTABLE_CHECKOUT_MAX_PACK_MIB128Largest pack a checkout accepts from the forge (1 to 4096 MiB).
TURNTABLE_CHECKOUT_MAX_UNPACKED_MIB512Most a checkout may unpack in total (1 to 16384 MiB).
TURNTABLE_CHECKOUT_MAX_TARBALL_MIB256Largest tarball the checkout child may hand back (1 to 4096 MiB).
TURNTABLE_PROVIDER_PLUGINSA JSON array of { "name", "path", "sha256" }: external provider plugins, each loaded only if the file at path has that digest. Never in hosted mode. See Providers.
TURNTABLE_SANDBOX_SIZES_JSONThe sandbox size map (JSON): which runs-on labels get how many CPUs and how much memory. Set only one of this and TURNTABLE_SANDBOX_SIZES_FILE. A run classified untrusted_pr gets untrustedClass, then default, then the provider’s own size: set untrustedClass to a small class on a hosted or multi-tenant instance (see Hosted). See Sandbox size per job.
TURNTABLE_SANDBOX_SIZES_FILEA file holding the sandbox size map. The same as TURNTABLE_SANDBOX_SIZES_JSON, including the untrustedClass advice: set it to a small class on a hosted or multi-tenant instance.

Secrets and keys

VariableFlagDefaultDescription
TURNTABLE_MASTER_KEY_FILE32-byte master key file for the encrypted secret store (turntable keys init). Required for the GitHub App, its webhook endpoint, the vault and OIDC.
TURNTABLE_MASTER_KEYThe master key itself: 32 bytes as base64 (openssl rand -base64 32) or 64 hex characters. It keeps the key off the data volume, so a volume backup does not hold the key next to what it unseals. Read once at boot and deleted from the environment before any child process starts. Setting it together with TURNTABLE_MASTER_KEY_FILE is an error.
TURNTABLE_MASTER_KEY_PREVIOUSThe master key the sealed rows are under now, set together with the new key to rotate it. At boot every sealed row (secrets, vault versions, webhook secrets, audit anchor files) is re-encrypted under the new key in one transaction, verified and audited; on any failure nothing changes and the boot stops. Rows already under the new key are skipped, so it is safe to leave set for one more boot, but remove it once a new backup is taken. Same encoding as TURNTABLE_MASTER_KEY.
TURNTABLE_MASTER_KEY_PREVIOUS_FILEThe previous master key as a 32-byte file, instead of TURNTABLE_MASTER_KEY_PREVIOUS.
TURNTABLE_MASTER_KEY_RETIRE_FILEOne-shot: the path of the old master key file on the data volume, deleted at boot after any re-wrap, only if the process runs on TURNTABLE_MASTER_KEY, every sealed row opens under it, the file equals the previous key given this boot, and the path is a regular file (not a symlink) inside the data directory. Otherwise one log line names the condition that failed and the file stays. Audited as master_key_file_retired. Remove it, and the previous key, afterwards.
TURNTABLE_MASTER_KEY_AUTOINIT--init-master-keyoffSet to 1 to create TURNTABLE_MASTER_KEY_FILE on first boot when it is absent, for a platform with no shell. It is written once, complete and private, and an existing file is never overwritten; of two replicas starting together exactly one creates it. Needs TURNTABLE_MASTER_KEY_FILE, and is refused with TURNTABLE_MASTER_KEY. Back the key up: without it stored secrets cannot be opened.
TURNTABLE_REQUIRE_ORG_KEYSoffSet to 1 after turntable keys reseal has run for every org: a sealed record that is not under its org’s own key is then refused wherever the org is known, and keys reseal itself refuses to run while it is set. See Secrets vault.

GitHub

VariableFlagDefaultDescription
TURNTABLE_GITHUB_TOKENA GitHub token used to resolve and verify actions and to poll, when the run’s own credential (the poll token, or an App token) is not available.
TURNTABLE_GITHUB_APP_SETUP_TOKEN_SHA256sha256 (64 hex characters) of a setup token (turntable token generate). Turns on creating the GitHub App from the instance, for a host with no shell. Needs TURNTABLE_PUBLIC_URL and a master key. The route closes after the first success and 6 hours after start; remove the variable when you are done. See Hosted deployment.
TURNTABLE_GITHUB_TOKEN_FILEA file holding a GitHub token for turntable parity, to avoid the unauthenticated rate limit. Never taken from the command line.

Secrets proxy

VariableFlagDefaultDescription
TURNTABLE_SECRETS_PROXYoffSet to 1 on a worker that has the vault to run the secrets proxy: a job whose project has proxy rules runs with no route but the proxy.
TURNTABLE_PROXY_PORTa free portPort of the secrets proxy listener.
TURNTABLE_PROXY_BINDthe Docker bridge gateway on Linux, else 127.0.0.1Address the proxy binds. 0.0.0.0 is an explicit opt-in (public listener) and logs a warning.
TURNTABLE_PROXY_ADVERTISE_HOSThost.docker.internalHow the provider’s sandboxes name this machine.
TURNTABLE_PROXY_ADVERTISE_PORTThe port to advertise when the platform forwards a different one.
TURNTABLE_PROXY_ADVERTISE_ADDRESSESComma-separated stable IPv4 addresses of the listener. Required for the strict Daytona confinement, which allows exactly those.
TURNTABLE_PROXY_TLS_CERT_FILECertificate (from a public CA) for a public TLS listener, for sandboxes in another provider’s network. Set together with the key file.
TURNTABLE_PROXY_TLS_KEY_FILEPrivate key for the proxy’s TLS listener.

Job cache

VariableFlagDefaultDescription
TURNTABLE_CACHE_URLThe base URL jobs reach the control-plane cache at, no trailing slash. Setting it turns the cache on. See Job cache.
TURNTABLE_CACHE_QUOTA_GIB10GiB an org may hold in the cache in total, split between trust classes.
TURNTABLE_CACHE_MAX_ENTRY_GIB2GiB of the largest single cache entry.
TURNTABLE_ARTIFACTS_URLThe base URL jobs reach the control plane at for actions/upload-artifact and download-artifact (v4 and up), no trailing slash. Setting it turns the artifact store on. A job with open egress reaches it directly; one with egress none can upload through the secrets proxy (an https URL on a public address). Point TURNTABLE_RELEASE_ARTIFACT_DIR at <data dir>/artifacts for the release lane to sign from it. See Compatibility.
TURNTABLE_ARTIFACT_MAX_GIB2GiB of the largest single artifact. The org’s stored-bytes quota applies as well.
TURNTABLE_ARTIFACT_RETENTION_DAYS90Days a stored artifact is kept. Past it the bytes are removed and downloads fail; the recorded digest stays.

Release lane

VariableFlagDefaultDescription
TURNTABLE_RELEASE_MASTER_KEY_FILEThe release lane’s own master key file (or TURNTABLE_RELEASE_MASTER_KEY, not both). Read only by serve --roles release.
TURNTABLE_RELEASE_MASTER_KEYThe release lane’s master key itself, 32 bytes as base64 or hex, so its wrapper stays off every volume backup. Read once at boot and removed from the environment. Not with TURNTABLE_RELEASE_MASTER_KEY_FILE.
TURNTABLE_RELEASE_MASTER_KEY_PREVIOUSThe release key the lane’s sealed state is under before a rotation. The lane re-wraps its publish credentials and signing key files under the new key at boot, in one transaction. Remove it after a clean boot.
TURNTABLE_RELEASE_DATA_DIRThe release lane’s own data directory.
TURNTABLE_RELEASE_GITHUB_TOKENThe forge credential the lane uses to re-check a release (read access).
TURNTABLE_RELEASE_GITHUB_PUBLISH_TOKENOptional credential the lane uses to publish. Absent means it does not publish.
TURNTABLE_RELEASE_ARTIFACT_DIRDirectory laid out <run id>/<name> that the lane reads artifact bytes from (read-only).
TURNTABLE_RELEASE_BUILDER_IDThe builder id recorded in provenance.
TURNTABLE_RELEASE_POLL_MS5000How often the lane looks for release requests (at least 100).
TURNTABLE_PUBLISH_CHANNEL_KEY_FILEOn the worker: the request key it shares with the release lane (TURNTABLE_RELEASE_CHANNEL_KEY_FILE), enabling compat publishing. Set it with the socket or the URL below. See Release lane.
TURNTABLE_PUBLISH_CHANNEL_SOCKETOn the worker: the unix socket of the release channel (same host as the lane).
TURNTABLE_PUBLISH_CHANNEL_URLOn the worker: the release channel as host:port over mutual TLS (split hosts), instead of the socket. Needs _TLS_CERT_FILE, _TLS_KEY_FILE and _TLS_CA_FILE (same prefix).
TURNTABLE_PUBLISH_CHANNEL_TLS_CERT_FILEOn the worker: its client certificate for the release channel.
TURNTABLE_PUBLISH_CHANNEL_TLS_KEY_FILEOn the worker: the private key of that certificate.
TURNTABLE_PUBLISH_CHANNEL_TLS_CA_FILEOn the worker: the CA that signed the lane’s certificate.
TURNTABLE_RELEASE_CHANNEL_KEY_FILEOn the lane: the request key shared with the worker. Needs the release proxy (TURNTABLE_RELEASE_PROXY_PORT).
TURNTABLE_RELEASE_CHANNEL_SOCKET<data dir>/channel.sockOn the lane: the unix socket the release channel listens on (mode 0600).
TURNTABLE_RELEASE_CHANNEL_TCPOn the lane: listen on host:port with mutual TLS instead of the socket, for split hosts. Needs _TLS_CERT_FILE, _TLS_KEY_FILE and _TLS_CA_FILE (same prefix).
TURNTABLE_RELEASE_CHANNEL_TLS_CERT_FILEOn the lane: its server certificate for the TCP channel.
TURNTABLE_RELEASE_CHANNEL_TLS_KEY_FILEOn the lane: the private key of that certificate.
TURNTABLE_RELEASE_CHANNEL_TLS_CA_FILEOn the lane: the CA that signs the worker’s client certificate.
TURNTABLE_RELEASE_PROXY_PORTOn the lane: the port of its release proxy (0 for any free port). Setting it turns the proxy on.
TURNTABLE_RELEASE_PROXY_BIND127.0.0.1On the lane: the interface the release proxy binds.
TURNTABLE_RELEASE_PROXY_ADVERTISE_HOSTOn the lane: how the worker’s sandboxes name the release proxy.
TURNTABLE_RELEASE_PROXY_ADVERTISE_PORTOn the lane: the port sandboxes are told, when it differs from the one bound.
TURNTABLE_RELEASE_PROXY_ADVERTISE_ADDRESSESOn the lane: comma-separated stable addresses of the proxy, for a provider that filters by address.
TURNTABLE_RELEASE_PROXY_TLS_CERT_FILEOn the lane: a certificate, to serve the release proxy over TLS on a public name.
TURNTABLE_RELEASE_PROXY_TLS_KEY_FILEOn the lane: the private key of that certificate.

Audit

VariableFlagDefaultDescription
TURNTABLE_AUDIT_EXPORT_DIRRotate audit entries and checkpoints to JSONL files here.
TURNTABLE_AUDIT_STATE_DIR<master key file>.audit-state, else <data dir>/audit-stateDirectory of the sealed audit anchor state. Point it at a separate mount or secrets volume: state beside the database it anchors is restored with it. turntable doctor warns while it is inside the data directory.
TURNTABLE_AUDIT_ANCHOR_SINK_URLWhere each org’s latest signed audit anchor is POSTed, on every checkpoint and on an interval. The environment name of the audit_anchor_sink_url setting, which turntable.toml and instance_set_setting also set. Signed with TURNTABLE_AUDIT_WEBHOOK_SECRET or TURNTABLE_AUDIT_WEBHOOK_SECRET_FILE.
TURNTABLE_AUDIT_ANCHOR_EXPORT_MINUTES60Minutes between anchor exports besides the one on each checkpoint. The environment name of the audit_anchor_export_minutes setting.
TURNTABLE_AUDIT_WEBHOOK_URLPOST audit batches here, signed with the secret file. A webhook on a private address needs TURNTABLE_NET_ALLOW_HOSTS.
TURNTABLE_AUDIT_WEBHOOK_SECRETHMAC secret for audit webhook batches and anchor exports (x-longshore-signature: sha256=...). Read once at boot and deleted from the environment. Setting it with the file variable is an error.
TURNTABLE_AUDIT_WEBHOOK_SECRET_FILEFile holding the same secret, for a secrets mount. Prefer the variable or a secrets mount over a file on the data volume.

OIDC

VariableFlagDefaultDescription
TURNTABLE_OIDC_BASE_URL<public url>/oidcBase of the per-org OIDC issuers. An org’s issuer is <base>/<org slug>. Needs the master key.
TURNTABLE_OIDC_ALLOW_CLASSESprotected,releaseTrust classes that may get an OIDC token. untrusted_pr is refused unless you list it, which you should not.

Approvals

VariableFlagDefaultDescription
TURNTABLE_WEBAUTHN_RP_IDthe public URL’s hostWebAuthn relying party id for human approvals.
TURNTABLE_WEBAUTHN_ORIGINSthe public URLComma-separated origins allowed for WebAuthn ceremonies.

Channel and MCP clients

VariableFlagDefaultDescription
TURNTABLE_TOKEN_FILEToken file (mode 0600) for turntable mcp and turntable channel. A token is never taken from the command line.
TURNTABLE_URLServer URL for turntable channel.
TURNTABLE_ORGOrg slug for turntable channel.
TURNTABLE_CHANNEL_PROJECTSComma-separated project filter for turntable channel.
TURNTABLE_CHANNEL_BRANCHESComma-separated branch filter for turntable channel.
TURNTABLE_CHANNEL_TYPESComma-separated event types for turntable channel.
TURNTABLE_CHANNEL_CONCLUSIONSComma-separated run conclusions for turntable channel.
TURNTABLE_CHANNEL_STATE_FILEWhere turntable channel remembers the last event it sent.

Process and privileges

VariableFlagDefaultDescription
TURNTABLE_DROP_PRIVILEGES<uid>:<gid>. When started as root, take ownership of the files Turntable expects in the data directory and drop to that user before opening anything. The image sets 65532:65532.
TURNTABLE_ALLOW_ROOToffSet to 1 to keep running as root. Otherwise a server still root after startup is refused.
TURNTABLE_STEP_GRACE5Seconds a step gets between TERM and KILL when it is stopped (set inside the job’s step shim).

Build

VariableFlagDefaultDescription
TURNTABLE_VERSIONVersion for scripts/build.ts (a leading v is stripped); defaults to the root package.json version.
TURNTABLE_SIGN_DARWINSet to 1 for scripts/build.ts to re-sign the darwin binary with rcodesign and verify it.
TURNTABLE_DISTOutput directory of scripts/build.ts (the reproducibility check builds twice into two directories).
TURNTABLE_UI_BACKENDUI build default backend (fixture or http); set by bun run dev.

Type to search…

↑↓ navigate↵ openesc close