Hello,
I have multiple indices, such as apache, gunicorn, django, where I store logs from my apps. I also have an alias, which combines all those logs together called webapp.
Now I want to give a user an access to alias webapp and I set my permissions like so:
sg_role_webapp:
cluster:
- CLUSTER_COMPOSITE_OPS_RO
indices:
‘webapp’:
‘':
- READ
dls: ‘{ “bool”: { “must”: { “term”: { “tags”: “webapp” }}}}’
'?kibana’:
‘*’:
- INDICES_ALL
I also add my user to this new role:
sg_role_webapp:
users:
- testuser
Now when I want to open this webapp index in Kibana, I get an error:Error: Request to Elasticsearch failed: {“error”:{“root_cause”:[{“type”:“security_exception”,“reason”:"no permissions for [indices:data/read/search]
In ES logs, I see:
[2018-07-16T14:33:06,355][INFO ][c.f.s.c.PrivilegesEvaluator] No index-level perm match for User [name= testuser, roles=[]] [IndexType [index=logs-gunicorn-2018.07-v1, type=], IndexType [index=logs-httpd-2018.06-v1, type=], IndexType [index=logs-django-2018.07-v1, type=], IndexType [index=logs-gunicorn-2018.06-v1, type=], IndexType [index=logs-httpd-2018.07-v1, type=], IndexType [index=logs-httpd-2018.07-1, type=], IndexType [index=logs-django-2018.06-v1, type=*]] [Action [[indices:data/read/search]]] [RolesChecked [sg_role_webapp]]
Do I have to give the user access to all indices, that are part of alias, as well?
I’m using ES 5.6.6 with SG 5.6.6-18.
Thanks for help.