ElasticSearch Shield : action [indices:admin/get] is unauthorized for user -
i using elastic search 2.0.0 , shield 2.0 beta version 2 authentication , authorization (field level authorization). ldap authentication enabled in elasticsearch.yml config file , authentication working fine. though have defined roles , privileges in roles.yml file, throwing 'action [indices:data/read/search] unauthorized user' error while trying read data elastic search index.
code snippet provided in roles.yml file:
accessname: indices: 'indexa': privileges: 'indices:data/read/search' fields: - fielda - fieldb
any appreciated!!!! many hearty in advance.
watch casing! according comment, you're querying indexa
, yet configuration references indexa
. fix roles.yml config , try again:
accessname: indices: 'indexa': <----- initial lowercase initial privileges: 'indices:data/read/search' fields: - fielda - fieldb
Comments
Post a Comment