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

Backport of Fix route subscription when using namespaces into release/1.15.x #16680

Conversation

hc-github-team-consul-core
Copy link
Contributor

Backport

This PR is auto-generated from #16677 to be assessed for backporting due to the inclusion of the label backport/1.15.

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

merge conflict error: unable to process merge commit: "2e1fe9c6e98cc462e5c7e8079a08d11850de8ab8", automatic backport requires rebase workflow

The below text is copied from the body of the original PR.


Description

We’re improperly subscribing to our routes in the proxycfg package, leveraging the proxy enterprise metadata rather than the route metadata. This causes the gateway to never get configured when it binds a route in another namespace. This PR fixes that by ensuring the correct EnterpriseMeta is used to reference the namespace

Testing & Reproduction steps

In consul enterprise set up a two namespaces, a gateway in one namespace, a service in the other, and attempt to setup a httproute in the service namespace. The route will never register without this fix (also automated tests showing this are coming up in a follow up PR).

Links

N/A

PR Checklist

  • updated test coverage
  • external facing docs updated
  • not a security concern

Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/fix-bug-with-cross-namespace-routes/actually-ample-jennet branch from ce678d5 to e580deb Compare March 20, 2023 16:42
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/fix-bug-with-cross-namespace-routes/actually-ample-jennet branch 2 times, most recently from c00b69b to 2518f54 Compare March 20, 2023 16:42
Copy link

Choose a reason for hiding this comment

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

Auto approved Consul Bot automated PR

@jm96441n jm96441n marked this pull request as ready for review March 20, 2023 16:47
@jm96441n jm96441n enabled auto-merge (squash) March 20, 2023 17:02
@jm96441n jm96441n merged commit 1007444 into release/1.15.x Mar 20, 2023
@jm96441n jm96441n deleted the backport/fix-bug-with-cross-namespace-routes/actually-ample-jennet branch March 20, 2023 19:09
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.

3 participants