geocatalogo icon indicating copy to clipboard operation
geocatalogo copied to clipboard

Need to support Username/Password auth for Elastic Search

Open sam-radiant opened this issue 6 years ago • 4 comments

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!

sam-radiant avatar Mar 26 '18 13:03 sam-radiant

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

tomkralidis avatar Mar 26 '18 19:03 tomkralidis

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.

sam-radiant avatar Mar 27 '18 16:03 sam-radiant

Code also updated to support GEOCATALOGO_REPOSITORY_USERNAME and GEOCATALOGO_REPOSITORY_PASSWORD environment variables.

tomkralidis avatar Mar 27 '18 23:03 tomkralidis

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

sam-radiant avatar Mar 28 '18 14:03 sam-radiant