-
Notifications
You must be signed in to change notification settings - Fork 43
feature request: have a wildcard domain matcher #645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes it would be useful. It can use a |
At the moment, I’m unfortunately swamped. If you haven’t had a chance to get to it by the time I need it, I’ll definitely take care of it myself. That said, could you elaborate a bit more on how exactly you envision this? Your proposal still leaves quite a bit of room for interpretation, and I’d like to make sure we’re aligned before moving forward. |
The child_match insert
|
I have added 'regex match' support in this PR #667. I think this can be used to do a wildcard match. |
Seems to work. However
Example regex used in escaper that can trigger it:
output:
That said it does work and the regex correctly uses the "next" escaper. |
the panic will be fixed by #671 |
Panic seems to be fixed indeed. I'm okay with closing this issue as done, as it seems to be implemented correctly as far as I can see? |
Currently, the domain matchers (e.g., used in
route_upstream
) support onlychild_match
andexact_match
. However, there’s no support for wildcard matching. For example, something like:would ideally match:
The exact syntax or feature set isn’t particularly important to me—what matters more is having the capability to perform wildcard-based filtering, especially in cases where
exact_match
orchild_match
aren’t sufficient.I understand that wildcard matching may be slower by nature, but I still believe it could be quite useful for certain edge cases.
The text was updated successfully, but these errors were encountered: