Planning Équipes

Search Français Let’s talk

Control what leaves the instance

As long as you configure nothing, the application reaches only the SMTP relay and error tracking. Webhooks, the weather alert and the remote solve machine add outputs: this page says what goes to whom, what the anti-SSRF guard refuses and how to cut each output.

Outgoing calls

Webhooks target an address typed by an administrator: the textbook SSRF case, using the server to reach what only it can reach (the PostgreSQL port, a cloud’s metadata service at 169.254.169.254, an admin interface on the loopback). ADR 0074 (external site).

What the guard refuses

OutboundGuard decides at the webhook’s registration and then at each send (a name that resolved outward yesterday may point inward today):

Rule Detail
https:// only http:// is accepted only towards an allowed network
Ports 443 and 8443 any port towards an allowed network
No internal address loopback (127.0.0.0/8, ::1), private RFC 1918, link-local (169.254.0.0/16, cloud metadata; fe80::/10), ULA fc00::/7, CGNAT 100.64.0.0/10, multicast, unspecified (0.0.0.0, ::), reserved; an IPv6 address embedding an IPv4 (::ffff:a.b.c.d, ::a.b.c.d, NAT64 64:ff9b::/96, 6to4 2002::/16, Teredo 2001::/32) is judged on the IPv4 it carries, and the local NAT64 64:ff9b:1::/48 is refused
No credentials in the URL user:password@ refused

The guard resolves the name and checks all its addresses, and the connection goes to the verified address: the HTTP client (Vert.x) does not resolve a second time, which closes the DNS rebinding window. TLS still verifies the certificate against the host name.

Allowed networks. An n8n on the same Docker network is legitimate: WEBHOOKS_RESEAUX_AUTORISES lists the addresses and CIDR blocks that escape the guard (same syntax as CONNEXION_PROXYS_FIABLES, a malformed entry stops startup). Opening a block opens all its machines to an application administrator: declare the subnet of the one container targeted, not 10.0.0.0/8.

What the receiver cannot do

  • Redirect: a redirect is never followed (the address it names was not verified), the delivery is abandoned.
  • Be read: the response body is drained and discarded. The delivery log keeps only a code, a duration and a fixed phrase, never an exception message, which can copy the request line and so a secret Slack address. A webhook is not for reading an internal service.
  • Make it wait: name resolution 5 s, connection 5 s, then 10 s for the whole exchange, after which the connection is cut. The send leaves from a thread of its own, never the one of the publication or solve that caused it.

Push notifications: an address a browser gave

A push notification goes to the address a browser supplied when subscribing: it too is a request from the server to a URL a third party chose. The same OutboundGuard judges it when subscribing and at every send, with one difference: WEBHOOKS_RESEAUX_AUTORISES never applies to it, since no legitimate push service sits on an internal network. It therefore requires https://, ports 443 and 8443 and no internal address; the request goes to the checked address (no second resolution), the certificate is verified against the name, a redirect is never followed and the response is dropped. An address the guard refuses at send time deletes the subscription. No list of push services is kept: the guard decides on the address, not on the provider. A subscription is only given to someone signed in to their space, and its addresses are encrypted at rest like the webhook secrets. Logs name an outcome only, never an address, a key or a message.

Secrets at rest

The HMAC secret of a generic webhook, the address of a Slack, Discord or Matrix webhook (which is the secret: holding it is enough to write in the room) and a Telegram bot’s token are encrypted in the database (AES-256-GCM, key INSTANCE_SECRET_KEY). The SQL export does not contain them; the nightly backup, which takes the whole cluster, holds only the encrypted form. The screen never shows them again: the HMAC secret is shown once, a room address reduced to its host. The action log notes the names of the fields changed, never their value. Key management: exploitation.md, environment variables section.

Cutting webhooks

WEBHOOKS_ENABLED=false cuts every output: nothing is queued or sent, the test is refused; pending deliveries resume when the variable returns to true (within their 30 days). No MCP tool configures a webhook: a room address is a secret, and opening a network output from a conversation is an exfiltration route (mcp-connexion.md).

The weather alert

Each morning, the active edition queries Open-Meteo (METEO_URL) about the places of its open stands. What leaves is place coordinates rounded to 0.01° (about a kilometre), dates and the server’s IP address: no personal data. The browser never calls the service (the CSP has nothing to open).

METEO_URL is set by the operator, not typed by a user: the webhook guard does not apply (otherwise a self-hosted Open-Meteo on the Docker network would be refused). Redirects not followed, exchange bounded to 10 s and response to 2 MB. An unreadable response or a silent service is never propagated: it is noted (“unreachable since...”) and told once to the administrator on the second day. METEO_ENABLED=false cuts the feature.

Remote solve: what leaves, and to whom

An instance can entrust its solves to a worker on another machine (ADR 0086 (external site), set up in exploitation.md, “Solving on another machine”). With no configuration, nothing leaves.

Subject What is done
Direction of connections All leave from the application; the worker calls nobody
Worker authentication A shared secret on each call, compared in constant time
Encryption HTTPS, certificate pinned by its SHA-256 fingerprint. A worker with no certificate listens only on the loopback, and the application refuses to start on an http:// address that is not
What the worker receives The problem under pseudonyms: no name, address, phone, token or free text (see what the instance keeps)
What the worker keeps Nothing on disk; a problem and its plan in memory, replaced by the next
The plan that comes back Rescored by the application on its own problem; a score different from the one announced, an unknown seat or a pinned seat moved, and the plan is refused
Worker address The operator’s, in an instance variable: the anti-SSRF guard does not apply, as for METEO_URL

A limit to know: the worker does not rate-limit refused calls. Its protection is a 256-bit secret and a firewall that opens its port to the application only.

A mistake, an omission? Fix this page on GitHub. (external site)

A question no guide answers?

Let’s talk See hosting