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.
| Page | Covers |
|---|---|
| Outbound network policy | SSRF protection for every outbound connection |
| Exec capability | Shell, SSH, local files, MCP stdio |
| Credentials vault | Envelope encryption, key sources, OAuth2 tokens, rotation |
| Users, roles and SSO | Local users, API keys, RBAC, OIDC |
To report a vulnerability, see SECURITY.md.
What we protect against
| Threat | Controls |
|---|---|
| A workflow (or an editor) reaching internal services or cloud metadata endpoints | Egress 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 host | QuickJS sandbox without network, file or process access; memory cap; interrupt-based time budget; JS on dedicated threads |
| Editors running commands on the host | Exec-class nodes disabled unless the instance enables them |
| Credential theft from the database or a backup | Envelope encryption with per-credential keys; the key-encryption key is never stored with the data |
| Secrets leaking through logs, execution data or error messages | Redaction of every resolved secret in all its encodings |
| Users seeing or changing other teams’ workflows and credentials | Projects and RBAC, checked on every API route |
| Forged webhook deliveries | Per-trigger signature verification with constant-time comparison and replay windows |
| Denial of service through large or many requests | Body 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
| Control | Single user (default) | Team (production) | Multi-tenant (TAPPET_MULTI_TENANT=true) |
|---|---|---|---|
| Egress policy | local: metadata ranges blocked, private and loopback allowed | strict recommended | strict required |
| Exec-class nodes | Disabled unless TAPPET_ALLOW_EXEC=true | Same; admins enable per project | Disabled; only the instance owner can override per project |
$env in expressions | Allowed | Consider disabling | Disabled |
| Encryption key | Auto-generated file in dev mode | TAPPET_ENCRYPTION_KEY required (TAPPET_ENV=production) | Required; KMS or Vault Transit recommended |
| Sign-in | Local owner account | Local users, API keys, OIDC | OIDC 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
| Limit | Default | Variable |
|---|---|---|
| Webhook request body | 16 MB | TAPPET_WEBHOOK_BODY_MAX |
| In-memory payload budget | 256 MB | TAPPET_INFLIGHT_BYTES |
Queue depth before 503 | 100,000 | TAPPET_QUEUE_MAX_DEPTH |
| Runs of one node per execution | 10,000 | TAPPET_MAX_NODE_RUNS |
| Items per node output | 1,000,000 | TAPPET_MAX_ITEMS_PER_OUTPUT |
| Sub-workflow depth | 10 | TAPPET_MAX_SUB_WORKFLOW_DEPTH |
| JavaScript memory | 64 MB | TAPPET_JS_MEMORY_LIMIT |
| Code node time budget | 5 s | TAPPET_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_URLto thehttps://URL. -
TAPPET_ENV=productionandTAPPET_ENCRYPTION_KEYfrom a secret store, backed up separately from the database. -
TAPPET_EGRESS_POLICY=strict, with an allowlist for the internal hosts workflows need. -
TAPPET_ALLOW_EXECunset 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.