--- id: NET-1 family: RT-NET level: core profiles: [runtime] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/rt-net/net-1 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # NET-1 — An outbound URL is checked before the request, and the check is pinned to it *RT-NET (Part II) · level: core · profiles: runtime · added in 1.0* 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](https://flowdrop.io/spec/rulings/open-25), [OPEN-37](https://flowdrop.io/spec/rulings/open-37), [OPEN-45](https://flowdrop.io/spec/rulings/open-45). ## Related rules - Names: NET-2, NET-3 - Referenced by: NET-2, NET-3 --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.