Outbound network policy
Workflows make outbound connections on behalf of users: HTTP requests, connector calls, database connections, LLM calls. Without a policy, anyone who can edit a workflow can make the server connect to internal services, including cloud metadata endpoints that hand out credentials. This class of attack is called server-side request forgery (SSRF).
Tappet enforces one egress policy for every outbound connection:
- the HTTP Request node and the AI HTTP tool,
- connector operations, lookups and webhook registration,
- OAuth2 token and refresh requests,
- LLM and embedding providers, vector stores, MCP over SSE and HTTP,
- protocol connectors: Postgres, MySQL, Redis, MongoDB, SMTP, IMAP, SSH, FTP, Kafka, AMQP, MQTT.
How it is enforced
- After DNS resolution. The policy checks the IP address that will actually be used, not the host name, through a custom resolver and a connect-time check. A host name that resolves to a blocked address is blocked.
- On every redirect. Each redirect hop is resolved and checked again.
- No rebinding. The address that was checked is the address that is connected to, so a DNS answer that changes between check and connect cannot bypass the policy.
- All notations. IPv4-mapped IPv6 (
::ffff:169.254.169.254), decimal and octal IPv4 notations, and IPv6 forms are normalized before the check.
A blocked connection fails the node with a policy error that names the host and the rule, never silently.
Policies
Always blocked
Unless explicitly allowlisted, in every mode:
| Range | Why |
|---|---|
169.254.0.0/16 | Link-local, including the cloud metadata service at 169.254.169.254 |
fd00:ec2::254 | AWS metadata service over IPv6 |
100.100.100.200 | Alibaba Cloud metadata service |
0.0.0.0/8, :: | Unspecified addresses (often routed to localhost) |
::ffff:0:0/96 forms of the above | IPv4-mapped IPv6 |
local (default for single-user installs)
Only the always-blocked ranges. Loopback and private networks are reachable, so a workflow can call a local Ollama, a database on the LAN, or a service in the same Docker network.
strict (required in multi-tenant mode)
Also blocks:
| Range | Meaning |
|---|---|
127.0.0.0/8, ::1 | Loopback |
10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 | Private IPv4 |
100.64.0.0/10 | Carrier-grade NAT (also used by some VPNs) |
fc00::/7 | Unique local IPv6 |
fe80::/10 | Link-local IPv6 |
Configuration
TAPPET_EGRESS_POLICY=strict
# Hosts and CIDRs that are always allowed, even if a rule above blocks them:
TAPPET_EGRESS_ALLOW=10.20.0.0/16,postgres.internal,ollama.internal
# Extra ranges to block, on top of the policy:
TAPPET_EGRESS_DENY=203.0.113.0/24
Instance admins can also allowlist hosts and CIDRs per project, so one team can reach its internal database without opening it to every project. Project allowlists cannot remove the always-blocked ranges unless the instance allowlist does.
Recommendations
- Use
strictfor any instance where people other than the operator can edit workflows. - Allowlist the narrowest CIDR or host that works, per project.
- Do not allowlist the metadata ranges. If a workflow needs cloud credentials, store them as a credential instead.
- Combine the egress policy with network-level controls (Kubernetes
NetworkPolicy, security groups) for defense in depth. The Helm chart includes an optionalNetworkPolicy.