elasticsearch-auth icon indicating copy to clipboard operation
elasticsearch-auth copied to clipboard

http://localhost:9200/_search works even after auth enabled

Open anurag321 opened this issue 11 years ago • 4 comments

I have set up the following code: curl -XPUT "localhost:9200/_auth/account" -d "{"authenticator":"index","username" : "testuser", "password" : "test123", "roles" : ["user", "admin"]}"

But even after this basic http://localhost:9200/_search works and does not ask for authentication.

Please help.

anurag321 avatar Oct 05 '14 11:10 anurag321

Hi, I have done the following steps:

  1. Mongodb installation - working
  2. Elastic Search: a. basic search is working b. user creation - working c. auth token creation with login - working But, authentication is not restricting users without login.

anurag321 avatar Oct 06 '14 08:10 anurag321

Yes,I aslo meet those questionl; The auth only worked serverl minutes,and then you can search without any token. #elasticsearch 1.3.4#

bugkiwi avatar Nov 21 '14 06:11 bugkiwi

I think that you need to create constraints: https://github.com/codelibs/elasticsearch-auth#content-constraints

marevol avatar Mar 26 '15 07:03 marevol

thank you @marevol :+1: ,It works:)

bugkiwi avatar Apr 13 '15 04:04 bugkiwi