fix regex tenant federation to work in single binary mode - #7869
SungJin1212 wants to merge 7 commits into
Conversation
a5767e2 to
dda9385
Compare
|
Thanks for tracking this down — the diagnosis is right: in single binary mode the query-frontend replaces the process-wide default resolver with I think the fix introduces a problem on the write path, though.
So with this change, in single binary mode with regex federation enabled, a write for tenant Suggested direction: avoid relying on the process-wide default for regex federation. Pass Smaller points:
|
|
@CharlieTLe It also fixes a federated query failing with |
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
…olver Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
…o matched tenant IDs Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
8f87b0e to
b558164
Compare
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: Charlie Le <charlie_le@apple.com>
Fixes regex tenant federation (
-tenant-federation.regex-matcher-enabled=true):RegexValidator, so the in-process querier queried the regex as a literal tenant ID. The write path also usedRegexValidator, which rejected tenant IDs that are not valid regexes (e.g.a(band storeda|bas a single tenant).multiple org IDs presentwhen a matched tenant ID contained regex metacharacters and also matched other tenants as a regex (e.g.team.*matchingteam.aandteamXa), because each tenant was matched again as a regex below the federation layer.Other changes:
-tenant-federation.regex-cache-sizedescription accordingly.Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]docs/configuration/v1-guarantees.mdupdated if this PR introduces experimental flags