-
Notifications
You must be signed in to change notification settings - Fork 5
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: expose API for upgrading from basic to x509 credentials for a conversation WPB-10161 #714
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #714 +/- ##
=======================================
Coverage 77.71% 77.72%
=======================================
Files 98 98
Lines 19153 19245 +92
=======================================
+ Hits 14885 14958 +73
- Misses 4268 4287 +19
Continue to review full report in Codecov by Sentry.
|
8dff67e
to
b5cf3ab
Compare
Could you please distribute formatting-related hunks from 06b5bce to commits that originally touched that code? |
06b5bce
to
37a6071
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.
Just a nitpick, otherwise it looks good!
init_count.epoch_encryption_keypair, | ||
final_count.epoch_encryption_keypair | ||
); | ||
assert_eq!(init_count.key_package, final_count.key_package); |
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.
This means a search for a basic credential key package would fail now, right?
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 mean this count doesn't distinguish. In this test the key packages aren't touched. 10 key packages are generated when the centrals are created but that's it.
Honestly now that I'm looking at it I don't see the point of asserting that the key_package
or epoch_encryption_keypair
count hasn't changed.
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.
Yeah, then I would omit those checks in order to avoid confusion. 👍
crypto-ffi/bindings/jvm/src/main/kotlin/com/wire/crypto/client/MLSClient.kt
Show resolved
Hide resolved
a66bcaf
to
4e39b66
Compare
What's new in this PR
Expose API for upgrading from basic to x509 credentials for a conversation. This is useful for a clients to address the race condition, which can happen if they got added to a conversation with their basic credentials while upgrading to x509 credentials.
PR Submission Checklist for internal contributors
SQPIT-764
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.