Hi Everyone
* ES 5.4.0 and SG 5-5.4.0-12
* Modules : SSL, Multitenancy, LDAP
* openjdk version "1.8.0_131"
We have configured different roles that have read permissions on different types of one index
On indices idx-esb-* we have defined several document _types : api, proxy, etc
We defined one role that has read permissions on only one type of the index :
- CLUSTER_COMPOSITE_OPS_RO
We get this error when opening Kibana Dashbord that has visualizations on all data of idx-esb-* , no data is loaded even data from ''_type = api' (user datareader_api having role DATAREADER_API) :
Error: Request to Elasticsearch failed: {"error":{"root_cause":[{"type":"security_exception","reason":"no permissions for indices:data/read/search"}],"type":"security_exception","reason":"no permissions for indices:data/read/search"},"status":403}
- error:{root_cause: [{type: "security_exception", reason: "no permissions for indices:data/read/search"}],…}
- reason:"no permissions for indices:data/read/search"
- root_cause:[{type: "security_exception", reason: "no permissions for indices:data/read/search"}]
- type:"security_exception"
- status:403
In Elasticsearch we get this error :
[INFO ][c.f.s.c.PrivilegesEvaluator] No index-level perm match for User [name=datareader_api, roles=[]] [IndexType [index=idx-esb-2017-s2, type=*]] [Action [indices:data/read/search]] [RolesChecked [DATAREADER_API]]
The user has read permissions only on api _type but the dashboad fails to load data with this _type whereas we have enabled : searchguard.dynamic.kibana.do_not_fail_on_forbidden : true
Is there a way to retrieve data from document types on which the user has role permissions without giving him data read access to the wole index ?
Thank you for your help