Repository navigation
Conversation
…nd say why a group this account is out of is read-only
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.
What changed and why
A Signal group changes, and the person here saw too little of it (#720). Three things were open on
main.What this change does not do: verify a change's signature. The library this tree reads groups through drops the server signature when it decrypts, and nothing calls the check. That is written as a comment where a change is applied. The check is not built, because what the server signs is not in the tree and could not be tested.
Type
Platforms
Proof
Scenario: e2e/scenarios/signal-group-change-lines
The scenario starts this build's chatd on Signal's scripted wire, steers it the way
crates/chatd/tests/signal.rsdoes, and speaks chatd's socket. A member is removed and added back, one joins by the group link, one leaves. The row must say "You are no longer in this group" after this account is removed and be writable again after it is added back, and the lines must name who did what. Onmainthe row's reason stays empty after a removal, so this driver fails there.Lab run: not made. The driver was not run against the real chatd on a lab host.
Not shown: the real wire.
real.rsis reached by no test, because presage has no stand-in for the Groups Service. Who did a change, the rule of the one fetched revision and the note on the signature were read, not run. Nothing ran against a Signal account.Left open: a removed member, whose fetch is refused, still gets no name. A current member can still claim a change they did not make without a signature check. A change made from this device still gets its line late.
Also run on this branch on Windows before this pull request:
cargo build --workspace --all-targets --features tinyclient/gui, thencargo nextest run --workspace --features tinyclient/gui: 3680 of 3681 passed in the full run.an_in_process_mediad_hears_and_is_heard_like_a_processfailed there and passed alone at once. This change does not touch mediad. 28 skipped. Thencargo test --workspace --doc --features tinyclient/gui.Compatibility
No protocol change.
Risk and rollback
The lines on the real wire depend on a path no test reaches. Where the sender cannot be named, the lines fall back to saying that someone joined or is gone, as before. Revert the commit.
Release note
Signal group changes say who added or removed whom, and a group you are no longer in says so.
Part of #720.