Skip to content

feat(egress): match destination hosts with a glob - #59

Merged
jvmakine merged 3 commits into
mainfrom
juho/egress-wildcard-destination
Oct 23, 2026
Merged

jvmakine merged 3 commits into
mainfrom
juho/egress-wildcard-destination

Conversation

@jvmakine

@jvmakine jvmakine commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

A SPECTRE mirror on the mesh sends every dependency call through the same Envoy egress socket. Listing each host with its own --destination repeated what the comparison scripts already say, and had to be kept in step as a migration found new dependencies.

A --destination host may now be a glob, matched with github.com/gobwas/glob, so one flag covers them all:

--destination="*.gns.square=http+unix:@egress.sock"

* also matches dots, so *.gns.square covers staging.roster.gns.square. A host takes the first destination that matches it, in pattern order. Hosts that match a glob are routed and compared like exact ones.

🤖 Generated with Claude Code

A mirror sends every dependency through the same mesh socket, so listing each
host with its own --destination repeated what the scripts already say and had
to be kept in step as the migration found new dependencies.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jvmakine
jvmakine requested a review from alecthomas as a code owner October 23, 2026 00:29
A leading *. covered only the subdomain case. A glob lets one destination pick
any set of hosts without egress growing its own pattern rules.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jvmakine jvmakine changed the title feat(egress): match destination hosts with a leading *. wildcard feat(egress): match destination hosts with a glob Oct 23, 2026
Ranking exact hosts and longer globs first added rules nobody needs; overlapping
destinations are rare, so the first match in pattern order is enough.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jvmakine
jvmakine merged commit a698feb into main Oct 23, 2026
6 checks passed
@jvmakine
jvmakine deleted the juho/egress-wildcard-destination branch October 23, 2026 00:44
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.

2 participants