edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

DSN query parameters are ignored (port and tls_security)

Open sparebytes opened this issue 2 years ago • 2 comments

  • EdgeDB Version: 1.0+08d3e21
  • EdgeDB CLI Version: 1.1.0+8bc2c20
  • OS Version: Mac OS 12.2.1 (M1)

Steps to Reproduce:

  1. Provide the port or tls_security parameters. Stdout immediately indicates params were ignored.

port example:

$ edgedb --dsn "edgedb://localhost?port=2222"
Connecting to an EdgeDB instance at localhost:5656...

tls_security example:

$ edgedb --dsn "edgedb://localhost:2222?tls_security=insecure"
[2022-03-15T21:25:02Z WARN  rustls::session] Sending fatal alert BadCertificate
edgedb error: ClientConnectionFailedError: invalid certificate: UnknownIssuer

I've been able to work around it by providing --credentials-file instead.

sparebytes avatar Mar 15 '22 21:03 sparebytes

edgedb/edgedb-rust#105

fantix avatar Aug 19 '22 15:08 fantix

Hm, this one seems like a relatively high-priority to me, isn't it? @tailhook @fantix

1st1 avatar Aug 23 '22 19:08 1st1

This one is fixed too.

tailhook avatar May 23 '23 11:05 tailhook