Skip to content
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

Symmetric backup #1542

Merged
merged 33 commits into from
Aug 11, 2022
Merged

Symmetric backup #1542

merged 33 commits into from
Aug 11, 2022

Conversation

ismailgulek
Copy link
Contributor

@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2022

Codecov Report

Merging #1542 (91d6cdd) into develop (7474d43) will increase coverage by 0.59%.
The diff coverage is 37.42%.

@@             Coverage Diff             @@
##           develop    #1542      +/-   ##
===========================================
+ Coverage    11.97%   12.57%   +0.59%     
===========================================
  Files          515      522       +7     
  Lines        84115    84856     +741     
  Branches     35909    36201     +292     
===========================================
+ Hits         10076    10671     +595     
- Misses       73667    73799     +132     
- Partials       372      386      +14     
Impacted Files Coverage Δ
MatrixSDK/Background/MXBackgroundSyncService.swift 0.00% <0.00%> (ø)
...xSDK/Crypto/Algorithms/Megolm/MXMegolmDecryption.m 19.32% <0.00%> (-0.06%) ⬇️
...DK/Crypto/KeyBackup/Data/MXKeyBackupVersionTrust.m 0.00% <0.00%> (ø)
MatrixSDK/Crypto/KeyBackup/MXKeyBackup.m 0.00% <0.00%> (ø)
MatrixSDK/Crypto/MXOlmDevice.m 23.19% <0.00%> (-0.18%) ⬇️
MatrixSDK/Crypto/Recovery/MXRecoveryService.m 0.00% <0.00%> (ø)
MatrixSDKTests/MXAes256KeyBackupTests.m 0.00% <0.00%> (ø)
MatrixSDKTests/MXBaseKeyBackupTests.m 0.00% <0.00%> (ø)
MatrixSDKTests/MXCryptoRecoveryServiceTests.m 0.00% <0.00%> (ø)
MatrixSDKTests/MXCryptoShareTests.m 0.00% <0.00%> (ø)
... and 18 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ismailgulek ismailgulek marked this pull request as ready for review August 9, 2022 12:49
Copy link
Contributor

@manuroe manuroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this huge update.

My single concern is that the untrusted field is a bit fragile on a long term (even if we will remove this code with ElementR-iOS). A dev can change the code behavior and untrusted becomes YES even for keys received in a normal way with m.room_key to_device events. The resulting UX could be really bad.

I proposed a change in testEncryptAndDecryptKeyBackupData to verify that as a low cost way.

MatrixSDKTests/MXAes256KeyBackupTests.m Outdated Show resolved Hide resolved
MatrixSDKTests/MXCurve25519KeyBackupTests.m Outdated Show resolved Hide resolved
MatrixSDK/Crypto/KeyBackup/MXKeyBackupAlgorithm.h Outdated Show resolved Hide resolved
MatrixSDKTests/MXKeyBackupUnitTests.swift Show resolved Hide resolved
MatrixSDKTests/MXKeyBackupUnitTests.swift Show resolved Hide resolved
MatrixSDKTests/MXKeyBackupUnitTests.swift Show resolved Hide resolved
MatrixSDKTests/MXBaseKeyBackupTests.m Show resolved Hide resolved
MatrixSDKTests/MXBaseKeyBackupTests.m Show resolved Hide resolved
@ismailgulek
Copy link
Contributor Author

I've checked the failing integration & crypto tests, they were green on my local.

Copy link
Contributor

@manuroe manuroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ismailgulek ismailgulek merged commit 24cbe57 into develop Aug 11, 2022
@ismailgulek ismailgulek deleted the ismail/symmetric_backup branch August 11, 2022 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants