Skip to content

feat(mobile): manage network access and paired devices - #247

Merged
nixuuu merged 1 commit into
feat/mobile-settings-2from
feat/mobile-settings-3
Nov 6, 2026
Merged

nixuuu merged 1 commit into
feat/mobile-settings-2from
feat/mobile-settings-3

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Paired phones could not administer Network access or Devices. Mobile now offers the web listener/address/port/Tailscale controls, attachment limits, pairing codes and QR, pending invitations and device revocation.

Gateway access: the revocable phone credential now reaches the same existing owner-scoped administration services as paired desktop clients. It never receives the BFF service token. Token validation, revocation/stream cancellation, gateway-role restrictions and core ownership checks remain enforced. Proto documentation and generated contracts describe the shared owner UI scope; no wire fields or database schema change.

Security coverage exercises phone pairing/revocation, network updates, worker enrollment and management, denial of desktop-only reporting, invalid/revoked credentials and foreign-owner device/code/worker/enrollment isolation. Paired phones also cannot list or change foreign computer and config-notice ids; tests confirm foreign rows remain unchanged and a notice owned by the caller can be dismissed. Existing desktop, gateway-role and Tailscale expectations reflect the authorized scope.

Port changes now publish the new routes before gracefully draining the old listener. Existing HTTP/1.1 and HTTP/2 requests/overview streams get up to five seconds to finish and receive routes; shutdown or disabling Network access still closes all listeners immediately. Mobile saves routes from UpdateNetworkAccess as well as overview announcements, removes obsolete lastAddress values and keeps the same pin and pairing. Real TLS integration tests cover both fixed/free-port changes without overview, route persistence/restart, and overview delivery before retiring HTTP/1.1 and HTTP/2 connections. The seven-file focused integration suite passed: 45 tests, 256 assertions, no failures.

Companion security fix: #257 owner-scopes the metadata stored for refused moves. That existing handler flaw predates this stack; the separate fix is based on origin/dev and must land before this layer exposes the handler to phones. Device tokens do not expire; one-time pairing codes do. This behavior is unchanged.

Validation: install, generated contracts, repository typecheck, lint, formatting and Expo lint pass for this layer. Network and Devices were inspected on Android in light/dark at phone/wide widths. One-time pairing/enrollment credentials are shown only when newly issued; stored provider/proxy/connector secrets remain write-only.

Copy audit (§8): “Manage mobile devices in web Settings” → actionable pairing/revocation controls and explicit loading/empty/error states. Confirmations repeat “Revoke”. Checked glossary, sentence case, concise states, long names and non-color labels. No “soul” copy.

@nixuuu
nixuuu added this pull request to stack #254 November 6, 2026 08:35
@nixuuu
nixuuu force-pushed the feat/mobile-settings-3 branch from 8f74296 to 9affdec Compare November 6, 2026 09:10
@nixuuu
nixuuu marked this pull request as ready for review November 6, 2026 09:23
@nixuuu
nixuuu force-pushed the feat/mobile-settings-3 branch from 9affdec to 771d0f8 Compare November 6, 2026 09:24
@nixuuu
nixuuu merged commit 6ea864c into dev Nov 6, 2026
9 checks passed
@nixuuu
nixuuu deleted the feat/mobile-settings-3 branch November 6, 2026 09:33
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.

1 participant