Skip to content
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

KeySharing, DevicebasedStrategy | Exclude insecure dehydrated devices when sending messages #4313

Open
uhoreg opened this issue Nov 22, 2024 · 5 comments
Assignees

Comments

@uhoreg
Copy link
Member

uhoreg commented Nov 22, 2024

Don't encrypt to devices marked as dehydrated, if they are not cross-signed by the pinned/verified identity.

Also, drop all incoming to-device messages from devices marked as dehydrated. Factored out to #4466

@andybalaam
Copy link
Member

(Rust) We already have code to avoid encrypting for unsigned devices - we should do this unconditionally for any device with the dehydrated flag set.

@richvdh richvdh self-assigned this Jan 6, 2025
@richvdh
Copy link
Member

richvdh commented Jan 6, 2025

@uhoreg I don't see any mention of this behaviour in MSC3814 -- presumably it is something that should be called out there?

@richvdh
Copy link
Member

richvdh commented Jan 6, 2025

Also: why are dehydrated devices being singled out for this special treatment?

@richvdh richvdh changed the title KeySharing, DevicebasedStrategy | Exclude insecure dehydrated devices KeySharing, DevicebasedStrategy | Exclude insecure dehydrated devices when sending messages Jan 6, 2025
@uhoreg
Copy link
Member Author

uhoreg commented Jan 7, 2025

@uhoreg I don't see any mention of this behaviour in MSC3814 -- presumably it is something that should be called out there?

It's buried in the middle of a paragraph: https://github.com/matrix-org/matrix-spec-proposals/pull/3814/files#diff-1e380a19a30044a5d4a387df67369612e4cdf4dc8b0bcba1853fd221f7dfeeb9R51-R53 I guess it should be called out more.

Also: why are dehydrated devices being singled out for this special treatment?

This was flagged by Denis at matrix-org/matrix-spec-proposals#3814 (comment) . The short version is: dehydrated devices are being singled out because clients may hide dehydrated devices or make them less visible, so it may be less noticeable if a dehydrated device is unsigned, compared with normal devices. Also because dehydrated devices are a new feature and our eventual goal is to drop insecure devices.

@richvdh
Copy link
Member

richvdh commented Jan 7, 2025

ah great, thanks.

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

No branches or pull requests

3 participants