A request through the backend
Follow an authenticated browser request from the auth middleware, through the access checks, to the data layer — and see why @supabase/supabase-js is still the data client.
Q3 — Signed URLs or backend proxy for browser access?
| Option | Pros | Cons |
|---|---|---|
| A. Signed / SAS URLs | Browser fetches directly from storage; no blob data passes through the backend. | Credentials (even time-limited) leave the server. Signed URLs in browser history, server logs, CDN logs. |
| B. Backend download proxy (chosen) | No storage credentials ever reach the browser. Auth is enforced on every access. Consistent with the existing /download/:token pattern already in the codebase. |
Large files (up to 100 MB) pass through the backend; limits scale-to-zero effectiveness for download-heavy workloads. |