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

getPatternList error with read-only users in a particular tenant #7100

Open
asteriscos opened this issue Oct 16, 2024 · 0 comments
Open

getPatternList error with read-only users in a particular tenant #7100

asteriscos opened this issue Oct 16, 2024 · 0 comments
Labels
level/task Task issue type/bug Bug issue

Comments

@asteriscos
Copy link
Member

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

Description
Some requests to the endpoint api/saved_objects/_find?type=index-pattern&fields=title&fields=fields&per_page=9999 fail with the error:

no permissions for [indices:data/read/search] and User [name=testuser, backend_roles=[], requestedTenant=null]: security_exception: [security_exception] Reason: no permissions for [indices:data/read/search] and User [name=testuser, backend_roles=[], requestedTenant=null]

This happens to users that have read-only permissions to a specific tenant, like in the following configuration:

Details

In opensearch_dashboards.yml enable multi-tenancy:

opensearch_security.multitenancy.enabled: true

Create a new read-only user with permissions in a particular tenant

image

image

Load a dashboard (or any view with visualizations) and check the browser dev-tools for security exceptions:

image

image

@asteriscos asteriscos added type/bug Bug issue level/task Task issue labels Oct 16, 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
None yet
Development

No branches or pull requests

1 participant