Skip to content

Epic: Failing to import keys from key backups cause UTDs #2350

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

Closed
4 of 5 tasks
kegsay opened this issue Mar 13, 2024 · 3 comments
Closed
4 of 5 tasks

Epic: Failing to import keys from key backups cause UTDs #2350

kegsay opened this issue Mar 13, 2024 · 3 comments
Labels
A-E2EE T-Epic Issue is at Epic level Team: Crypto Z-UISI Unable to decrypt errors

Comments

@kegsay
Copy link

kegsay commented Mar 13, 2024

As part of our work on UTDs it has become apparent that one source of UTDs is around historical messages before the client logged in. In this scenario, the sender will not encrypt for the target device, which is to be expected. If key backup is enabled and the user has >1 client, the newly logged in client should still be able to read the message because another client has decrypted and uploaded the key.

There is evidence this is not working as intended:

All these cases will cause UTDs which are visible to the end-user. The above rageshakes were from Matthew and Patrick A as well as community members.

Separately to this, there is a class of expected UTDs which can occur which we currently do not have good support for. Consider:

  • I am logged into my laptop with key backup enabled.
  • I shut my laptop for the weekend.
  • Messages are sent to me on Saturday.
  • I login to my account on EX Android on Sunday.
  • I get key backup configured.
  • I see UTDs for historical messages, because the only client that can decrypt those messages is my laptop, which hasn't been opened since Friday.
  • I will see UTDs until I open my laptop and have it upload the keys.

We need to figure out a solution for this failure mode, whether it is hiding the events as "expected UTDs" or otherwise.

Definition of done:

@kegsay kegsay added Team: Crypto Z-UISI Unable to decrypt errors A-E2EE labels Mar 13, 2024
@richvdh
Copy link
Member

richvdh commented Mar 13, 2024

Separately to this, there is a class of expected UTDs which can occur which we currently do not have good support for....

This is #2327, I believe

@BillCarsonFr BillCarsonFr added the T-Epic Issue is at Epic level label Mar 14, 2024
@BillCarsonFr
Copy link
Member

@kegsay found another source matrix-org/matrix-rust-sdk#3247 might be similar to matrix-org/matrix-rust-sdk#3197 but can't confirm yet

@richvdh
Copy link
Member

richvdh commented May 29, 2024

Causes of this are fixed.

@richvdh richvdh closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE T-Epic Issue is at Epic level Team: Crypto Z-UISI Unable to decrypt errors
Projects
None yet
Development

No branches or pull requests

3 participants