Ingest kit for Cloudflare: one front door for whatever you send down it
Status: in development. Nothing here is released or deployed, and no stack has been applied to a real Cloudflare account.
The Ingest kit is the single, secure entry point for events. It converts what arrives to the common record shape and stores it. It is the first kit most people would deploy.
Purpose
Security data arrives from many places in many shapes. Ingest gives it one door and one set of rules: authenticate the sender, cap the size, convert to the record envelope, remove secrets, apply privacy rules, and store. Rejected events are stored separately with the reasons, so nothing disappears silently. The concept page describes the record.
What exists today
All six entry patterns on the entry patterns page are in the code, and each has its own tests. Only Cloudflare logs through Logpush answers by default. The setting ENABLED_ENTRIES turns on the signed webhook, the keyed batch and the shared-secret header; a pattern that is not switched on answers 404. The service-binding pattern has no web address: it exists when another Worker binds to the kit's IngestWrite entrypoint. The scheduled pull has none either: the Worker's own timer runs it.
Four Logpush datasets are handled: firewall_events, http_requests (security and bot fields only), dns_logs and audit_logs. Only the firewall events source is marked live; the others are declared as planned, so the health check does not judge them.
Beyond the doors, the kit has a read-only query server for agents and people, and an hourly health check. These are described below. None of it has run against a real account: the tests run it locally and in the Workers runtime, and the Cloudflare resources are read from the stack's code.
What it deploys for Cloudflare
- A front-door Worker, which is your code running on Cloudflare's network. It has two timers: a scheduled pull every 15 minutes and the health check at seven minutes past each hour.
- Basin streams for accepted records and for rejects, an R2 bucket with a table catalogue, two sinks into that catalogue, and two pipelines that copy each stream into its sink.
- A D1 database for source keys, the last time each source was seen, and the scheduled pull's cursors.
- A Workers KV namespace.
The kit's stack never creates a queue. It can bind the Worker to the Queue edge-response-records-tap, which the Detect kit's stack creates because Detect reads it. This is off unless EDGE_RESPONSE_RECORDS_TAP=1 is set, and Detect is deployed first.
This list is what the kit's stack declares. How Cloudflare accepts the Basin resources is not yet proven.
HTTP routes
GET /healthanswers the kit's name, status, version and whether its database and key-value namespace respond.POST /v1/logpush/{dataset}takes a Logpush delivery. It needsAuthorization: Bearer <key id>.<secret>, checked against a stored digest before any of the body is read. A wrong, revoked or missing key is the same401. An unreadable key table is503, so that Logpush retries and nothing is lost. A good delivery is answered202with counts of received, accepted, rejected and dropped events.POST /v1/webhook/{source},POST /v1/batchandPOST /v1/hook/{source}are the signed webhook, the keyed batch and the shared-secret header, each only when switched on.POST /mcpis the query server. It is a404until its account id, warehouse name and read-only query token are set, and it answers only people signed in through Access, never a service token. It has four read-only tools (catalog,sources,searchandquery). Every call is audited as a record before it runs, and a query goes through a guard that reads it into tokens and sends only what it wrote from them.
How a person approves things
Ingest changes nothing on your Cloudflare account and has nothing to approve. A person mints a source key, which is a step taken by hand: the secret is shown once and only its digest is stored. The other doors need a secret or an Access application that a person sets up.
Stop switches
Ingest has no stop switch of its own. You stop it by revoking its source keys, or by removing the Logpush job. Whether anything beyond storing happens is decided downstream, by the admission matrix in Detect.
Peers
All optional, all off by default. Ingest can pass batches of records to Detect by the edge-response-records-tap queue, which Detect's stack creates; deploy Detect first, then Ingest with the tap switched on. Without Detect it stores only.