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

Append port number to ingress host domain #8190

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

crhino
Copy link
Contributor

@crhino crhino commented Jun 25, 2020

A port can be sent in the Host header as defined in the HTTP RFC, so we
take any hosts that we want to match traffic to and also add another
host with the listener port added.

Also fix an issue with envoy integration tests not running the
case-ingress-gateway-tls test.

This fixes issues seen in #8045. Also, see envoy issue envoyproxy/envoy#886 for more context.

This seems like a good improvement/fix to backport to 1.8.1 as well, any other thoughts on that welcome.

@crhino crhino requested a review from a team June 25, 2020 19:49
@crhino crhino force-pushed the ingress/append-port-to-domain branch from 014ba40 to 52bc330 Compare June 25, 2020 20:08
Copy link
Contributor

@freddygv freddygv left a comment

Choose a reason for hiding this comment

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

:shipit:

A port can be sent in the Host header as defined in the HTTP RFC, so we
take any hosts that we want to match traffic to and also add another
host with the listener port added.

Also fix an issue with envoy integration tests not running the
case-ingress-gateway-tls test.
@crhino crhino force-pushed the ingress/append-port-to-domain branch from 52bc330 to dca18f7 Compare July 7, 2020 14:39
@crhino crhino merged commit 735337b into master Jul 7, 2020
@crhino crhino deleted the ingress/append-port-to-domain branch July 7, 2020 15:43
@hashicorp-ci
Copy link
Contributor

🍒✅ Cherry pick of commit 735337b onto release/1.8.x succeeded!

hashicorp-ci pushed a commit that referenced this pull request Jul 7, 2020
A port can be sent in the Host header as defined in the HTTP RFC, so we
take any hosts that we want to match traffic to and also add another
host with the listener port added.

Also fix an issue with envoy integration tests not running the
case-ingress-gateway-tls test.
blake added a commit to hashicorp/nomad that referenced this pull request Aug 11, 2021
Update the ingress gateway documentation to remove the note stating
that a port must be specified for values in the `hosts` field when
the ingress gateway is listening on a non-standard HTTP port.

Specifying a port was required in Consul 1.8.0, but that requirement
was removed in 1.8.1 with hashicorp/consul#8190 which made Consul
include the port number when constructing the Envoy configuration.

Related Consul docs PR: hashicorp/consul#10827
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