Align SKDM flow docs with forward-secrecy and cache hygiene fix - #246
Closed
mintlify[bot] wants to merge 1 commit into
Closed
Align SKDM flow docs with forward-secrecy and cache hygiene fix#246mintlify[bot] wants to merge 1 commit into
mintlify[bot] wants to merge 1 commit into
Conversation
Generated-By: mintlify-agent
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
Updates the docs to match oxidezap/whatsapp-rust#604 (
fix(send): close SKDM flow gaps for forward secrecy and cache hygiene).What changed
advanced/signal-protocol.mdx): replaced "invalidate all entries" rows forpatch_device_add/patch_device_removewith the new behavior — adds rely ondevice_has_key()returningNonefor unseen ids; removes delete only the matchingsender_key_devicesrows and evict only cache entries indexing(user, device_id). Added rows for phash mismatch (now also clears persisted state with own-key fallback), periodic rotation at chain iteration ≥ 1000, and participant-remove forward-secrecy rotation.advanced/signal-protocol.mdx:rotate_sender_key_on_participant_remove.concepts/events.mdx): rewrote the SKDM paragraph to reflect that no global cache wipe happens on device add/remove.ProtocolStoretrait (api/store.mdx,concepts/storage.mdx,guides/custom-backends.mdx): documented the newdelete_sender_key_device_rowsmethod and added a chunked SQLite example for custom backends.api/send.mdx,api/status.mdx,advanced/signal-protocol.mdx): clarified that group/status mismatches now clear persistedsender_key_devicesrows (with an own-key delete fallback if the DB clear fails) and group sends now also invalidate the group info cache on mismatch.