Skip to content

[RFC] Add a test for SAS verification between two users - #280

Closed
paralin wants to merge 1 commit into
matrix-org:mainfrom
paralin:verify-other-user
Closed

paralin wants to merge 1 commit into
matrix-org:mainfrom
paralin:verify-other-user

Conversation

@paralin

@paralin paralin commented Oct 14, 2026 •

Copy link
Copy Markdown

Add RequestDeviceVerification to the client API so a test can verify another user's device, and TestVerificationSASOtherUser, which verifies Bob's device from Alice's, across servers when the client matrix asks for it. The JS client implements it with requestDeviceVerification; the Rust FFI cannot yet, so it skips.

RequestOwnUserVerification relied on the request coming back to the sender, which only happens when the sender does not know its other devices yet and sends to '*'. When it already knew them, the request was never tracked and TestVerificationSAS timed out after the receiver became ready. Track the sent request directly and ignore received requests we initiated.

Add RequestDeviceVerification to the client API so a test can verify another
user's device, and TestVerificationSASOtherUser, which verifies Bob's device
from Alice's, across servers when the client matrix asks for it. The JS client
implements it with requestDeviceVerification; the Rust FFI cannot yet, so it
skips.

RequestOwnUserVerification relied on the request coming back to the sender,
which only happens when the sender does not know its other devices yet and
sends to '*'. When it already knew them, the request was never tracked and
TestVerificationSAS timed out after the receiver became ready. Track the sent
request directly and ignore received requests we initiated.

Signed-off-by: Christian Stewart <christian@aperture.us>
@paralin paralin changed the title Add a test for SAS verification between two users [RFC] Add a test for SAS verification between two users Oct 14, 2026
@paralin paralin closed this Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant