-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
feat(E2EE): Async E2EE keys exchange #32197
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 |
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. |
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.
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.
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
apps/meteor/app/e2e/server/functions/fetchUsersWaitingForGroupKey.ts
Outdated
Show resolved
Hide resolved
e3cd670
2b0062a
8142a8d
to
6048635
Compare
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