Hi,
I am sure I have seen an answer to this in this forum somewhere but I can’t find it.
sg_internal_users.yml
martin:
hash:
readonly: ‘true’
roles: [kibanauser, customer]
sg_roles_mapping.yml
sg_kibana_user:
backendroles:
- “kibanauser”
sg_customer:
readonly: true
backendroles:
- “customer”
sg_roles.yml
sg_kibana_user:
<default settings from https://github.com/floragunncom/search-guard/blob/master/sgconfig/sg_roles.yml>
sg_customer:
readonly: true
indices:
'logstash-${user_name}-*':
'*':
- "MANAGE"
- "INDEX"
- "READ"
- "indices:data/read/search*"
I tried adding - “indices:data/read/search*” but this this still gives me no data in my visualisation and an error in kibana no permissions for [indices:data/read/search] and User [name=martin, roles=[kibanauser, customer], requestedTenant=null]]
If I change sg_customer in sg_role.yml
sg_customer:
readonly: true
indices:
'logstash-${user_name}-*':
'*':
- "MANAGE"
- "INDEX"
- "READ"
‘logstash-*’:
‘*’:
- "indices:data/read/search*"
Then I don’t get any errors but all the data is returned in the visualisation. It is not restricted to logstash-martin-*, when I login as the user martin.
I thought I read here somewhere that there is an option I can set in kibana.yml to prevent these permission errors from appearing in the Kibana UI, and I was wondering if that might solve the issue too. i.e. Kibana wont show the entries from matching indices because there are permission errors reading other indices.
Thanks for any help.