geocatalogo
geocatalogo copied to clipboard
Need to support Username/Password auth for Elastic Search
Currently there is now way to connect to an Elastic Search cluster that requires username and password authentication. Preferably there would be somewhere in the environmental configs to include those credentials.
Lemme know if you have any questions.
Thanks!
Thanks for the report. Questions/comments:
- I am guessing HTTP basic auth?
- if yes can you try setting the URL as per https://serverfault.com/a/371918 and report back? Does that work as a workaround?
- will add username/password in the config this week and report back for you to test
Hey Tom,
That will totally work. Thank you for the update. In the future, for security reasons, it would still be helpful to set them as env vars. Thank you for the workaround.
Code also updated to support GEOCATALOGO_REPOSITORY_USERNAME
and GEOCATALOGO_REPOSITORY_PASSWORD
environment variables.
Hey Tom,
When I tested it seemed to have to same issues. I think the auth code was commented out. Submitted a pull request to fix.
Cheers, Sam