Need help to setup basic HTTP authentication


(aps) #1

I m new in Elasticsearch, I want to implement Besic HTTP Authentication, I
have downloaded the plugin but not able to implement. The readme files
doesn't state how to implement it. Any help will be appreciated.


(aps) #2

On Friday, 29 June 2012 13:10:11 UTC+2, aps wrote:

I m new in Elasticsearch, I want to implement Besic HTTP Authentication, I
have downloaded the plugin but not able to implement. The readme files
doesn't state how to implement it. Any help will be appreciated.


(aps) #3

I tried the read me file instruction... but it is not exactly guiding me to
setup HTTP plugin.

On Friday, 29 June 2012 13:10:11 UTC+2, aps wrote:

I m new in Elasticsearch, I want to implement Besic HTTP Authentication, I
have downloaded the plugin but not able to implement. The readme files
doesn't state how to implement it. Any help will be appreciated.


(Nick Dunn) #4

I've found the easiest way is to use Apache as a reverse proxy, implement basic auth there. That's because I'm more familiar with Apache than anything else (Java, ES plugins etc).


(swendel) #5

If anyone is using chef, i wrote a cookbook what has jetty http basic-auth
implementation.

https://github.com/sebwendel/chef-elasticsearch.git use the "0.1.0" branch.

please have a try, feedback is more than be welcome.

If you have trouble just let me know, i would like to help.

2012/6/30 Nick Dunn nick@nick-dunn.co.uk

I've found the easiest way is to use Apache as a reverse proxy, implement
basic auth there. That's because I'm more familiar with Apache than
anything else (Java, ES plugins etc).


(jagdeep) #6

You can use this https://github.com/Asquera/elasticsearch-http-basic
https://github.com/sonian/elasticsearch-jetty

On Saturday, June 30, 2012 5:47:49 PM UTC+5:30, Nick Dunn wrote:

I've found the easiest way is to use Apache as a reverse proxy, implement
basic auth there. That's because I'm more familiar with Apache than
anything else (Java, ES plugins etc).


(Radu Gheorghe) #7

On Saturday, June 30, 2012 5:45:25 PM UTC+3, jagdeep wrote:

You can use this https://github.com/Asquera/elasticsearch-http-basic

Yep, it's quite easy:

mkdir -p plugins/http-basic

cp elasticsearch-http-basic-1.0.3.jar plugins/http-basic/

Then you need to add the following to your config, before restarting
Elasticsearch:

http.basic.enabled: true
http.basic.user: "myuser"
http.basic.password: "mypass"

https://github.com/sonian/elasticsearch-jetty

On Saturday, June 30, 2012 5:47:49 PM UTC+5:30, Nick Dunn wrote:

I've found the easiest way is to use Apache as a reverse proxy, implement
basic auth there. That's because I'm more familiar with Apache than
anything else (Java, ES plugins etc).


(aps) #8

Thanks all... I will try it and post comment...

On Friday, 29 June 2012 13:10:11 UTC+2, aps wrote:

I m new in Elasticsearch, I want to implement Besic HTTP Authentication, I
have downloaded the plugin but not able to implement. The readme files
doesn't state how to implement it. Any help will be appreciated.


(aps) #9

I have done the settings.. how do you access it through URL... when I hit
"user myuser:mypass localhost:9200/sa/emp/1" it says bad URL

any clue?

On Monday, 2 July 2012 08:10:37 UTC+2, Radu Gheorghe wrote:

On Saturday, June 30, 2012 5:45:25 PM UTC+3, jagdeep wrote:

You can use this https://github.com/Asquera/elasticsearch-http-basic

Yep, it's quite easy:

mkdir -p plugins/http-basic

cp elasticsearch-http-basic-1.0.3.jar plugins/http-basic/

Then you need to add the following to your config, before restarting
Elasticsearch:

http.basic.enabled: true
http.basic.user: "myuser"
http.basic.password: "mypass"

https://github.com/sonian/elasticsearch-jetty

On Saturday, June 30, 2012 5:47:49 PM UTC+5:30, Nick Dunn wrote:

I've found the easiest way is to use Apache as a reverse proxy,
implement basic auth there. That's because I'm more familiar with Apache
than anything else (Java, ES plugins etc).


(system) #10