Skip to content

head plugin vs shield #191

Closed
Closed
@cello86

Description

@cello86

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?

Marello

Activity

bbonnin

bbonnin commented on Apr 10, 2015

@bbonnin

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

nielsen-brian-p commented on Jun 19, 2015

@nielsen-brian-p

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

nielsen-brian-p commented on Jun 19, 2015

@nielsen-brian-p

FYI - I did try bbonnin's idea, with no luck

karlito40

karlito40 commented on Aug 19, 2015

@karlito40

Same problem here

derfloscher

derfloscher commented on Sep 11, 2015

@derfloscher

+1 same problem

mobz

mobz commented on Sep 11, 2015

@mobz
Owner

Have you guys tried setting authentication parameters as described here? https://github.com/mobz/elasticsearch-head#url-parameters

karlito40

karlito40 commented on Sep 11, 2015

@karlito40

Well, i tried again without any url parameters... and it is working now. 👍

I don't know why though

rohitCloud

rohitCloud commented on Oct 9, 2015

@rohitCloud

still not working for me :(

karlito40

karlito40 commented on Oct 9, 2015

@karlito40

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

kevin-lee commented on Sep 7, 2016

@kevin-lee

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

http://localhost:9200/_plugin/head/index.html?base_uri=http://localhost:9200&auth_user=some_username&auth_password=some_password

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

philipskokoh commented on Sep 30, 2016

@philipskokoh
Collaborator

Check your elasticsearch.yml. * for http.cors.allow-origin is not allowed for credentialed requests.

tgensol

tgensol commented on Oct 6, 2016

@tgensol

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

fgdgtz183 commented on Feb 13, 2017

@fgdgtz183

@kevin-lee hi,I have shield installed and es-head not connected, you solution it yet?my es version is 2.4.3

philipskokoh

philipskokoh commented on Feb 13, 2017

@philipskokoh
Collaborator

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

fgdgtz183 commented on Feb 13, 2017

@fgdgtz183

@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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mobz@derfloscher@bbonnin@karlito40@kevin-lee

        Issue actions

          head plugin vs shield · Issue #191 · mobz/elasticsearch-head