Open sjaq opened 3 years ago
1 workaround:
host: localhost
database: <your-db>
username: gcloud config get account
password: gcloud auth print-access-token
I'd also love the ability to explicitly disable SSL - this is super frustrating for me
Another way to do this is with a Pre-Connect Shell Script that starts the cloud_sql_proxy in the background. Unfortunately it doesn't shutdown the proxy when you disconnect from the database.
Postico 2 database configuration:
Host: localhost
Port: 5432
Database: <database>
User: <user>
Password: <password>
Pre-Connect Shell Script:
GOOGLE_APPLICATION_CREDENTIALS="$HOME/.credentials/<project>.json"
export GOOGLE_APPLICATION_CREDENTIALS
<path-to-google-cloud-tools>/cloud_sql_proxy -instances=<project>:<region>:<database>=tcp:5432 &
It would be nice if Postico had a Post-Connect or Shutdown Shell Script option that could kill cloud_sql_proxy
.
What did you do?
psql "sslmode=disable hostaddr=127.0.0.1 dbname=[dbname] user=[username]"
, explicitly disabling SSL as it is terminated by Cloud SQL Proxy itselfWhat did you expect to happen?
sslmode=prefer
when connecting to local instancesWhat actually happened?
What seems to be the issue?
psql
withsslmode=prefer
hangs in a similar way as PosticoWhat software versions are you using?
Postico version: 1.5.17 macOS version: 10.15.7 PostgreSQL version: PostgreSQL 13.2 on x86_64-pc-linux-gnu