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

Key backup claims to be disabled despite being set up #11404

Closed
uhoreg opened this issue Nov 18, 2019 · 6 comments · Fixed by matrix-org/matrix-js-sdk#1075
Closed

Key backup claims to be disabled despite being set up #11404

uhoreg opened this issue Nov 18, 2019 · 6 comments · Fixed by matrix-org/matrix-js-sdk#1075

Comments

@uhoreg
Copy link
Member

uhoreg commented Nov 18, 2019

Description

I connected my device to an existing key backup, but the room banner keeps saying that it's not set up, and the settings screen says it is not set up. The console logs say that there is an unhandled rejection.

Steps to reproduce

  • Log in to an account
  • go to an encrypted room
  • see the backup banner and click on the "Connect this device to Key Backup" button
  • enter the passphrase
  • go to another encrypted room and see the banner still
  • go to user preferences, click on "Security & Privacy", and see that it says that "The device is not connected to backup".

Version information

  • Platform: web (/develop)

For the web app:

  • Browser: Firefox 70.0.0.1
  • OS: Debian Linux
  • URL: riot.im/develop
@turt2live
Copy link
Member

2019-11-18T03:52:20.166Z I Backup public key REDACTED is trusted locally
2019-11-18T03:52:20.168Z I No usable key backup: not enabling key backup

hmm...

@jryans
Copy link
Collaborator

jryans commented Nov 18, 2019

We seem to have several reports of this, so I suspect this is a regression from merging the JS SDK changes last week. For those affected, it would be helpful to see what's displayed in the key backup area (Settings -> Security & Privacy -> Key backup -> Expand advanced) of Settings.

@jryans
Copy link
Collaborator

jryans commented Nov 18, 2019

Looking at the path that logs No usable key backup: not enabling key backup, it would seem Crypto.prototype.isKeyBackupTrusted has changed in some way that it decides your key backup is not trusted any more.

@jryans
Copy link
Collaborator

jryans commented Nov 18, 2019

It sounds like @dbkr can reproduce on a test account and will be looking into this.

@dbkr
Copy link
Member

dbkr commented Nov 18, 2019

Looks like this when backups should be trusted due to having been restored.

@jryans
Copy link
Collaborator

jryans commented Nov 18, 2019

Looks like this when backups should be trusted due to having been restored.

As a possibly confounding data point, my main client on matrix.org is trusting the backup via being restored, but key backup appears to working correctly for me on develop.

2019-11-18 at 13 26

dbkr added a commit to matrix-org/matrix-js-sdk that referenced this issue Nov 18, 2019
#832 added
cross-signing checks for backup trust but we failed to merge in the
check for the the backup being trusted locally.

Fixes element-hq/element-web#11404
@jryans jryans added the phase:1 label Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants