Skip to content

Pass URI to elasticsearch client instead of string

What does this MR do and why?

Because we were URL encoding username and password but passing uri.to_s to the elasticsearch client, elasticsearch client was URL encoding the username and password a second time which resulted in 401 errors.

Passing a URI to elasticsearch client fixes this.

Changelog: fixed EE: true

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #13739 (closed)

Edited by John Mason

Merge request reports

Loading