Connecting to ES with user name and password

Hi my external ES cluster is password protected and im trying to connect to it using temporal however i notice that when it creates the elastic search client it url encodes the endpoint in the format user:password@host:port so the β€œ@” is becoming %40 and its saying invalid url, how do i specify user and password for ES

1 Like

We use net/url for this - try specifying scheme (either http or https) as that should work. Let us know if it doesn’t.

1 Like

I went through the commons elastic search client folder and saw that, I’m already specifying the scheme as https. When the connection is made I observe the following
URL as per what I expect it to be: https://user:password@host:port
What I see getting printed is
HTTPS://user:password%40host:port

1 Like

Hi Dhruva, thank you for reporting this.

Yes, you are absolutely right, connecting to a credentials-protected instance of Elastic Search does not seem to work. We are tracking this problem, and are expecting to address it sometime after we ship our V1.

Apologies for the inconvenience, and thank you for the report!
Mark.