Skip to content
Docs
Changelog

Cloudflare analytics, the GitHub issue and S3 control requests stop following redirects

Three outbound calls sent their credentials with the default redirect mode. They now pass manual and fail on a 3xx, the Cloudflare answer is read with a size bound, and the scan test fails on a missing redirect mode.

Markdown

  • Fixed: three outbound calls could follow a redirect with their credentials. The Cloudflare GraphQL read behind the admin's "CF" numbers and the "create GitHub issue" action sent a bearer token with fetch's default mode, follow; the signed S3 control requests for multipart uploads did the same. All three now pass redirect: "manual" and treat a 3xx as a failure: the analytics sync logs kind: "http" with the status and waits its 30 minutes, the issue action answers its usual error, and the control request throws. See backend conventions. (#237)
  • The Cloudflare answer is read with a bound. It was read with response.json(), with no size limit. It now goes through readBoundedJson (256 KiB), and the body of a refusal is cancelled unread. An oversized or cut-off answer is logged as kind: "shape". (#237)
  • The scan sees a missing redirect mode. scripts/workerd-fetch-redirect.test.mjs refused redirect: "error" only, so a call that named no mode passed. It now also fails on a fetch call with no redirect in the server-capable packages and in the Worker-side files of apps/web/src. (#237)
Edit on GitHubDocumentation is in English.
Cookie settings
We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience.

Read our Cookie Policy and Privacy Policy.