Application-gateway-kubernetes-ingress: ssl-redirect not redirecting for default http settings

Created on 30 Oct 2019  路  5Comments  路  Source: Azure/application-gateway-kubernetes-ingress

Describe the bug
ssl-redirect: "true" doesn't redirect Default HTTP settings for Path-based rule in App Gateway.

Example:
http://test.contoso.com/example1 -> redirects to https
http://test.contoso.com/ -> does not redirect to https

To Reproduce
See example ingress

test_ing.txt

Is this a bug or a feature that requires a workaround?

All 5 comments

Hi @abenck
Which version of AGIC did you notice this bug with?
How did you determine that http://test.contoso.com/ -> does not redirect to https?

Thank you so much for attaching the ingress resource!

We're using AGIC 0.8.0 + App Gateway with WAF V2

From the look of the resulting Path-based rule in the App Gateway the behavior makes sense, the rule test.contoso.com-80 lists all paths with a redirect target except for the root.

I checked with curl after noticing the redirect didn't happen on home pages at the root.
curl -I http://test.contoso.com/ -> 200 OK
curl -I http://test.contoso.com/example1 -> 302 FOUND

@abenck would you be so kind to upgrade to the latest version - released just this week - 0.10.0

I am certain that it will address the redirect issue you ran into.

Here are the instructions on upgrading AGIC

Sure, I can put in a request to make this change in our next update. I'll report back after that to confirm it's resolved.

Thanks for the help and fast reply!

@draychev I got the go ahead to use a testing instance and confirmed that it's fixed in 0.10.0, testing with curl now reports 301 Moved Permanently.

Was this page helpful?
0 / 5 - 0 ratings