Skip to content

Bound remote status with an explicit payload allowlist - #63

Merged
pjeweb merged 11 commits into
osb/integrationfrom
osb/pr/remote-status-allowlist
Nov 15, 2026
Merged

pjeweb merged 11 commits into
osb/integrationfrom
osb/pr/remote-status-allowlist

Conversation

@pjeweb

@pjeweb pjeweb commented Nov 13, 2026 •

Copy link
Copy Markdown

Why

When a box is linked to a remote service (cloud status or a legacy remote endpoint), the settings and status it sends there can include private details about the streamer's networks: addresses, file paths, credentials and account names. A moderator or a hosted service doesn't need any of that to see whether the stream is healthy, so it shouldn't leave the box.

What

  • Remote status, cloud status and successful command results now send only fields on an explicit list. Anything else, including fields added later, stays on the box.
  • Streaming state, numbers and neutral labels still reach the remote view, and the box's own local web app still gets everything.
  • Bonded links are named by opaque IDs, with a different set for the cloud and for each legacy endpoint. They stay stable across reconnects and change after a restart.
  • A failed remote command no longer reports itself as applied.

How: each outgoing message is built from a fixed description of which fields may leave the box and in what shape, instead of copying internal data. Empty values become schema-valid empty placeholders, and pipeline command IDs and control options come from the shared published lists. Messages the box withholds on purpose don't count as errors; only real rejections are counted, with one warning.

Land #95 first for the build size limit, and land this together with #53.

Screenshots

Before and after at phone and desktop widths

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

Before After
Before: Remote network status (390 px) After: Remote network status (390 px)
Before: Remote network status (1280 px) After: Remote network status (1280 px)

How to verify

Run apps/backend/src/tests/remote-status-allowlist.test.ts, remote-status-regressions.test.ts and the other remote-*-privacy tests. They check that addresses, paths, credentials and unknown fields never appear in remote or cloud payloads while the local payload keeps them. With mock data, the remote network status screen still shows links and their health.

Testing and limits
  • Full backend and frontend suites, rpc, i18n, sender, lint, type checks and the production build pass, also together with Keep remote persistent notifications in sync #53 and on the current integration base.
  • Remote hotspot rows keep measured client counts but drop station identities and interface names; "unknown" and "zero clients" stay different.
  • Not tried against a hosted service, in a browser end to end or on hardware.

Risks

A remote view that relied on a field now withheld would show it as empty. The field list is reviewed in remote-status-inventory.test.ts, so adding one back is a deliberate change.


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
1 of 5 tasks
@pjeweb
pjeweb marked this pull request as ready for review November 14, 2026 09:03
@pjeweb
pjeweb merged commit 075e1be into osb/integration Nov 15, 2026
3 checks passed
@pjeweb pjeweb added the upstream: waits for intent Needs an issue or maintainer agreement before an upstream proposal. label Nov 16, 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 #246.

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