• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-flutter / 43406437180
94%

Build:
DEFAULT BRANCH: main
Ran 13 Nov 2026 10:06AM UTC
Jobs 12
Files 197
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Nov 2026 10:05AM UTC coverage: 94.397% (+0.006%) from 94.391%
43406437180

push

github

web-flow
fix(storage): keep resumable upload requests on the storage origin (#2163)

The resumable upload followed the `Location` header of the tus creation
response to any host, and saved that URL in the persisted record. Every
later `HEAD`, `PATCH` and `DELETE` went there through `AuthHttpClient`,
which adds the `apikey` and the user JWT to any URL. A hostile storage
proxy, a network attacker on an `http` URL, or a tampered stored record
could therefore have the JWT sent to another host.

Resolves SDK-2997.

### Can hosted storage return a `Location` on another host? (TM-052)

Yes. storage-api builds `Location` from `X-Forwarded-Host`, and the
hosted gateway (`customer-router/src/routing.ts` in
supabase/api-gateway) sets that header to `<ref>.supabase.co` when the
request came in on a custom domain or on `<ref>-all.supabase.co`. A
strict same-origin check would make resumable uploads fail for every
project behind a custom domain. Instead, a `Location` on another origin
keeps its path and query, and is moved onto the origin of the storage
client. Requests never leave that origin, and custom domains keep
working because they serve the same `/storage/v1/upload/resumable/<id>`
path.

### Changes

- When the resolved `Location` has another scheme, host, port or user
info than the tus endpoint, those are replaced with the ones of the
endpoint before the record is saved. This also turns an `http`
`Location` into `https` on an `https` client. The move is logged at the
`fine` level.
- A stored record whose upload URL is not on the origin of the storage
client is skipped with a warning. It is not listed by
`resumableUploads`, cannot be continued with `resumeUpload`, and
`discardResumableUpload` sends nothing for it. It stays in storage, the
same as a record from a newer version of the package, so a client with
another origin that shares the storage key does not lose its records.
- The signed upload `token` stays in the record, so that a signed upload
can continue afte... (continued)

15 of 15 new or added lines in 1 file covered. (100.0%)

13258 of 14045 relevant lines covered (94.4%)

7.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 supabase_functions - 43406437180.1 13 Nov 2026 10:06AM UTC 4
94.48
GitHub Action Run
2 yet_another_json_isolate - 43406437180.2 13 Nov 2026 10:06AM UTC 2
98.65
GitHub Action Run
3 supabase_typegen - 43406437180.3 13 Nov 2026 10:07AM UTC 7
95.53
GitHub Action Run
4 supabase_auth - 43406437180.4 13 Nov 2026 10:08AM UTC 33
94.44
GitHub Action Run
5 supabase - 43406437180.5 13 Nov 2026 10:08AM UTC 22
94.56
GitHub Action Run
6 supabase_realtime - 43406437180.6 13 Nov 2026 10:08AM UTC 16
92.23
GitHub Action Run
7 postgrest - 43406437180.7 13 Nov 2026 10:08AM UTC 30
93.16
GitHub Action Run
8 supabase_test - 43406437180.8 13 Nov 2026 10:06AM UTC 9
93.83
GitHub Action Run
9 iceberg - 43406437180.9 13 Nov 2026 10:06AM UTC 7
99.72
GitHub Action Run
10 supabase_common - 43406437180.10 13 Nov 2026 10:06AM UTC 38
94.41
GitHub Action Run
11 supabase_flutter - 43406437180.11 13 Nov 2026 10:07AM UTC 16
89.16
GitHub Action Run
12 supabase_storage - 43406437180.12 13 Nov 2026 10:08AM UTC 13
95.98
GitHub Action Run
Source Files on build 43406437180
  • Tree
  • List 197
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43406437180
  • ea15518c on github
  • Prev Build on main (#43396554937)
  • Next Build on main (#43409785739)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc