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
thomasgauvin
thomasgauvin5d ago
How is your database configured? We've verified both ca certs and mtls for GCP Cloud SQL so it should definitely work
marsoleg
marsoleg3d ago
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.
こた
こたOP3d ago
Here is the configuration I've masked sensitive information with "foo"
yevgen
yevgen3d ago
cc @Adrian
Adrian
Adrian2d ago
Thank you yevgen - following up with @こた and @marsoleg via DM to get more details on their set up

Did you find this page helpful?