Brifing

Cloudflare Open Sources Its Privacy Proxy CLI Tool

Debugging Oblivious HTTP protocols just got easier with this new open-source utility.

Cloudflare Blog3 min

1The Debugging Challenge in Privacy Protocols

Cloudflare highlights the complexity of debugging privacy-focused protocols like Oblivious HTTP (OHTTP). These protocols involve multi-step processes across four different parties. Binary HTTP encoding and scattered RFC drafts further complicate troubleshooting. Products like Apple's Private Relay and Microsoft's Edge Secure Network VPN magnify these challenges at scale. As customer requirements and system complexity grew, development and incident response friction increased significantly.

2How OHTTP Works

Oblivious HTTP guarantees that no single party can know both the requestor's identity and the request content. This requires two non-colluding servers (relay and gateway). The workflow: Client fetches public key from gateway, encrypts request to relay. Relay strips client identity, forwards to gateway. Gateway decrypts, routes to target. Response follows reverse path. Each step represents potential failure points requiring manual inspection.

3Limitations of Traditional Debugging

Cloudflare engineers previously created custom one-off solutions for OHTTP issues. Manual inspection of binary HTTP raw bits was error-prone and time-consuming. For example, parsing a public key hex string required manually decoding 41-byte length (0029), encryption method (DHKEM), and key value (b9bb...). Similarly, crafting binary HTTP requests involved referencing RFC 9292 with custom scripts, verifying each field individually.

4The pvcli Revolution

Privacy-client (pvcli) condenses these complex steps into a single command. Open-sourced under Apache-2.0, it automatically handles OHTTP encryption/decryption. Its user-friendly interface displays each protocol step sequentially. Tasks like public key analysis that took hours now complete instantly. The tool's flexible architecture supports new protocols and architectures through community contributions.

5Debugging Scenario with pvcli

Previously, detecting an extra '20' (space character) in OHTTP requests required consulting customer logs and bit-level analysis. With pvcli, such mismatches between declared length (0x0a) and actual byte count (11) are flagged immediately. The tool pinpoints error locations and suggests fixes, transforming what was a multi-hour process into seconds.

6Industry Impact and Use Cases

pvcli will benefit all teams developing privacy protocols, not just Cloudflare. It streamlines maintenance for high-profile infrastructure like Apple Private Relay and Microsoft Edge VPN. The tool particularly accelerates compliance with data privacy regulations in finance and healthcare sectors. Its open-source nature invites community improvements that could further advance privacy tech.

7Technical Specifications

The tool executes full OHTTP requests with one command: `pvcli ohttp --target https://example.com --relay relay.example --gateway gateway.example`. Under the hood, it manages public key fetching, binary HTTP conversion, encryption, and relay-gateway communication. Developers can view detailed logs of each step in verbose mode. It supports various encryption schemes (X25519, AES-128-GCM) and RFC standards out of the box.

8The Future of Privacy Tech

pvcli's open-source release marks a significant step toward democratizing internet privacy tools. Beyond improving Cloudflare's operational efficiency, this move aims to elevate industry-wide security standards. As GDPR and CCPA regulations tighten, widespread adoption of such tools will contribute to a more secure internet ecosystem for all users.

Original article: Cloudflare Blog — Cloudflare, Gizlilik Proxy CLI Aracını Açık Kaynak Yapıyor