-
Notifications
You must be signed in to change notification settings - Fork 6
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: Observe self client certificate revocation (WPB-6145) #2384
feat: Observe self client certificate revocation (WPB-6145) #2384
Conversation
# Conflicts: # cryptography/src/appleMain/kotlin/com/wire/kalium/cryptography/MLSClientImpl.kt # cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/MLSClientImpl.kt # cryptography/src/commonMain/kotlin/com/wire/kalium/cryptography/MLSClient.kt # cryptography/src/jsMain/kotlin/com/wire/kalium/cryptography/MLSClientImpl.kt # logic/src/commonMain/kotlin/com/wire/kalium/logic/data/e2ei/E2EIRepository.kt # network/src/commonMain/kotlin/com/wire/kalium/network/api/base/unbound/acme/ACMEApi.kt
…k_revocation_list
…ert_revoked_dialog
…ert_revoked_dialog # Conflicts: # logic/src/commonMain/kotlin/com/wire/kalium/logic/configuration/UserConfigRepository.kt # network/src/commonMain/kotlin/com/wire/kalium/network/api/base/unbound/acme/ACMEApi.kt # persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/unread/UserConfigDAO.kt
…alog' into show_your_device_cert_revoked_dialog
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 2 Passed Test Services
|
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.
🔥
...n/com/wire/kalium/logic/feature/user/e2ei/ObserveShouldNotifyForRevokedCertificateUseCase.kt
Show resolved
Hide resolved
Question: how it should work? But I thought if my certificate was revoked it means that I'm a bad guy and should be logged out, isn't it? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release/candidate #2384 +/- ##
====================================================
Coverage ? 58.65%
Complexity ? 21
====================================================
Files ? 1130
Lines ? 44262
Branches ? 4128
====================================================
Hits ? 25961
Misses ? 16460
Partials ? 1841 Continue to review full report in Codecov by Sentry.
|
Yes we show a dialog recommending to the user to logout. And once the user dismisses the dialog we invoke |
sounds strange to me (the fact the user could skip the logging out), but okay :) |
…ialog # Conflicts: # logic/src/commonMain/kotlin/com/wire/kalium/logic/configuration/UserConfigRepository.kt # logic/src/commonMain/kotlin/com/wire/kalium/logic/data/e2ei/E2EIRepository.kt # logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/UserScope.kt # logic/src/commonTest/kotlin/com/wire/kalium/logic/feature/e2ei/usecase/CheckRevocationListUseCaseTest.kt # persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/unread/UserConfigDAO.kt
* feat(MLS): check revocation list * feat(MLS): cover CheckRevocationListUseCase with unit test * chore: detekt * chore: apply new changes from CC * feat: store urls with expiration time * feat: pass url as param to the use case * chore: detekt * chore: unit test * feat: Show dialog when current user's certificate is revoked * feat: update unit test for CheckRevocationListUseCase * chore: detekt * chore: cleanup * chore: resolve conflicts
…2408) * feat(MLS): check revocation list * feat(MLS): cover CheckRevocationListUseCase with unit test * chore: detekt * chore: apply new changes from CC * feat: store urls with expiration time * feat: pass url as param to the use case * chore: detekt * chore: unit test * feat: Show dialog when current user's certificate is revoked * feat: update unit test for CheckRevocationListUseCase * chore: detekt * chore: cleanup * chore: resolve conflicts
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Description
I this PR, I am creating the logic that will be used in Android to show a dialog when self client's certificate is revoked:
A flag will be observed by Android through a use case called
ObserveShouldNotifyForRevokedCertificateUseCase
to show the dialog.Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.