matrix-js-sdk
Add E2EE for embedded mode of Element Call
#3667
Merged

Add E2EE for embedded mode of Element Call #3667

dbkr merged 123 commits into develop from SimonBrandner/feat/e2ee-embeded
SimonBrandner
dbkr WIP refactor for removing m.call events
11ce5326
dbkr Always remember rtcsessions since we need to only have one instance
38f9b56f
dbkr Merge remote-tracking branch 'origin/develop' into dbkr/matrixrtcsession
f5f63d67
dbkr Fix tests
426f498d
dbkr Fix import loop
542ce1f0
dbkr Fix more cyclic imports & tests
79ad5663
dbkr Test session joining
3d715fc8
dbkr Attempt to make tests happy
ac6fece9
dbkr Always leave calls in the tests to clean up
210c3bb1
dbkr comment + desperate attempt to work out what's failing
bd105070
dbkr More test debugging
b1dfdeed
dbkr Okay, so these ones are fine?
03868f8e
dbkr Stop more timers and hopefully have happy tests
c9de1cb8
dbkr Test no rejoin
3de7b324
dbkr Test malformed m.call.member events
73dedc44
dbkr Test event emitting
6aeeb7c6
dbkr Test getActiveFoci()
989c4f0c
dbkr Test event emitting (and also fix it)
88d85b40
dbkr Test membership updating & pruning on join
a07f93f0
dbkr Test getOldestMembership()
86a25b59
dbkr Test member event renewal
f0a37cb6
dbkr Merge remote-tracking branch 'origin/develop' into dbkr/matrixrtcsession
0d46aeb5
dbkr Don't start the rtc manager until the client has synced
c8ae665e
dbkr Fix type
770d16e1
dbkr Remove listeners added in constructor
5be2d7c4
dbkr Stop the client here too
71ab4769
dbkr Stop the client here also also
2e1aaa8d
dbkr ARGH. Disable tests to work out which one is causing the exception
bcff0391
dbkr Disable everything
2886455c
dbkr Re-jig to avoid setting listeners in the constructor
b4c40ef7
dbkr No need to rename this anymore
5b9051e6
dbkr argh, remove the right listener
c2716255
dbkr Is it this test???
5e2a555b
dbkr Re-enable some tests
591df955
dbkr Try mocking getRooms to return something valid
5145b440
dbkr Re-enable other tests
1c96fc8a
dbkr Give up trying to get the tests to work sensibly and deal with getRoo…
6811ba47
dbkr Oops, don't enable the ones that were skipped before
b18ae380
dbkr One more try at the sensible way
40fb4ab2
dbkr Didn't work, go back to the hack way.
50da8963
dbkr Log when we manage to send the member event update
f612b76a
SimonBrandner SimonBrandner force pushed from ff698a23 to 2897d126 2 years ago
SimonBrandner SimonBrandner force pushed from 2897d126 to 4244707f 2 years ago
SimonBrandner SimonBrandner force pushed from 4244707f to b733afab 2 years ago
SimonBrandner Support `getOpenIdToken()` in embedded mode (#3676)
9cb1c209
SimonBrandner SimonBrandner force pushed from b733afab to d956b563 2 years ago
SimonBrandner Call `sendContentLoaded()` (#3677)
2047c987
SimonBrandner Start MatrixRTC in embedded mode (#3679)
1a0718fc
SimonBrandner SimonBrandner force pushed from d956b563 to 0d3a8806 2 years ago
dbkr Reschedule the membership event check
c444e374
dbkr Bump widget api version
edc977b1
dbkr Add mock for sendContentLoaded()
e690b71d
SimonBrandner SimonBrandner force pushed from ab2243b4 to 54b79bd0 2 years ago
SimonBrandner SimonBrandner force pushed from 54b79bd0 to d64b1c12 2 years ago
SimonBrandner SimonBrandner force pushed from d64b1c12 to ea6fb235 2 years ago
SimonBrandner Embeded mode pre-requisites
a2713693
SimonBrandner Embeded mode E2EE
c6c65595
SimonBrandner Encryption condition
3799c655
SimonBrandner Revert "Embeded mode pre-requisites"
d2034ad7
SimonBrandner SimonBrandner force pushed from ea6fb235 to 9339204a 2 years ago
SimonBrandner Get back event type
72808b52
SimonBrandner SimonBrandner force pushed from 9339204a to 7a484f24 2 years ago
SimonBrandner Change embedded E2EE implementation
ebcdd161
SimonBrandner SimonBrandner force pushed from 7a484f24 to ebcdd161 2 years ago
SimonBrandner SimonBrandner marked this pull request as ready for review 2 years ago
SimonBrandner SimonBrandner requested a review 2 years ago
SimonBrandner SimonBrandner removed review request 2 years ago
SimonBrandner SimonBrandner requested a review from richvdh richvdh 2 years ago
SimonBrandner SimonBrandner requested a review from weeman1337 weeman1337 2 years ago
dbkr Merge branch 'develop' into dbkr/matrixrtcsession
f2ce6583
richvdh
richvdh richvdh requested a review from dbkr dbkr 2 years ago
richvdh richvdh removed review request from richvdh richvdh 2 years ago
dbkr
dbkr commented on 2023-08-30
dbkr
dbkr commented on 2023-08-30
dbkr
dbkr commented on 2023-08-30
dbkr More log detail
4ea07544
dbkr Fix tests
cb3f9eac
SimonBrandner SimonBrandner changed the title E2EE for embedded mode Add E2EE for embedded mode of Element Call 2 years ago
SimonBrandner
SimonBrandner SimonBrandner requested a review from dbkr dbkr 2 years ago
dbkr Simplify updateCallMembershipEvent a bit
eb25a28a
dbkr Split up updateCallMembershipEvent some more
861b1e9d
SimonBrandner Use `crypto.getRandomValues()`
eb2b0caa
SimonBrandner Rename to `membershipToUserAndDeviceId()`
86bd66d7
SimonBrandner Better error
32ee6f7e
SimonBrandner Add log line
38802a8d
SimonBrandner Add comment
0a877e89
SimonBrandner Send call ID in enc events
6877c0ec
SimonBrandner Revert making `joinRoomSession()` async
c4cf319c
SimonBrandner Make `client` `private` again
bffaff42
SimonBrandner Merge remote-tracking branch 'upstream/dbkr/matrixrtcsession' into Si…
ab05751e
SimonBrandner SimonBrandner added T-Enhancement
dbkr
dbkr commented on 2023-09-01
SimonBrandner Just use `toString()`
2ac30f15
SimonBrandner Fix `callId` check
6ee456eb
SimonBrandner Fix map
34983992
SimonBrandner SimonBrandner requested a review from dbkr dbkr 2 years ago
SimonBrandner Fix map compare
9586c829
SimonBrandner Fix emitting
36a26621
SimonBrandner Explicit logging
46fb3576
SimonBrandner Refactor
451d26e7
SimonBrandner Make `updateEncryptionKeyEvent()` public
adeb5673
SimonBrandner Only update keys based on others
e44674b8
SimonBrandner Fix call order
f93f2f85
SimonBrandner Improve logging
94ab1ddc
SimonBrandner Avoid races
f65ed72d
SimonBrandner Revert "Avoid races"
d85af17a
SimonBrandner Add try-catch
838cf3aa
SimonBrandner Make `updateEncryptionKeyEvent()` private
38059fec
SimonBrandner Handle indices and throttling
72093c8c
Base automatically changed from dbkr/matrixrtcsession to develop 2 years ago
github-actions github-actions requested a review 2 years ago
SimonBrandner Merge remote-tracking branch 'upstream/develop' into SimonBrandner/fe…
d74bd520
SimonBrandner Fix merge mistakes
e288a4e9
SimonBrandner Mort post-merge fixes
0b72baad
dbkr Merge remote-tracking branch 'origin/develop' into SimonBrandner/feat…
798953b8
dbkr Split out key generation from key sending
df62adce
dbkr Merge remote-tracking branch 'origin/develop' into SimonBrandner/feat…
b389ef07
dbkr Remember and clear the timeout for the send key event
2b613523
dbkr Make key event resends more robust
9a42886e
dbkr Attempt to make tests pass
f8d2e5f0
dbkr crypto wasn't defined at all
19db44f1
dbkr Hopefully get interface right
a8ea202b
dbkr Merge remote-tracking branch 'origin/develop' into SimonBrandner/feat…
97808bc1
dbkr Fix key format on the wire to base64
4120641b
dbkr Add comment
5dd37f11
dbkr More standard method order
0ff9b37b
dbkr Rename encryptMedia
0f03cab9
dbkr Stop logging encryption keys now
04103680
dbkr
dbkr Use regular base64
93929f14
dbkr Re-add base64url
fe59d2a3
dbkr Add tests for randomstring
ab86c7cb
dbkr Switch between either browser or node crypto
89dafa10
dbkr Obviously crypto has already solved this
dbad9201
dbkr Some tests for MatrixRTCSession key stuff
6e80cf85
dbkr Test keys object contents
90b5c466
dbkr Change keys event format
c48f1ebe
dbkr Test key event retries
48051383
dbkr Test onCallEncryption
be353964
dbkr Merge remote-tracking branch 'origin/develop' into SimonBrandner/feat…
faa2e4f4
dbkr Test event sending & spam prevention
a3612436
dbkr Test event cancelation
bd279ee5
dbkr Test onCallEncryption called
3dd4ffb6
dbkr Merge remote-tracking branch 'origin/develop' into SimonBrandner/feat…
e7f2da34
dbkr Some errors didn't have data
8b544b6b
dbkr Fix binary key comparison
8f4edc72
dbkr Fix compare function with undefined values
e38530e4
dbkr Remove more key logging
858f67f7
robintown
robintown commented on 2023-10-30
dbkr Check content.keys is an array
583e1145
dbkr Check key index & key
2fe08289
dbkr Better function name
bf406562
dbkr Tests too
207ff68a
dbkr dbkr requested a review from robintown robintown 2 years ago
robintown
robintown approved these changes on 2023-10-31
dbkr dbkr merged bf81c4bf into develop 2 years ago
dbkr dbkr deleted the SimonBrandner/feat/e2ee-embeded branch 2 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone