Skip to content

Allow for dynamic tenant selection in query federation #6588

Open
@CharlieTLe

Description

@CharlieTLe

Is your feature request related to a problem? Please describe.
It's possible to query a list of tenants with query federation today. When this list of tenants changes, the client must update the X-Scope-OrgId header to match the new list.

Describe the solution you'd like
Allow for accepting a header value that maps to a list of tenants.

For example, if the following tenants exist:

  1. tenant1
  2. tenant2
  3. tenant3

Querying all of the tenants could be done by setting

X-Scope-OrgId to tenant1|tenant2|tenant3.

If there is a new tenant, tenant4, and the client wants to query this tenant as well, the client must go through the process of updating

X-Scope-OrgId to tenant1|tenant2|tenant3|tenant4.

If there is a way for the client to specify a static value in the header of the request that could map to a list of these tenants, then the client would not need to update X-Scope-OrgId when there is a change in the list of tenants to query.

Describe alternatives you've considered
It's probably possible to set this up in a proxy to Cortex where the header value gets manipulated to expand to a list of tenants.

For example: X-Scope-OrgId: all-tenant -> X-Scope-OrgId: tenant1|tenant2|tenant3|tenant4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions