Repository navigation
Conversation
…ost one, enroll a new PC - Remove this device from your account (front page, after a confirm): a remove for this device's own account key goes to the mailbox of every PC of the account, the sign-in ends, and this device forgets its account key and the pairings that used it. Sign out only ends the sign-in; every pairing stays. - Disconnect from all PCs (Settings > Phone & devices, on another member's row, while signed in): a remove for that member's account key, applied at once on this PC and left in every other PC's mailbox. - A PC that just got its first member from this device is enrolled with the account's other members this device saw on its other PCs' device lists. - The paired notice names the device that approved a new one remotely. (cherry picked from commit 92b5cf8441b2475da336170d6bad00ec7f2939c7)
…m it, and by whom
…outcome and account, and drop enrolling for now
Review findings before opening, and how they were resolved (08ceb08)Codex (gpt-6.1-terra, xhigh, adversarial) at the first version:
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
…ame the PCs it cannot reach, and finish leaving when the sign-out is unconfirmed
# Conflicts: # src/lib/account/join.test.ts # src/lib/i18n/relay.ja.ts # src/lib/i18n/relay.ko.ts # src/lib/i18n/relay.zh.ts # src/lib/relay/shell.tsx
…ce a member, and report pending links as unconfirmed
Second review round (300a4cd)omo at 625c1bf: one reproduced HIGH, fixed with a failing-first test:
Reproduced MEDIUMs left for a follow-up: #2878 (a watching device's own remove is refused). The others (the not-reached note cleared by the pairing-code poll, the key kept after a partial leave, a direct-address Validation: |
…he remove did not reach
Third and fourth review rounds (2af3882, ca988fc, a628f57)Fixed, each with a test that failed first:
Left for follow-up #2878 (not reproduced, or not reachable through the app): a watch-role member's self-remove, the not-removed note cleared by the pairing-code poll, a late Validation: |
# Conflicts: # src/components/RelayShell.tsx # src/lib/relay/shell.tsx
Deploying ovis with
|
| Latest commit: |
448fb47
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://516191e3.ovis.pages.dev |
| Branch Preview URL: | https://feat-account-devices.ovis.pages.dev |
|
Landed as part of #2867 (the whole account stack was merged there in one squash). |
Stacked on #2851 (join, remote approval, migration).
What
The account's devices (docs/account.md, rules 4-5, "Account members"):
removefor this device's own account key, signed by it, goes to the mailbox of every PC of the account; the sign-in ends, and this device forgets the pairings on those PCs. A pairing with the account key on a PC the account does not list is kept and named, since no remove reached it. Each PC revokes the device when it collects its mail.removefor that member's account key, applied at once on the PC this window is in (POST /api/account/records) and left in every other PC's mailbox.approved_by), and a new removed notice says when a device left this PC and by whom (device-removed: revoked on this PC, or removed through the account by a named device).Tests
src/lib/account/join.test.ts, against real servers (createServer, mkdtemp state, port 0, realRelaySessionand Noise) and the in-repo fake account service:Enrolling a new PC with the account's other devices is left out: taking them from another PC's device list breaks rule 6 (a signer adds only keys it checked itself). Follow-up: #2855.
Validation
bun run check fastat 08ceb08: ok (typecheck, build, unit tests).