Smile-SA / smile-magento-elasticsearch

Magento ElasticSearch Implementation
151 stars 90 forks source link

Where i have to add user and password for ElasticSearch? #132

Open simbus82 opened 6 years ago

simbus82 commented 6 years ago

i'm using an elasticsearch cloud instance from elastic.co

Today they switch on authorization (Shield plugin) on every instance.

How can i connect to the server with auth?

this is the error that i receive:

2018-02-20T17:26:29+00:00 ERR (3): AuthenticationException[action [indices:data/read/search] requires authentication]

simbus82 commented 6 years ago

I understand that i need to have "curl" with user and pass.

Where i can change curl request to add authentication?

I see some code about curl here: https://github.com/Smile-SA/smile-magento-elasticsearch/blob/release_1.4/src/lib/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php

https://github.com/Smile-SA/smile-magento-elasticsearch/blob/release_1.4/src/lib/vendor/guzzle/http/Guzzle/Http/Curl/CurlHandle.php

https://github.com/Smile-SA/smile-magento-elasticsearch/blob/release_1.4/src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/CurlMultiConnection.php