Skip to content

Add bounded Wi-Fi sign-in for one local phone - #74

Merged
pjeweb merged 6 commits into
osb/integrationfrom
osb/captive-signin-window
Nov 15, 2026
Merged

pjeweb merged 6 commits into
osb/integrationfrom
osb/captive-signin-window

Conversation

@pjeweb

@pjeweb pjeweb commented Nov 13, 2026 •

Copy link
Copy Markdown

Why

Hotel and venue Wi-Fi often shows a sign-in page before letting anything online. Signing in on your phone usually unlocks only the phone: the box stays offline, even though it's connected to the same Wi-Fi. Streamers end up guessing why the box has no internet in a place where their phone works fine.

What

  • An experimental Wi-Fi sign-in switch in Settings, off by default. Turning it on adds Sign the box in to Links.
  • From a phone on the box's own Wi-Fi, pick the venue Wi-Fi and open its sign-in page in your browser. You enter details and accept terms yourself.
  • The window is for that one phone and lasts at most ten minutes, with Check sign-in and Cancel sign-in to close it early.
  • Clear status and refusal messages in every language the app ships. Check sign-in reports web access; it doesn't promise the venue allows streaming.

How: for the open window, the box sends that phone's web and plain DNS traffic out through the venue Wi-Fi, so the venue sees the box's radio sign in. It checks every ten seconds that the phone is still local and on the same Wi-Fi session, and removes the temporary path when the window closes or expires; the kernel enforces the deadline even if the backend stops. Local control, other devices and the stream keep their paths, and the box never collects page contents, credentials or cookies.

Land #95 first so the production build stays within its size limit; #80 builds on this PR.

Screenshots

Phone and desktop comparisons

Mock data; the same state at the PR base and head.

Before After
Before: Experimental Wi-Fi sign-in setting (390 px) After: Experimental Wi-Fi sign-in setting (390 px)
Before: Experimental Wi-Fi sign-in setting (1280 px) After: Experimental Wi-Fi sign-in setting (1280 px)
Before: Wi-Fi sign-in window while waiting (390 px) After: Wi-Fi sign-in window while waiting (390 px)
Before: Wi-Fi sign-in window while waiting (1280 px) After: Wi-Fi sign-in window while waiting (1280 px)

Additional mock comparisons before and after the setting-save follow-up:

Before After
Before: Failed experimental-setting save (390 px) After: Failed experimental-setting save (390 px)
Before: Failed experimental-setting save (1280 px) After: Failed experimental-setting save (1280 px)
Before: Localized venue Wi-Fi selector (390 px) After: Localized venue Wi-Fi selector (390 px)
Before: Localized venue Wi-Fi selector (1280 px) After: Localized venue Wi-Fi selector (1280 px)
Translations and what a native speaker should check

The new lines are translated into all ten catalogs. The Spanish copy was already there and is unchanged. I kept each catalog's existing words for the box, sign-in, Wi-Fi, links and the stream, and kept the English promise that the stream is unaffected. "Sign-in window" means the ten-minute period, so I used a time word where the language has one (de Zeitfenster, ja 受付時間, ko 허용 시간, zh 时段, ar فترة, hi अवधि).

Worth a native read:

  • Every language: "web forwarding" has no settled everyday word. I used Web-Weiterleitung, relais web, encaminhamento web, Web 転送, 웹 전달, 网页转发, تمرير الويب and वेब फ़ॉरवर्डिंग. A plainer phrase may read better.
  • German: I used "Telefon" to match the catalog, although "Handy" is more natural.
  • French and Portuguese: "fenêtre de connexion" and "janela de login" may read as a screen window. Both titles are nouns where the English is a command.
  • Japanese: I used ボックス instead of 本機, because on the phone 本機 could mean the phone itself.
  • Korean: the "could not be opened" line says "could not start the sign-in", which is a little looser than the English.
  • Chinese: I used 盒子 for the box. The catalog mostly says 设备 or 本机, but on the phone either could read as the phone. 盒子 is already used once.
  • Arabic: الجهاز means both "device" and the box, so the intro's "each device … so the device" may be ambiguous.
  • Hindi: the "Checking" line may sound stiff.
  • Spanish (unchanged): the closed line drops "sign-in", and the waiting and duration lines drop "until you're done". Changing es.json also needs a docs update.

How to verify

