fermyon / feedback

Centralized repository for Fermyon Cloud feedback and bug reports
3 stars 1 forks source link

custom subdomain http request does not load nor redirects to https site #29

Closed gerardcl closed 1 year ago

gerardcl commented 1 year ago

Describe the bug I did deploy with success a spin app in fermyon cloud, now I am using a subdomain within a fermyon app and it did work great, the problem is when I access it via http:// scheme it does not redirect to https:// scheme, it does work though when using the given fermyon domain for that app.

Frequency of the bug Please check one:

Set-up information spin 1.4.1 (e0bd911 2023-07-12)

To Reproduce Steps to reproduce the behavior:

  1. Go to 'http://mysubdomain.mydomain.com' (with or without / at the end)
  2. Does not load, it times out connection to https://mysubdomain.mydomain.com:1443
  3. Go to 'https://mysubdomain.mydomain.com' (with or without / at the end)
  4. Does work

Expected behavior To have an automated redirect to https:// scheme at is happens with the given fermyon domain for the same app.

Screenshots N/A

Additional context Questions: is it a known issue? is there a well known solution? shall I implement an http listener and do a redirect on my own? thanks!

mikkelhegn commented 1 year ago

Hi @gerardcl

I'm not able to reproduce this error. Could I ask you to send an e-mail to support@fermyon.com with details about the app (the domain name should be included). That way we can look in to the specifics for that application.

Thanks, Mikkel

radu-matei commented 1 year ago

I'm seeing the same behavior as reported in the issue, @mikkelhegn . We are looking into this and hope to update the issue soon.

Thanks for reportin!

mikkelhegn commented 1 year ago

+1 on this behavior using curl to follow the redirect curl -iL http://name.mydomain.com

My browser (Arc) handles the redirects correctly.

@gerardcl Can you confirm that in step 2 - you meant to say https and not http?

To Reproduce Steps to reproduce the behavior:

  1. Go to 'http://mysubdomain.mydomain.com/' (with or without / at the end)
  2. Does not load, it times out connection to http://mysubdomain.mydomain.com:1443/
  3. Go to 'https://mysubdomain.mydomain.com/' (with or without / at the end) Does work
gerardcl commented 1 year ago

+1 on this behavior using curl to follow the redirect curl -iL http://name.mydomain.com

My browser (Arc) handles the redirects correctly.

@gerardcl Can you confirm that in step 2 - you meant to say https and not http?

To Reproduce Steps to reproduce the behavior:

  1. Go to 'http://mysubdomain.mydomain.com/' (with or without / at the end)
  2. Does not load, it times out connection to http://mysubdomain.mydomain.com:1443/
  3. Go to 'https://mysubdomain.mydomain.com/' (with or without / at the end) Does work

Hi @mikkelhegn! You're right, I've just edited the description accordingly. Thanks 👍

ingride commented 1 year ago

hey there, thank you for reporting this issue! It was caused by a misconfiguration on our end which we now fixed. Great find and we appreciate your time!

-Ingrid