Add support for pushing secrets and receiving secret pushes#6164
Add support for pushing secrets and receiving secret pushes#6164uhoreg wants to merge 15 commits intomatrix-org:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6164 +/- ##
==========================================
- Coverage 89.87% 89.85% -0.02%
==========================================
Files 378 378
Lines 103367 103473 +106
Branches 103367 103473 +106
==========================================
+ Hits 92900 92976 +76
- Misses 6898 6918 +20
- Partials 3569 3579 +10 ☔ View full report in Codecov by Sentry. |
richvdh
left a comment
There was a problem hiding this comment.
A couple of initial thoughts.
richvdh
left a comment
There was a problem hiding this comment.
also, needs more CHANGELOG.md
rather than a full `GossippedSecret` struct
|
I believe this is ready for re-review |
crates/matrix-sdk-indexeddb/src/crypto_store/migrations/v104_to_v106.rs
Outdated
Show resolved
Hide resolved
crates/matrix-sdk-sqlite/migrations/crypto_store/017_add_new_secrets_inbox.sql
Show resolved
Hide resolved
|
I messed up the latest commits, because I forgot to enable the feature flag when trying to build it, so it failed to build without me noticing. :( So I'll have to redo some of the latest commits. |
|
Should be ready for re-review, though I'm going to have to work out the merge conflict (merge conflicts with db migrations are fun). |
crates/matrix-sdk-sqlite/migrations/crypto_store/016_add_new_secrets_inbox.sql
Outdated
Show resolved
Hide resolved
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Co-authored-by: Hubert Chathi <hubert@uhoreg.ca> Signed-off-by: Hubert Chathi <hubert@uhoreg.ca>
richvdh
left a comment
There was a problem hiding this comment.
lgtm other than the minor problems below
| // delete the db in case it was used in a previous run | ||
| let _ = Database::delete_by_name(&db_name).unwrap().await.unwrap(); | ||
|
|
||
| // Given a DB with data in it as it was at v5 |
There was a problem hiding this comment.
because there was already a helper function for creating a v5 db
|
@richvdh can you mash the "Merge" button? I don't seem to have permissions to do so. |
see MSC4385
Pushing secrets allow devices to send secrets to other devices without waiting for a secret request.
closes #6040
Signed-off-by: