-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Mixed case host in VirtualService causes RDS to go STALE. #49638
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
Comments
We should ignore case in the domain |
https://www.rfc-editor.org/rfc/rfc7230#section-3.2 all headers are case-insenstive |
Just the header name is, this is about the header value. But |
Can you please share gateways as well? I guess you have similar duplicate host name in gateways? We have fixed this for sidecar but not gateways. |
For the gateway config we're using a wildcard like this;
|
@ramaraochavali - I see this is closed as fixed by #49674 but do you know when that will be released? |
In 1.22,and need to backport |
looks this "fix" introduced a similar bug, where if the host is mixed case, but in sync in the VS and GW there was no issue prior to this "bugfix" but with it, the same configuration now fails, as the host in GW gets lowercased, but the one in VS doesn't. tested on EDIT: the important part to reproduce it is to have a plain redirected to tls in the gateway
|
Can you please share the exact config you used for me to reproduce? |
@ramaraochavali
|
@ramaraochavali , kubectl create ns mytest Apply the below yaml "testVirtualService.yaml" testVirtualService.yaml:apiVersion: v1
|
That specific fix was for Gateways. |
Is there any plan of fixing this for Virtual Services too? Or is it fixed prior to this? |
i think we should fix it. I remember fixing it but not able to find the PR |
can I create new issue?? |
Yes. Please do that |
created new issue #55767 |
Is this the right place to submit this?
Bug Description
Last week we ran into an issue where a duplicate VirtualService entry was added to one of our clusters and it causes the RDS status to go STALE. I've been able to duplicate the issue and its down to where there's mixed case in the hosts entry. eg:
and
We get the following error in the logs
I can replicate the issue by applying this yaml to the cluster.
We found that this broke routing within the cluster for this service which started generating errors. I can see there's this issue where DNS names were allowed to be case-insensitive and also this issue that prevents duplicate routes (but doesn't account for case?).
Version
Additional Information
No response
The text was updated successfully, but these errors were encountered: