Skip to content

fix(core-sync): a locked device that asks to be approved again reads its session's steps - #4823

Merged
datlechin merged 2 commits into
mainfrom
fix/left-out-device-approval
Dec 2, 2026
Merged

datlechin merged 2 commits into
mainfrom
fix/left-out-device-approval

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • A locked device's pass now pulls the personal scope while its own approval session runs, so the approver's nonce step and the approval reach it.
  • Before, the pass dropped the personal scope on any lock. Ask Another Device… on a device left out of a key rotation (Replace Recovery Key, Devices > Remove) waited out the 10 minutes until the person signed out. The same held for the other locks the apps offer it for: an account reset elsewhere, a lost anchor, a stopped personal key.
  • A personal pull on a device that cannot open its records (locked, or not approved) reads key objects only: no record, refill or held record, no kind counted as read, no base, store or epoch settled. The server still serves records to a device whose old key device it approves (lost anchor, stopped personal key), so this is what keeps their passwords from landing while locked. The first pull once the device can open reads the records again.
  • New ApprovalFlows::asks_for_approval: the device's own session from its request until it merges or ends. A confirmed device keeps reading past expires_at, as it keeps waiting for the approval.
  • Mac and Windows wording unchanged: both already say to approve the device again.

Test plan

  • core_engine::approval::a_device_a_rotation_left_out_asks_again_and_is_approved: fails on main (the approver never gets a reveal), passes here.
  • engine::sealed::a_locked_device_that_asks_again_reads_key_objects_only_and_takes_the_records_once_the_lock_clears: fails on main (the session's record never arrives).
  • engine::keys::an_envelope_the_store_refused_waits_while_the_device_is_locked_and_lands_once_the_lock_clears: fails without the keys-only pull (a held password lands while locked).
  • engine::keys::a_locked_device_that_asks_again_takes_no_envelope_until_the_lock_clears: guards that the new reads take no password deletion.
  • cargo nextest: tablepro-sync, tablepro-sync-testing, tablepro-sync-host (1406), tablepro-ffi sync (75). fmt, clippy -D warnings.
  • Rig (self-hosted server, Debug build of this branch): Replace Recovery Key on na with nb unticked, then Ask Another Device… on nb. na's nonce step, nb's reveal 2 s later, same words, both approved in 78 s, nb's row on a new key device at the new av. On main nb never revealed in 5 minutes (2 of 2).

@datlechin datlechin added the backport release/0.89 Merged into main; pick onto release/0.89 label Dec 2, 2026
@datlechin
datlechin merged commit 2a51d3b into main Dec 2, 2026
2 checks passed
@datlechin
datlechin deleted the fix/left-out-device-approval branch December 2, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport release/0.89 Merged into main; pick onto release/0.89

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant