Closed reagan-mcfadden closed 1 month ago
To add to above. It is really inconsistent which clients get the redirect with and without ports it seems to be entirely related to dom.security.https_first_pbm
config in chromium based products. If the value is set to false I get the undesired behaviour. Which leads me to believe the override is in pluginAttrs is effectively not doing anything.
I also noticed that 9.10.0 is out so I upgraded to it with no change in outcomes.
The issue seems to be client side 301 caches. Having clients clear their caches resolved the issue.
Description
Hello, I am experiencing an issue with the redirect plugin, http_to_https and chrome. The result is that :9443 is displayed in the url after redirect on chrome. Other browsers (firefox, brave, arc) instead properly route traffic to 443 and do not append :9443. Yes, I have tried clearing cache and running from different clients.
I've looked through a number of other issues like: https://github.com/apache/apisix/issues/7011, https://github.com/apache/apisix/issues/7172, https://github.com/apache/apisix/issues/4942 and have found either outdated or invalid configuration options that do not resolve my issue. The https://apisix.apache.org/docs/apisix/plugins/redirect/ has a blurb in the note about the priority of the port used in http_to_https. According to it I have configured the correct first priority value.
Otherwise https behaves in an expected way. Below you can find enough information to reproduce the environment.
My apisix.yaml contains the following rule:
My config.yaml has the following pluginAttrs values.
My docker-compose that is used for the server environment:
Modified dockerfile to include adc for deployments.
Relevant CI/CD deployment (bitbucket) instructions:
.env contains something roughly like:
scripts/ssl-cert.sh
Any pointers or suggestion to resolve chrome redirecting to https://xxx.com:9443 from http://xxx.com would be welcome.
Environment
Note this is being deployed as a container on a ubuntu digital ocean droplet. Droplet has the following configuration/installation for newest ubuntu version.
ufw: 0.36.2
cert: