Skip to content

[ER-59] E2EE: Send media keys via to_device message #1281

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

Open
25 of 46 tasks
dbkr opened this issue Jul 20, 2023 · 0 comments
Open
25 of 46 tasks

[ER-59] E2EE: Send media keys via to_device message #1281

dbkr opened this issue Jul 20, 2023 · 0 comments
Assignees
Labels
EPIC T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements

Comments

@dbkr
Copy link
Member

dbkr commented Jul 20, 2023

Add to-device key distribution

In addition to sending media keys as events to the room, send them via to_device events encrypted with Olm as a primary way of sending the keys, then keep the room events as backup. Add a posthog event to track when the keys don't arrive via to_device. This will allow us to migrate away from using room events in the long term as they cause the media key to be saved in the room history.

Prerequisits:

Production ready requirements

  • Exclude untrusted devices (expected to need widget api MSC changes)
  • Error handling on sending to-device events (expected to need widget api MSC changes)
  • Performance: Investigate, test the performance and eventually add ratcheting (expected to need matrixRTC MSC changes)

Tasks

Iterations: are based on Temp: see: https://excalidraw.com/#room=b7556403b8947d5ee7ac,duF48bj2SbmRTsa3ivmLFA

Iteration 1: "change transport" and "make it backwards compatible"

Iteration 2: "to device message format"

Iteration 3: "encryption error cases and security"

Other Parallelize tasks (optional)

@dbkr dbkr added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Jul 20, 2023
@hughns hughns self-assigned this Aug 19, 2024
@hughns hughns removed their assignment Mar 10, 2025
@hughns hughns added the EPIC label Mar 10, 2025
@BillCarsonFr BillCarsonFr self-assigned this Mar 27, 2025
@fkwp fkwp changed the title E2EE: Send media keys via to_device message [ER-52] E2EE: Send media keys via to_device message Mar 28, 2025
@fkwp fkwp changed the title [ER-52] E2EE: Send media keys via to_device message [ER-59] E2EE: Send media keys via to_device message Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EPIC T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
No open projects
Development

No branches or pull requests

3 participants