Internal Service Exposure & Management with Spectrum
Elephants in tunnels: how Hyperdrive connects to databases inside your VPC networks

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

10/25/2024 · Andrew Repp, Emilio Assunção, Abhishek Chanda

What this post added

This post details the technical implementation of integrating Hyperdrive with Cloudflare Tunnels for secure database access. It explains the need for a custom Postgres message protocol handler and the use of Rust traits (AsyncRead, AsyncWrite) to create a generic stream interface. It also covers the challenges and solutions for implementing WebSocket support for these streams, ensuring compatibility with Cloudflare's internal infrastructure and the `cloudflared` daemon.

Read the original post ↗