Blueprints: named combinations of edge-response kits for Cloudflare

A blueprint is a named combination of kits with their optional joins switched on. It adds no code to a kit. Each kit keeps its own stack and its own Worker, and the blueprint is the list of bindings between them, with one test that proves them together. Today there is one: full. Nothing here has been deployed.

The full blueprint

The full blueprint joins all five kits. Its first use case is a hostile burst of traffic against one of your zones, followed from the first event to the last undo. These are the steps the end-to-end test runs, in order:

  1. Store. A batch of firewall events arrives at Ingest and is stored. Ingest also passes it on the edge-response-records-tap queue.
  2. Admit. The zone is admitted in Detect by the two-step raise, one rung at a time: store-only to detect to enforce-log, each rung proposed and then confirmed by the same administrator.
  3. Signal. A rule in Detect sees many blocked requests from one address in a short time and raises a signal on the edge-response-signals queue.
  4. Enrich. Enrichment opens a case, looks up the host in the Asset map through AssetRead, adds threat intelligence about the address, and its agent proposes blocking the host through RespondPropose. The agent only chooses whether to propose. The host comes from the recorded event and is checked by code.
  5. Approve. A person signs in through Access and approves the proposal in Respond, using the digest Respond showed them.
  6. Apply. Respond writes one rule to the zone in log mode, verifies it, and records every step in its audit trail. In the test the fake Cloudflare API sees exactly one rule created.
  7. Undo. When the time limit and a grace period pass, the timed undo removes the rule, and the audit trail shows the undo.

The bindings

Each binding is a grant, and each is optional. Add them one at a time.

Caller Binding Callee and capability Without it
Ingest queue producer onto edge-response-records-tap Detect consumes the queue Ingest only stores
Detect queue producer onto edge-response-signals Enrichment consumes the queue Detect keeps signals in its own database
Enrichment service binding to the Asset map AssetRead no asset context on the case
Enrichment service binding to Respond RespondPropose the agent only writes a note
Enrichment Workers AI through one AI Gateway the model no agent layer
Respond service binding to Detect AdmissionRead Respond uses its own static list of zones

A queue is created only by the stack of the kit that consumes it, because the Alchemy version in use cannot adopt a queue that already exists. Detect's stack creates edge-response-records-tap, and Enrichment's stack creates edge-response-signals and edge-response-signals-dead. The producers (Ingest, switched on by EDGE_RESPONSE_RECORDS_TAP=1, and Detect, switched on by EDGE_RESPONSE_SIGNALS_QUEUE=1) only bind to them by name, so deploy the consumers first: Detect before Ingest's tap, and Enrichment before Detect's signals. A kit deployed alone declares no peer queue.

See How kits join for what a capability is. Every outbound call to Cloudflare uses its own narrow token: the Asset map reads zones and DNS records, Enrichment reads Intel and Radar, and Respond edits WAF custom rules on the zones you configured and nothing else.

Releasing the stop switches

Nothing acts until a person has released the switches. Detect's, Respond's and Enrichment's agent switch all start stopped. Each is resumed in two steps by an administrator, and Respond's action class is also raised from off to ask in two steps. The admission matrix guide describes the pattern.

How it is tested

The full flow runs in a local test where the five kits run together in a simulator of Cloudflare's runtime, joined by the real queues and service bindings listed above. Calls to Cloudflare's own API, to Access and to the model are answered by stand-ins that copy the real shapes, and the Basin streams, which the simulator cannot bind, are a recording Worker. No live account is touched. A second test starts the kits with no peer binding and checks that each answers its health route. What cannot be proven without a real account, the first real deployment, is left as a step for a person to take at release.

Choosing your own combination

You do not need a blueprint. Each kit passes its tests alone with every peer off, so you can start with Ingest alone and add a join when you want it.