- 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 passredirect: "manual"and treat a 3xx as a failure: the analytics sync logskind: "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 throughreadBoundedJson(256 KiB), and the body of a refusal is cancelled unread. An oversized or cut-off answer is logged askind: "shape". (#237) - The scan sees a missing redirect mode.
scripts/workerd-fetch-redirect.test.mjsrefusedredirect: "error"only, so a call that named no mode passed. It now also fails on afetchcall with noredirectin the server-capable packages and in the Worker-side files ofapps/web/src. (#237)
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.
Edit on GitHubDocumentation is in English.