Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Defer encryption setup until first E2EE room #5219

Merged
merged 13 commits into from
Sep 18, 2020

Conversation

jryans
Copy link
Collaborator

@jryans jryans commented Sep 16, 2020

This work simplifies registration and login by removing the passphrase setup step. We now wait until the user interacts with their first encrypted room, and only then start displaying toasts to setup Secure Backup and security related features.

Cross-signing keys are created as early as possible (during auth for password users, delayed to Secure Backup setup for SSO users).

image

Reviewer: It's likely best to go commit by commit, as there are several commits which reorganise files.

Fixes element-hq/element-web#13895

With this change, Element now creates cross-signing keys during auth flows for
password login. For other auth flows like token / SSO, it will not happen until
a cross-signing / secret storage dialog flow as before.
This ensures we are alerted when you first interact with an encrypted room.

Part of element-hq/element-web#13895
The Secure Backup toast replaces this with better UX.

Part of element-hq/element-web#13895
This adjusts the main toast to focus on Secure Backup as suggested in designs.

Part of element-hq/element-web#13895
@dbkr dbkr self-assigned this Sep 16, 2020
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

looks good I think!

Copy link
Contributor

@nadonomy nadonomy left a comment

Choose a reason for hiding this comment

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

Exciting!

@jryans jryans merged commit ec4bf0c into develop Sep 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move SSSS storage setup to key backup setup time
3 participants