I'm using docker to start cadence server, but I can't connect to my cockroachDB, the following error occurs.
How can I resolve this problem?
I'm using docker to start cadence server, but I can't connect to my cockroachDB, the following error occurs.
How can I resolve this problem?
In your connection string, could you try adding ?sslmode=require
or ?sslmode=verify-ca/full
. Clusters on Cockroach Cloud require a secure connection in order to connect to the DB.
Our recommendation is to use verify-full
or verify-ca
which protect against MITM attacks and enforce verifying that the server certificate is signed by known certificate authority.
We've got some docs on additional connection parameters here! https://www.cockroachlabs.com/docs/stable/connection-parameters.html#additional-connection-parameters
And some more specific docs on SSL Modes with Cockroach Cloud here: https://www.cockroachlabs.com/docs/cockroachcloud/authentication.html#ssl-mode-settings