Auth plugin not prompting for authentication

(Tim Dunphy) #1

Hey all,

I need a free alternative for shield for my personal cluster. We use shield at work, but for my own project I need something free and open source.

So I tried the ES auth plugin:

ES Auth

I installed the auth plugin with this line on each node in the cluster:

plugin --install org.codelibs/elasticsearch-auth/1.4.0

And made sure to restart the entire cluster.

And I tried setting up an admin user with the following curl:

 curl -XPUT '' -d "{
     \"authenticator\" : \"index\",
         \"username\" : \"admin\",
             \"password\" : \"secret\",
                 \"roles\" : [\"user\", \"admin\"]

And I tried to secure the contents of the indexes with this curl:

curl -XPOST '' -d "{
    \"authenticator\" : \"index\",
            \"methods\" : [\"get\", \"post\"],
                \"roles\" : [\"admin\"]

However when I try to curl the cluster with no auth I still don't get a prompt:

[root@logs:~] #curl -XGET http://localhost:9200/logstash-2015.07.18

Does anyone out there know enough about this plugin to understand where I'm going wrong? I'd appreciate some help with this.


(Tin Le) #2

What version of ES are you running. This particular version of the auth plugin is only for ES v1.4.0, at least that is what the github page for it is saying.

Auth Tested On Elasticsearch
master 1.7.x
1.4.0 1.4.0
1.3.0 1.3.1
1.2.0 1.2.1
1.1.0 1.0.0
1.0.1 0.90.11

(Tim Dunphy) #3

I'm running ES 1.7,1 and yes I'm using 1.4.0 of auth.


(system) #4