Hyperdrive now supports custom TLS/SSL certificates
Hyperdrive now supports server certificate verification (verify-ca and verify-full modes) and client certificate authentication (mTLS) for database connections. New wrangler cert commands enable uploading CA certificates and client certificate pairs to protect against man-in-the-middle attacks and strengthen database security.
Hyperdrive now supports more SSL/TLS security options for your database connections:
- Configure Hyperdrive to verify server certificates with
verify-caorverify-fullSSL modes and protect against man-in-the-middle attacks - Configure Hyperdrive to provide client certificates to the database server to authenticate itself (mTLS) for stronger security beyond username and password
Use the new wrangler cert commands to create certificate authority (CA) certificate bundles or client certificate pairs:
# Create CA certificate bundle
npx wrangler cert upload certificate-authority --ca-cert your-ca-cert.pem --name your-custom-ca-name
# Create client certificate pair
npx wrangler cert upload mtls-certificate --cert client-cert.pem --key client-key.pem --name your-client-cert-name
Then create a Hyperdrive configuration with the certificates and desired SSL mode:
npx wrangler hyperdrive create your-hyperdrive-config \
--connection-string="postgres://user:password@hostname:port/database" \
--ca-certificate-id <CA_CERT_ID> \
--mtls-certificate-id <CLIENT_CERT_ID>
--sslmode verify-full
Learn more about configuring SSL/TLS certificates for Hyperdrive to enhance your database security posture.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for Windows hotfix - trusted certificate chains
A new GA release for Windows Cloudflare One Client is available, addressing an issue with building trusted certificate chains.
Cloudflare One Client for macOS - Trusted Certificate Chain Fix
A new GA release of the macOS Cloudflare One Client is available. This hotfix addresses an issue with building trusted certificate chains.
Cloudflare One Client for Linux
A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.