New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I pass authentication header with elastic search connection request when using http basic auth for elasticsearch. #190
Comments
Good question actually. There is no way currently, this need to be patched in chewy |
Have you find a way? |
you can use this syntax to set http user/password in chewy.yml
|
host: 'localhost:9200' I used the above config @pyromaniac |
Is there now a set way to do this? I've tried both solutions offered by @mayank-singh and @timoshenkoav but neither are working for me. Security was just applied to my cluster using Elastic Shield. |
As far as I get, you need to setup basic http auth, this means that you need to send an auth request with the transport, or send your credentials with every request. Anyway, seems like you have to customize the transport. So, you can try this: https://github.com/toptal/chewy/blob/master/lib/chewy.rb#L137 |
Given that you're able to authenticate with
|
this should be on the readme |
How can I pass authentication header with elastic search connection request when using http basic auth for elasticsearch.
The text was updated successfully, but these errors were encountered: