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