-
Notifications
You must be signed in to change notification settings - Fork 633
Early Header Mutation #10262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Early Header Mutation #10262
Conversation
…o/gloo into rolds/early_header_mutation
|
Issues linked to changelog: |
…o/gloo into rolds/early_header_mutation
…o/gloo into rolds/early_header_mutation
|
/kick for build bot showing |
|
Visit the preview URL for this PR (updated for commit 29e2475): https://gloo-edge--pr10262-rolds-early-header-m-ajfjhd9z.web.app (expires Thu, 14 Nov 2024 20:51:21 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 77c2b86e287749579b7ff9cadb81e099042ef677 |
| "Expected header X-Add to be present") | ||
| }, "5s", "0.5s").Should(Succeed()) | ||
| }) | ||
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add another test that verifies the behaviour of appendAction ?
| }) | ||
| }) | ||
|
|
||
| Context("Interaction with Zipkin tracing", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a comment that mentions the need for this specific test and how it solves an actual use case
…o/gloo into rolds/early_header_mutation
…o/gloo into rolds/early_header_mutation
nfuden
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
Co-authored-by: David Jumani <[email protected]>
Co-authored-by: David Jumani <[email protected]>
|
/kick buildbot stuck |
Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> Co-authored-by: changelog-bot <changelog-bot> Co-authored-by: Nathan Fudenberg <[email protected]> Co-authored-by: David Jumani <[email protected]>
Description
This PR add Early Header Manipulation to the HTTP Connection Manager settings. It allows request headers to be manipulated before they are acted on by tracing and other logic. The goal of the work is to allow customers to override Zipkin/B3 tracing headers.
API changes
headers.options.gloo.solo.io.EarlyHeaderManipulationtoHttpConnectionManagerSettings.Code changes
ENVOY_GLOO_IMAGEa version with the EHM extension enabled in EnvoyVERSIONasENVOY_IMAGE_TAGin the test Make target to get it using the locally built wrapperProcessHcmNetworkFilterto the headers plugin, handled the new settingDocs changes
Context
Testing steps
I've test locally with Kind by setting and exercising the new logic with curl, including configuring a real Zipkin tracer.
a.
kubectl -n gloo-system port-forward services/gateway-proxy 8080:80curl.a.
curl -H "x-override-traceid: asdfasdf" -H "x-override-spanid: zxcvzxcv" http://localhost:8080/getb.
curl http://localhost:8080/getChecklist:
BOT NOTES:
resolves solo-io#9604