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

Redirect hosts only to domains with associated backends #1010

Merged
merged 1 commit into from
Jul 2, 2023

Conversation

jcmoraisjr
Copy link
Owner

Redirect-from configuration key defines the source hostnames that should redirect to the one configured in the ingress manifest. This is not properly working with ingress that adds more hostnames in the TLS section because haproxy ingress adds all those hostnames as regular ones. Adding as a regular hostname is needed in order to make haproxy choose the right certificate in the TLS handshake.

The following change is making redirect-from apply redirects only on hosts that have a backend association, which would be otherwise ending up in a 404 error anyway.

Redirect-from configuration key defines the source hostnames that should
redirect to the one configured in the ingress manifest. This is not
properly working with ingress that adds more hostnames in the TLS
section because haproxy ingress adds all those hostnames as regular
ones. Adding as a regular hostname is needed in order to make haproxy
choose the right certificate in the TLS handshake.

The following change is making redirect-from apply redirects only on
hosts that have a backend association, which would be otherwise ending
up in a 404 error anyway.
@jcmoraisjr
Copy link
Owner Author

#1005

@jcmoraisjr jcmoraisjr merged commit 4a324fc into master Jul 2, 2023
@jcmoraisjr jcmoraisjr deleted the jm-fix-tls-host-redirect branch July 2, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant