Skip to content

Commit

Permalink
Fix issue: tenant is defaulting incorrectly based on the ordering of:…
Browse files Browse the repository at this point in the history
… opensearch_security.multitenancy.tenants.preferred

Signed-off-by: Rajat Gupta <[email protected]>
  • Loading branch information
Rajat Gupta committed Jan 2, 2025
1 parent ded4012 commit 8aedad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/multitenancy/tenant_resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { GLOBAL_TENANT_SYMBOL, globalTenantName, PRIVATE_TENANT_SYMBOL } from '.
import { ensureRawRequest } from '../../../../src/core/server/http/router';
import { GOTO_PREFIX } from '../../../../src/plugins/share/common/short_url_routes';

export const PRIVATE_TENANTS: string[] = [PRIVATE_TENANT_SYMBOL, 'private'];
export const PRIVATE_TENANTS: string[] = [PRIVATE_TENANT_SYMBOL, 'private', 'Private'];
export const GLOBAL_TENANTS: string[] = ['global', GLOBAL_TENANT_SYMBOL, 'Global'];
/**
* Resovles the tenant the user is using.
Expand Down

0 comments on commit 8aedad5

Please sign in to comment.