question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ambassador overwrites value of x-request-id header.

See original GitHub issue

Describe the bug Ambassador overwrites value of x-request-id header.

To Reproduce We use ambassador as our API gateway (with default configuration) in GKE. A Javascript frontend sends an x-request-id header with UUID as a value for tracing capabilities.

Expected behavior The value of x-request-id header that was sent from the frontend to the backend via Ambassador shouldn’t be changed.

Versions (please complete the following information):

  • Ambassador: 0.85.0
  • GKE 1.14.7

Additional context Since the default behaviour of envoy is to overwrite x-request-id, there is an option to override this behaviour by setting preserve_external_request_id: true when configuring envoy using config.yaml.

The question is how to do this in Ambassador using ambassador.yaml? I believe that it’s a one-liner solution but this option isn’t documented anywhere.

gz#950

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:7
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
prakharjoshicommented, Jul 24, 2020

@eddy-curv Ping!! Can you check with the new ambassador version?

1reaction
eddy-curvcommented, Jun 10, 2020

Thanks @prakharjoshi, really hope that the IR module flow will be fixed, we would really like to use that preserve_external_request_id ability.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ambassador overwrites value of x-request-id header. #2218
A Javascript frontend sends an x-request-id header with UUID as a value for traci. ... Ambassador overwrites value of x-request-id header.
Read more >
HTTP header manipulation - Envoy Proxy
The :path header is a pseudo-header populated by Envoy using the value of the path ... This also forces x-request-id to be returned...
Read more >
Add request headers | Edge Stack
Add request headers Ambassador Edge Stack can add a dictionary of HTTP ... The add_request_headers attribute is a dictionary of header : value...
Read more >
Override x-request-id header in istio - Stack Overflow
I am seeing different behavior in Istio vs pure envoy proxy. For tracing istio and also pure envoy proxy set the x-request-id. (generated...
Read more >
envoy_extensions_filters_networ...
Repository. github.com/datawire/ambassador ... By default, Envoy will overwrite the header with the value specified in // server_name.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found