jakob / Postico

Public issue tracking for Postico
https://eggerapps.at/postico/
475 stars 9 forks source link

Improve connection string parsing for TLS certificates #859

Open Pluggi opened 1 year ago

Pluggi commented 1 year ago

What did you do?

When creating a new server from a postgres connection string, Postico does not seem to parse the sslcert/sslkey/sslrootcert query parameters properly, and does not fill the path for the Server CA/Client Cert/Client Key inputs.

My connection string looks like this:

postgres://username:password@127.0.0.1:15432/database?sslcert=/tmp/tmp.DSb7o56gRA&sslkey=/tmp/tmp.h2J1LhJtt4&sslrootcert=/tmp/tmp.IWNE6enikG

What did you expect to happen?

I expected Postico to fill all the inputs from the parameters I specify in my connection string.

What actually happened?

The paths are not parsed and the inputs are not filled.

What software versions are you using?

Postico version: 2.0.5 (9661)