/plushcap/analysis/cloudflare/using-hpke-to-encrypt-request-payloads

Using HPKE to Encrypt Request Payloads

What's this blog post about?

The Managed Rules team at Cloudflare has implemented a feature allowing Enterprise users to debug Firewall Rules by viewing the part of a request that matched the rule, while ensuring secure storage of debugging data. They chose Hybrid Public Key Encryption (HPKE) for its combination of symmetric and public-key cryptography, aiming to provide a single, future-proof, robust, interoperable solution. HPKE is an emerging standard developed by the Crypto Forum Research Group (CFRG), with a high level of security in a generic manner and necessary hooks to tie messages to their context. The team implemented HPKE in Rust due to its native primitives and ability to compile to WebAssembly, allowing reuse across the edge component that encrypts payloads and the UI and CLI that decrypt them.

Company
Cloudflare

Date published
Feb. 19, 2021

Author(s)
Miguel de Moura, Andre Bluehs

Word count
1766

Hacker News points
2

Language
English


By Matt Makai. 2021-2024.