You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Privileges evaluation type v4 - Evaluating access to wrong tenant index from custom tenant while updating dashboards settings #1245
What is the bug?
Hi,
I have used privileges_evaluation_type: "v4" in security config and ran into a specific issue. After creating a custom tenant and working in it, the app tried to update the default index pattern (creation of the pattern went without problems) but got a 403 error - whole error message below. It did not occur on Global tenant and it looks like the issue applied only while trying to edit Dashboards Mangement settings (I have tried to set default index pattern, refresh index pattern and edit a couple of advanced settings). I have not noticed problems while creating dashboards and using features outside of Dashboards Management. From the error message, it looks like the request is trying to access the .kibana_1 index instead of the dedicated index of the tenant.
Note that my user had all_access privileges and kibana_all_write for all tenants. Securitytenant cookie enabled.
Workaround: After switching to privileges_evaluation_type: "v3", the problem disappeared.
If there are any more details I can provide, I am happy to share them :)
PrivilegesEvaluatorImpl] [...] Not allowing index action: Dashboards Multitenancy: Referenced index does not match requested tenant. Referenced index does not match requested tenant. Action: indices:data/write/update Request: UpdateRequest; indices: [.kibana]; indicesOptions: IndicesOptions[ignore_unavailable=false, allow_no_indices=false, expand_wildcards_open=false, expand_wildcards_closed=false, expand_wildcards_hidden=false, allow_aliases_to_multiple_indices=false, forbid_closed_indices=true, ignore_aliases=false, ignore_throttled=false] Resolved indices: ResolvedIndices{local={names=[.kibana_1]}, remote=[]} User: User [name=<username>, backend_roles=[<roles>], requestedTenant=<custom_tenant>] Roles: [<roles>] Available privileges: | indices:data/write/update | _ | MISSING | Errors:
How can one reproduce the bug?
Steps to reproduce the behavior:
In config.yml for security plugin, use config.dynamic.privileges_evaluation_type: "v4" and enable multitenancy
Create a custom tenant and switch to it
Create a new index pattern and click on the star to make it default index pattern
See error 403 in UI and cluster logs
What is the expected behavior?
Successful update of te settings
Activity