Repository navigation
feat(mobile): manage network access and paired devices - #247
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/mobile-settings-3
branch
from
November 6, 2026 09:10
8f74296 to
9affdec
Compare
nixuuu
marked this pull request as ready for review
November 6, 2026 09:23
nixuuu
force-pushed
the
feat/mobile-settings-3
branch
from
November 6, 2026 09:24
9affdec to
771d0f8
Compare
This was referenced Nov 13, 2026
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.
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.