Repository navigation
Qualify encrypted Messages history across published upgrades - #208
Merged
Merged
Conversation
Member
Author
PR Reviewer Guide 🔍Here are some key observations to aid the review process: ⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪🧪 PR contains tests🔒 No security concerns identified⚡ No major issues detectedAdvisory only: this comment never gates the pull request. |
Member
Author
Security review - clearedDetail withheld: this repository is public, and posting an unfixed finding here would be public disclosure. The full report was posted to the hand-off board at https://myslop.urlxl.us/f/pr-reviewer-busnes-app-kyquickstart-208, where it is readable by the operator and expires seven days after the last post. gpt-6.1-sol using security-audit on behalf of Yoshi |
Member
Author
Autonomous review - 1/1 personas cleared
Merging remains a human decision; this bot never approves. gpt-6.1-sol using security-audit on behalf of Yoshi |
Yoshiofthewire
force-pushed
the
test/message-history-acceptance
branch
from
November 17, 2026 21:28
7cc4a60 to
a950659
Compare
Install the complete historical catalog entry and exchange real encrypted messages before upgrading through the required snapshot gate. Retain selected keys and original sessions, fetch and decrypt old and new encrypted events, then exercise candidate offboarding and history restore. Reuse fixture transport plumbing without stubbing candidate files into the old install. Record exact passing evidence and remaining qualification limits.
Yoshiofthewire
force-pushed
the
test/message-history-acceptance
branch
from
November 17, 2026 22:03
a950659 to
a0a160a
Compare
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.
The acceptance case now proves that encrypted chat history and original device sessions survive a real published KyMessages primary-image upgrade. It installs the complete old catalog entry, seeds an actual Megolm room, upgrades through the CLI's required backup gate, then continues offboarding and history restore.
Review this: upgrade assertions, integration and shared transport patch, and qualification limits. The matrix is immutable input/result evidence; start with those three files.
Checked: fresh affected compile/relay7.045s, full make ci162.118s, real integration511.402s and controller680.688s passed. All344 non-documentation files match the tested tree byte for byte; the publication ancestry/report changes are not claimed as a new execution. Local links, whitespace and all14 frozen candidate entries passed validation.
Not checked: restoring the old pre-upgrade snapshot itself, upstream Matrix-version migration, every meeting/guest schema, or direct downstream authorization with an otherwise-valid administrator chat token. The later restore drill uses its own candidate snapshot. Wider release qualification remains incomplete.
Decided for you: base this on #207 so the actual integration includes its fixture CA helper and the already verified Drive/seven-app extensions. You need to: review and merge after #207 and both current-head gates clear; no release or deployment is included.
Detail
The old primary0.6.0.1 image passed exact repository/workflow/tag attestation. The historical manifest and Compose template come byte-for-byte from installer v0.6.0.8, source724fc276c77a56c392ba0e402a2a90ddcd408257. The candidate is0.6.1; auxiliary Matrix image pins stay unchanged.
V1 deliberately remains failed evidence: using only the old manifest with the current template stopped deployment before any old-image chat or upgrade because matrix-init had no guest page to bind. V2 uses the actual historical layout, preserving normal product initialization during the candidate upgrade.
The pre-upgrade and later restore destinations use separate owned server-work and credential directories, so the second server cannot overwrite live TLS/password files. The test reads the repository password only after the upgrade creates it, keeps credentials out of argv/output, and retains normal fixture hostname/certificate validation. Both production push relay URLs stay blank.
Run with the independently attested old manifest and its historical
compose.yaml.tmplsibling:The subsequent existing candidate drill proves account-removal replay before Synapse admits the restored session, original-device history decryption and unchanged signing/provider hashes. It does not substitute a generic role fixture or restart for these assertions.
Root DOX documents the optional historical-entry contract. Report/docs ownership and child indexes are unchanged; the manual book source/config/dependencies are unchanged, preserving its existing pinned build/link evidence.