-
Notifications
You must be signed in to change notification settings - Fork 240
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
Introduce a secret inbox #2227
Introduce a secret inbox #2227
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2227 +/- ##
==========================================
+ Coverage 76.79% 76.90% +0.11%
==========================================
Files 170 170
Lines 18088 18150 +62
==========================================
+ Hits 13891 13959 +68
+ Misses 4197 4191 -6
☔ View full report in Codecov by Sentry. |
Depends once this PR is merged: matrix-org/matrix-rust-sdk#2227
Remove once this PR is merged: matrix-org/matrix-rust-sdk#2227
32738f3
to
eedf737
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't have a lot of context on this, but the code looks good.
Up until now, users had to listen for to-device events to check for secrets that were received as an `m.secret.send` event. This has a bunch of shortcomings: 1. Once the has been given to the consumer, it's gone and can't be retrieved anymore. Secrets may get lost if an app restart happens before the consumer decides what to do with it. 2. The consumer can't be sure if the event was received in a secure manner. This commit ads a inbox for our received secrets where we will long-term store all secrets we receive until the user decides to delete them. It's deemed fine to store all secrets, since we only accept secrets we have requested and if they have been received from a verified device of ours.
Co-authored-by: Jonas Platte <jplatte@matrix.org>
dcd08ce
to
643ad2c
Compare
... to pull in matrix-org/matrix-rust-sdk#2227, which is a pre-requisite for element-hq/crypto-internal#100
... to pull in matrix-org/matrix-rust-sdk#2227, which is a pre-requisite for element-hq/crypto-internal#100
Pull in matrix-org/matrix-rust-sdk#2227, which allows storing backup keys in the memory store
Pull in matrix-org/matrix-rust-sdk#2227, which allows storing backup keys in the memory store
Pull in matrix-org/matrix-rust-sdk#2227, which allows storing backup keys in the memory store
No description provided.