You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, Envoy only supports a single wildcard ("*") in virtual host
domain entries, which must be either a prefix or suffix. This
limitation greatly simplifies the virtual host matching logic, but it
is also inherently limiting.
This change introduces a repeated list of "host simplification rules"
at the RouteConfiguration level, that provide a way to substitute away
other dynamic portions of the domain without changing what is sent
upstream.
For example, to match something like
`*.foo.*.example.org` you might write a simplification rule like:
`([^.]+[.]foo[.])([^.]+)([.]example[.]org)` with a substitution of
`\1bar\3`. This then allows a virtual host domain entry of
`*.foo.bar.example.org` to match
`baz.foo.bar.example.org` or `wowza.foo.qux.example.org`.
Host simplification rules are processed in the order they are defined.
Signed-off-by: Ryan Anderson <[email protected]>
0 commit comments