Replies: 1 comment 2 replies
-
|
to make sure I understand this a bit, what does your certificate look like (in your ideal state)? do you have 1 cert with N SANs? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
I’m not sure if this is the right place, but I hope to get some insight into how the intended use of the Gateway API is.
My setup is that I have several hosts using HTTP and HTTPS, some that serve several hostnames (alias).
Now, when I apply/translate this into the Gateway API, I’ve trouble wrapping my head around resp. I’m running very quickly into the limits.
As the listener only supports one hostname, I must create a separate listener for each hostname and alias, repeating the TLS certificate settings (i.e., using a single certificate with all the SANs).
My first approach was to define the hostnames in the HTTPRoute and not in the HTTPS Listener. This works great in the HTTP Listener setup, but not for HTTPS, since I can’t have more than one HTTPS Listener. HTTPS listeners with the same port but different TLS settings are not considered unique.
from the GatewaySpec Listener field documentation:
The only option in this scenario would be a wildcard certificate. But if I have completely different domain names, wildcard certificates are not possible.
So, I’m back to defining a separate listener for each hostname and alias, but then I’m running really quickly into the listener limit of 64. And in addition, I must reference all these listeners in every HTTPRoute I create.
I’ve seen that there are issues around increasing this limit and the introduction of ListenerSets, but still, for me, the whole configuration is a bit strange.
Therefore, I try to understand the intention of the API definition as it is now a bit better.
First, did I miss an option on how to configure my setup correctly?
One option to come by my issues would be to include the
tlsfield in the uniqueness validation for the HTTPS Listeners. Or can somebody explain the design decisions why the HTTPS Listener does not consider the TLS settings to distinguish the listeners?Another option would be to use a list of hostnames in the listener. Any reasoning on why the listener
hostnameis a single value and not a list as in the HTTP route?I'd really love to get more insight into the API design to understand these points better.
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions