Commit graph

9 commits

Author SHA1 Message Date
Neil Alexander 1195dd7139
Various wtweaks 2021-08-06 18:00:54 +01:00
Neil Alexander d57c39ce7f
Fix /user/keys/query bug, review comments, update sytest-whitelist 2021-08-06 15:50:52 +01:00
Neil Alexander 6cc888289e
Fixes 2021-08-06 14:59:13 +01:00
Neil Alexander 0c131bf333
Tweaks 2021-08-06 14:39:19 +01:00
Neil Alexander c180fea5db
Match by key IDs 2021-08-06 14:34:30 +01:00
Neil Alexander 98d5aac9c9
Decorate key ID properly 2021-08-06 12:48:00 +01:00
Neil Alexander e83f55063d
Handle other signatures 2021-08-06 12:04:36 +01:00
Neil Alexander e95b1fd238
Cross-signing validation for self-sigs, expose signatures over /user/keys/query and /user/devices/{userId} (#1962)
* Enable unstable feature again

* Try to verify when a device signs a key

* Try to verify when a key signs a device

* It's the self-signing key, not the master key

* Fix error

* Try to verify master key uploads

* Actually we can't guarantee we can do that so nevermind

* Add signatures into /devices/list request

* Fix nil pointer

* Reprioritise map creation

* Don't skip devices that don't have signatures

* Add some debug logging

* Fix logic error in QuerySignatures

* Fix bugs

* Expose master and self-signing keys on /devices/list hopefully

* maps are tedious

* Expose signatures via /keys/query

* Upload signatures when uploading keys

* Fixes

* Disable the feature again
2021-08-06 10:13:35 +01:00
Neil Alexander eb0efa4636
Cross-signing groundwork (#1953)
* Cross-signing groundwork

* Update to matrix-org/gomatrixserverlib#274

* Fix gobind builds, which stops unit tests in CI from yelling

* Some changes from review comments

* Fix build by passing in UIA

* Update to matrix-org/gomatrixserverlib@bec8d22

* Process master/self-signing keys from devices call

* nolint

* Enum-ify the key type in the database

* Process self-signing key too

* Fix sanity check in device list updater

* Fix check

* Fix sytest, hopefully

* Fix build
2021-08-04 17:56:29 +01:00