Skip to content

Avoid using accessSecretStorage to create 4S #30244

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

Merged
merged 8 commits into from
Jul 3, 2025

Conversation

uhoreg
Copy link
Member

@uhoreg uhoreg commented Jul 2, 2025

Historically, accessSecretStorage either allowed the app to fetch/store secrets in 4S, or bootstrapped 4S/Cross-Signing/key backup, etc. Recent designs separate out key backup (Key Storage) and 4S (Recovery). This PR removes some calls to accessSecretStorage that were using it to create key backup or 4S, and instead takes the user to the Encryption settings tab, which is where these are handled in the new designs.

Fixes #30137

Review commit-by-commit

uhoreg added 5 commits June 30, 2025 13:25
The only place where verifyUser is called already checks that cross-signing is
set up.  (The function name is also incorrect, since it checks for the
cross-signing key, and not for 4S.)
Send the user to the Encryption settings tab instead
@uhoreg uhoreg changed the title Access secret storage no create Avoid using accessSecretStorage to create 4S Jul 2, 2025
@uhoreg uhoreg marked this pull request as ready for review July 3, 2025 01:23
@uhoreg uhoreg requested review from a team as code owners July 3, 2025 01:23
@uhoreg uhoreg requested review from dbkr, florianduros and richvdh July 3, 2025 01:23
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
@uhoreg uhoreg enabled auto-merge July 3, 2025 13:21
@uhoreg uhoreg added this pull request to the merge queue Jul 3, 2025
Merged via the queue into element-hq:develop with commit 9095ebd Jul 3, 2025
30 checks passed
@uhoreg uhoreg deleted the access_secret_storage_no_create branch July 3, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EW still prompts you to "Set up Secure Backup" and "Enter a security phrase"
3 participants