Commit graph

1631 commits

Author SHA1 Message Date
Neil Alexander
78ab127ced
Some groundwork 2021-07-29 18:22:27 +01:00
Neil Alexander
39d66ed9d6
Some refactoring 2021-07-29 15:47:30 +01:00
Neil Alexander
b37b7c70b7
Return 200 if OK 2021-07-29 15:37:27 +01:00
Neil Alexander
49e0737fbf
Fix queries 2021-07-29 15:30:23 +01:00
Neil Alexander
4802216752
Initial signature upload support maybe 2021-07-29 15:29:16 +01:00
Neil Alexander
d84883d5c4
Add insert functions for cross-signing signatures 2021-07-29 14:47:09 +01:00
Neil Alexander
f1155d26bf
Allocate the map 2021-07-29 14:39:12 +01:00
Neil Alexander
fba18e8b17
Include signatures in key query 2021-07-29 14:35:42 +01:00
Neil Alexander
870c09be03
Fix error values 2021-07-29 13:13:10 +01:00
Neil Alexander
6e56dbc566
Only the master key signature matters 2021-07-29 13:10:10 +01:00
Neil Alexander
5de569be2c
A fix 2021-07-29 12:54:03 +01:00
Neil Alexander
5654b08819
Try this 2021-07-29 12:50:37 +01:00
Neil Alexander
2fa479edca
Validate signatures 2021-07-29 12:45:29 +01:00
Neil Alexander
7f06e8c633
Update to matrix-org/gomatrixserverlib@a2fa40c 2021-07-29 09:58:04 +01:00
Neil Alexander
495757c115
Update to matrix-org/gomatrixserverlib@cf79119 2021-07-29 09:51:49 +01:00
Neil Alexander
93bf1ffc10
Storing device keys part 1 2021-07-29 09:48:09 +01:00
Neil Alexander
ad05e3de6e
Clean up a bit 2021-07-28 17:09:43 +01:00
Neil Alexander
dd33f2b76d
Sanity checking of uploads 2021-07-28 17:07:57 +01:00
Neil Alexander
701ffdeb36
Generate key IDs automatically 2021-07-28 16:41:53 +01:00
Neil Alexander
b638b06ec1
Allocate the maps first 2021-07-28 16:30:28 +01:00
Neil Alexander
06de424b2b
Allocate more maps 2021-07-28 16:29:08 +01:00
Neil Alexander
8c8342cc78
Assign it after all 2021-07-28 16:27:19 +01:00
Neil Alexander
3dd80d4cd2
oh wait 2021-07-28 16:26:21 +01:00
Neil Alexander
946d15f976
Try assigning the map first 2021-07-28 16:25:29 +01:00
Neil Alexander
4176595d9c
Try with new scanner interface 2021-07-28 16:23:24 +01:00
Neil Alexander
2fd9102b08
Try this 2021-07-28 16:12:07 +01:00
Neil Alexander
64647a4f87
Fix QueryKeys ordering 2021-07-28 16:09:24 +01:00
Neil Alexander
351ac51691
Logging 2021-07-28 16:07:39 +01:00
Neil Alexander
525c9e054f
Don't send nulls 2021-07-28 16:03:06 +01:00
Neil Alexander
9a541a03fc
Expose the keys via SS API 2021-07-28 15:59:27 +01:00
Neil Alexander
4e36090846
Expose the keys via CS API 2021-07-28 15:58:18 +01:00
Neil Alexander
a6bb3fd0ac
Retrieve cross-signing keys sorta 2021-07-28 15:52:52 +01:00
Neil Alexander
44d022a385
Update to matrix-org/gomatrixserverlib@8efb6ce 2021-07-28 14:59:28 +01:00
Neil Alexander
ce721e84d8
Update to matrix-org/gomatrixserverlib@054b9cf 2021-07-28 14:53:35 +01:00
Neil Alexander
8e55c74334
Don't recreate indexes if they already exist 2021-07-28 14:41:14 +01:00
Neil Alexander
cd59f54af7
More wiring/boilerplate 2021-07-28 14:29:02 +01:00
Neil Alexander
a3962bd9b8
Fix build error 2021-07-28 14:11:08 +01:00
Neil Alexander
8683f7553f
Add EDU server wiring 2021-07-28 14:06:23 +01:00
Neil Alexander
dcadec88d9
Create tables 2021-07-28 13:48:23 +01:00
Neil Alexander
ecbc1bcd61
Clean up error messages since they are user-facing 2021-07-28 13:18:27 +01:00
Neil Alexander
87353a1cf0
Don't unmarshal request body twice 2021-07-28 13:15:54 +01:00
Neil Alexander
b3c0d5375a
UIA 2021-07-28 13:14:28 +01:00
Neil Alexander
7913593d9b
Fix unit tests, add unstable feature entry 2021-07-28 12:59:17 +01:00
Neil Alexander
a5bb2afbb5
Add API wiring 2021-07-28 12:31:37 +01:00
Neil Alexander
02997388f5
Update to matrix-org/gomatrixserverlib@a268856 2021-07-28 11:51:10 +01:00
Neil Alexander
9e4618000e
Alias key backup endpoints onto /unstable, fix key backup bugs (#1947)
* Default /unstable requests to stable endpoints if not overridden specifically with a custom route

* Rewrite URL

* Try something different

* Fix routing manually

* Fix selectLatestVersionSQL

* Don't return 0 if no backup version exists

* Log more useful error

* fix up replace keys check

* Don't enforce uniqueness on e2e_room_keys_versions_idx

Co-authored-by: kegsay <kegan@matrix.org>
2021-07-28 10:25:45 +01:00
Neil Alexander
3e01a88a0c
Update to neilalexander/utp@54ae7b1 2021-07-27 21:34:40 +01:00
kegsay
32bf14a37c
Key Backups (3/3) : Implement querying keys and various bugfixes (#1946)
* Add querying device keys

Makes a bunch of sytests pass

* Apparently only the current version supports uploading keys

* Linting
2021-07-27 19:29:32 +01:00
kegsay
b3754d68fc
Key Backups (2/3) : Add E2E backup key tables (#1945)
* Add PUT key backup endpoints and glue them to PerformKeyBackup

* Add tables for storing backup keys and glue them into the user API

* Don't create tables whilst still WIPing

* writer on sqlite please

* Linting
2021-07-27 17:08:53 +01:00
kegsay
a060df91e2
Use db writer on sqlite account table (#1944) 2021-07-27 12:47:50 +01:00