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
Is this a bug or a feature that requires a workaround?
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.