-
Notifications
You must be signed in to change notification settings - Fork 186
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
Comments
{
username: 'user-ro',
credentials: {
authHeaderValue: 'Basic dXNlci1ybzomVXFZSiZCJkhGM0pkWkt6NzR5c3hjJFdmUiRmc1BjOA=='
},
authType: 'basicauth',
isAnonymousAuth: false,
expiryTime: 1732046561826,
tenant: 'test_tenant'
}
|
I found the client to do the request to get the saved objects of the index patterns has data about the selected tenant. The security tenant seems to be stored in: client[Object.getOwnPropertySymbols(client)[11]].headers.securitytenant I assume the problem could be related to the client that does the API request to the Wazuh indexer has no information about the selected tenant for some reason. Maybe the |
Test on 4.10.2Login as usuallyIn global tenant
On test-tenantConclusionsWhen it loads for the first time, it shows an error message; subsequent times, it loads correctly. Grabacion.2024-12-02.123459.mp4 |
Description
Some requests to the endpoint
api/saved_objects/_find?type=index-pattern&fields=title&fields=fields&per_page=9999
fail with the error: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
Load a dashboard (or any view with visualizations) and check the browser dev-tools for security exceptions:
The text was updated successfully, but these errors were encountered: