DashboardcliGHCR 307 strips Authorization

GHCR 307 strips Authorization

Category: gotcha
Confidence: 1.00
ID: 01a08a6f-92eb-798d-929c-d80001fe68e1
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 0F4SZd0XgbTzj1F9C
Created: 2026-09-10 08:29:23
Updated: 2026-09-10 08:29:23

Content

Trap: letting fetch automatically follow GHCR blob redirects looks correct, but ghcr.io returns HTTP 307 to Azure Blob Storage and forwarding Authorization causes Azure to return 404 while leaking registry credentials cross-origin. Fix: follow the redirect manually without the authorization header, preserve arbitrary external abort reasons structurally, and reject malformed or unexpected redirect targets.

Move to: