How to disable error message in Kibana?

Hello,

Problem description:
Elasticsearch version: 6.8.10
Kibana version: 6.8.10

Describe the issue:

When user go to Discover in Kibana and he don’t have access to some data, he receive error:

Discover: no permissions for [indices:data/read/search] and User [name=user, roles=, requestedTenant=]
Error: Request to Elasticsearch failed: {“error”:{“root_cause”:[{“type”:“security_exception”,“reason”:“no permissions for [indices:data/read/search] and User [name=user, roles=, requestedTenant=]”}],“type”:“security_exception”,“reason”:“no permissions for [indices:data/read/search] and User [name=user, roles=, requestedTenant=]”},“status”:403}

How to disable this kind of messages so it will not be visible to the user? There is an option to have a general description like "permission denied" without details?

Unfortunately, no it's not currently supported out-of-the-box. You can track progress on the issue in https://github.com/elastic/kibana/issues/33161

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.