Skip to content
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

feat(gateway): propagate x-kuma-tags from MeshGateways #4476

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

michaelbeaumont
Copy link
Contributor

@michaelbeaumont michaelbeaumont commented Jun 14, 2022

Summary

Closes #3313

This PR adds requestHeadersToAdd to the weighted clusters depending on if the request is staying in the mesh.

The issue assumes we have to do this in RouteConfiguration but it seems like we can add this to each WeightedCluster. Is this (i.e. the configs in the test) the correct behavior?

Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
@michaelbeaumont michaelbeaumont marked this pull request as ready for review June 15, 2022 16:21
@michaelbeaumont michaelbeaumont requested a review from a team as a code owner June 15, 2022 16:21
Copy link
Contributor

@lahabana lahabana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense wondering if @lukidzi or @jakubdyszkiewicz have an opinion

@jakubdyszkiewicz
Copy link
Contributor

This is only used for fault injection at this moment and I think it should be eventually removed in favor of reading tags from the cert on the server side.

@michaelbeaumont michaelbeaumont merged commit 8607471 into kumahq:master Jun 22, 2022
@michaelbeaumont michaelbeaumont deleted the fix/xkuma-tags-gateway branch June 22, 2022 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Gateway handling of the x-kuma-tags header
3 participants