For security reasons, Elasticsearch server could be using Basic HTTP Authentication. I have created a patch to add basic http authentication username/password for each server. This functionality already exists in Search API Apache Solr.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

neeravbm’s picture

Here is the patch.

Anonymous’s picture

Status: Active » Fixed

neeravbm’s picture

Modifying the patch so that the HTTP Basic Authentication password is hidden and is never visible on the screen or saved in the DB.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Andreas Radloff’s picture

Did you get this working? I'm surprised if you did because I noticed that the headers are all wrong, they should be "Authorization:", not "Authentication:" as in this patch. See http://en.wikipedia.org/wiki/Basic_access_authentication

After changing that everything works for me. It also resolved this issue for me: https://www.drupal.org/node/2372963

Andreas Radloff’s picture

Status: Closed (fixed) » Needs work

Anonymous’s picture

Status: Needs work » Closed (fixed)