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

Security model

A workflow engine holds credentials for many systems, accepts requests from the internet, and runs code that users write. This page explains what Tappet protects, the controls it has, and the defaults for each deployment mode. The pages below go into detail.

PageCovers
Outbound network policySSRF protection for every outbound connection
Exec capabilityShell, SSH, local files, MCP stdio
Credentials vaultEnvelope encryption, key sources, OAuth2 tokens, rotation
Users, roles and SSOLocal users, API keys, RBAC, OIDC

To report a vulnerability, see SECURITY.md.

What we protect against

ThreatControls
A workflow (or an editor) reaching internal services or cloud metadata endpointsEgress policy enforced after DNS resolution and on every redirect, for HTTP and native protocols alike
Code in expressions or Code nodes escaping or exhausting the hostQuickJS sandbox without network, file or process access; memory cap; interrupt-based time budget; JS on dedicated threads
Editors running commands on the hostExec-class nodes disabled unless the instance enables them
Credential theft from the database or a backupEnvelope encryption with per-credential keys; the key-encryption key is never stored with the data
Secrets leaking through logs, execution data or error messagesRedaction of every resolved secret in all its encodings
Users seeing or changing other teams’ workflows and credentialsProjects and RBAC, checked on every API route
Forged webhook deliveriesPer-trigger signature verification with constant-time comparison and replay windows
Denial of service through large or many requestsBody caps, durable queue with backpressure, per-path rate limits, loop and item guards

Out of scope: a malicious instance owner, a compromised host, and workflows that an authorized editor builds to send their own project’s data somewhere. Tappet records those actions in the audit log; it does not prevent them.

Defaults by deployment mode

ControlSingle user (default)Team (production)Multi-tenant (TAPPET_MULTI_TENANT=true)
Egress policylocal: metadata ranges blocked, private and loopback allowedstrict recommendedstrict required
Exec-class nodesDisabled unless TAPPET_ALLOW_EXEC=trueSame; admins enable per projectDisabled; only the instance owner can override per project
$env in expressionsAllowedConsider disablingDisabled
Encryption keyAuto-generated file in dev modeTAPPET_ENCRYPTION_KEY required (TAPPET_ENV=production)Required; KMS or Vault Transit recommended
Sign-inLocal owner accountLocal users, API keys, OIDCOIDC recommended

Webhooks

Production webhook URLs are public by design: anyone who knows the URL can call it. Protect them with one of:

  • the Webhook node’s authentication option (basic auth, a header token, or a JWT),
  • HMAC verification of the body, for senders that sign requests,
  • connector triggers, which verify vendor signatures automatically,
  • network controls in your reverse proxy (IP allowlists for known senders).

Request bodies are capped (16 MB default, TAPPET_WEBHOOK_BODY_MAX), each path is rate limited, and the raw body is preserved for signature checks.

Redaction

For every execution, Tappet collects the secret values it resolves (credential fields, OAuth2 tokens, signing secrets) and masks them wherever they could appear: execution data, node errors, logs and Server-Sent Event frames. Each secret is matched in its raw form and its base64, base64url, URL-encoded and Bearer -prefixed forms.

Independently of the values, these are always masked: the headers Authorization, Cookie, Set-Cookie and Proxy-Authorization, and any header or field whose name contains api and key, token or secret.

Error messages from outbound requests include a request summary (method and URL) with query parameters that look like credentials removed.

Limits

LimitDefaultVariable
Webhook request body16 MBTAPPET_WEBHOOK_BODY_MAX
In-memory payload budget256 MBTAPPET_INFLIGHT_BYTES
Queue depth before 503100,000TAPPET_QUEUE_MAX_DEPTH
Runs of one node per execution10,000TAPPET_MAX_NODE_RUNS
Items per node output1,000,000TAPPET_MAX_ITEMS_PER_OUTPUT
Sub-workflow depth10TAPPET_MAX_SUB_WORKFLOW_DEPTH
JavaScript memory64 MBTAPPET_JS_MEMORY_LIMIT
Code node time budget5 sTAPPET_CODE_TIMEOUT

Audit log

Security-relevant actions are written to the audit log (/api/v1/audit, Settings > Audit log) with actor, time, action and target:

  • workflow create, update, activate, deactivate, delete,
  • credential create, update, delete, and every read of a credential for an execution,
  • user and role changes, API key creation and revocation,
  • encryption key rotation.

The audit log is append-only through the API and is not pruned by execution retention.

Hardening checklist

  • Run behind a TLS-terminating reverse proxy and set TAPPET_PUBLIC_URL to the https:// URL.
  • TAPPET_ENV=production and TAPPET_ENCRYPTION_KEY from a secret store, backed up separately from the database.
  • TAPPET_EGRESS_POLICY=strict, with an allowlist for the internal hosts workflows need.
  • TAPPET_ALLOW_EXEC unset unless required.
  • OIDC for sign-in, with role mapping from your identity provider’s groups.
  • API keys scoped and with an expiry.
  • Webhook nodes use authentication or signature verification.
  • Run as a non-root user with a read-only root file system (the container image and the systemd unit in deploy/ do this).
  • Metrics endpoint not exposed publicly.