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

Fix issue with incorrect proxycfg watch on upstream peer-targets. #15865

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

hashi-derek
Copy link
Member

@hashi-derek hashi-derek commented Dec 21, 2022

Sometimes when envoy was configured to do failovers to peered clusters, the SNI / SAN information was missing from the xDS configuration, which means that it was impossible to connect to the mesh gateway correctly.

This issue occurs because the incorrect partition / datacenter was used when creating watches from upstream targets. The datacenter / partition from discovery-chain peer-targets should NOT be used to perform lookups, since the fields are intentionally cleared during compilation (disco chain target fields indicate the destination's data, not the source's data).

Instead, the local datacenter / partition should be provided to the query so that it can properly lookup services.

@github-actions github-actions bot added the theme/envoy/xds Related to Envoy support label Dec 21, 2022
This fixes an issue where the incorrect partition was given to the
upstream target watch, which meant that failover logic would not
work correctly.
@hashi-derek hashi-derek marked this pull request as ready for review December 21, 2022 21:09
@hashi-derek hashi-derek added the backport-inactive/1.14 This release series is no longer active label Dec 21, 2022
Copy link
Contributor

@ndhanushkodi ndhanushkodi left a comment

Choose a reason for hiding this comment

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

Looks good to me, I just decided to review for my learning. Thanks for the super helpful comments in the PR!

//
// Note that the namespace is not swapped out, because it should
// always match the value in the remote datacenter (and shouldn't
// have been changed anywhere).
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for this comment, so helpful!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-inactive/1.14 This release series is no longer active theme/envoy/xds Related to Envoy support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants