-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTDs: maubot/mautrix bridges fail to encrypt for EX sessions #2387
Comments
Related element-hq/element-x-ios#2263 |
Just had this issue again with my mautrix-whatsapp bridge and noticed that the bridge does indeed encrypt the messages for the Element X session ( |
@wrjlewis which devices were failing to decrypt WhatsApp messages for you? |
I don't understand what it means for an OLM session to "wedge", but I currently work around this issue by removing the outbound sessions for the affected rooms from the mautrix-whatsapp database, i.e. DELETE FROM crypto_megolm_outbound_session
WHERE room_id IN (
'!affected_room1:example.com',
'!affected_room2:example.com',
...
) This forces mautrix-whatsapp to create new sessions for the respective rooms on the next message, which can be decrypted again by EIX. Does this fit the OLM session wedge theory? Furthermore, going by the wedge theory, shouldn't this issue also occur with messages sent by other E2EE aware parties, like other regular users or other bridges? Shouldn't more users be affected by this? |
Is it the device IDs you need? |
@wrjlewis as a first step could you confirm if it's Element X iOS or anther client that is having the problem? |
Yes. "Olm", not OLM, by the way: https://gitlab.matrix.org/matrix-org/olm/blob/master/docs/olm.md
Well, I think lots of users are affected by this. It's possible that other clients are better at covering it up by using a new olm session than the bridges. |
As yes, it's always just on EX iOS for me. I have FluffyChat and Element iOS clients as well which did not present the issue. |
This feels like it may already be fixed then. We'll need to wait until matrix-org/matrix-rust-sdk#3338 lands in a proper release which people can test. |
Should land Monday. |
This has been rolled out to Element X for a while now. If anyone does see mautrix bridge problems we need bug reports. Will close this issue in July if there are no mautrix bridge problems. |
No reports since June, let's close. |
We have had at least three reports of UTDs when Element X is used in conjuction with mautrix bridges by
@ jkhsjdhjs:totally.rip
,@ frebib:nerdhouse.io
and Will L. This is a placeholder issue to collect more information to see if there is something actionable.Close this issue if:
In Will L's and jkhsjdhjs's case, it looks like room keys failed to be exchanged correctly, which manifests as the room working fine for a while then suddenly failing to decrypt. For frebib, new rooms are most frequently affected, where the bridge is on a different server to the user seeing the UTD.
WhatsApp bridge is repeatedly the culprit, but that could just be due to its popularity.
The text was updated successfully, but these errors were encountered: