wildcard hostnames produce invalid regex for Host
predicate
#3297
Labels
Content-Length: 220287 | pFad | http://github.com/zalando/skipper/issues/3297
D4Host
predicate
#3297
Fetched URL: http://github.com/zalando/skipper/issues/3297
Alternative Proxies:
Describe the bug
converting host from Ingress/RouteGroup for
Host
predicate doesn't take into consideration that Ingress support wildcard hostnames (see https://kubernetes.io/docs/concepts/services-networking/ingress/#hostname-wildcards) and we produce invalid regexError:
To Reproduce
create ingress with wildcard hostname
Reproducer PR #3296
Expected behavior
Valid regex generated and routingTable updated with the new entries
Observed behavior
Not valid regex is created and ingress routes are ignored.
for this ingress
^(*[.]example[.]org[.]?(:[0-9]+)?)$
The text was updated successfully, but these errors were encountered: