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

Prompt to import keys rather than create new ones #3342

Closed
madduck opened this issue Mar 1, 2017 · 7 comments
Closed

Prompt to import keys rather than create new ones #3342

madduck opened this issue Mar 1, 2017 · 7 comments

Comments

@madduck
Copy link

madduck commented Mar 1, 2017

If the Riot webapp can't find existing keys in local storage, it just generated new ones, which makes sense if keys can't be imported. However, as this is now possible, I think Riot should instead ask for confirmation and default to nudge the user to import existing keys, unless Riot has a firm belief that this is indeed the first time it's being used on this device (no idea how it would do this).

Otherwise, the user might inadvertedly generate a new key, which is probably undesirable for multiple reasons.

@richvdh
Copy link
Member

richvdh commented Mar 3, 2017

There is no support for importing and exporting your device keys currently.

@madduck
Copy link
Author

madduck commented Mar 3, 2017

@richvdh the "develop" version sure seems to support that…

@richvdh
Copy link
Member

richvdh commented Mar 3, 2017

No, it only supports import/export of keys for existing conversations.

@ara4n
Copy link
Member

ara4n commented Mar 8, 2017

@madduck the confusion here is that there are two different types of keys: identity keys (generated per device at login) and "session keys" which are what you use to decrypt particular group conversations. The import/export that Rich talks about is strictly for the conversation session keys, letting you share encrypted history between devices. There is no way or desire to move identity keys between devices. In future we may cross-sign identity keys to make things easier. I think in the end you're basically asking for cross-signing keys, which is #2714.

@madduck
Copy link
Author

madduck commented Mar 8, 2017

@ara4n I understand you don't want to share keys between devices, but so many times now my browser lost local storage due to whatever reasons, and there isn't an atomic way to restore just that without clobbering the entire config from backup, which isn't desirable most of the time.

Worse: you might not be aware of what's happening, while your browser or app comes online with a new key, meaning you can't read old messages anymore, and if you were to recover the key, you now can't read new messages encrypted to the new key (which you never wanted).

So I think there's benefit to exporting a backup of the identity key and one should be able to restore it from backup…

@ara4n
Copy link
Member

ara4n commented Mar 8, 2017 via email

@go2null
Copy link

go2null commented Oct 17, 2017

I think this is actually properly described/recognized in #4104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants