Skip to content

[BUG] Privileges evaluation type v4 - Evaluating access to wrong tenant index from custom tenant while updating dashboards settings #1245

Open

Description

@martmand

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 :)

Error message:
DashboardsMultitenancySystemIndexHandler] [...] Handling Dashboards MT: non-top-level index/alias .kibana_1 requested; requested tenant: <custom_tenant>

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:

  1. In config.yml for security plugin, use config.dynamic.privileges_evaluation_type: "v4" and enable multitenancy
  2. Create a custom tenant and switch to it
  3. Create a new index pattern and click on the star to make it default index pattern
  4. See error 403 in UI and cluster logs

What is the expected behavior?
Successful update of te settings

What is your host/environment?

  • OS: Ubuntu 24
  • Version: Opensearch+Dashboards 3.8

Do you have any screenshots?

Do you have any additional context?

Activity

  1. added
    bug
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buguntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions