Skip to content

[BUG] Dashboard not giving an option to select a tenant and defaultRoute does not seem to be in sync with default tenant (last selected tenant) #1261

Open
@deepak-rsystems

Description

@deepak-rsystems

Describe the bug

We have multiple problems with dashboard access related to multi tenancy:

  1. Dashboard doesn't not give an option to select a tenant every single time, instead it keeps default tenant (or last selected tenant) in user cookie.
  2. When we login to dashboard, it starts with defaultRoute but this defaultRoute is not the one specific to the default tenant (or last selected tenant). For example, we have three tenants: A, B (default tenant) and C, and when we login it lands on the defaultRoute of tenant A, while expectation is to land at defaultRoute of tenant B.

To Reproduce
Pre-requisites:

  1. We have two custom tenants "cadm" and "e911", and e911 is the default tenant (or last selected tenant)
  2. We have disabled "Global" and "Private" tenants

Steps to reproduce the behavior:

  1. Go to Dashboard
  2. Click on Single Sign-on
  3. See defaultRoute belonging to "cadm" tenant

Multi-tenant-defaultRoute-issue-1

  1. See error "could not locate that dashboard" which is understood as it belongs to a different tenant "cadm" other than the default/selected tenant "e911":

Multi-tenant-defaultRoute-issue-2

Expected behavior

  1. Dashboard should give an option to select a tenant every single time.
  2. When we login to dashboard, the defaultRoute should be in sync with the default tenant (or last selected tenant).

OpenSearch Version
2.4.0

Dashboards Version
2.4.0

Plugins

No custom plugin enabled.

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions