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

Set passphrase for the crypto store #1699

Merged
merged 2 commits into from
Jan 30, 2023
Merged

Set passphrase for the crypto store #1699

merged 2 commits into from
Jan 30, 2023

Conversation

Anderas
Copy link
Contributor

@Anderas Anderas commented Jan 27, 2023

Use existing MXKeyProvider mechanism to get a new key that is used as base64-encoded passphrase when migrating or creating OlmMachine in crypto V2. This means all data stored in the underlying sqlite db will be encrypted.

Additionally:

  • listen to room membership changes and track new users
  • listen to room encryption events and set encryption if necessary

@Anderas Anderas requested review from a team and alfogrillo and removed request for a team January 27, 2023 10:07
@codecov
Copy link

codecov bot commented Jan 27, 2023

Codecov Report

Base: 17.45% // Head: 17.44% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (93e3b95) compared to base (735fac4).
Patch coverage: 6.86% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1699      +/-   ##
===========================================
- Coverage    17.45%   17.44%   -0.01%     
===========================================
  Files          609      609              
  Lines        95134    95162      +28     
  Branches     40089    40094       +5     
===========================================
- Hits         16603    16601       -2     
- Misses       78025    78055      +30     
  Partials       506      506              
Impacted Files Coverage Δ
...trixSDK/Crypto/CryptoMachine/MXCryptoMachine.swift 0.00% <0.00%> (ø)
...DK/Crypto/CryptoMachine/MXCryptoMachineStore.swift 0.00% <0.00%> (ø)
MatrixSDK/Crypto/MXCryptoV2.swift 0.00% <0.00%> (ø)
...trixSDK/Crypto/Migration/MXCryptoMigrationV2.swift 0.00% <0.00%> (ø)
...ypto/Verification/MXKeyVerificationManagerV2.swift 21.29% <0.00%> (-0.36%) ⬇️
...ts/Crypto/Migration/MXCryptoMigrationV2Tests.swift 0.00% <0.00%> (ø)
MatrixSDK/Crypto/Trust/MXTrustLevelSource.swift 94.00% <100.00%> (+3.25%) ⬆️
...sts/Crypto/Trust/MXTrustLevelSourceUnitTests.swift 100.00% <100.00%> (ø)

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@alfogrillo alfogrillo left a comment

Choose a reason for hiding this comment

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

LGTM!
Just noticing that almost all the GH workflows seem broken. :/

@Anderas
Copy link
Contributor Author

Anderas commented Jan 30, 2023

LGTM! Just noticing that almost all the GH workflows seem broken. :/

Thanks. Yea some flaky tests + one I could not fix due to how OlmKit delegates keys. Will fix this in a separate PR, and disabled that test for now (not in production yet)

@Anderas Anderas merged commit 496b17e into develop Jan 30, 2023
@Anderas Anderas deleted the andy/crypto_password branch January 30, 2023 11:42
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.

2 participants