-
Notifications
You must be signed in to change notification settings - Fork 72
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
Hookshot sometimes randomly omit sending encryption keys to some devices #1006
Comments
The decision to send device keys is basically down to the matrix-rust-sdk (and/or Synapse, which feeds it the information), so really this issue is about gathering the right amount of data for the crypto team. |
Is there a way to log anything about this in Hookshot? There's nothing about keys or devices in debug |
My feeling is that https://github.com/matrix-org/matrix-rust-sdk/blob/47fc073b708a72806ae21a9e8ee7c4726f245cdb/crates/matrix-sdk/README.md?plain=1#L74 doesn't work for Hookshot, but might be worth a try. I'll see if we can add logging via our binding layer. |
👍️ I'm also setting up a lab env trying to replicate this issue so I can more easily share logs etc without carefully redacting confidential information |
I have re-created all my Hookshot rooms without e2ee. Imo it is not stable and we should remove the stable message on https://matrix-org.github.io/matrix-hookshot/latest/advanced/encryption.html |
I cannot see any patterns. It just randomly happens sometimes for some devices. Then later it just starts working again without me doing anything. I cannot reproduce as I have not found any way to trigger this. Restarting one or more of Hookshot, Synapse, or Redis doesn't seem to make any difference.
Not sure if any of the below info is all that helpful tbh, but I guess better have too much than too little info
Here is one of my e2e Hookshot feed rooms seen from multiple devices and accounts. All of my Hookshot rooms tend to start and stop UTD-ing at the same time.
User on the same homeserver as Hookshot, Element Desktop. The two "test" messages were sent from the two Desktop sessions (device 1)
User on the same homeserver as Hookshot, Element Desktop, same account, another session (device 2)
Element Rageshake from this device
User on the same homeserver as Hookshot, Element Desktop, same account, Element X iOS (device 3)
User on another homeserver, Element Desktop (device 4)
User on another homeserver, same user, Element X Android (device 5)
Hookshot is not logging anything relevant in debug mode.
Here is Synapse debug logs when grepping for the event ID
Also, as I'm looking closer at this and editing screenshots, etc. I noticed that I get two different encryption errors on different devices:
Device 1, all messages form Hookshot are red shield. This is the most reliable device of all, I don't think I have ever gotten a UTD from Hookshot here.
Device 2, mix of red and grey shields. On of the worst devices for Hookshot UTDs
Device 4, also a mix:
The text was updated successfully, but these errors were encountered: