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:
| Was | Now | What happens |
|---|---|---|
LONGSHORE_* environment variables | TURNTABLE_* | 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 directory | turntable.db | Renamed 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_migrations | Renamed 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_ tokens | tt_ and tti_ | Both prefixes are accepted. New tokens use the new ones. Only hashes are stored, so no token changes. |
longshore.v1 WebSocket subprotocol | turntable.v1 | The server accepts both and echoes the one the client offered. |
longshore://runs/... MCP resource URIs | turntable://runs/... | Both resolve. |
longshore.* container labels, longshore-run sandbox label | turntable.*, turntable-run | New 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-org | Both work. |
longshore / check run prefix | turntable / | 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
| Command | Description |
|---|---|
turntable serve | Start the server. |
turntable token generate | Print a new token (stdout) and its sha256 (stderr). Touches no database. |
turntable token create | list | revoke | Manage tokens in a data directory. See the quickstart. |
turntable policy show | set | Per-project action policy: --require-sha-pins, --allow-owners / --clear-allowlist. See Security. |
turntable keys init | Create the master key file for the encrypted secret store. |
turntable github-app create | rotate-webhook-secret | status | Create and manage the GitHub App. See GitHub App. |
turntable version | Print the version. --version also works. |
turntable help | Print usage. |
serve flags
| Flag | Default | Description |
|---|---|---|
--port | 8080 | TCP port, 0 to 65535. Defaults to the PORT environment variable when set. |
--host | 127.0.0.1 | Interface to bind. Defaults to TURNTABLE_HOST when set. |
--data-dir | ./data | Directory that holds turntable.db. |
--allowed-origin | none | An 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.
| Flag | Default | Description |
|---|---|---|
--worker | off | Run the scheduler and worker in this process. |
--provider | docker | docker or daytona. The server checks the provider at startup and exits with its name and the reason if it is unusable. |
--provider-config | none | A JSON file of provider options. Secrets never go in it. |
--global-cap, --org-cap | 4, 2 | Most jobs at once, in total and per org. |
--image | built in | The image jobs run in (Docker). |
--hosted | off | This 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-override | none | A 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
{
"apiKeyFile": "/run/secrets/daytona-key",
"baseUrl": "https://app.daytona.io/api",
"snapshot": "my-runner-snapshot",
"maxLive": 2,
"ttlSeconds": 1800,
"capacityWaitSeconds": 1200
}| Option | Default | Description |
|---|---|---|
apiKeyFile | none | Path of a file holding the API key. The key is read when first needed and never logged. |
apiKeyEnv | DAYTONA_API_KEY | An environment variable holding the key, used when apiKeyFile is not set. Set only one of the two. |
baseUrl | Daytona cloud | The API URL. |
snapshot | account default | An existing snapshot to start sandboxes from. Used even when the job names an image. Turntable never creates snapshots. |
target | account default | The Daytona region. |
fleet | longshore-dev | Scopes 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). |
maxLive | 2 | Live sandboxes of ours at once. At most 10. |
ttlSeconds | 1800 | Longest sandbox lifetime. At most 1800; longer requests are clamped. |
capacityWaitSeconds | 1200 | How 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. |
ownerCiPreflight | true | The 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. |
allowDomainListConfinement | false | For the secrets-proxy path: accept a domain-list confinement, which rests on Daytona’s filter reading the TLS server name. See Secrets proxy. |
ownerCiLabels | none | { "key": "project", "values": ["acme-ci"] }: how the account owner’s CI sandboxes are recognised. No default; with none there is no label check. |
ownerCiLabelWaitAt | off | Wait 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 includesnone: a provider that cannot cut the network is not trusted to. Docker and Daytona enforcenoneandopen; neither enforcesallowlistyet. - A job that holds secrets is never run on
openegress. - Before a
nonejob 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 asinfra_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
| Path | Description |
|---|---|
GET /healthz | JSON { "ok": true, "version": "..." }. |
GET /openapi.json | The OpenAPI 3.1 document for the REST API. |
/api/v1/... | The REST API, one route per operation. Webhooks arrive at /api/v1/webhooks/github. |
/mcp | MCP over HTTP. |
/api/v1/realtime | The 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-capto 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 itsttlSeconds) 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 markedestimatedin 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 tomax_concurrenttimes 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:
- The environment variable named in the table below.
turntable.toml, from--config <path>orTURNTABLE_CONFIG.- The database, set with
instance_set_settingorset_setting. - 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.
[backup]
keep = 20Only 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.
| Key | Scope | Type | Default | Role | MCP | Environment | TOML | Description |
|---|---|---|---|---|---|---|---|---|
backup_keep | instance | whole number, 1 to 10000 | 10 | instance_admin | no: instance settings are changed by the instance administrator, never by an agent | TURNTABLE_BACKUP_KEEP | [backup] keep | How many backups to keep under <data-dir>/backups, newest first. |
approver_rebootstrap_delay_hours | org | whole number, 1 to 8760 | 24 | instance_admin (instanceAdminOnly) | no: it guards who may enrol an org’s release approvers, so only a person changes it | TURNTABLE_APPROVER_REBOOTSTRAP_DELAY_HOURS | orgs.<slug>.approver_rebootstrap_delay_hours | Hours 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_hours | instance | whole number, 1 to 8760 | 24 | instance_admin (instanceAdminOnly) | no: it guards against re-minting a tenant’s access, so only a person changes it | TURNTABLE_ORG_REMINT_DELAY_HOURS | org_remint_delay_hours | Hours 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_url | instance | string | "" | instance_admin (instanceAdminOnly) | no: it decides where the audit anchors go, so only the instance administrator changes it | TURNTABLE_AUDIT_ANCHOR_SINK_URL | [audit] anchor_sink_url | Where 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_minutes | instance | whole number, 1 to 1440 | 60 | instance_admin (instanceAdminOnly) | no: it decides how stale the off-instance audit anchor may get, so only a person changes it | TURNTABLE_AUDIT_ANCHOR_EXPORT_MINUTES | [audit] anchor_export_minutes | Minutes 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_approval | project | one 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 it | none | orgs.<slug>.projects.<slug>.untrusted_run_approval | Who 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_policy | org | object | {} | instance_admin (instanceAdminOnly) | no: it decides how many people must approve a release, so only a person changes it | TURNTABLE_APPROVAL_POLICY | orgs.<slug>.approval_policy | Approval 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_class | project | one of “normal”, “yield” | "normal" | instance_admin (instanceAdminOnly) | no: it decides whose work the shared fleet serves first, so only the instance administrator changes it | none | orgs.<slug>.projects.<slug>.scheduling_class | How 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_job | instance | whole number, 0 to 1000 | 0 | instance_admin (instanceAdminOnly) | no: it decides how much a yield job may be disturbed, so only a person changes it | TURNTABLE_PREEMPT_MAX_PER_JOB | [scheduler] preempt_max_per_job | How 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_minutes | instance | whole number, 1 to 10080 | 60 | instance_admin (instanceAdminOnly) | no: it decides how much a yield job may be disturbed, so only a person changes it | TURNTABLE_PREEMPT_WINDOW_MINUTES | [scheduler] preempt_window_minutes | The 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:
| Badge | Meaning |
|---|---|
env | An environment variable sets it. Locked: “Set by TURNTABLE_X”. |
toml | turntable.toml sets it. Locked: “Set in turntable.toml”. |
ui/db | A value saved through the UI or set_setting. |
default | Nothing 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
| Variable | Flag | Default | Description |
|---|---|---|---|
PORT | --port | 8080 | TCP port. Platforms such as Railway set it. |
TURNTABLE_HOST | --host | 127.0.0.1 | Interface to bind. The container image sets 0.0.0.0. |
TURNTABLE_DATA_DIR | --data-dir | ./data | Directory that holds turntable.db and the files the server keeps. |
TURNTABLE_ROLES | --roles | Which 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-url | The server’s public base URL, linked from check runs and used for WebAuthn and OIDC defaults. | |
TURNTABLE_ALLOWED_ORIGINS | --allowed-origin | Comma-separated extra origins allowed to open the realtime WebSocket. The page’s own origin is always allowed. | |
TURNTABLE_TRUSTED_PROXIES | Comma-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_PROTO | off | Set 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_FOR | No longer read (a warning is printed). Name your proxies in TURNTABLE_TRUSTED_PROXIES. | ||
TURNTABLE_HSTS_MAX_AGE | 31536000 | Strict-Transport-Security max-age in seconds on https responses. 0 or off disables it. | |
TURNTABLE_HSTS_INCLUDE_SUBDOMAINS | on | Set to 0 to drop includeSubDomains from the HSTS header. | |
TURNTABLE_BOOTSTRAP_TOKEN_SHA256 | sha256 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_SHA256 | sha256 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_DAYS | 30 | Lifetime in days of the bootstrap instance token, from 1 to 30. It can lower the limit, never raise it. | |
TURNTABLE_BOOTSTRAP_ORG | local | The org that receives the bootstrap token. | |
TURNTABLE_NET_ALLOW_HOSTS | Comma-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 | --hosted | off | A hosted, multi-tenant instance: every job needs a microvm or vm provider and third-party provider plugins are disabled. |
TURNTABLE_CLAIM_INSTALLATIONS | off | Set 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-url | SQLite in the data dir | Postgres connection URL. Every subcommand that opens the database uses it. See Postgres. |
TURNTABLE_UI_DIR | packages/ui/dist | Serve 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 | --config | Path 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_MIGRATE | Set 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_KEEP | 10 | How 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_HOURS | 24 | Hours (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_HOURS | 24 | Hours 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_JOB | 0 | How 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_MINUTES | 60 | The 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_POLICY | The 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
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_WORKER | --worker | off | Run the scheduler and worker in this process. |
TURNTABLE_PROVIDER | --provider | docker | docker or daytona. |
TURNTABLE_PROVIDER_CONFIG | --provider-config | Path of a JSON file of provider options. Secrets never go in it. | |
TURNTABLE_PROVIDER_CONFIG_JSON | The provider options as JSON, for hosts with no files. Used when no config file is named. | ||
TURNTABLE_POLL | --poll | Path of the poller’s JSON config. | |
TURNTABLE_POLL_JSON | The poller config as JSON, for hosts with no files. Used when no file is named. | ||
TURNTABLE_IMAGE | --image | built in | The image jobs run in (Docker). |
TURNTABLE_GLOBAL_CAP | --global-cap | 4 | Most jobs running at once across the instance. |
TURNTABLE_ORG_CAP | --org-cap | 2 | Most jobs running at once per org. A stored per-org quota (set_quotas) replaces it for that org. |
TURNTABLE_LEASE_SECONDS | --lease-seconds | 30 | How long a worker holds a claimed attempt without a heartbeat. |
TURNTABLE_ISOLATION_OVERRIDE | --isolation-override | A 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_TOKENS | on | Set to off to stop issuing a per-job GitHub token. | |
TURNTABLE_CHECKOUT_TIMEOUT_SECONDS | 300 | Wall-clock deadline for one run’s checkout (10 to 3600 seconds). The checkout child is killed when it passes. | |
TURNTABLE_CHECKOUT_MAX_MEMORY_MIB | 1536 | Resident-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_CONCURRENCY | 2 | Checkouts that may run at once (1 to 16). | |
TURNTABLE_CHECKOUT_MAX_PACK_MIB | 128 | Largest pack a checkout accepts from the forge (1 to 4096 MiB). | |
TURNTABLE_CHECKOUT_MAX_UNPACKED_MIB | 512 | Most a checkout may unpack in total (1 to 16384 MiB). | |
TURNTABLE_CHECKOUT_MAX_TARBALL_MIB | 256 | Largest tarball the checkout child may hand back (1 to 4096 MiB). | |
TURNTABLE_PROVIDER_PLUGINS | A 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_JSON | The 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_FILE | A 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
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_MASTER_KEY_FILE | 32-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_KEY | The 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_PREVIOUS | The 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_FILE | The previous master key as a 32-byte file, instead of TURNTABLE_MASTER_KEY_PREVIOUS. | ||
TURNTABLE_MASTER_KEY_RETIRE_FILE | One-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-key | off | Set 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_KEYS | off | Set 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
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_GITHUB_TOKEN | A 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_SHA256 | sha256 (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_FILE | A file holding a GitHub token for turntable parity, to avoid the unauthenticated rate limit. Never taken from the command line. |
Secrets proxy
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_SECRETS_PROXY | off | Set 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_PORT | a free port | Port of the secrets proxy listener. | |
TURNTABLE_PROXY_BIND | the Docker bridge gateway on Linux, else 127.0.0.1 | Address the proxy binds. 0.0.0.0 is an explicit opt-in (public listener) and logs a warning. | |
TURNTABLE_PROXY_ADVERTISE_HOST | host.docker.internal | How the provider’s sandboxes name this machine. | |
TURNTABLE_PROXY_ADVERTISE_PORT | The port to advertise when the platform forwards a different one. | ||
TURNTABLE_PROXY_ADVERTISE_ADDRESSES | Comma-separated stable IPv4 addresses of the listener. Required for the strict Daytona confinement, which allows exactly those. | ||
TURNTABLE_PROXY_TLS_CERT_FILE | Certificate (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_FILE | Private key for the proxy’s TLS listener. |
Job cache
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_CACHE_URL | The base URL jobs reach the control-plane cache at, no trailing slash. Setting it turns the cache on. See Job cache. | ||
TURNTABLE_CACHE_QUOTA_GIB | 10 | GiB an org may hold in the cache in total, split between trust classes. | |
TURNTABLE_CACHE_MAX_ENTRY_GIB | 2 | GiB of the largest single cache entry. | |
TURNTABLE_ARTIFACTS_URL | The 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_GIB | 2 | GiB of the largest single artifact. The org’s stored-bytes quota applies as well. | |
TURNTABLE_ARTIFACT_RETENTION_DAYS | 90 | Days a stored artifact is kept. Past it the bytes are removed and downloads fail; the recorded digest stays. |
Release lane
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_RELEASE_MASTER_KEY_FILE | The release lane’s own master key file (or TURNTABLE_RELEASE_MASTER_KEY, not both). Read only by serve --roles release. | ||
TURNTABLE_RELEASE_MASTER_KEY | The 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_PREVIOUS | The 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_DIR | The release lane’s own data directory. | ||
TURNTABLE_RELEASE_GITHUB_TOKEN | The forge credential the lane uses to re-check a release (read access). | ||
TURNTABLE_RELEASE_GITHUB_PUBLISH_TOKEN | Optional credential the lane uses to publish. Absent means it does not publish. | ||
TURNTABLE_RELEASE_ARTIFACT_DIR | Directory laid out <run id>/<name> that the lane reads artifact bytes from (read-only). | ||
TURNTABLE_RELEASE_BUILDER_ID | The builder id recorded in provenance. | ||
TURNTABLE_RELEASE_POLL_MS | 5000 | How often the lane looks for release requests (at least 100). | |
TURNTABLE_PUBLISH_CHANNEL_KEY_FILE | On 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_SOCKET | On the worker: the unix socket of the release channel (same host as the lane). | ||
TURNTABLE_PUBLISH_CHANNEL_URL | On 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_FILE | On the worker: its client certificate for the release channel. | ||
TURNTABLE_PUBLISH_CHANNEL_TLS_KEY_FILE | On the worker: the private key of that certificate. | ||
TURNTABLE_PUBLISH_CHANNEL_TLS_CA_FILE | On the worker: the CA that signed the lane’s certificate. | ||
TURNTABLE_RELEASE_CHANNEL_KEY_FILE | On the lane: the request key shared with the worker. Needs the release proxy (TURNTABLE_RELEASE_PROXY_PORT). | ||
TURNTABLE_RELEASE_CHANNEL_SOCKET | <data dir>/channel.sock | On the lane: the unix socket the release channel listens on (mode 0600). | |
TURNTABLE_RELEASE_CHANNEL_TCP | On 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_FILE | On the lane: its server certificate for the TCP channel. | ||
TURNTABLE_RELEASE_CHANNEL_TLS_KEY_FILE | On the lane: the private key of that certificate. | ||
TURNTABLE_RELEASE_CHANNEL_TLS_CA_FILE | On the lane: the CA that signs the worker’s client certificate. | ||
TURNTABLE_RELEASE_PROXY_PORT | On the lane: the port of its release proxy (0 for any free port). Setting it turns the proxy on. | ||
TURNTABLE_RELEASE_PROXY_BIND | 127.0.0.1 | On the lane: the interface the release proxy binds. | |
TURNTABLE_RELEASE_PROXY_ADVERTISE_HOST | On the lane: how the worker’s sandboxes name the release proxy. | ||
TURNTABLE_RELEASE_PROXY_ADVERTISE_PORT | On the lane: the port sandboxes are told, when it differs from the one bound. | ||
TURNTABLE_RELEASE_PROXY_ADVERTISE_ADDRESSES | On the lane: comma-separated stable addresses of the proxy, for a provider that filters by address. | ||
TURNTABLE_RELEASE_PROXY_TLS_CERT_FILE | On the lane: a certificate, to serve the release proxy over TLS on a public name. | ||
TURNTABLE_RELEASE_PROXY_TLS_KEY_FILE | On the lane: the private key of that certificate. |
Audit
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_AUDIT_EXPORT_DIR | Rotate audit entries and checkpoints to JSONL files here. | ||
TURNTABLE_AUDIT_STATE_DIR | <master key file>.audit-state, else <data dir>/audit-state | Directory 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_URL | Where 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_MINUTES | 60 | Minutes between anchor exports besides the one on each checkpoint. The environment name of the audit_anchor_export_minutes setting. | |
TURNTABLE_AUDIT_WEBHOOK_URL | POST audit batches here, signed with the secret file. A webhook on a private address needs TURNTABLE_NET_ALLOW_HOSTS. | ||
TURNTABLE_AUDIT_WEBHOOK_SECRET | HMAC 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_FILE | File holding the same secret, for a secrets mount. Prefer the variable or a secrets mount over a file on the data volume. |
OIDC
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_OIDC_BASE_URL | <public url>/oidc | Base of the per-org OIDC issuers. An org’s issuer is <base>/<org slug>. Needs the master key. | |
TURNTABLE_OIDC_ALLOW_CLASSES | protected,release | Trust classes that may get an OIDC token. untrusted_pr is refused unless you list it, which you should not. |
Approvals
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_WEBAUTHN_RP_ID | the public URL’s host | WebAuthn relying party id for human approvals. | |
TURNTABLE_WEBAUTHN_ORIGINS | the public URL | Comma-separated origins allowed for WebAuthn ceremonies. |
Channel and MCP clients
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_TOKEN_FILE | Token file (mode 0600) for turntable mcp and turntable channel. A token is never taken from the command line. | ||
TURNTABLE_URL | Server URL for turntable channel. | ||
TURNTABLE_ORG | Org slug for turntable channel. | ||
TURNTABLE_CHANNEL_PROJECTS | Comma-separated project filter for turntable channel. | ||
TURNTABLE_CHANNEL_BRANCHES | Comma-separated branch filter for turntable channel. | ||
TURNTABLE_CHANNEL_TYPES | Comma-separated event types for turntable channel. | ||
TURNTABLE_CHANNEL_CONCLUSIONS | Comma-separated run conclusions for turntable channel. | ||
TURNTABLE_CHANNEL_STATE_FILE | Where turntable channel remembers the last event it sent. |
Process and privileges
| Variable | Flag | Default | Description |
|---|---|---|---|
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_ROOT | off | Set to 1 to keep running as root. Otherwise a server still root after startup is refused. | |
TURNTABLE_STEP_GRACE | 5 | Seconds a step gets between TERM and KILL when it is stopped (set inside the job’s step shim). |
Build
| Variable | Flag | Default | Description |
|---|---|---|---|
TURNTABLE_VERSION | Version for scripts/build.ts (a leading v is stripped); defaults to the root package.json version. | ||
TURNTABLE_SIGN_DARWIN | Set to 1 for scripts/build.ts to re-sign the darwin binary with rcodesign and verify it. | ||
TURNTABLE_DIST | Output directory of scripts/build.ts (the reproducibility check builds twice into two directories). | ||
TURNTABLE_UI_BACKEND | UI build default backend (fixture or http); set by bun run dev. |