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

supabase / supabase-flutter / 43238318786
94%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2026 02:34PM UTC
Jobs 12
Files 195
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

12 Nov 2026 02:32PM UTC coverage: 94.458% (+0.006%) from 94.452%
43238318786

push

github

web-flow
fix(supabase)!: reject a supabaseUrl that does not use https (#2160)

The client accepted any URL scheme. An app configured with an `http` URL
sent the API key and the access token of the user in clear text, so
anyone on the network could read and change all traffic.

Resolves SDK-3003.

### Changes

- `SupabaseClient` throws an `ArgumentError` (named `supabaseUrl`)
unless the URL is an absolute `https` URL. `http` is still accepted for
a loopback host: `localhost`, `127.0.0.0/8` and `::1`. A URL with any
other scheme is rejected too, and a URL without a host, such as an empty
`--dart-define`, gets its own message saying it is not absolute. The
check uses only `dart:core`, so it behaves the same on the web.
- The new `allowInsecureHttp` flag on `SupabaseClient` and
`Supabase.initialize` accepts `http` for any other host. Self-hosted and
LAN setups need it: the Android emulator reaches a local stack through
`10.0.2.2`, a phone through the LAN IP address of the computer, and a
server through a Docker service name. A private address range cannot be
trusted automatically, since the network of a coffee shop is one too.
The docs suggest `allowInsecureHttp: kDebugMode`, which keeps plain
`http` out of release builds.
- Names that go through DNS, such as `*.localhost`, are not treated as
loopback, since an attacker on the network can answer for them.
- The service URLs are derived from the parsed URL, so it is parsed once
instead of five times.
- On Flutter web in debug mode, `Supabase.initialize` disposes the
client left from before a hot restart before it validates the new
configuration, so a rejected URL does not keep the old client connected.
- `MIGRATION.md` gets a section and an entry in "Changes the compiler
will not catch", the migrate-v3 skill gets a row, both package READMEs
say which URLs are accepted, and the README of the authentication
example now recommends `adb reverse` for Android and names the flag for
other hosts.

### Tests

- `supabase_ur... (continued)

24 of 24 new or added lines in 3 files covered. (100.0%)

3 existing lines in 1 file now uncovered.

13193 of 13967 relevant lines covered (94.46%)

6.92 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
98.51
0.01% packages/supabase/lib/src/supabase_client.dart
Jobs
ID Job ID Ran Files Coverage
3 supabase_storage - 43238318786.3 12 Nov 2026 02:35PM UTC 13
95.9
GitHub Action Run
4 postgrest - 43238318786.4 12 Nov 2026 02:35PM UTC 30
93.16
GitHub Action Run
5 supabase_flutter - 43238318786.5 12 Nov 2026 02:34PM UTC 16
89.16
GitHub Action Run
6 supabase_test - 43238318786.6 12 Nov 2026 02:34PM UTC 9
93.79
GitHub Action Run
7 iceberg - 43238318786.7 12 Nov 2026 02:34PM UTC 7
99.72
GitHub Action Run
8 supabase_auth - 43238318786.8 12 Nov 2026 02:36PM UTC 33
94.4
GitHub Action Run
9 supabase - 43238318786.9 12 Nov 2026 02:35PM UTC 22
94.62
GitHub Action Run
10 supabase_realtime - 43238318786.10 12 Nov 2026 02:36PM UTC 15
92.91
GitHub Action Run
11 supabase_functions - 43238318786.11 12 Nov 2026 02:34PM UTC 4
94.15
GitHub Action Run
12 supabase_typegen - 43238318786.12 12 Nov 2026 02:35PM UTC 7
95.53
GitHub Action Run
10 yet_another_json_isolate - 43222394842.10 12 Nov 2026 12:57PM UTC 2
98.65
GitHub Action Run
2 supabase_common - 43222394842.2 12 Nov 2026 12:57PM UTC 37
94.39
GitHub Action Run
Source Files on build 43238318786
  • Tree
  • List 195
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43238318786
  • 33cce842 on github
  • Prev Build on main (#43233176247)
  • Next Build on main (#43390490448)
  • 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