Hi there!
Hi there!
I'm trying to connect to Google Cloud SQL using Hyperdrive, but I'm getting an Internal Server Error and not sure how to fix it.
I'm connecting via the public IP, and I've allowed all of Cloudflare's IPv4 addresses.
When I use the same connection string with psql, the connection works fine, so I suspect the issue is on Cloudflare's side.
Does anyone know what I should do in this case?
(Update)
After further investigation, I found that the error occurs when
--ca-certificate-id
and --mtls-certificate-id
are specified.
When I create the connection without those flags, it works successfully.
I also tried re-uploading the certificates, but the error still persists.5 Replies
How is your database configured? We've verified both ca certs and mtls for GCP Cloud SQL so it should definitely work
I can confirm that the problem does indeed exist. When specifying any SSL mode other than Require, Cloudflare starts returning an Internal Server Error, even without mTLS being enabled. Without this, everything works perfectly.
Here is the configuration
I've masked sensitive information with "foo"
cc @Adrian
Thank you yevgen - following up with @こた and @marsoleg via DM to get more details on their set up