Repository navigation
Make recover report-only and record considered attacks - #40
Merged
Merged
Conversation
recover --publish could continue from a base older than a revocation the client never saw and hand new keys to the revoked device; directory storage cannot even look for such a state. Remove publication and the storage support that existed only for it (observed-head CAS, historical object restore, recovery pruning). recover now only classifies the head and reports what it found. Service resumes by pushing a healthy clone to new storage. Add a Considered attacks section to the security model covering audit findings #1, #13, #23, and #28, rollback, and long manifest chains.
hmirin
changed the base branch from
codex/e2ee-checkpoint-full-check
to
main
November 16, 2026 11:22
…ublish # Conflicts: # src/repository.rs
Keep the coverage that discovery skips corrupt carrier copies for an older valid manifest and charges rejected bytes, and that heads predating a writer's enrollment are reported as replays without opening them. Only the restoration and publication parts of those tests were obsolete.
The previous text claimed a swapped directory could only leave stray ciphertext files. A replaced storage directory redirects every write, including the rename that replaces HEAD. State that the local path is the operator's to manage and that the client does not defend it.
Put the premise every considered attack is judged against at the top of the security model: storage contents are untrusted and verified; the client machine, its state, Git configuration, and the paths the user points it at are trusted.
hmirin
marked this pull request as ready for review
November 16, 2026 11:39
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.
Stacked on #38.
What this does
recoveris report-only. It classifies the storage head and lists authenticated descendants, replays, and forks, as before.--publish,--base,--discard-newer, and--accept-stale-floorare gone.docs/security-model.mdgains a Considered attacks section that records each raised attack, its effect, and the decision.Why
Publishing from a base older than an update the client never saw could omit a revocation and hand new keys to the revoked device (audit #28). Directory storage has no history in which to look for such an update. Corrupting
HEADis a denial of service that storage writers can cause anyway, so the special publication path is not worth its risk. Service resumes by pushing a healthy clone to new storage under the membership the operator chooses then.Audit findings settled here (docs only, no code change)
git fetch.verify.Tests
cargo test --all-targets,cargo clippy --all-targets -- -D warnings,cargo fmt --checkpass locally. Tests that exercised publication were removed; report-side tests were kept and adjusted.