Closed ryanrolds closed 5 days ago
Issues linked to changelog: https://github.com/solo-io/gloo/issues/9604
/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
/kick buildbot stuck
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.EarlyHeaderManipulation
toHttpConnectionManagerSettings
.Code changes
ENVOY_GLOO_IMAGE
a version with the EHM extension enabled in EnvoyVERSION
asENVOY_IMAGE_TAG
in the test Make target to get it using the locally built wrapperProcessHcmNetworkFilter
to 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.
Apply this manifest:
kubectl -n gloo-system port-forward services/gateway-proxy 8080:80
curl
. a.curl -H "x-override-traceid: asdfasdf" -H "x-override-spanid: zxcvzxcv" http://localhost:8080/get
b.curl http://localhost:8080/get
Checklist:
BOT NOTES: resolves https://github.com/solo-io/gloo/issues/9604