Skip to content

Add Moblink support for connected devices - #79

Draft
pjeweb wants to merge 9 commits into
osb/pr/phone-homefrom
osb/pr/moblink-credential
Draft

pjeweb wants to merge 9 commits into
osb/pr/phone-homefrom
osb/pr/moblink-credential

Conversation

@pjeweb

@pjeweb pjeweb commented Nov 13, 2026 •

Copy link
Copy Markdown

Affected repo & language: CeraUI (backend and frontend TypeScript, i18n, docs)

What

This adds Moblink support: the device can join the Moblin relay setup a streamer already uses, so a phone running Moblin can send over the device's links as well.

  • In Connect your phone, someone signed in locally can save, replace or clear the Moblin password while the device is idle.
  • Once saved, the password can't be shown again. The screen says so, and says that saving doesn't prove a connection: "Check Moblin to confirm it connects."
  • Interrupted saves and damaged credential files recover on their own, and Clear works even when the relay is unavailable.
  • If the saved file is empty or the relay stops unexpectedly, the health section on Home shows one calm line about it.

How: the password goes into a private file, and the device's own relay only gets that file's path, never the password on its command line. The relay side is a patch for the separate moblink-rust project, carried in deployment/moblink-password-file.patch, which adds a strict --password-file option. This PR doesn't install that patched relay; the image has to. docs/MOBLINK-CREDENTIAL.md covers the design, and docs/user/phone-home.md is updated in English and Spanish.

Why

Moblin's relay needs its password, and until now the device had no safe place to keep it, so the Moblin choice in Connect your phone could only say it wasn't available yet.

Sits on #77, which now includes #63's closed remote status. Land #95 first so the production build stays within its size limit.

Screenshots

Mock data; the same state before and after switching the new strings from "box" to "device".

Before After
Before: Moblin credential controls (390 px) After: Moblin credential controls (390 px)
Before: Moblin credential controls (1280 px) After: Moblin credential controls (1280 px)

How to verify

With mock data, open Connect your phone → Moblin, save a password, then reopen: the field is empty and the screen says a password is saved. Clear it and the screen says none is saved. Start a stream and try to change it: you are asked to wait until no stream uses the device. The browser spec apps/frontend/tests/e2e/phone-home.spec.ts covers 390, 1280 and 1024×600 px.

Testing and limits
  • Backend and frontend suites, rpc, i18n, lint, type checks and the production build pass. The patched relay builds, its own tests pass, and its command line and output never show the password.
  • Anonymous, relayed and remote-control sessions can't change the password; there is no way to read it back over RPC.
  • Before a release image switches this on, the relay has to run as its own non-root user. That isn't part of this repository, so this stays a draft until the image does it.
  • One password covers the device: any local Moblin streamer with it may connect. A wrong password just shows up as Moblin not connecting.
  • The password and whether one is saved never enter remote status. The only Moblin detail a remote viewer can see is the moblink entry in the health section. The Moblin tests and the remote privacy tests pass together and one file at a time.
  • The new strings say "device", like the rest of CeraUI. Some strings around them on this screen come from Add phone-only Home and connection guidance #77 and still say "box"; they change there, not here.
  • Not tried with a real phone or on a release image yet.

Risks

Root and the service user can still read the file. If the relay is resumed and fails after a change, the health section reports it instead of failing silently.


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 added this pull request to stack #78 November 13, 2026 22:49
@pjeweb pjeweb mentioned this pull request Nov 13, 2026
2 of 5 tasks
@pjeweb
pjeweb force-pushed the osb/pr/moblink-credential branch from 0131ee6 to 5bbd40c Compare November 13, 2026 23:21
@pjeweb
pjeweb removed this pull request from stack #78 November 14, 2026 07:45
@pjeweb
pjeweb added this pull request to stack #90 November 14, 2026 07:45
@pjeweb
pjeweb force-pushed the osb/pr/moblink-credential branch from 4b8b4eb to c071ee2 Compare November 14, 2026 08:37
@pjeweb
pjeweb removed this pull request from stack #90 November 14, 2026 08:40
@pjeweb
pjeweb added this pull request to stack #92 November 14, 2026 08:40
@pjeweb
pjeweb removed this pull request from stack #92 November 14, 2026 08:41
@pjeweb
pjeweb added this pull request to stack #93 November 14, 2026 08:41
Brings in the phone-only Home rebuilt on the closed remote status DTO. The Moblin credential code needs no change. The remote status inventory is regenerated because this branch edits the readiness producer; the field decisions are the same.
pjeweb added a commit that referenced this pull request Nov 16, 2026
@pjeweb pjeweb added stacked Depends on another pull request; review and integrate parents first. upstream: waits for intent Needs an issue or maintainer agreement before an upstream proposal. labels 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 pjeweb added the train: image-5 In the integration that ships in image 5; the label moves on when images advance. label Nov 21, 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 added train: image-6 In the integration that ships in image 6; the label moves on when images advance. and removed train: image-5 In the integration that ships in image 5; the label moves on when images advance. labels Nov 24, 2026
@pjeweb pjeweb changed the title Add write-only Moblin credential ownership Add Moblink support for connected devices Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

pjeweb added a commit that referenced this pull request Nov 25, 2026
@pjeweb pjeweb added the train: next Reviewed and ready for the train after the current image. label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stacked Depends on another pull request; review and integrate parents first. train: image-6 In the integration that ships in image 6; the label moves on when images advance. train: next Reviewed and ready for the train after the current image. 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