-
Notifications
You must be signed in to change notification settings - Fork 131
Add OverlappingTLSConfig condition #3709
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3709 +/- ##
==========================================
- Coverage 87.03% 86.90% -0.13%
==========================================
Files 128 128
Lines 15919 15962 +43
Branches 62 62
==========================================
+ Hits 13855 13872 +17
- Misses 1899 1922 +23
- Partials 165 168 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
010563b
to
1215a9a
Compare
Didn't realize this until after merge, but let's make sure the squashed commit message matches the Problem/solution context in the PR description. |
Proposed changes
Problem: Currently, our controller does not set the OverlappingTLSConfig condition on Listeners when overlapping TLS configuration is detected (e.g., overlapping hostnames or certificates on the same port). This means users are not warned about potentially conflicting TLS configurations, which can lead to confusing runtime behavior, especially with HTTP connection coalescing.
Solution: Implement logic to detect overlapping TLS hostnames between Listeners on the same port, and set the OverlappingTLSConfig condition with the reason OverlappingHostnames on all affected Listeners, as required by the Gateway API spec. OverlappingCertificates is not being implemented as it is optional, and is far too complicated (we would have to inspect the Certificate itself)
Testing: Manually tested creating Gateways with various overlapping conditions
Closes #3696
Checklist
Before creating a PR, run through this checklist and mark each as complete.
Release notes
If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.