Breeze: bind api-server dual-stack so http://localhost works in Chrome/Safari#67320
Merged
pierrejeambrun merged 2 commits intoMay 22, 2026
Merged
Conversation
The mprocs path was patched in the previous commit, but breeze also supports tmux as a terminal multiplexer (selectable via `--terminal-multiplexer tmux`). The tmux path hard-codes the api-server invocation in scripts/in_container/bin/run_tmux and needs the same `--host '::'` treatment so localhost works in browsers that prefer IPv6.
vincbeck
approved these changes
May 22, 2026
Contributor
Backport successfully created: v3-2-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
pierrejeambrun
added a commit
that referenced
this pull request
May 22, 2026
…rks in Chrome/Safari (#67320) (#67339) * Breeze: bind api-server dual-stack so localhost works in Chrome/Safari * Apply the same dual-stack bind in the tmux startup script The mprocs path was patched in the previous commit, but breeze also supports tmux as a terminal multiplexer (selectable via `--terminal-multiplexer tmux`). The tmux path hard-codes the api-server invocation in scripts/in_container/bin/run_tmux and needs the same `--host '::'` treatment so localhost works in browsers that prefer IPv6. (cherry picked from commit 11ba5ec) Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
Collaborator
|
This actually broke my setup. I'm using Orbstack and Safari, and I get a blank page when trying to navigate to |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
breeze start-airflowlaunchesairflow api-serverwith no--hostoverride, so it picks up the default[api] host = 0.0.0.0— IPv4 only. On macOS with OrbStack (and any other dual-stack-forwarding runtime), this breakshttp://localhost:28080in Chrome and Safari but not Firefox — a confusing failure mode hidden behind an opaquechrome-error://chromewebdata/...page.This change makes the breeze-spawned api-server bind
::(the IPv6 wildcard), which on Linux/macOS dual-stack sockets accepts both IPv4 and IPv6 connections. One-line behavior fix; no public Airflow config changes.Why this happens
/etc/hostsresolveslocalhostto both127.0.0.1(A) and::1(AAAA).[::1]:28080first.OrbStack ... TCP *:28080 (LISTEN)on both IPv4 and IPv6. The IPv6 TCP handshake therefore succeeds at the host…0.0.0.0only, so there's no listener on[::]:8080. The container responds with TCP RST.chrome-error://chromewebdata/and emits the misleading "Unsafe attempt to load URL ... from frame with URL chrome-error://chromewebdata/" console message.127.0.0.1:28080and never sees this. Docker Desktop historically only forwards IPv4, so happy-eyeballs falls back cleanly to IPv4 there too. The combo of Chrome + macOS + OrbStack is what surfaces it.Reproduce (before this patch)
After this patch
The api-server binds dual-stack inside the container, so
localhostreaches it regardless of which family the browser picks.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 4.7) following the guidelines