Respond kit for Cloudflare: one gate for every change, with a person's approval

Status: in development. Nothing here is released or deployed.

The Respond kit is the only kit that changes your Cloudflare account. Every change passes through one gate, and in the first release a person approves each one. There is no automatic setting.

Purpose

An action goes through a fixed sequence: it is proposed, a person approves exactly what was proposed, the gate checks everything again, the action is applied, its result is verified, and it is removed when its time limit ends. The gate fails closed: if it cannot read a fact, such as the stop switch or the zone's level, it refuses.

The first and only action is one WAF custom rule that matches a single hostname. WAF is Cloudflare's web application firewall. The rule is written in log mode when the zone is at enforce-log and in block mode at enforce-block.

What it deploys on Cloudflare

Capability entrypoints

The default entrypoint has no such methods, and no route or method named execute exists.

HTTP routes

Behind Cloudflare Access apart from health. A POST must be same-origin JSON of at most 1 KB with strict fields.

How a person approves things

A person with the approver role opens the approval page, reads the host, zone, mode and time limit, and approves or denies. What they approve is bound by a digest of exactly those fields, so a change after the proposal voids the approval. The gate then re-reads the stop switch, the setting, the zone's recorded level and the counters before it writes anything. Nothing applies without this step.

Stop switches

Peers

All optional. Respond reads the effective level of a zone from Detect through AdmissionRead, or from its own static list when Detect is absent. It accepts proposals from Enrichment, and without Enrichment a person can still propose through the capability. A binding to Detect that is present but unusable fails closed.