-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
First message in a DM was not encrypted #28094
Comments
This could be due to the same race condition I outlined in my UTD talk - if we only latch encryption on if we see the |
I recently had a similar problem of EW sending in clear but with a local setup, I sent a RS https://github.com/element-hq/element-web-rageshakes/issues/27122 |
Since encryption cannot be switched off, I wonder if there's any real benefit of it being able to get switched on. Why not embed this information in the |
It's not an immutable property though, it's a latch. You can enable it but not disable it. If it's part of the create event, you cannot go from unencrypted => encrypted. You also then can't change encryption parameters (algorithm, rotation period, etc), which feels undesirable. |
Yes, this is what I meant by "rest of the use cases" which should IMO be served by room upgrades. I'm arguing it should be an immutable property. It not being one makes it fragile.
I'm not sure it's actually undesirable. Configurable encryption parameters are a misfeature due to the potential for rollback/downgrade they introduce, especially since our state events are not client-side authenticated using cryptography. In fact, we already severely limit what you can actually change using a My argument is that all of this would be better modelled with a room upgrade. |
Steps to reproduce
Outcome
What did you expect?
I expected all messages in this DM to be encrypted.
What happened instead?
The first message was not encrypted:
Source of that first event:
Later messages in this DM were encrypted as expected.
Operating system
Debian 12.7
Browser information
Firefox 130.0
URL for webapp
https://develop.element.io
Application version
Element version: 787feca-react-a1bdceed3e54-js-f8208b18916d Crypto version: Rust SDK 0.7.2 (7a21514), Vodozemac 0.7.0
Homeserver
matrix.org
Will you send logs?
Yes
The text was updated successfully, but these errors were encountered: