httpsRedirect on domains with more than one host do not function correctly. I believe this is because they use a 301 instead of a 302. if you only want a.domain.com to redirect to https://a.domain.com then this works perfectly. If you also want b.domain.com to redirect to https://b.domain.com then httpsredirect does not work. After visiting a browsers will send a request to a.domain.com even if the user is visiting b.domain.com. This is evident from istio’s ingress logs:
[2021-02-23T15:21:46.401Z] “GET / HTTP/2” 404 NR route_not_found - “-” 0 0 0 - “192.168.15.107” “Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1” “59c6f0c5-5385-437e-970e-f963d30267e0” “transmission.domain.com” “-” - - 10.10.201.16:8443 192.168.15.107:55773 netdata.domain.com -
Is it possible to make httpsRedirect send a 302? Is there something else that I’m missing?