You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I'm testing the shield plugin on my Elasticsearch cluster but after the installation the head plugin can't connect to the nodes, because it requires authentication.
Is it possible to configure the authentication on head?
I also use head with shield and in order to connect to the cluster, in the text box where you're setting the http address, I use the following syntax: http://username:password@localhost:9200.
I'm having a similar issue - it was working fine, and all of the sudden i'm continually prompted by shield for the admin username and password I've set up (and is working!)
Activity
bbonnin commentedon Apr 10, 2015
Hello,
I also use head with shield and in order to connect to the cluster, in the text box where you're setting the http address, I use the following syntax: http://username:password@localhost:9200.
Bruno
nielsen-brian-p commentedon Jun 19, 2015
I'm having a similar issue - it was working fine, and all of the sudden i'm continually prompted by shield for the admin username and password I've set up (and is working!)
nielsen-brian-p commentedon Jun 19, 2015
FYI - I did try bbonnin's idea, with no luck
karlito40 commentedon Aug 19, 2015
Same problem here
derfloscher commentedon Sep 11, 2015
+1 same problem
mobz commentedon Sep 11, 2015
Have you guys tried setting authentication parameters as described here? https://github.com/mobz/elasticsearch-head#url-parameters
karlito40 commentedon Sep 11, 2015
Well, i tried again without any url parameters... and it is working now. 👍
I don't know why though
rohitCloud commentedon Oct 9, 2015
still not working for me :(
karlito40 commentedon Oct 9, 2015
There is another solution if you are on aws.
Remove the shield plugin and create a security group for your elastic instances that only allows your ip and your other instances.
kevin-lee commentedon Sep 7, 2016
Isn't there any proper solution yet?
I did what https://github.com/mobz/elasticsearch-head#url-parameters says but not sure if it's a correct way.
Mine is
and it doesn't work.
I have shield installed. Without shield there's no issue, but with it, I get
cluster health: not connected
.philipskokoh commentedon Sep 30, 2016
Check your elasticsearch.yml.
*
forhttp.cors.allow-origin
is not allowed for credentialed requests.tgensol commentedon Oct 6, 2016
Same for me, It was working before I install shields, but now I only have : cluster health: not connected. I am using ES 2.3
fgdgtz183 commentedon Feb 13, 2017
@kevin-lee hi,I have shield installed and es-head not connected, you solution it yet?my es version is 2.4.3
philipskokoh commentedon Feb 13, 2017
When you are using authentication, Ensure that you add
http.cors.allow-headers: Authorization
. (https://github.com/mobz/elasticsearch-head#basic-authentication)Then specify auth_user and auth_password as url parameter
Check this guideline: https://github.com/mobz/elasticsearch-head#x-pack
fgdgtz183 commentedon Feb 13, 2017
@philipskokoh I did it,but still failed . my elasticsearch.yml config http.cors.enabled: true .http.cors.allow-origin: "*". http.cors.allow-headers: Authorization network.host:0.0.0.0 and url is http://xxx.xx.xx.x:9200/_plugin/head/index.html?base_url=http://xxx.xx.xx.x:9200/?auth_user=elastic&auth_password=changeme
5 remaining items