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

Make E2EEConfig required #1891

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Make E2EEConfig required #1891

merged 1 commit into from
Nov 15, 2023

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Nov 10, 2023

Previously it could be either undefined or type None which meant the same thing: no need to have both, just make it required.

This also means we can move the line to set e2ee enabled into a more sensible place rather than in the ActiveCall de-nulling wrapper.

Previously it could be either undefined or type None which meant the
same thing: no need to have both, just make it required.

This also means we can move the line to set e2ee enabled into a more
sensible place rather than in the ActiveCall de-nulling wrapper.
@dbkr dbkr added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Nov 10, 2023
@dbkr dbkr requested a review from a team as a code owner November 10, 2023 11:57
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (daf6e67) 30.14% compared to head (5ab6d18) 30.14%.

Additional details and impacted files
@@           Coverage Diff            @@
##           livekit    #1891   +/-   ##
========================================
  Coverage    30.14%   30.14%           
========================================
  Files           47       47           
  Lines         1874     1874           
  Branches       327      327           
========================================
  Hits           565      565           
  Misses        1264     1264           
  Partials        45       45           
Flag Coverage Δ
unittests 30.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@toger5 toger5 left a comment

Choose a reason for hiding this comment

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

looks good but I think in this context we should decide what we dot with enableE2EE https://github.com/vector-im/element-call/blob/04d41b8be1ac3b291db71afbf4fe7152293d1ba5/src/UrlParams.ts#L214-L215

It is somewhat redundant if missing perpartispant and missing shared key implies enableE2EE = false

Comment on lines +257 to +258
} else {
return { mode: E2eeType.NONE };
Copy link
Contributor

@toger5 toger5 Nov 10, 2023

Choose a reason for hiding this comment

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

we also have the e2eeEnabled prop. maybe a check if enableE2EE=false should overrride this?

Copy link
Member Author

Choose a reason for hiding this comment

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

ah, so this is a throwback from full mesh and passes the flag to the js-sdk to disable encryption of the events for calling, so not relevant for livekit. In fact, we should probably remove it altogether from the livekit branch as it won't do anything. This is probably not something for this PR though as it's not particularly dependant or related.

@dbkr dbkr requested a review from toger5 November 13, 2023 15:42
@dbkr dbkr merged commit 56c4ad0 into livekit Nov 15, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants