So relatively new to Istio and have a question regarding Istio. Say that I want to rewrite a URI based on a path, but use part of that original uri in the rewrite, is that something I could do with Regex? I'm imagining something like this
http:
- match:
- uri:
regex: ^/(.*\s*)?(canary)(.*)?$
rewrite:
prefix: "/$1"
Where $1 would be a matching group on the uri regex. Is something like that possible?
Only those rule, which contain StringMatch type of values can work with regex. For example HTTPMatchRequest.
Unfortunately NOT HTTPRewrite, which takes only strings
as a value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With