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

Encrypt keys on disk with a passphrase #7271

Closed
airblag opened this issue Sep 3, 2018 · 4 comments
Closed

Encrypt keys on disk with a passphrase #7271

airblag opened this issue Sep 3, 2018 · 4 comments

Comments

@airblag
Copy link

airblag commented Sep 3, 2018

Description

It should be possible to encrypt the keys (and the authentication token) on the disk and decrypt it only when starting riot by asking for a pass phrase.

We are deploying Matrix/Riot in an organization network where users have network home directories. For me as root, copying the $HOME/.config/Riot directory of a user allows me to start riot and read all encrypted conversation the user was involved in.
To have the option to protect the keys (and from my point of view the access token) with a pass phrase like in GPG or SSH would be more than a useful option. It can then be cached unencrypted until riot is stopped).

I guess the code for exporting/importing the keys could be used for this task ?

So long this is not the case, I can only advice my users to limit private encrypted chats only from their own devices, and not share the keys with the session on the computer of the organization which sounds kind of silly :).

  • Platform: desktop (web too actually)
  • OS: Linux but I guess every OS
  • Version: 0.16.2
@ara4n
Copy link
Member

ara4n commented Sep 4, 2018

hm, this is a very good point, and is quite related to the work we're doing right now on #3661.

@ara4n
Copy link
Member

ara4n commented Feb 27, 2019

this is almost the same as #8938

@uhoreg
Copy link
Member

uhoreg commented Jun 19, 2020

We're now encrypting olm, megolm, cross-signing, and backup keys using a key stored in the operating system's password storage. We don't yet encrypt the access token, and we currently only do this for new logins. We will work on migrating existing logins later.

@t3chguy
Copy link
Member

t3chguy commented Mar 29, 2023

This happened

@t3chguy t3chguy closed this as completed Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants