Skip to content
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

Readonly users can not see wazuh-statistics-* indices #6988

Closed
Desvelao opened this issue Sep 11, 2024 · 0 comments · Fixed by #7001
Closed

Readonly users can not see wazuh-statistics-* indices #6988

Desvelao opened this issue Sep 11, 2024 · 0 comments · Fixed by #7001
Assignees
Labels
level/task Task issue type/bug Bug issue

Comments

@Desvelao
Copy link
Member

Desvelao commented Sep 11, 2024

Wazuh Rev Browser
4.9.0 xyzw Chrome, Firefox, Safari, etc

Description
A readonly user can not see data related to statistics.

Preconditions

  1. Create a readonly user following https://documentation.wazuh.com/4.9/user-manual/user-administration/rbac.html#creating-and-setting-a-wazuh-read-only-user
  2. Ensure there indices related to wazuh-statistics-* and the index pattern is created

Steps to reproduce

  1. Login with the readonly user and go to Statistics application.
  2. A message is displayed related to there are no indices

Screenshots
image

Additional context
The GET /elastic/statistics API request is failing.

image

This is probably related to the user permissions that can not do the action that is executed in the endpoint.

The logic related to the API request to check the existence of indices, could be replaced a similar to Vulnerabilities Detection > Dashboard.

@asteriscos asteriscos added type/bug Bug issue level/task Task issue labels Sep 13, 2024
@wazuhci wazuhci moved this to Backlog in Release 4.10.0 Sep 13, 2024
@Tostti Tostti self-assigned this Sep 19, 2024
@wazuhci wazuhci moved this from Backlog to In progress in Release 4.10.0 Sep 19, 2024
@Tostti Tostti linked a pull request Sep 19, 2024 that will close this issue
6 tasks
@wazuhci wazuhci moved this from In progress to Pending review in Release 4.10.0 Sep 20, 2024
@wazuhci wazuhci moved this from Pending review to In review in Release 4.10.0 Sep 20, 2024
@Tostti Tostti closed this as completed Sep 20, 2024
@wazuhci wazuhci moved this from In review to Done in Release 4.10.0 Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/bug Bug issue
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants