[Bug]: TLS connection: bad protocol version when connecting to postgresql...
An open-source desktop client for modern databases.
Status: Beta
Brought to you by:
debba92
Originally created by: sycured
Originally owned by: debba
When trying to connect to a PostgreSQL read replica deployed with the cloudnative-pg operator and forwarding the port to localhost, I'm getting a bad protocol version error on the TLS connection.
It's not a duplicate of [#75]
macOS 15.7.4
0.9.6
Originally posted by: debba
Looks very similar to [#75] , but need to investigate better and you told me it’s not .
Are you able to debug from code?
Related
Tickets: #75
Originally posted by: sycured
Unfortunately, I think that it's coming from sqlx:
I'll try to rebuild your code with debugging to identify the root cause.
My opinion: it's the TLS version (TLS 1.3) and/or the CA certificate
Originally posted by: debba
Great, keep me updated.
I’m also open to switch from SQLx in case it does not support TLS
Originally posted by: sycured
OK, a quick test and it works
So the best could be to add an SSL mode in the UI to permit selecting the mode for the connection (it's an enum: https://docs.rs/sqlx/latest/sqlx/postgres/enum.PgSslMode.html)
edit: little refacto to move it as a parameter:
Originally posted by: debba
@sycured Thanks for this I will check in the morning
Ticket changed by: debba
Originally posted by: debba
@sycured Thanks a lot for your effort, looks ok now :)
Hope you continue to support Tabularis, your contribution has been great!