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

[BUG] Multitenancy: separate tenants cannot be used in different browser tabs #9050

Closed
neodescis opened this issue Dec 12, 2024 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@neodescis
Copy link
Contributor

Describe the bug
If I have two browser tabs open, and I select Tenant A in one tab, and then select Tenant B in the second tab, requests made in the first tab will get mapped to the tenant that was selected in the second tab. So, in the first tab, even though it says Tenant A is the current tenant, all saved objects that are pulled up will in fact be from Tenant B.

To Reproduce

  • Configure Dashboards to have two or more tenants
  • Change to one of those tenants (Tenant A)
  • Open a new tab
  • Select another tenant in the 2nd tab (Tenant B)
  • Go back to the first tab and search for dashboards, visualizations, etc.

Expected behavior
The first tab should return results from Tenant A

Actual behavior
The first tab returns results from Tenant B, despite saying Tenant A is the current tenant

OpenSearch Version
2.18.0

Dashboards Version
2.18.0

Plugins

  • Security

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: Windows 11
  • Browser and version: Chrome 131

Additional context
I believe this is because the selected tenant is being saved in a cookie, which is being reused across browser tabs

@neodescis neodescis added bug Something isn't working untriaged labels Dec 12, 2024
@neodescis
Copy link
Contributor Author

Realized I should have put this in the security plugin repo. Closing in favor of opensearch-project/security-dashboards-plugin#2161.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant