Is it possible to write an envoy plugin that would resolve request destination at runtime?
Problem I'm trying to solve:
- requests arrive at xxxx.foo.com where cardinality of xxxx is high (there is wildcard DNS entry)
- requests are authorized
- there is in memory dynamic database that maps xxxx values to internal IP:port pair that request must be forwarded to. Mappings change frequently.
What is the easiest way to to have envoy route requests to correct destination?