Hyperdrive - Hyperdrive now supports custom TLS/SSL certificates for MySQL
Key Points
- Custom TLS/SSL for MySQL
- VERIFY_CA and VERIFY_IDENTITY modes
- Client certificates (mTLS) supported
Summary
Hyperdrive now supports custom TLS/SSL certificates for MySQL connections. Engineers can configure server certificate verification modes (VERIFY_CA and VERIFY_IDENTITY) and upload client certificates (mTLS) so Hyperdrive can both verify MySQL server identity and authenticate to MySQL using certificates in addition to username/password.
Key Points
- Supported SSL modes:
VERIFY_CAandVERIFY_IDENTITYto validate server certificates and optionally host identity. - Client certificates (mTLS) supported so Hyperdrive can present credentials beyond username/password.
- Upload CA/client certificates and reference them in Hyperdrive configs via Wrangler.
Commands (examples):
npx wrangler cert upload certificate-authority --ca-cert your-ca-cert.pem --name your-custom-ca-name
npx wrangler hyperdrive create your-hyperdrive-config --connection-string="mysql://user:password@hostname:port/database" --ca-certificate-id <CA_CERT_ID> --sslmode VERIFY_IDENTITY
Actionable notes
- Prefer
VERIFY_IDENTITYwhen you need hostname verification. - Ensure uploaded certificates are referenced by their IDs in the Hyperdrive configuration.
- Test the connection after deployment to confirm TLS verification and mTLS authentication work as expected.