RocketChat / RocketChat/Rocket.Chat

E2E Encryption Request Keys not updating when received

Open
#18,672 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

If you was added to a e2e encrypted room by other user you should request the keys and some online user should provide this room key to you, when you receive this e2e key you should be able to read decrypted messages and send encrypted messages, but it's working only after a client reload.

Steps to reproduce:

User A and B.

  1. Create a e2e encrypted room using user A.
  2. Send some messages to this room.
  3. Add the user B to this room while user A is online.
  4. User B receive the E2EKey of this room.
  5. All encrypted messages are blank and you're not able to send new messages using user B.
Expected behavior:

You should be able to read and send messages to this room as soon as the E2EKey of this room was received.

Actual behavior:

You aren't able to read or send messages before reload the client.

Server Setup Information:
  • Version of Rocket.Chat Server: 3.6.0-rc.0
  • Operating System: N/A
  • Deployment Method: N/A
  • Number of Running Instances: N/A
  • DB Replicaset Oplog: N/A
  • NodeJS Version: N/A
  • MongoDB Version: N/A
Client Setup Information
  • Desktop App or Browser Version: Browser Version
  • Operating System: MacOS / Brave
Additional context
Relevant logs:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed User A/User B flow in a browser: receive the E2E key, inspect the client’s key-receipt behavior, and compare it with a reload. Done means encrypted history becomes readable and new encrypted messages can be sent immediately after the key arrives, without reloading.

Written by the indexing model from the issue text.

Assessment

Domain
frontend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.