jprante / elasticsearch-langdetect

A plugin for language detection in Elasticsearch using Nakatani Shuyo's language detector
Apache License 2.0
250 stars 46 forks source link

Getting "action [langdetect] is unauthorized for user" when using Shield #42

Open rahyong opened 8 years ago

rahyong commented 8 years ago

Hi,

I am using langdetect plugin on ES 2.2.1 with Shield. The tests work correctly before Shield is installed, but after Shield is installed, I am seeing the following error:

curl -XPOST -u es_admin 'http://localhost:9200/_langdetect?pretty' -d 'This is a test'
Enter host password for user 'es_admin':
{
  "error" : {
    "root_cause" : [ {
      "type" : "security_exception",
      "reason" : "action [langdetect] is unauthorized for user [es_admin]"
    } ],
    "type" : "security_exception",
    "reason" : "action [langdetect] is unauthorized for user [es_admin]"
  },
  "status" : 403
}

I am using a default admin user with admin role

bin/shield/esusers useradd es_admin -r admin

with admin role

admin:
  cluster: all
  indices:
    '*':
      privileges: all

Is there any additional configuration required for Shield?