Repository navigation
fix(core-sync): a restored store sends no synced password sealed for the restored destination - #4832
Merged
datlechin merged 3 commits intoDec 2, 2026
Conversation
…here it synced when its base does not open
…is not sealed again
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
Closes the residual left after #4820 (core ADR 0114, A pulled destination does not take a stored secret; A store in refill).
EnvelopeAdapter::recordsnow seals a secret only for the destination it was read for. While the engine holds a parent asRefusedInRefill:recordsmoved intolistingto stay under clippy's line limit, with no other change.Test plan
tests/engine/destinations.rs, each failing on main and passing here:a_restored_store_that_refuses_the_synced_copy_seals_no_password_for_the_restored_destination, end to end through the engine and the fake server: on main the server's envelope holds the new password sealed fordb.old. Once the store takes the synced copy, the record points atdb.newwith its password.a_restored_store_s_synced_password_is_not_sealed_again_after_a_rotationa_restored_store_whose_envelope_does_not_open_now_sends_nothing_for_the_restored_destinationa_restored_store_whose_envelope_a_snapshot_dropped_sends_nothing_for_the_restored_destinationa_password_changed_here_on_a_restored_store_that_refuses_the_synced_copy_goes_up_for_where_it_points, end to end, pins the changed-password flow; it passes on main and here.verify.sh --platform windows --jobs 4 corefortablepro-sync,tablepro-sync-testing,tablepro-sync-hostandtablepro-ffi: PASS, 1309, 105, 16 and 553 cases.cargo clippy --locked --all-targets -D warningsfor the same four crates: clean.Left open
parent_landingrefuses the landing while it cannot compare the stored secret. Nothing leaks. The cause is the keys moving an envelope's floor when it is sealed, not when the copy goes up.RefusedInRefillrow marks its copies.