reverse-proxy icon indicating copy to clipboard operation
reverse-proxy copied to clipboard

Add extensibility to ingress parsing

Open smbecker opened this issue 3 years ago • 1 comments

What should we add or change to make your life better?

There are a number of issues related to annotations and how that translates into route and cluster configuration.

  • https://github.com/microsoft/reverse-proxy/issues/1479
  • https://github.com/microsoft/reverse-proxy/issues/1828
  • https://github.com/microsoft/reverse-proxy/issues/1550

There should be a more generic extension point for how annotations are converted into route options and how rules are converted into route matches.

Why is this important to you?

I have a number of custom annotations or transforms that I would like to attach to routes in a simplified manner. I also have some standards in how route matches are created that I would like to be able to apply automatically.

smbecker avatar Dec 14 '22 19:12 smbecker

As the author of two of those requests, I can definitely understand the need for something more generic. While the cluster-Metadata feels like something that should just be there, the other case (Http Method) might be more of a niche case. Having a way to customize the annotations without needing to fork the entire project/YarpParser would definitely be useful and possibly reduce the number of one-off requests that would need to be considered (ie. Just implement this interface and customize away)

pinkfloydx33 avatar Dec 23 '22 09:12 pinkfloydx33