Skip to content

Commit d7739b4

Browse files
thomasgauvinOxyjun
andauthored
thomasgauvin: add explanations to connect to private network db from … (#19394)
* thomasgauvin: add explanations to connect to private network db from hyperdrive with tunnels * Update src/content/docs/hyperdrive/configuration/connect-to-private-database.mdx --------- Co-authored-by: Jun Lee <[email protected]>
1 parent e74e056 commit d7739b4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
21.9 KB
Loading

src/content/docs/hyperdrive/configuration/connect-to-private-database.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ When your database is isolated within a private network (such as a [virtual priv
1818
- [Cloudflare Tunnel](/cloudflare-one/connections/connect-networks/) is used to establish the secure tunnel connection.
1919
- [Cloudflare Access](/cloudflare-one/policies/access/) is used to restrict access to your tunnel such that only specific Hyperdrive configurations can access it.
2020

21+
A request from the Cloudflare Worker to the origin database goes through Hyperdrive, Cloudflare Access, and the Cloudflare Tunnel established by `cloudflared`. `cloudflared` must be running in the private network in which your database is accessible.
22+
23+
The Cloudflare Tunnel will establish an outbound bidirectional connection from your private network to Cloudflare. Cloudflare Access will secure your Cloudflare Tunnel to be only accessible by your Hyperdrive configuration.
24+
25+
![A request from the Cloudflare Worker to the origin database goes through Hyperdrive, Cloudflare Access and the Cloudflare Tunnel established by `cloudflared`.](~/assets/images/hyperdrive/configuration/hyperdrive-private-database-architecture.png)
26+
2127
<Render file="tutorials-before-you-start" product="workers" />
2228

2329
:::caution[Warning]
@@ -177,4 +183,5 @@ If you successfully receive the list of `pg_tables` from your database when you
177183
## Troubleshooting
178184

179185
If you encounter issues when setting up your Hyperdrive configuration with tunnels to a private database, consider these common solutions, in addition to [general troubleshooting steps](/hyperdrive/observability/troubleshooting/) for Hyperdrive:
180-
* Ensure your database is configured to use TLS (SSL). Hyperdrive requires TLS (SSL) to connect.
186+
187+
- Ensure your database is configured to use TLS (SSL). Hyperdrive requires TLS (SSL) to connect.

0 commit comments

Comments
 (0)