matrix-rust-sdk icon indicating copy to clipboard operation
matrix-rust-sdk copied to clipboard

Support for secret storage (4S)

Open poljar opened this issue 4 years ago • 3 comments

Secret storage allows us to store the private parts of our cross signing keys and our backup key on the server in the global account data storage box of our user.

This heavily relies on sending requests to the server and getting account data from the sync. Since the crypto crate can't send out requests nor does it have access to the account data it may make sense to just add helpers to the crypto crate and implement the rest of the logic in the top level crate.

Spec entry can be found here: https://spec.matrix.org/unstable/client-server-api/#secret-storage

poljar avatar Nov 09 '21 14:11 poljar

The secret storage account data event types have been partially implemented in last year's GSoC, ~~however that work is still stuck in a draft PR because of https://github.com/ruma/ruma/issues/686.~~ were stuck since then and should now (2022-03-24) be implemented soon. Ruma issue: https://github.com/ruma/ruma/issues/478

jplatte avatar Feb 12 '22 03:02 jplatte

The linked ruma issue is cloed now. Just wondering what the status of this is?

tinywombat765 avatar Sep 24 '22 22:09 tinywombat765

As mentioned in #1065, no movement as of yet.

poljar avatar Sep 29 '22 14:09 poljar

Some movement now. PR adding support in the crypto crate: https://github.com/matrix-org/matrix-rust-sdk/pull/2591.

poljar avatar Sep 20 '23 12:09 poljar

This has been now implemented as part of https://github.com/matrix-org/matrix-rust-sdk/pull/2621.

poljar avatar Nov 06 '23 14:11 poljar