Understanding the Cloudflare OHTTP Gateway
Cloudflare announced a closed beta for the Cloudflare OHTTP Gateway, a paid add-on that lets developers handle Oblivious HTTP traffic directly at their zone endpoints.
According to Cloudflare, the Cloudflare OHTTP Gateway is a closed-beta, paid add-on designed to let developers receive Oblivious HTTP (OHTTP) traffic directly at their zone endpoints. The company also renamed its existing Privacy Gateway product to "Cloudflare OHTTP Relay" to distinguish between the two components of an OHTTP architecture.
How OHTTP Works
Oblivious HTTP separates network-level client identifiers from request payloads by routing traffic through two independent hops: a relay and a gateway.
According to the source, the relay observes client identifiers—such as IP addresses and TLS fingerprints—but cannot read the request contents because the payload is encrypted using Hybrid Public Key Encryption (HPKE). The relay then forwards the ciphertext to the gateway. The gateway performs the cryptographic decapsulation so that the backend application server receives plain HTTP without the client's original IP address or TLS metadata.
The Cloudflare OHTTP Gateway manages HPKE keys automatically, serving public key configurations via GET requests to /.well-known/ohttp-gateway. It processes standard and chunked OHTTP traffic sent to that endpoint while allowing non-OHTTP requests to pass to the application server normally.
Why Developers Might Care
App developers can use the managed gateway to integrate network-level privacy into their applications by default. Because the gateway runs on Cloudflare's global edge network, it can sit in front of servers hosted on Cloudflare to minimize latency.
To prevent abuse, developers can run Cloudflare Access before requests are decrypted, implementing zero-trust authentication policies such as mutual TLS or static service credentials to verify incoming traffic from trusted relays.
Limitations and Architectural Constraints
Adopting the Cloudflare OHTTP Gateway involves several constraints:
- Latency: Routing requests through multiple independent hops adds network overhead compared to a direct client-server connection.
- Separation of Trust: To preserve the core privacy model, the gateway automatically refuses to decrypt requests originating from Cloudflare Workers or proxied hosts on Cloudflare. Developers must use a third-party relay operated by a separate entity.
- Application-Layer Privacy: OHTTP protects network-level data only. Developers must ensure that application payloads do not accidentally include personally identifiable information, such as usernames or email addresses.
Cloudflare OHTTP Gateway Announcement