feat(E2EE): Async E2EE keys exchange#32197
Merged
Conversation
🦋 Changeset detectedLatest commit: dcd8fe9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
Looks like this PR is ready to merge! 🎉 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #32197 +/- ##
===========================================
- Coverage 56.74% 56.71% -0.03%
===========================================
Files 2495 2496 +1
Lines 55237 55360 +123
Branches 11434 11455 +21
===========================================
+ Hits 31345 31400 +55
- Misses 21196 21255 +59
- Partials 2696 2705 +9
Flags with carried forward coverage won't be shown. Click here to find out more. |
MarcosSpessatto
suggested changes
Apr 16, 2024
Contributor
MarcosSpessatto
left a comment
There was a problem hiding this comment.
I still have some general comments:
- Let's improve the PR description.
- We need to add a changeset.
- We can have some API tests to test at least half of the workflow, we can call the provideUsersGroupKeys endpoint with arbitrary values for keys, and see if the keys were set to the subscriptions. Of course, the test will not be fully complete, and test it using an UI test could potentially create a slow test, since the process is completely async.
KevLehman
reviewed
Apr 19, 2024
apps/meteor/app/e2e/server/functions/fetchUsersWaitingForGroupKey.ts
Outdated
Show resolved
Hide resolved
apps/meteor/app/e2e/server/functions/fetchUsersWaitingForGroupKey.ts
Outdated
Show resolved
Hide resolved
apps/meteor/app/e2e/server/functions/fetchUsersWaitingForGroupKey.ts
Outdated
Show resolved
Hide resolved
apps/meteor/app/e2e/server/functions/provideUsersSuggestedGroupKeys.ts
Outdated
Show resolved
Hide resolved
MarcosSpessatto
suggested changes
Apr 23, 2024
apps/meteor/app/e2e/server/functions/fetchUsersWaitingForGroupKey.ts
Outdated
Show resolved
Hide resolved
rodrigok
previously requested changes
Apr 23, 2024
e3cd670
MarcosSpessatto
previously approved these changes
Jun 20, 2024
KevLehman
previously approved these changes
Jun 20, 2024
hugocostadev
previously approved these changes
Jun 21, 2024
2b0062a
8142a8d to
6048635
Compare
10 tasks
cardoso
reviewed
Dec 18, 2025
| validateParams: ise2eUpdateGroupKeyParamsPOST, | ||
| deprecation: { | ||
| version: '8.0.0', | ||
| }, |
Comment on lines
-339
to
+356
| // Key has been encrypted. Publish to that user's subscription model for this room. | ||
| await sdk.call('e2e.updateGroupKey', this.roomId, user._id, this.keyID + Base64.encode(new Uint8Array(encryptedUserKey))); | ||
| const encryptedUserKeyToString = this.keyID + Base64.encode(new Uint8Array(encryptedUserKey)); | ||
| return encryptedUserKeyToString; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes (including videos or screenshots)
Async key distribution process for E2EE rooms. Earlier users needed to be online to receive and share and verify the group keys which caused a bottleneck in the process. Made this process async so that users now no longer need to be online at the same time.
Keys will be generated even when the users are offline and they can receive it when they come online.
Issue(s)
Steps to test or reproduce
Further comments
E2EE-13