emissary-ingress / emissary

open source Kubernetes-native API gateway for microservices built on the Envoy Proxy
https://www.getambassador.io
Apache License 2.0
4.36k stars 683 forks source link

How to disable default x-request-id header creation? #3188

Open riadmuratspahic opened 3 years ago

riadmuratspahic commented 3 years ago

This is actually not a bug or a feature request but it can turn to be one if I don't find a solution.

x-request-id Request ID generation: Envoy will generate UUIDs when needed and populate the x-request-id HTTP header. Applications can forward the x-request-id header for unified logging as well as tracing.

Is there a way to disable generating and populating the x-request-id header? I saw envoy has this fancy option called generate_request_id where it can be disabled. How about ambassador? I am not using any tracingservice cr.

ppeble commented 3 years ago

It is possible to ensure that Ambassador/envoy does not override supplied request IDs but I am not aware of disabling the creation in envoy.

This is how you would avoid overriding supplied headers: https://www.getambassador.io/docs/edge-stack/latest/topics/running/ambassador/#preserve-external-request-id

Could you link to the envoy option to turn this off? This would then be a feature request that I imagine wouldn't be too difficult to add.