-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(bootstrap): init cross-signing with other e2e initial task (#…
…3024) In existing code the bootstraping is done in different places: - in `bootstrap_cross_signing_if_needed` - or in `run_intialization_tasks` And both are based on the same EncryptionSettings. `bootstrap_cross_signing_if_needed` was done by `LoginBuilder` but `run_intialization_tasks` by `MatrixAuth`. I propose to move all that under `run_intialization_tasks` that has already support to do it in background, and to call it in one place only: `MatrixAuth` Also Fixes #2763 ## Notes - Some tests have been updated to properly `wait_for_e2ee_initialization_tasks` - `bootstrap_cross_signing_if_needed` might require re-authentication. Which I suppose was the original reason to have that in a seperate place. But given that the need to re-auth will soon be deprecated for bootstrap (when this [MSC](matrix-org/matrix-spec-proposals#3967) will land); so for now we pass the authentication info to `run_intialization_tasks` if any. --- * refactor(bootstrap): init cross-signing with other e2e initial task * fix compilation warning for NoEncryption feature set * Doc and Formatting: Improve doc and formatting * Fix missing import with encryption feature flag
- Loading branch information
1 parent
18065cb
commit 784c745
Showing
5 changed files
with
89 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters