envoyproxy / envoy

Cloud-native high-performance edge/middle/service proxy
https://www.envoyproxy.io
Apache License 2.0
25.08k stars 4.82k forks source link

Add HTTP headers for request mirroring #36739

Open KoJJang opened 1 month ago

KoJJang commented 1 month ago

Add HTTP headers for request mirroring in Envoy

Description: AFAIK, the only way to distinguish a mirroring request from a origin request is whether or not the -shadow suffix is present in the host header. It would be nice to have the ability to add or remove a separate HTTP header to make the distinction more convenient.

Proposed Improvements: Provide request_headers_to_add or request_headers_to_remove functionality for the mirroring request.

mattklein123 commented 1 month ago

Makes sense to me.

github-actions[bot] commented 1 day ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.