Repository navigation
fix(sync): a key reset that keeps your data gets past the server, starts only where it can, and warns a team's only owner or admin - #4755
Merged
Conversation
…rts only where it can, and warns a team's only owner or admin
# Conflicts: # core/crates/ffi/src/lib.rs # core/crates/sync/src/keys/reset/mod.rs # core/docs/decisions/0051-sync-protocol-and-record-rules.md # core/docs/decisions/0056-end-to-end-keys-per-account-and-device.md # core/docs/decisions/README.md # windows/src/TablePro.Interop/Generated/tablepro_ffi.cs
# Conflicts: # core/docs/decisions/0056-end-to-end-keys-per-account-and-device.md # core/docs/decisions/README.md
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.
Summary
key.resetas the real one does: kind 2 from a row its proof makes approved, kind 3 from one it does not, and a device certificate naming the proof's key.sync.locked, a wrong kind or a second pending reset assync.not_allowed, so none reads as the server's refusal.resume_resetreturnsstep_up_requiredafter raising its notice, so Confirm It's You… steps up and sends it again, and the notice goes once it is up.key.member(no seat) stops no other.activate_resetreturns the teams that wait with their codes, the reset reads as done, and later passes retry them.avthat its own IK signs, so a rotation ends it instead of leaving it pending with a Finish that fails withsync.unknown.TeamKeys::sole_confirmer,teams_only_this_account_confirms).a_reset_of_the_wrong_kind_for_its_caller_or_a_second_one_is_not_allowed_on_the_device(was..._is_bad_statement),a_device_with_no_anchor_proposes_no_reset(nowsync.locked),a_kind_3_reset_a_restore_lost_waits_for_a_fresh_step_up_and_says_so(nowstep_up_required, and the notice goes), the fake model's two reset refusal tests,sign_out_under_a_reset_s_dsk_ends_that_reset(its proposal names kind 2), and the Mac'sofferedKindFollowsTheKeyState(a removed Mac no longer offers a reset).Test plan
core/crates/sync/tests/device_flows/reset_kinds.rs) and the changed reset tests fail on main's reset code with the fake server's new rule: 31 failures, each kind 2 proposal refused, the kind 3 rotation, lock and step-up assertions failing on their own.team_keys/confirmers.rs: the teams only this account confirms, before a holder, with one, and after another admin.a_reset_proposal_is_judged_by_the_row_s_standing_and_its_proof.ResetKeysModelTests(offers per lock, sign out first, locked refusal words, teams waiting, the warning) andTeamKeysPresentationTests(waiting for another admin).KeyFlowTests(offers per lock, teams waiting, the warning) andTeamKeysTests; after the merge of main the model build and its 1491 tests pass on macOS, andverify.sh --platform windows bindingspasses with the committed bindings.75eb11d4e5):verify.sh --platform windows buildpasses (WinUI compiled, 0 warnings);verify.sh test ResetKeysModelTests TeamKeysPresentationTests36/36 pass;verify.sh l10npasses after the 8 new strings went into the catalog.cargo test -p tablepro-sync -p tablepro-sync-testingall pass;cargo clippy -p tablepro-sync -p tablepro-sync-testing -p tablepro-ffi --all-targets -D warningsclean; SwiftLint clean.