logo

Elephants in tunnels: how Hyperdrive connects to databases inside your VPC networks

ID: 4f188b47-27cd-50e6-9c66-8cd9de6a513d

STIX ID: report--4f188b47-27cd-50e6-9c66-8cd9de6a513d

Feed Name: Cloudflare Blog

Date Published: 2024-10-25

Date Updated: 2026-04-27

Author: Andrew Repp

...
...

Cloudflare describes how Hyperdrive now routes PostgreSQL traffic from Workers over Cloudflare Tunnels using WebSockets, enabled by a Rust-based generic stream abstraction that implements AsyncRead/AsyncWrite for custom Postgres protocol handling. The post explains upgrading TCP/TLS connections to WebSockets, building a compatible WebSocket stream wrapper, and enforcing Zero Trust security with Access service tokens in the WebSocket upgrade headers. It highlights internal adoption (“customer zero”) to access centralized Postgres from the global network, aiming to simplify secure, low-latency database connectivity without exposing private resources to the public Internet.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.