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

Secure Backup' vs 'Export E2E room keys' ... and where to get help #16202

Closed
Stuey2 opened this issue Jan 19, 2021 · 6 comments
Closed

Secure Backup' vs 'Export E2E room keys' ... and where to get help #16202

Stuey2 opened this issue Jan 19, 2021 · 6 comments
Labels

Comments

@Stuey2
Copy link

Stuey2 commented Jan 19, 2021

Background (skip if you like)

I'm a huge fan of the concept behind matrix and just this month have had three unrelated conversations about decentralised (open source) messaging being the future. Surely it has to be, who isn't annoyed by the multiplicity of platforms and their walled gardens (to say nothing of privacy etc.)!

To this end I've found element & matrix and am actively promoting them in my small way.

This is a little difficult due to the learning curve especially for non-technical people.

Main Question: Whats the difference between 'Secure Backup' and 'Export E2E room keys'

I'm pretty technical and I can't work out what the difference is between utilising A) 'Secure Backup' and B) the 'Export E2E room keys' functionality (see attached picture).

Do I need both? Personally I'd prefer just to rely on the Export E2E room keys functionality.

Are these E2E room keys per room, per session, or global and immutable? Can they be reset?

It would be most helpful to have even the shortest of guides delineating this in the FAQ. I'll even write it if you can explain it to me first.

element

Follow up Question: Where should I get help

Is there a preferred forum, or presumably a chat group on element where I can get help?

There's nothing that I can see on the FAQ promoting a mechanism for getting help. So I've turned to github issues - I'm sure this isn't really the place for a question like this one.

@t3chguy
Copy link
Member

t3chguy commented Jan 19, 2021

So Secure Backup and Export E2E Room Keys both concern the same data, your Megolm Room Session Keys, the symmetric keys which encrypt/decrypt the messages themselves. Megolm Room Session Keys are rotated relatively frequently to maintain Perfect Forward Secrecy.

Due to PFS, manual exports (Export E2E room keys) will not be able to decrypt any messages sent after the time of the export (as the session may have already rotated on the next message send)

Secure Backup stores the keys in an encrypted blob on the server, protected by your Security Phrase/Key. (The key is derived from the phrase, the phrase is optional). It is able to upload new keys as they are negotiated so it does not have the same issue.

Neither of them can fix the issue of not being able to decrypt messages whilst all your devices are logged out, that's a basic constraint of PFS.

Are these E2E room keys per room, per session, or global and immutable? Can they be reset?

The keys are per-room and there are many per-room. Given they are decryption keys for immutable events resetting them means losing access to that part of history.

Is there a preferred forum, or presumably a chat group on element where I can get help?

Of course, there is #element-web:matrix.org

@aaronraimist
Copy link
Collaborator

element-hq/element-meta#1886 is the existing issue for clarifying this in the UI

@Stuey2
Copy link
Author

Stuey2 commented Jan 20, 2021

Thanks for the answers guys!

@Stuey2 Stuey2 closed this as completed Jan 20, 2021
@jryans jryans removed the Z-UI/UX label Mar 8, 2021
@BartG95
Copy link

BartG95 commented Feb 11, 2022

Neither of them can fix the issue of not being able to decrypt messages whilst all your devices are logged out, that's a basic constraint of PFS.

If I understand correctly:

  1. If make a 'Secure Backup',
  2. then log out on all my devices,
  3. then log back in,
  4. then restore the Secure Backup,
  5. I will not be able to read message from before point 1, right?

If that is correct, then what is the purpose of this backup?

@aaronraimist
Copy link
Collaborator

@BartG95 No that’s not correct. You will be able to read messages from before point 1.

What the quoted sentence is saying is that you will not be able to read messages sent between points 2 and 3.

@ChenSun-Phys
Copy link

Just to clarify -- "Secure Backup stores the keys in an encrypted blob on the server, protected by your Security Phrase/Key. "

By "the server" you meant the matrix (say a Synapse instance) server where my account belongs to instead of the Element web app server, right? I inferred from this comment but would like to be sure.

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

No branches or pull requests

6 participants