Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

Tappet is configured through TAPPET_* environment variables and, optionally, a tappet.toml file. Command-line flags override both.

Precedence, highest first:

  1. Command-line flags (--port, --host, --log-format, --log-level, --concurrency, …).
  2. Environment variables. An empty value counts as unset.
  3. tappet.toml.
  4. Built-in defaults.

tappet reads exactly one configuration file, the first that exists of:

  1. the path given with --config FILE;
  2. the path in TAPPET_CONFIG;
  3. ./tappet.toml in the working directory;
  4. ${TAPPET_DATA}/tappet.toml.

If you name a file with --config or TAPPET_CONFIG and it does not exist, startup fails.

tappet.toml

Each key is the variable name without the TAPPET_ prefix, in lower case. Variables that share a prefix can also be grouped in a table, so [s3] bucket = "x" is the same as s3_bucket = "x" and TAPPET_S3_BUCKET=x. Lists can be TOML arrays or comma-separated strings. Unknown keys are rejected so that typos fail at startup instead of being ignored.

env = "production"
data = "/var/lib/tappet"
database_url = "postgres://tappet@db/tappet"
public_url = "https://flows.example.com"
host = "0.0.0.0"
port = 5678
log_format = "json"
executions_ttl = "30d"

[egress]
policy = "local"
allow = ["10.20.0.0/16", "ollama.internal"]

[s3]
bucket = "tappet-blobs"
region = "eu-central-1"

Keep secrets (encryption_key, s3_secret_access_key, oidc_client_secret) in the environment or in a file only the service user can read.

Unknown TAPPET_* environment variables produce a warning at startup.

Values from tappet.toml and derived defaults (TAPPET_DATA, TAPPET_DATABASE_URL, TAPPET_BLOBS_URL) are exported into the process environment at startup, so every component sees the same settings regardless of where they were set.

Value formats

TypeAccepted values
booleantrue/false, 1/0, yes/no, on/off (case-insensitive)
sizebytes, or a number with KB, MB, GB, TB (binary: 1 MB = 1024 KB; KiB/MiB also accepted). 1.5MB is allowed.
durationa number with ms, s, m, h, d or w (500ms, 30s, 14d). A bare number uses the unit given in the table below.
listcomma-separated (a,b,c) or a TOML array

General

VariableDefaultDescription
TAPPET_CONFIG(search, see above)Path of the tappet.toml to load. Environment only.
TAPPET_ENVdevelopmentdevelopment or production. Production refuses to start without TAPPET_ENCRYPTION_KEY.
TAPPET_DATA~/.tappet, or /var/lib/tappet when HOME is unset or /Data directory: SQLite database, blob spill store, development encryption key. A leading ~/ is expanded.
TAPPET_DATABASE_URLsqlite://${TAPPET_DATA}/tappet.dbsqlite://path (single node) or postgres://user:pass@host/db (required for serve --role api + worker deployments).
TAPPET_BLOBS_URLs3:// URL when TAPPET_S3_BUCKET is set, else file://${TAPPET_DATA}/blobsBinary data and large-payload spill store.
TAPPET_HOST127.0.0.1Listen address. Use 0.0.0.0 in containers. localhost is accepted.
TAPPET_PORT5678Listen port.
TAPPET_PUBLIC_URLunsetExternally reachable base URL (https://flows.example.com). Required for OAuth2 callbacks ({url}/api/v1/oauth2/callback) and production webhook URLs; startup warns when unset. serve --tunnel cloudflared sets it for the session.
TAPPET_INSTANCE_ID<hostname>-<random>Identity of this process for queue leases and leader election. Must be unique per process.
TAPPET_DEFAULT_PROJECTowner’s first project, else defaultProject id or name used by CLI commands run without --project.

Encryption

VariableDefaultDescription
TAPPET_ENCRYPTION_KEYunsetKey-encryption key for credentials: base64 of exactly 32 random bytes (tappet keys generate). In development mode, when unset, a key is generated once into ${TAPPET_DATA}/encryption.key with mode 0600 and reused. Never logged.
TAPPET_ENCRYPTION_KEY_VERSION1 (or the version recorded by tappet keys rotate in development)Version number stored with every wrapped credential key; bump it when you rotate.

Rotation: generate a new key, export it as TAPPET_NEW_ENCRYPTION_KEY, run tappet keys rotate, then set TAPPET_ENCRYPTION_KEY to the new key and TAPPET_ENCRYPTION_KEY_VERSION to the new version and restart every process. In development mode (key file) tappet keys rotate generates the new key itself, replaces encryption.key, writes encryption.key.version, and keeps the previous key as encryption.key.v<old version>.

Logging and telemetry

VariableDefaultDescription
TAPPET_LOG_FORMATtexttext or json (one JSON object per line). Logs always go to standard error.
TAPPET_LOG_LEVELinfo for serve/worker, warn for other commandstracing filter directive, e.g. info,tappet_engine=debug. RUST_LOG takes precedence when set; --log-level overrides both.
TAPPET_OTEL_ENDPOINTunsetOTLP collector endpoint (http://otel-collector:4317). Used by builds with OTLP export.
TAPPET_OTEL_SERVICE_NAMEtappetservice.name resource attribute for exported traces.

Security

VariableDefaultDescription
TAPPET_EGRESS_POLICYlocal; strict in multi-tenant modeOutbound network policy for every node, connector, OAuth token call and protocol connection. local blocks cloud metadata and unspecified addresses only; strict also blocks loopback, private, CGNAT, unique-local and link-local ranges. Multi-tenant mode rejects local.
TAPPET_EGRESS_ALLOWemptyHosts, IPs or CIDRs always allowed (overrides blocks, including metadata addresses listed explicitly). *.example.com matches subdomains.
TAPPET_EGRESS_DENYemptyExtra hosts, IPs or CIDRs to block.
TAPPET_ALLOW_EXECfalseEnables exec-class nodes (Execute Command, SSH, local files, MCP stdio). Ignored in multi-tenant mode.
TAPPET_MULTI_TENANTfalseMulti-tenant mode: forces the strict egress policy, disables exec-class nodes and $env by default.
TAPPET_EXPR_ALLOW_ENVtrue; false in multi-tenant modeExpose process environment variables to expressions as $env. TAPPET_* variables are never exposed.
TAPPET_EXPR_ENV_ALLOWLISTempty (all non-TAPPET_* variables)Limit $env to these names; an entry ending in * matches a prefix (API_*).
TAPPET_SECURE_COOKIESderived from TAPPET_PUBLIC_URL (https means secure)Force the Secure attribute on session cookies on or off.
TAPPET_SESSION_TTL7d (bare number: hours)Lifetime of a login session.
TAPPET_CORS_ORIGINSempty (no cross-origin access)Origins allowed to call the REST API from a browser.
TAPPET_UI_ENABLEDtrueServe the embedded web UI.

Limits

VariableDefaultDescription
TAPPET_QUEUE_MAX_DEPTH100000Durable queue depth at which webhooks answer 503 with Retry-After.
TAPPET_INFLIGHT_BYTES256MBBudget for request payloads parsed in memory at once.
TAPPET_WEBHOOK_BODY_MAX16MBLargest accepted webhook body.
TAPPET_API_BODY_MAX16MBLargest accepted REST API body (workflow imports).
TAPPET_BINARY_INLINE_MAX64KBBinary data up to this size is kept inline with the item; larger data goes to the blob store.
TAPPET_JSON_SPILL_THRESHOLD2MBNode outputs larger than this are stored in the blob store and loaded on demand.
TAPPET_MAX_NODE_RUNS10000Loop guard: maximum runs of one node in one execution.
TAPPET_MAX_SUB_WORKFLOW_DEPTH10Maximum nesting of Execute Workflow calls.
TAPPET_MAX_ITEMS_PER_OUTPUT1000000Maximum items a single node may output.

Executions

VariableDefaultDescription
TAPPET_EXECUTIONS_TTL14d (bare number: days)Executions older than this are pruned. Rounded up to whole days.
TAPPET_EXECUTIONS_MAX_COUNTunset (no cap)Keep at most this many executions.
TAPPET_WORKER_CONCURRENCY64Executions one process runs at a time (serve --role all and worker; --concurrency overrides).
TAPPET_LEASE_TTL60s (bare number: seconds)Worker lease on a running execution; an execution whose lease expires is recovered by another worker. Minimum 5 s.
TAPPET_CHECKPOINTevery_nodeevery_node persists each finished node run before successors start (crash recovery resumes there); wait_only persists only at Wait nodes and the end (faster, less durable).
TAPPET_SYNC_WEBHOOK_TIMEOUT300s (bare number: seconds)How long lastNode/responseNode webhooks wait for the workflow.
TAPPET_TIMEZONEUTCTimezone for workflows that do not set one (IANA name, e.g. Europe/Berlin).
TAPPET_SHUTDOWN_TIMEOUT30s (bare number: seconds)Time allowed for running executions to finish or checkpoint after SIGINT/SIGTERM. A second signal exits immediately.

JavaScript (expressions and Code node)

VariableDefaultDescription
TAPPET_JS_MEMORY_LIMIT64MBMemory cap of each JavaScript runtime.
TAPPET_EXPR_TIMEOUT1s (bare number: milliseconds)Budget for one expression evaluation.
TAPPET_CODE_TIMEOUT5s (bare number: milliseconds)Budget for one Code node run.
TAPPET_JS_RUNTIMES8Maximum JavaScript runtimes alive at once (memory bound = runtimes x memory limit).

Catalogs

VariableDefaultDescription
TAPPET_CONNECTORS_DIRunsetDirectory of <id>/connector.yaml files loaded on top of the embedded connectors (same id replaces).
TAPPET_MAPPINGS_DIRunsetDirectory of n8n mapping files loaded on top of the embedded mappings.

S3-compatible blob store

Setting TAPPET_S3_BUCKET switches the blob store to S3 (unless TAPPET_BLOBS_URL is set explicitly). The other S3 variables are ignored, with a warning, when no bucket is set.

VariableDefaultDescription
TAPPET_S3_BUCKETunsetBucket name.
TAPPET_S3_PREFIXunsetKey prefix inside the bucket (leading and trailing slashes are removed).
TAPPET_S3_REGIONprovider defaultRegion, e.g. eu-central-1.
TAPPET_S3_ENDPOINTAWSEndpoint URL for S3-compatible services (MinIO, R2, …).
TAPPET_S3_ACCESS_KEY_IDambient credentialsAccess key id.
TAPPET_S3_SECRET_ACCESS_KEYambient credentialsSecret access key. Never logged.
TAPPET_S3_FORCE_PATH_STYLEfalseUse path-style URLs (needed by most self-hosted S3 services).

Single sign-on (OIDC)

OIDC login is enabled when TAPPET_OIDC_ISSUER is set. Register {TAPPET_PUBLIC_URL}/api/v1/auth/oidc/callback as the redirect URI with your identity provider.

VariableDefaultDescription
TAPPET_OIDC_ISSUERunsetIssuer URL (discovery document at {issuer}/.well-known/openid-configuration).
TAPPET_OIDC_CLIENT_IDrequired with an issuerClient id registered with the provider.
TAPPET_OIDC_CLIENT_SECRETunset (public client)Client secret. Never logged.
TAPPET_OIDC_SCOPESopenid,email,profileRequested scopes; openid is always included.
TAPPET_OIDC_ROLE_CLAIMunsetClaim holding group or role names (e.g. groups).
TAPPET_OIDC_ROLE_MAPunsetClaim value to instance role, ops=admin,staff=member. Roles: owner, admin, member.

External tools

VariableDefaultDescription
TAPPET_CLOUDFLARED_BINcloudflared on PATHExecutable used by tappet serve --tunnel cloudflared.
TAPPET_PARITY_BINparity/harness/... in the working directory, then tappet-parity on PATHParity harness used by tappet parity.

Command-line exit codes

CodeMeaning
0Success.
1The command ran but failed: a workflow execution that did not succeed (error, canceled, or left waiting), a failing credential test, lint errors, or a runtime/infrastructure error.
2Usage or input error: invalid arguments, unreadable or invalid JSON, an n8n export that cannot be imported, invalid configuration, an unknown workflow/credential/project id.