With mock data, turn on Settings → Wi-Fi sign-in, open Links → Sign the box in, choose a venue network and check the window, Check sign-in and Cancel sign-in states. The browser spec covers 390 and 1280 px. scripts/tests/captive-portal-netns.py checks the real routing in network namespaces: only the chosen phone's web and DNS go through the venue side, and relay and control traffic are untouched.

Testing and limits
  • The latest focused backend, frontend and rpc tests, i18n, the Python helper tests, lint and type checks pass. Earlier full backend and frontend runs on this topic passed.
  • With the translations, upstream's check that rejects new English text in other languages passes. I ran it with this branch merged onto current integration, upstream main and the other PRs queued for the next merge, with and without Help phones open hotel Wi-Fi sign-in pages #80 on top. The i18n suite (857 tests), the focused frontend tests and the production build with its size limits passed there too.
  • The namespace fixture covers reconnects, restarts, timeouts, repeated closing and an interrupted install, keeps every relay and control packet, and refuses devices that weren't chosen.
  • Remote sessions can change the setting, but only a local phone can start and control a window. Turning the setting off keeps an open window's controls until it closes.
  • Only IPv4 web traffic and plain DNS are covered; IPv6, QUIC, VPNs and encrypted DNS are not (Help phones open hotel Wi-Fi sign-in pages #80 handles those).
  • Not tried with a real radio, at a real venue or on an installed image yet.

Risks

It's off by default. If cleanup fails, the owner is kept and cleanup retries, and startup recovery removes leftovers.


Checklist

  • Docs updated if behavior or structure changed (Rule A: AGENTS.md within budget, README, docs/, versions.yaml)
  • User docs (Rule G): no user-visible change, OR ceralive-docs PR updates English and Spanish, plus ceralive-website PR if a landing claim changed
  • Started from updated main; branch rebased on latest canonical branch (Rule B)
  • Rule D local-scratch reference check passes for tracked files
  • Tests pass; QA evidence attached or linked

@pjeweb pjeweb mentioned this pull request Nov 13, 2026
2 of 5 tasks
Reconcile leftover routing state, make closure repeatable, and roll back
interrupted helper execution. Retain ownership and expiry when cleanup is
uncertain, with specific sign-in messages and bounded health holds.

Cover reconnects, live and expired restart state, interrupted installation,
and partial installation recovery in isolated kernel fixtures.
Accept detached ingress metadata during exact-owned rule recovery, retire
active session configuration after close, and bind retry timers to their owner.
Clarify sign-in messages and give portal RPC calls a complete helper budget.

Keep sign-in disabled until explicitly enabled in experimental Settings, with
persisted opt-in and backend admission enforcement. Isolate RPC test dependencies
and cover recovery, defaults, failed saves, deadlines and serial execution.
The sign-in sheet, its outcome lines and the experimental setting were
still English in de, fr, pt-BR, ja, ko, zh, ar and hi. Spanish already
had its own copy and is unchanged.

The wording follows each catalog's existing terms for the box, sign-in,
Wi-Fi, links and the stream, and keeps the English lines' promise that
the stream is unaffected.
@pjeweb
pjeweb merged commit 6b1d2aa into osb/integration Nov 15, 2026
1 of 3 checks passed
pjeweb added a commit that referenced this pull request Nov 16, 2026
@pjeweb pjeweb added the upstream: waits for intent Needs an issue or maintainer agreement before an upstream proposal. label Nov 16, 2026
pjeweb added a commit that referenced this pull request Nov 17, 2026
pjeweb added a commit that referenced this pull request Nov 17, 2026
pjeweb added a commit that referenced this pull request Nov 18, 2026
pjeweb added a commit that referenced this pull request Nov 18, 2026
pjeweb added a commit that referenced this pull request Nov 19, 2026
pjeweb added a commit that referenced this pull request Nov 21, 2026
pjeweb added a commit that referenced this pull request Nov 22, 2026
pjeweb added a commit that referenced this pull request Nov 23, 2026
pjeweb added a commit that referenced this pull request Nov 24, 2026
pjeweb added a commit that referenced this pull request Nov 24, 2026
@pjeweb

pjeweb commented Nov 25, 2026

Copy link
Copy Markdown
Author

Still carried in the integration train and not upstream, so it continues as #253.

pjeweb added a commit that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream: waits for intent Needs an issue or maintainer agreement before an upstream proposal.

Development

Successfully merging this pull request may close these issues.

1 participant