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

Add CryptoApi.resetEncryption #4614

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

florianduros
Copy link
Contributor

@florianduros florianduros commented Jan 14, 2025

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

Task element-hq/element-web#28977
Required #4615
Add CryptoApi.resetEncryption.

The goal of this new api is to give an easy to reset the current encryption state of the user:

  • Disable backing up room keys and delete any existing backup.
  • Remove the default secret storage key from the account data (ie: the recovery key).
  • Reset the cross-signing keys.
  • Re-enable backing up room keys if enabled before.

@florianduros florianduros changed the title Add CryptoApi#resetEncryption Add CryptoApi.resetEncryption Jan 14, 2025
@florianduros florianduros force-pushed the florianduros/reset-encryption branch from f99e069 to 4029eee Compare January 14, 2025 09:35
@florianduros florianduros added T-Feature Request to add a new feature which does not exist right now T-Enhancement and removed T-Feature Request to add a new feature which does not exist right now labels Jan 14, 2025
@florianduros florianduros force-pushed the florianduros/reset-encryption branch 2 times, most recently from 18fb6e6 to b033611 Compare January 15, 2025 14:04
@florianduros florianduros force-pushed the florianduros/reset-encryption branch from b033611 to c1462b7 Compare January 15, 2025 14:36
@florianduros florianduros force-pushed the florianduros/reset-encryption branch from c1462b7 to dbb5c0f Compare January 15, 2025 14:45
@florianduros florianduros force-pushed the florianduros/reset-encryption branch from dbb5c0f to 0420edf Compare January 15, 2025 14:47
@florianduros florianduros force-pushed the florianduros/reset-encryption branch from 0420edf to 6ea0cd1 Compare January 15, 2025 14:48
@florianduros florianduros force-pushed the florianduros/reset-encryption branch from 6ea0cd1 to dbd54dc Compare January 15, 2025 14:54
@florianduros florianduros force-pushed the florianduros/reset-encryption branch from dbd54dc to 9f87c04 Compare January 15, 2025 15:15
@florianduros florianduros force-pushed the florianduros/reset-encryption branch from 9f87c04 to be9f401 Compare January 15, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant