Skip to content

feat(proxy): multi-key subset selection - #166

Merged
bpalermo merged 1 commit into
mainfrom
feat/multikey-subsets
Jun 12, 2026
Merged

bpalermo merged 1 commit into
mainfrom
feat/multikey-subsets

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Stacked on #165 (will retarget to main after it merges — base branch kept until then).

  • Power-set selectors over the service's derived keys (≤4 combine; deterministic (length, lex) order for delta-xDS hash stability); intersection semantics, NO_FALLBACK throughout.
  • ip/pod remain singleton pins, never combined (per design discussion); they gain single_host_per_subset.
  • Closes the multi-header → silent ANY_ENDPOINT spill.
  • Zero ECDS/filter changes; docs updated (intersection + "pin headers are exclusive").

🤖 Generated with Claude Code

Base automatically changed from feat/upstream-san-pinning to main June 12, 2026 22:55
A request carrying N subset headers now routes to endpoints matching
ALL N dimensions (intersection) or fails: the cluster's selectors grow
from singletons to the power set of the service's derived keys
(deterministic order, NO_FALLBACK throughout), capped at 4 combining
keys per service (3 + 2^4 = 17 selectors max; extra keys select
individually). This also closes the hole where a multi-header request
matched no selector and silently rode the ANY_ENDPOINT fallback.

ip/pod stay singleton pins by design — they identify one endpoint, so
combining them with metadata dimensions is void; mixing a pin with
subset headers is a documented client error (falls back to normal
balancing). The pin selectors gain single_host_per_subset (direct host
index instead of per-value subset maps; ip and pod are unique per
host).

No filter/ECDS changes: header_to_metadata already emits each present
header independently; criteria compose at the router.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@bpalermo
bpalermo force-pushed the feat/multikey-subsets branch from ede0d24 to 124e75e Compare June 12, 2026 22:56
@bpalermo
bpalermo merged commit 71f95b3 into main Jun 12, 2026
15 checks passed
@bpalermo
bpalermo deleted the feat/multikey-subsets branch June 12, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant