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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -