J. Ryan Stinnett
6b38868de6
Relax identity server discovery checks to FAIL_PROMPT
...
As discussed in MSC2284, this relaxes the identity server discovery to a
`FAIL_PROMPT` state so that clients can choose to warn and continue.
Part of https://github.com/vector-im/riot-web/issues/11102
Implements https://github.com/matrix-org/matrix-doc/pull/2284
2019-11-26 12:04:07 -07:00
Matthew Hodgson
01a46ad880
log outbound to_device msgs for tracking keyshares
2019-11-26 12:03:34 -07:00
Matthew Hodgson
46f8251e94
s/console/logger/ as per review
2019-11-26 12:03:28 -07:00
Matthew Hodgson
77f882f45a
log keyshare ID
2019-11-26 12:03:24 -07:00
Matthew Hodgson
8c72fd104e
lint
2019-11-26 12:03:20 -07:00
Matthew Hodgson
549656884b
expand e2ee logging to better debug UISIs
2019-11-26 12:03:11 -07:00
Bruno Windels
c785b10603
Merge pull request #1077 from matrix-org/bwindels/dm-verif-in-e2ee-rooms
...
Fix SAS verification in encrypted DMs
2019-11-19 14:32:01 +00:00
Bruno Windels
90512bdd5f
also listen for non-encrypted events when verifying over DM
2019-11-19 15:23:05 +01:00
J. Ryan Stinnett
10751e9a6d
Merge pull request #1078 from matrix-org/jryans/4s-new-key-backup
...
Cross-signing / secret storage tweaks
2019-11-19 12:54:38 +00:00
J. Ryan Stinnett
d51c5a2d68
Rename secret storage file to match the default class
2019-11-19 11:21:20 +00:00
J. Ryan Stinnett
1f24845431
Standardise naming of key ID variables in secret storage
...
Keys in secret storage have both an ID and an optional name, but most `keyName`
variables were actually storing the ID value. This renames and standardises to
avoid confusion.
2019-11-19 10:48:47 +00:00
Bruno Windels
3b02b62ba5
add m.relates_to back to the content on the requesting side for e2e room
...
as it needs to be added to the commitment hash
as before, getContent() in an e2ee room doesn't return the relation
2019-11-18 18:34:05 +01:00
Bruno Windels
24ae787736
make it explicit that the transaction id is added for the start event
...
as it should included in the commitment hash
2019-11-18 18:33:11 +01:00
Bruno Windels
cd735ef459
use getRelation as getContent()[m.relates_to] doesn't work in e2ee rooms
2019-11-18 18:31:39 +01:00
Bruno Windels
180fea8ace
only send decrypted events to Verifier in e2ee rooms
2019-11-18 18:30:43 +01:00
J. Ryan Stinnett
5f02c4b5ad
Namespace default secret storage key methods
2019-11-18 15:19:18 +00:00
J. Ryan Stinnett
730f7d3dff
Extract secret storage algorithm to constant
2019-11-18 14:38:02 +00:00
David Baker
d32033f105
Merge remote-tracking branch 'origin/develop' into dbkr/fix_key_backup_local_trust
2019-11-18 14:10:04 +00:00
David Baker
440274d639
Fix local trust for key backups
...
https://github.com/matrix-org/matrix-js-sdk/pull/832 added
cross-signing checks for backup trust but we failed to merge in the
check for the the backup being trusted locally.
Fixes https://github.com/vector-im/riot-web/issues/11404
2019-11-18 13:30:00 +00:00
J. Ryan Stinnett
f93130a8a7
Add method to check whether cross-signing has keys
2019-11-18 12:32:39 +00:00
Bruno Windels
3d9bddfb9f
Merge pull request #1072 from matrix-org/bwindels/userinfomakeover
...
Add method to get last active timestamp in room
2019-11-15 16:39:31 +00:00
Travis Ralston
439abbcce9
Merge pull request #1071 from matrix-org/travis/new-deactivate
...
Check the right Synapse endpoint for determining admin capabilities
2019-11-15 09:17:12 -07:00
David Baker
ac91367801
Merge pull request #832 from matrix-org/dbkr/cross_signing
...
Cross Signing Support
2019-11-15 16:09:06 +00:00
David Baker
2a63cc474c
Update import
2019-11-15 15:57:25 +00:00
David Baker
56261263f5
Rename backup_password & functions
...
Not Just For Backups Anymore
2019-11-15 15:54:43 +00:00
David Baker
04b57bbe9d
Remove ghost of some old code
2019-11-15 15:27:02 +00:00
David Baker
c550f83a04
update jsdoc
2019-11-15 14:57:29 +00:00
David Baker
5224ef4b1f
This is now implemented
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:56:05 +00:00
David Baker
2ab033e76e
is now implemented
2019-11-15 14:45:43 +00:00
David Baker
fa2e669eda
More jsdoc updates
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:44:08 +00:00
David Baker
f0ba1f2ac0
c+p fail
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:43:41 +00:00
David Baker
6d0237ec71
This now returns DeviceTrustLevel too
2019-11-15 14:42:26 +00:00
David Baker
97dff4640a
Capitalise jsdoc
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:41:12 +00:00
David Baker
00b571a429
c+p fail
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:40:57 +00:00
David Baker
86e0f49231
c+p fail
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:40:16 +00:00
David Baker
f2f205f9bd
Typo
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:38:44 +00:00
David Baker
f84ec090cb
backticks in jsdoc
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:38:27 +00:00
David Baker
d37ed9ff6f
lint
2019-11-15 12:39:14 +00:00
David Baker
fe010242d9
Why is 'cross-signing' so hard to type?
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 12:30:05 +00:00
David Baker
545ebf81bf
Move Crypto.prototype.init back to its rightful place
2019-11-15 12:29:03 +00:00
David Baker
408934932a
copy jsdoc to internal methods
2019-11-15 12:27:14 +00:00
David Baker
6f42824c35
Typo
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 12:26:24 +00:00
David Baker
c3215d51bd
Switch the CroosSigningLevel constants
...
we check in resetKeys and set all if it's & 4 anyway, so may as well
make the constants a normal bitmask and then we can use the MASTER
constant below.
2019-11-15 12:23:37 +00:00
David Baker
e541b96a71
Change check{User|Device}Trust interfaces
...
...to return objects with functions rather than a bitmask
2019-11-15 12:15:13 +00:00
Travis Ralston
904a2f466e
Maybe use the right user ID too
2019-11-14 11:54:13 -07:00
Travis Ralston
bad48da11a
Check the right Synapse endpoint for determining admin capabilities
2019-11-14 11:50:06 -07:00
David Baker
ce2d1d6e2b
Don't emit event here, as per comment
2019-11-14 17:41:58 +00:00
Bruno Windels
2820071db1
add method to get last active timestamp in room
2019-11-14 17:00:28 +01:00
David Baker
5937185ce9
Assert usage of setDeviceVerification for cross-signing keys
...
We can't mark a cross-signing key as blocked/unblocked, known/unknown
or unverified, so throw an exception instead of doing nothing.
Also comment what's going on in this function.
2019-11-14 14:24:41 +00:00
David Baker
be9b7a0d24
Remove getPublicKey
...
which was the same as getId
2019-11-14 14:10:13 +00:00