Skip to content

Conversation

BillCarsonFr
Copy link
Member

Follow up on #4799

Fixes https://github.com/element-hq/voip-internal/issues/375

After discussions IEncryptionManager#getEncryptionKeys() cannot be deprecated.
There is a legit use case for the RTCSession beeing ready and running while the rtc app is not yet ready/started. That means that keys could be arriving already. Hence when the app is ready there should be a way to re-emit / access the keys.

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

@@ -114,6 +129,7 @@ export class RTCEncryptionManager implements IEncryptionManager {
public leave(): void {
this.transport.off(KeyTransportEvents.ReceivedKeys, this.onNewKeyReceived);
this.transport.stop();
this.participantKeyRings.clear();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The legacy encryption manager was only clearing its own key here, but I don't see why?

@BillCarsonFr BillCarsonFr added the T-Task Tasks for the team like planning label Jul 9, 2025
@BillCarsonFr BillCarsonFr marked this pull request as ready for review July 9, 2025 16:33
@BillCarsonFr BillCarsonFr requested a review from a team as a code owner July 9, 2025 16:33
@BillCarsonFr BillCarsonFr requested review from robintown and toger5 July 9, 2025 16:33
Copy link
Member

@robintown robintown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the title of this PR a little confusing, as the ability to re-emit keys already existed and it hasn't changed substantially. Seems this is primarily about un-deprecating EncryptionManager.getEncryptionKeys?

@BillCarsonFr BillCarsonFr requested a review from robintown July 11, 2025 15:13
@BillCarsonFr BillCarsonFr changed the title EncryptionManager: should be able to re-emit keys EncryptionManager: un-deprecating EncryptionManager.getEncryptionKeys Jul 11, 2025
@toger5 toger5 added this pull request to the merge queue Jul 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 14, 2025
@BillCarsonFr BillCarsonFr added this pull request to the merge queue Jul 15, 2025
Merged via the queue into develop with commit c077201 Jul 15, 2025
36 checks passed
@BillCarsonFr BillCarsonFr deleted the valere/rtc/encryption_mgr/re_emit branch July 15, 2025 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants