elasticfence / elasticsearch-http-user-auth

HTTP Basic Authentication and IP ACL plugin for Elasticsearch :key: (UNMAINTAINED)
http://qxip.net
148 stars 32 forks source link

support for elasticsearch 5.2 #78

Open abhinaythurlapati opened 6 years ago

abhinaythurlapati commented 6 years ago

I would like to use elasticfence for elasticsearch 5.2.0. Since elasticsearch can't install the plugin, I modified the elasticsearch related config in plugin-descriptor.properties to 5.2. Thus i am able to install the plugin. However starting elasticsearch fails with the following error:

Caused by: java.lang.ClassNotFoundException: org.elasticsearch.rest.RestFilter
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_131]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[ 

I couldn't find the rest directory/class in the org.elasticsearch package. Can you please suggest how to fix this issue or make elasticfence work for elasticsearch-5.2

jemacom commented 6 years ago

o/ @abhinaythurlapati As you suggest you can elasticsearch to install elasticfence plugin by twisting the config. But a lot of the authentication logic is implemented on top of RestFilter as you can check here. And starting from version 5.2.0 elasticsearch people deprecate RestFilter. So the plugin won't work unless you have the adequate elasticsearch version preferably 5.1.2.

Hope this clarify things for you :wink: