Versions (relevant - OpenSearch Dashboards v2.11.1 on Ubuntu 22.04 using Firefox 123.0.1 on MacOS 14.3.1):
I log in to Opensearch and choose a dashboard to view. If I do not interact with Opensearch for some time than my login seems to be timed out … the dashboard is not responsive and so I have to login again. When I log in after a timeout, my dashboard is no longer selected or available, apparently because the tenant has changed. If I use ‘Switch Tenant’ and choose the ‘Global’ tenant I can see and use the dashboards.
Note that we are not using multi-tenancy … everything is in the Global tenant, but it seems that after a timeout I get switched to the Private tenant, which has no content.
Is this expected behavior? Is there a way to configure the Opensearch Dashboards so that Global tenant is the default even after a timeout?
Any information or troubleshooting advice appreciated.
Could you share your ../config/opensearch.yml, ../config/opensearch-security/config.yml and your ..config/opensearch_dashboards.yml?
You can disable multi-tenancy in your ..config/opensearch_dashboards.yml with opensearch_security.multitenancy.enabled: false if you don’t use it or set opensearch_security.multitenancy.tenants.preferred: ["Global"] as your default tenancy.
As you can see the ‘preferred’ lists both Private and Global … will setting it to only Global prevent from reverting to private? Or should we configure it as [Global, Private] so that Global is first in the list?
If I understand it correctly you want your users to be defaulted to Global tenant, in this case, set opensearch_security.multitenancy.tenants.preferred: [Global], users will be able to change the tenancy if needed, and if permission allows once logged in to the UI.
Review the session timeout setting in openssh to ensure ensure they are configured properly. If the timeout is slow, it may cause the session expire permanently.