matrix-org / matrix-rust-sdk

Matrix Client-Server SDK for Rust
Apache License 2.0
1.22k stars 244 forks source link

Store and retrieve sender data to/from backed up (and exported) sessions #3548

Open andybalaam opened 4 months ago

andybalaam commented 4 months ago

(Requires an MSC)

After doing https://github.com/matrix-org/matrix-rust-sdk/issues/3544 we need to store the sender data (mxid, msk, msk_verified info) to the key backup and to key export files.

This task includes a plan to stop (eventually) treating new-enough sessions from backup as legacy if they lack this information.

richvdh commented 2 months ago

We may not actually need to store this data in backed up sessions -- we could just say that only fully trusted sessions are backed up -- this would intersect with authenticated backup.

We probably do need an update for exported data.

andybalaam commented 2 weeks ago

Ideally, we would still store the information about verified vs. tofu in the backup, but this is not very important if everything that is in the backup is automatically trusted.