Skip to content

An outbound URL is checked before the request, and the check is pinned to it

Validating a name and then dialling the name is not a check: a hostile resolver answers publicly for the check and privately for the request.

The rule

Normative: this is the rule
  1. Before a node makes a request to a URL derived from workflow input, the URL MUST be validated.
  2. Validation MUST allow only the http and https schemes.
  3. Validation MUST resolve the host, over both IPv4 and IPv6.
  4. Validation MUST refuse the URL if any resolved address is in a private or reserved range.
  5. A refusal MUST be a node-level error (ERR-1), carrying a configuration error code: it is routed along the node's error edge where it has one (EDGE-6), and otherwise fails the run (ERR-8).
  6. The request MUST be made to the validated address, so the connection is pinned to the address that was checked.
  7. The connection MUST honour an explicit port in the URL.
  8. Every node that dials a caller-supplied URL MUST perform this check; a second implementation of it is a second thing to forget to fix.

Why

Recorded under OPEN-25, OPEN-37, OPEN-45.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · NET-1 · changed in spec 1.0