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

Don't allow upgrade from untrusted key backup. #3822

Merged
merged 5 commits into from
Jan 14, 2020
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jan 9, 2020

If we trust the key backup at upgrade time then we can sign it so
key backup will work automatically when cross-signing is trusted.
If we don't sign it at this point we'll end up with cross-signing
and key backup set up but key backup untrusted by the cross-signing
key which is a bit of a broken situation.

With matrix-org/matrix-js-sdk#1144 fixes
element-hq/element-web#11747

If we trust the key backup at upgrade time then we can sign it so
key backup will work automatically when cross-signing is trusted.
If we don't sign it at this point we'll end up with cross-signing
and key backup set up but key backup untrusted by the cross-signing
key which is a bit of a broken situation.

With matrix-org/matrix-js-sdk#1144 fixes
element-hq/element-web#11747
@dbkr dbkr requested a review from a team January 9, 2020 20:52
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Looks reasonable, but a few questions.

@dbkr dbkr requested a review from jryans January 14, 2020 11:53
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Great, thanks for working on this! 😁

@dbkr dbkr merged commit f87541a into develop Jan 14, 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.

2 participants