zed icon indicating copy to clipboard operation
zed copied to clipboard

[bug] Add hostname-override flag to root command to support overriding SNI hostname

Open ruscon opened this issue 2 months ago • 2 comments

zed context

zed context set some-env localhost:50052 ${SPICEDB_TOKEN} --certificate-path ${TLS_CA_FILE_PATH} --hostname-override spicedb.spicedb.svc.cluster.local

port forwarded from k8s

zed schema read

6:09PM ERR retrying gRPC call error="rpc error: code = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: tls: failed to verify certificate: x509: certificate is valid for spicedb.spicedb.svc.cluster.local, *.spicedb.svc.cluster.local, not localhost\"" attempt=1

but zed schema read --hostname-override spicedb.spicedb.svc.cluster.local works ok.

Expect that zed schema read should work without --hostname-override

ruscon avatar Dec 06 '25 16:12 ruscon