Element-web: Resetting secure storage results in "Unable to set up secret storage"

Created on 18 Sep 2020  路  15Comments  路  Source: vector-im/element-web

Description

I'm trying to reset cross signing and secret storage and i fill out out all required fields and when i hit finish, it only shows
"Unable to set up secret storage"

Steps to reproduce

  • Reset cross signing in Settings/Security & Privacy
  • fill out the new security passphrase, next, next, finish

Version information

  • Platform: web (in-browser) or desktop?
    Tried both. Same result.

For the web app:

  • Browser: Chrome 85.0.4183.102
  • OS: Fedora 32
  • URL: private server riot version v1.7.7

For the desktop app:

  • OS: Fedora 32
  • Version: Element version: 1.7.7
bug defect e2e-cross-signing p1 release-blocker major

Most helpful comment

Resetting both secure storage and cross-signing is working now on the develop client, thanks a lot!

All 15 comments

Thanks for the report, I'll work on fixing this now.

@Marwel, to help me confirm I understand the issue correctly, can you tell me what you see when you open browser DevTools, and go to Application tab -> IndexedDB -> matrix-js-sdk:crypto -> account, and then what values do you see in the "key" column? (Please don't post the "value" column, those are private!)

For example, do you see something like:

image

...or do you have a different list?

I've got the same issue.
There's just the - key and sss_cache:m.megolm_backup.v1
in another browser there's just - and nothing else.

@jryans
There is not much.
image
And cross-signing is already empty.

@Marwel https://develop.element.io now has a fix applied for this, please test there and let us know if you're able to reset.

Nope, sorry to disappoint, but it still shows the same message.

Hmm, okay, thanks for trying. @Marwel, what do you have currently on develop in the advanced section of cross-signing settings? For example, I have:

image

image

@Marwel Looking at your previous debug logs from 5 days ago, it seems like you tried the following actions:

  • Clicked "Set up" in the cross-signing section, but this failed when trying to access secret storage
  • Clicked "Reset" in the secret storage section, but failed when trying to copy local cross-signing keys into new secret storage (because they don't exist)

Could you please try the following steps?

  1. Go to https://develop.element.io, logging in if needed, and open Settings -> Security
  2. Click "Reset" in the secret storage section first (if this still fails, it's likely a new, different issue than last time)
  3. Click "Reset" in the cross-signing section to create fresh keys and store them in the new secret storage you just made
  4. If there are any problems, please submit debug logs from this session on develop

Even if you end up seeing the same messages in the UI, we may learn new things from the debug logs. Thanks for your help with this!

Uploaded logs from the development version with the same "Unable to set up secret storage" error.

@jryans Yeah, you're right, this happens, when i try to finish step 2.
So i skipped step 3 and uploaded the logs. It seems to me, that the reset from cross signing does both.
Thank you for your effort on this.

Thanks for the additional logs! I can see now there is indeed an additional issue: secret storage reset attempts to sign key backup with cross-signing keys that are not present. According to logs, @Marwel, @nbuechner, and @PeterBadzhakov all seem to be affected by the same issue, so hopefully fixing that will help everyone. 馃槃

@Marwel, @nbuechner, and @PeterBadzhakov, the latest fix is now merged to develop. If you could test https://develop.element.io once again, that would be very helpful! The steps in https://github.com/vector-im/element-web/issues/15230#issuecomment-697346986 should be a good reference.

Resetting both secure storage and cross-signing is working now on the develop client, thanks a lot!

Okay, i'm late to the "it works" party, but i have to disapoint again.
I tried on develop and it still gives me the same error on resetting secure storage.
I already uploaded the logs.

@Marwel Sorry to hear that 馃槚 It's a bit puzzling, as that seems to be exactly the error I thought I had fixed in the second round. I created a fresh issue to track the remaining problems since we've already shipped fixes on this one.

Was this page helpful?
0 / 5 - 0 ratings