Skip to content

fix regex resolver match 0 or 1 tenant bug#7424

Open
SungJin1212 wants to merge 1 commit intocortexproject:masterfrom
SungJin1212:bugfix-regex-resolver-single-tenant
Open

fix regex resolver match 0 or 1 tenant bug#7424
SungJin1212 wants to merge 1 commit intocortexproject:masterfrom
SungJin1212:bugfix-regex-resolver-single-tenant

Conversation

@SungJin1212
Copy link
Copy Markdown
Member

@SungJin1212 SungJin1212 commented Apr 15, 2026

Fix unsupported character error when tenant-federation.regex-matcher-enabled is enabled and the input regex matches 0 or 1 existing tenant.

Ingester Side (Use Single Resolver): The raw regex was propagated to ingesters via context instead of the resolved tenant ID, causing validation errors for patterns containing characters unsupported in tenant IDs (e.g. +).

Store Gateway Side: The tenantID is passed by the querier (Use Resolve Resolver), so the query results are partially returned only by the Store Gateway side in #7413(Issue 2).

Which issue(s) this PR fixes:
Fixes #7413

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size/L type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Regex handling issues in tenant federation (Cortex v1.20 / Grafana datasource)

2 participants