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

feat: E2EE. #238

Merged
merged 26 commits into from
Aug 29, 2023
Merged

feat: E2EE. #238

merged 26 commits into from
Aug 29, 2023

Conversation

cloudwebrtc
Copy link
Contributor

@cloudwebrtc cloudwebrtc commented Jun 25, 2023

Frame Cryptor support for Android.

  • E2EE implementation code
  • Test it in sample app.

@cloudwebrtc cloudwebrtc marked this pull request as ready for review July 3, 2023 01:00
@cloudwebrtc cloudwebrtc changed the title feat: E2EE. (WIP) feat: E2EE. Jul 3, 2023
@cloudwebrtc cloudwebrtc requested a review from davidliu July 3, 2023 01:00
* @param participantId
* @param keyIndex
*/
override fun setKey(key: String, participantId: String?, keyIndex: Int?) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
override fun setKey(key: String, participantId: String?, keyIndex: Int?) {
override fun setKey(key: String, participantId: String, keyIndex: Int) {

/**
* @suppress
*/
override fun onTrackPublished(publication: LocalTrackPublication, participant: LocalParticipant) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is already handled elsewhere, I think we can remove this.

@@ -185,7 +191,7 @@ constructor(
videoTrackPublishDefaults = videoTrackPublishDefaults,
Copy link
Contributor

Choose a reason for hiding this comment

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

need to capture e2eeOptions in the Room (also in LiveKit.kt)

this.keyProvider = keyProvider
}

suspend fun setup(room: Room, emitEvent: (roomEvent: RoomEvent) -> Unit) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like these can be put in the constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was discussed with Lukas here that we can enter a certain room without enabling e2ee, and use setup to switch to encrypted mode halfway, so I suggest to keep

@cloudwebrtc cloudwebrtc merged commit 83394e2 into main Aug 29, 2023
@cloudwebrtc cloudwebrtc deleted the duan/e2ee branch August 29, 2023 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants