Skip to content

Backport of Fix hostname alignment checks for HTTPRoutes into release/1.15.x#16308

Closed
hc-github-team-consul-core wants to merge 10 commits intorelease/1.15.xfrom
backport/api-gateway-hostname-fixes/personally-glad-slug
Closed

Backport of Fix hostname alignment checks for HTTPRoutes into release/1.15.x#16308
hc-github-team-consul-core wants to merge 10 commits intorelease/1.15.xfrom
backport/api-gateway-hostname-fixes/personally-glad-slug

Conversation

@hc-github-team-consul-core
Copy link
Collaborator

Backport

This PR is auto-generated from #16300 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: "1945da274ab88a654739ab01515e3149a6ea6d0a", automatic backport requires rebase workflow

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


Description

This adds a missing hostname check between listeners and HTTPRoutes. Without it we do no verification of the alignment between route and Listener hostnames and the listener hostnames are essentially unused. In the upstream spec, only http routes that have hostnames matching the listener hostname (or no hostnames specified) can be bound to a listener. We accomplish this by filtering out routes (both in the xDS code and in our controller) based on the listener hostname and then checking to see if there are any valid hosts to bind to.

It's a stacked PR on top of the inline certs PR (#16295), so that should get merged first.

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/api-gateway-hostname-fixes/personally-glad-slug branch from 42c9354 to c25b684 Compare February 17, 2023 18:18
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/api-gateway-hostname-fixes/personally-glad-slug branch from c204cfa to 2524d13 Compare February 17, 2023 18:18
Copy link
Collaborator

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

@github-actions github-actions bot added the theme/envoy/xds Related to Envoy support label Feb 17, 2023
@andrewstucki andrewstucki marked this pull request as ready for review February 17, 2023 20:02
@andrewstucki andrewstucki marked this pull request as draft February 17, 2023 20:02
@andrewstucki
Copy link
Contributor

Closing via manual backport in #16315

@andrewstucki andrewstucki deleted the backport/api-gateway-hostname-fixes/personally-glad-slug branch February 17, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme/envoy/xds Related to Envoy support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants