-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Key backup cannot be reset, after it did not accept my saved password for it on another machine #29624
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
Comments
Hey, if you use instead the settings in the encryption tab of the user settings. Are you able to enable your key storage and create a recovery key? |
That menu has an option to change the recovery key: So it seems to me that different parts of the webapp are in disagreemant about whether it is set up. If I click "change recovery key", I'm given a new key, which if I save to my password manager and click confirm, it hangs for a few seconds and then the submenu disappears. But the "Security & Privacy" menu still looks like as if key backup would not be set up: After doing the above, I have opened element web on the machine where I wanted to log in, and it shows a popup in the top left to set up Secure Backup. I declined it for now. But now I dont understand. I consider myself a technical person. I'm running several selfhosted services (not Matrix though) for myself at home on linux, with Docker, Nginx, Proxmox, and been doing that for years now, but this many keys and passwords are becoming very confusing, because the descriptions in the client dont seem to check out. And I'm basing this off of the English interface. I think it would make sense to have a document about all of these (made for users, not just programmers familiar with Element's code and history), that clears up what kinds of passwords/keys are required from the user today, and what were former names of these same secrets historically. |
https://element.io/help#encryption a bit of documentation Let me explain. The key backup is a backup where the message keys are stored in order to be able to decrypt the message if the user don't have any other device to share these keys. Now, we prefer to not talk about key backup with the user and to use the word key storage (as you can see in the encryption tab of the user settings). The key storage stores the message keys and the user secrets (which are keys). In order to decrypt the keys in the key storage, the user must use his recovery key known previously as security key/primary key. Or with a passphrase (which is deprecated, we don't propose this option anymore in the new encryption tab). This passphrase is the key backup password that you're talking about. When the user choose the passphrase option and enter its for the first time, a recovery key is generated and can be accessed only with the given passphrase. We are trying to get rid of this and to only have the option to generate the recovery key. Of course the former passphrase can still be used for backward compatibility. We make these changes and renaming to be less technical and to have the same words used across the Element clients (Element Web, Element X). The key backup section in Security & Privacy will be removed soon (#26468). The goal is to have only a simplified encryption tab for the users to handle encryption settings. To summarize:
|
Thanks for the explainer!
I dont see key storage mentioned in the Encryption tab of the settings, but maybe thats a change in the pipeline. I'm looking at Element Web 1.11.95.
So "recovery key" is the same thing as the former "security key", and if I have a separate "security key" saved I can delete that, because its been replaced when I clicked the "change recovery key" button, right? And the "security phrase" user-made password was an alternative to the recovery key, not a wrapper, and for some time now the client automatically creates a recovery key the first time the user enters the security phrase, but lets both work until "change recovery key" is used, right?
The mentioned issue makes me think that something is missing in the Encryption tab for me. I dont have a key storage enable/disable thing thats mentioned in point 1.i . Is that expected in my version? If so, thats fine, just want to make sure my client works as you expect it.
And key storage in its current form is a (relatively) new thing that is basically a switch from the old system of syncing keys with to-device messages one by one, to syncing the whole storage in bulk, right? |
Key storage in encryption tab is introduced in 1.11.96 https://github.com/element-hq/element-web/releases/tag/v1.11.96
Yes, be sure to save your new recovery key somewhere.
Hmm, to my knowledge, you couldn't have both. The user was able to generate a recovery key or to use a passphrase (which is generating a recovery key under the hood but not exposed to the client), not both at the same time.
Key storage tab is introduced in 1.11.96 https://github.com/element-hq/element-web/releases/tag/v1.11.96
It's not a new thing, it was here for a long time. Key storage is a generic name to group existing feature(Secret storage, key backup...) There is two way to recover the secrets for a long time:
|
Aha, I see. Ok, now that we cleared up my confusion, do you think we can find out why didnt element accept my security phrase? Maybe there are others out there with a similar issue. |
I'll take a look at the logs |
@mpeter50 sorry for the delay in getting back to you here. Unfortunately, the logs aren't going to be very revealing here: all we can see is that the recovery key you entered did not match the data stored on the server. I think there are three possibilities as to what has happened.
|
This comment has been minimized.
This comment has been minimized.
I see, thanks for the help and the information! I have briefly used very early versions of Element X on my phone (before it got a release on F-droid), so perhaps it was point 2. I think point 3 is unlikely, because I remember that I have used the security phrase a few times. Since we cannot continue the investigation, I'm closing this issue. |
Steps to reproduce
Outcome
What did you expect?
I expected that the key backup function would resume working.
What happened instead?
Key backup cannot be set up. The menu shows this error message:
Operating system
Windows
Browser information
Firefox
URL for webapp
https://riot.grin.hu
Application version
1.11.95
Homeserver
https://matrix.grin.hu
Will you send logs?
Yes
The text was updated successfully, but these errors were encountered: