-
Notifications
You must be signed in to change notification settings - Fork 202
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
Host matching ACLs missing <host>:<port> form #11
Comments
Could be solved by using hdr_reg instead of hdr: req.hdr_reg(host) -i ^foo\.bar\.com(:[0-9]+)?$ in file: kubernetes-ingress/controller-backend-switching.go : import (
...
"regexp"
...
)
...
condTest = fmt.Sprintf("{ req.hdr_reg(host) -i %s } ", "^" + regexp.QuoteMeta(rule.Host) + "(:[0-9]+)?$")
... However use of regex could slow down evaluating ACLs |
Hi, i need to check it but maybe something like this would work
|
HAProxy proposes a few options:
The most accurate one is the latest one |
Have ACLs been implemented in the build yet? I have an application to host, that appends :port to the host header, thereby not matching
I do not see any documentation, but I do see code in controller-acls.go for ACL methods. |
Hi |
Hi,
I think the ACLs matching Host headers for routing are inaccurate:
use_backend service1 if { req.hdr(host) -i foo.bar.com } { path_beg /foo }
Host header could have the following forms:
The acl above will not match the second form.
So it would be good to append to this acl, a new host header to which we append the port configured on the frontend
The text was updated successfully, but these errors were encountered: