Skip to content

feat: Support wildcard in non-trailing positions for rate limit descriptor values#1085

Merged
collin-lee merged 1 commit intoenvoyproxy:mainfrom
xuannam230201:feat/implement-wildcard-in-middle-part-in-string
Mar 12, 2026
Merged

feat: Support wildcard in non-trailing positions for rate limit descriptor values#1085
collin-lee merged 1 commit intoenvoyproxy:mainfrom
xuannam230201:feat/implement-wildcard-in-middle-part-in-string

Conversation

@xuannam230201
Copy link
Copy Markdown
Contributor

Descriptor values support wildcard matching using *. A single * matches zero or more characters and can appear at any position in the value — trailing, middle, or multiple times in the same pattern.

Pattern Matches Does not match
foo* foo, foo1, foobar bar
foo*bar foobar, foo123bar foobar1, 1foobar
foo*bar* foobar, foo1barXYZ barfoo
foo*bar*baz foobarbaz, foo1bar2baz foo1bar2

When a descriptor has both an exact value and a wildcard pattern that could both match a request, the exact match always takes precedence.

The metric key for a wildcard match preserves the pattern (e.g., domain.key_foo*bar) so that all matching values roll up under the same metric. This behaviour can be changed per descriptor using value_to_metric or share_threshold.

@xuannam230201 xuannam230201 force-pushed the feat/implement-wildcard-in-middle-part-in-string branch 2 times, most recently from d6ccb80 to a4ca673 Compare March 11, 2026 18:09
…iptor values

Signed-off-by: Nam Dang <xuannam230201@gmail.com>
@collin-lee collin-lee merged commit 6bcd4d2 into envoyproxy:main Mar 12, 2026
6 checks passed
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