Add x-istio-origin-network header to inner CONNECT requests in double HBONE#1727
Add x-istio-origin-network header to inner CONNECT requests in double HBONE#1727
Conversation
|
😊 Welcome @Copilot! This is either your first contribution to the Istio ztunnel repo, or it's been You can learn more about the Istio working groups, Code of Conduct, and contribution guidelines Thanks for contributing! Courtesy of your friendly welcome wagon. |
|
Hi @Copilot. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Co-authored-by: keithmattix <1531662+keithmattix@users.noreply.github.com>
keithmattix
left a comment
There was a problem hiding this comment.
@copilot Address the code review comment and also add some tests for this header
|
@copilot When you're done with that, also change the name of the header to |
…ource header Co-authored-by: keithmattix <1531662+keithmattix@users.noreply.github.com>
Addressed the code review comment with an explanatory comment and added test |
Co-authored-by: keithmattix <1531662+keithmattix@users.noreply.github.com>
Co-authored-by: keithmattix <1531662+keithmattix@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. |
Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
|
/ok-to-test |
Plan: Add x-istio-origin-network Header to Inner CONNECT Requests
X_ORIGIN_SOURCE_HEADERconstant insrc/proxy.rscreate_hbone_request()insrc/proxy/outbound.rsto accept a parameter indicating whether this is an inner requestx-istio-origin-networkheader with the network value from config when creating the inner CONNECT requestSummary
The implementation adds the
x-istio-origin-networkheader containing the network ztunnel is running in to inner CONNECT requests in double HBONE scenarios. This helps destination envoys know not to use metadata discovery. The changes are minimal and surgical:create_hbone_request()to conditionally add the headerOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.