Skip to content

fix(supabase)!: reject a supabase_url that does not use https - #2098

Merged
spydon merged 1 commit into
mainfrom
lukasklingsbo/sdk-2756-supabase-reject-insecure-url
Nov 16, 2026
Merged

spydon merged 1 commit into
mainfrom
lukasklingsbo/sdk-2756-supabase-reject-insecure-url

Conversation

@spydon

@spydon spydon commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

The supabase client now rejects a supabase_url that is not https, unless the host is loopback or allow_insecure_http=True is set. Ports supabase-flutter#2160 and is stacked on #2092.

  • http is accepted for localhost, canonical 127.0.0.0/8 and ::1. Other hosts raise SupabaseException.
  • allow_insecure_http is threaded through create_client, create_async_client, AsyncClient, Client and with_token, and passed on to RealtimeClient.
  • The factories validate the URL before they create an HTTP session.
  • README and MIGRATION.md explain the rule and the opt-out.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@spydon
spydon force-pushed the lukasklingsbo/sdk-2756-supabase-reject-insecure-url branch 2 times, most recently from 971b629 to 9054dd9 Compare November 16, 2026 17:27
@spydon
spydon force-pushed the lukasklingsbo/sdk-2756-supabase-reject-insecure-url branch from 9054dd9 to 772f33e Compare November 16, 2026 17:29
@spydon
spydon added this pull request to stack #2099 November 16, 2026 17:29
@spydon
spydon force-pushed the lukasklingsbo/sdk-2756-supabase-reject-insecure-url branch from 772f33e to 40d8d89 Compare November 16, 2026 17:30
@spydon
spydon force-pushed the lukasklingsbo/sdk-2756-supabase-reject-insecure-url branch from 40d8d89 to f42c808 Compare November 16, 2026 17:36
Base automatically changed from lukasklingsbo/sdk-2756-realtime-http_endpoint-always-uses to main November 16, 2026 17:49
@spydon
spydon force-pushed the lukasklingsbo/sdk-2756-supabase-reject-insecure-url branch from f42c808 to f684cd8 Compare November 16, 2026 17:49
@spydon
spydon merged commit 91aa96e into main Nov 16, 2026
15 checks passed
@spydon
spydon deleted the lukasklingsbo/sdk-2756-supabase-reject-insecure-url branch November 16, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant