I wonder what’s the best way to copy headers from an HTTP request.
I tried some VirtualService configuration, but I was sure that it was not going to work based on Headers reference . The test was:
In this test, I just tried to copy a header coming in the request (old-header) to new-header. But what I got was the ‘new-header’ with value ‘request.headers[“old-header”]’, so no resolution was performed (as expected).
Has anybody done something similiar before? It seems a very simple use case.
What could be a different approach? EnvoyFilters?