Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Cannot connect to ElasticSearch instance protected with Shield plugin #146

Open
pvsousalima opened this issue Mar 23, 2016 · 0 comments
Open

Comments

@pvsousalima
Copy link

I am using ElasticSearch in a project for my company. I'm also using shield (an elasticsearch plugin) to make security via http enabled, this way I won't have my ES instance receiving requests from "strangers".

I'm using the elasticsearch-grails-plugin to connect to a given ES instance running.

It works like a charm! Until I get to install shield. The grails application says it can't find a node available to connect (I guess the Shield returns 401 not giving auth to my Grails application).

How do I send my authorization (in header HTTP request like: Authorization: BASE64 String) through Grails to connect to my ES instance (protected with Shield?) I'm running in the transport mode, so it'll be able to only connect to my aside instance of ES.

This is the error I get while running my grails application (no node available, I guess the reason is the ES instance not receiving the Authorization data):
image

I want make my grails app be the only one to be able to athenticate and get info (search, index) from my ElasticSearch. Any clue? Or any part of the plugin code that I could modify? Also contacted @noamt and he suggested me to post in here :)

Thank you very much

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant