I've got a custom cloud build which runs a docker image hosted in our google container registry and is not able to connect to our Cloud SQL hosted postgres w/ SSL auth and public IP without a time out (1800 s).
The docker container has the correct client keys and root cert as well as password to connect to the Cloud SQL read replica, as I've tested this build locally with the same docker run command, and it can connect correctly (using a whitelisted IP from the computer running the docker build locally). However, when running on cloud build with the default cloud build service account, it currently always time out and is not able to connect to cloud sql.
What I've Tried