Skip to content

fix(cli): bypass loopback proxying (CLI-2034) - #6283

Merged
7ttp merged 2 commits into
developfrom
7ttp/issue-3265-health-probe-proxy
Aug 20, 2026
Merged

fix(cli): bypass loopback proxying (CLI-2034)#6283
7ttp merged 2 commits into
developfrom
7ttp/issue-3265-health-probe-proxy

Conversation

@7ttp

@7ttp 7ttp commented Aug 20, 2026

Copy link
Copy Markdown
Member

TL;DR

Keep supabase start health probes to the local Kong gateway off HTTP(S) proxies
restoring the previous Go CLI behavior for the CLI's canonical loopback addresses.

What regressed?

The native TypeScript port moved these probes from Go's net/http client to Bun's fetch.
Go bypassed proxies for localhost and loopback addresses, while Bun honors HTTP_PROXY and HTTPS_PROXY unless NO_PROXY is configured...

With a proxy configured, PostgREST and Edge Runtime readiness probes can be sent to the proxy instead of 127.0.0.1, causing a healthy local stack to fail startup and roll back...

fixed now by:

Append localhost, 127.0.0.1, and [::1] to Bun's active NO_PROXY variable immediately before start performs its local gateway probes.
Existing exclusions are preserved, and the late placement keeps the synthetic value out of project dotenv resolution and container environments...

Ref

resolves: #3265 (comment)

@7ttp 7ttp self-assigned this Aug 20, 2026
@7ttp
7ttp requested a review from a team as a code owner August 20, 2026 12:45

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b9e2727182

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli/src/legacy/commands/start/start.handler.ts
Comment thread apps/cli/src/legacy/shared/legacy-hostname.ts
Comment thread apps/cli/src/legacy/commands/start/start.handler.ts
@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@2db54c5672749c359d29edf9a93f4a5a3afa223e

Preview package for commit 2db54c5.

@7ttp
7ttp marked this pull request as draft August 20, 2026 12:53
@7ttp

7ttp commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 2db54c5672

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@7ttp
7ttp marked this pull request as ready for review August 20, 2026 17:45
@7ttp
7ttp added this pull request to the merge queue Aug 20, 2026
@7ttp 7ttp changed the title fix(cli): bypass loopback proxying fix(cli): bypass loopback proxying (CLI-2034) Aug 20, 2026
Merged via the queue into develop with commit 3fa4843 Aug 20, 2026
53 checks passed
@7ttp
7ttp deleted the 7ttp/issue-3265-health-probe-proxy branch August 20, 2026 23:01
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.

Supabase CLI starts the containers but then does Stopping containers... resulting in broken: malformed HTTP response

2 participants