-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Misleading error message - Search error instead of Permission denied in dashboards #1700
Comments
[Triage] Thanks for filing, this does not look like the expected behavior - we'd be happy to accept a pull request to clean this up |
@peternied can you please assign this issue to me, i'm willing to work on this ? Thanks, |
@mrudrego Thanks - I've assigned this issue to you, looking forward to seeing a PR |
@peternied , the behaviour on the main branch of code has changed. When a user tries to access an index for which they do not have permission, we get Forbidden message as below. I hope this is expected behaviour. Only small concern/query is about the stacktrace showing the complete source code of the file. Can this cause any security issue? Thanks, |
@mrudrego That code is executed on the client side - there is no way to keep the call stack 'hidden' because the browser is executing it, nothing unexpected there - good question. |
@peternied thanks for the response. |
(Raised new issue as the older one could not be reopened)
What is the bug?
When a user tries to access an index-pattern on dashboards for which they do not have read permission, then it displays "Search Error" with a stacktrace.
Problem
This is quite a misleading message and it would have been better to specify a Permission issue instead.
This behaviour has been running since Kibana versions > 7.8.
With kibana 7.8, on such a scenario, a clear permission error was displayed on the UI.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
A clear error message that, atleast indicates that it is related to permissions, must be displayed.
In opensearch pod logs, it does display that user didnt have permission for the required operation. However, the same is not displayed on Opensearch dashboards UI.
What is your host/environment?
Do you have any screenshots?
Attached.
Do you have any additional context?
Ref to previous tickets raised for this
The text was updated successfully, but these errors were encountered: