Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyncTriggers failing if http used on an "https-only" app #10053

Open
brettsam opened this issue Apr 22, 2024 · 1 comment
Open

SyncTriggers failing if http used on an "https-only" app #10053

brettsam opened this issue Apr 22, 2024 · 1 comment

Comments

@brettsam
Copy link
Member

If a customer has these two settings...

  • SCM_SKIP_SSL_VALIDATION=1
  • HTTPS Only = On (viewable in portal)

...the functions host will attempt to make an http request to SyncTriggers. This will fail with a 404.

It ends up being a 404 because the request follows the following path:

There's several investigations we can make here:

  1. Does this request need to be http? https does seem to work as the GET works. Don't have much context, but here is the code.
  2. If it does have to be http in this case, we can change AllowAutomaticRedirect in the HttpClient, handle the 301 directly, and present a nice error to the customer. Or use DiagnosticEvents, etc -- but provide guidance on how to get SyncTriggers working again.
@mathewc
Copy link
Member

mathewc commented May 3, 2024

Looks like this was added 6 years ago in this commit by @balag0 - he may help provide more context on this.

Looking in the older Kudu code here that also does an /operations/settriggers, it handles this in a different way, via HttpClient configuration. I wonder if we shouldn't just do the same thing in the host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants