Neil Alexander
c880314b19
Set MaxOpenConnections/MaxIdleConnections to previous values
2020-08-10 13:35:57 +01:00
Neil Alexander
bf32618c7b
Tweak federation API test
2020-08-10 12:46:11 +01:00
Neil Alexander
48a8b2f542
Merge branch 'master' into neilalexander/config
2020-08-10 12:39:42 +01:00
Kegsay
fdabba1851
bugfix: when a user's key changes, don't notify everyone on the server ( #1253 )
...
* bugfix: when a user's key changes, don't notify everyone on the server
Instead just notify the users you share a room with.
* Update whitelist
2020-08-10 12:38:33 +01:00
Neil Alexander
1146389837
Validate config, reinstate appservice derived in directory, tweaks
2020-08-10 12:38:17 +01:00
Neil Alexander
253175edc2
Merge branch 'master' into neilalexander/config
2020-08-10 09:59:57 +01:00
Neil Alexander
58998e9874
Backoff fixes ( #1250 )
...
* Backoff fixes
* Update comments
* Fix destination queue
* Log why we're blacklisting
* Fix logic fail
* Logging level
* Fix bug
* Maybe fix that bug after all
* Fix debug output
* Fix tests
2020-08-07 18:50:29 +01:00
Kegan Dougal
366fd975c8
Fix unit tests
2020-08-07 17:58:44 +01:00
Kegsay
f371783da7
Finish inbound E2E device lists ( #1243 )
...
* Add tests for device list updates
* Add stale_device_lists table and use db before asking remote for device keys
* Fetch remote keys if all devices are requested
* Add display_name col to store remote device names
Few other tweaks to make `Server correctly handles incoming m.device_list_update`
pass.
* Fix sqlite otk bug
* Unbuffered channel to block /send causing sytest to not race anymore
* Linting and fix bug whereby we didn't send updated dl tokens to the client causing a tightloop on /sync sometimes
* No longer assert staleness as Update blocks on workers now
* Back out tweaks
* Bugfixes
2020-08-07 17:32:13 +01:00
Neil Alexander
30c2325eaf
Allow enforcing X.509 certificate validity (MSC1711) ( #1249 )
...
* Configurable X.509 certificate validation
* Fix dendritejs
* Update go.mod/go.sum for matrix-org/gomatrixserverlib#214
* Update sample config
2020-08-07 17:25:31 +01:00
Neil Alexander
5dd5a41119
Tweak log levels of some federation logging ( #1248 )
...
* Tweak log levels of some federation logging
* Update go.mod/go.sum for matrix-org/util#22 and matrix-org/gomatrixserverlib#215
2020-08-07 15:00:23 +01:00
Neil Alexander
4f7eb37792
Merge branch 'master' into neilalexander/config
2020-08-07 13:48:06 +01:00
Neil Alexander
6ce7af8a3e
Update go.mod/go.sum for matrix-org/gomatrixserverlib#213
2020-08-07 13:28:09 +01:00
Neil Alexander
ee22c6e440
Update go.mod/go.sum for matrix-org/gomatrixserverlib#212
2020-08-07 10:38:06 +01:00
Kegsay
32a4565b55
Add device list updater which manages updating remote device lists ( #1242 )
...
* Add device list updater which manages updating remote device lists
- Doesn't persist stale lists to the database yet
- Doesn't have tests yet
* Mark device lists as fresh when we persist
2020-08-06 17:48:10 +01:00
Neil Alexander
b7491aae03
Yggdrasil demo updates ( #1241 )
...
* PerformServersAlive in PerformBroadcastEDU
* Don't double-pointer
* More reliable QUIC session handling
* Direct peer lookup, other tweaks
* Tweaks
* Try to wake up queues on incoming QUIC session
* Set session callbak on gobind build
* Fix incoming session storage
* Stateless reset, other tweaks
* Reset sessions when coordinates change
* Disable HTTP connection reuse, tweak timeouts
2020-08-06 16:00:42 +01:00
Kegsay
642f9cb964
Process inbound device list updates from federation ( #1240 )
...
* Add InputDeviceListUpdate
* Unbreak unit tests
* Process inbound device list updates from federation
- Persist the keys in the keyserver and produce key changes
- Does not currently fetch keys from the remote server if the prev IDs are missing
* Linting
2020-08-05 13:41:16 +01:00
Neil Alexander
a6511677b5
Merge branch 'master' into neilalexander/config
2020-08-05 11:11:40 +01:00
Neil Alexander
15dc1f4d03
Use TransactionWriter in SQLite keyserver ( #1239 )
...
* Use TransactionWriter in SQLite keyserver
* Fix keyserver storage tests
2020-08-05 11:01:37 +01:00
Neil Alexander
22f028e141
SelectJoinedHostsForRooms should use QueryVariadic on SQLite ( #1238 )
...
* SelectJoinedHostsForRooms should use QueryVariadic on SQLite
* Fix strings.Replace
* Fix statement
2020-08-05 10:00:35 +01:00
Neil Alexander
6d3eb55b45
Set Listen address for all services in HTTP monolith mode
2020-08-04 16:43:05 +01:00
Neil Alexander
c00bcb3826
Fix gobind build
2020-08-04 14:12:50 +01:00
Neil Alexander
9c2c19679d
Fix federation sender build
2020-08-04 14:08:13 +01:00
Neil Alexander
3ec01bdb63
Merge branch 'master' into neilalexander/config
2020-08-04 14:04:04 +01:00
Kegan Dougal
2197e54441
Update whitelist
2020-08-04 13:50:32 +01:00
Kegan Dougal
3c8e9d1d20
Bump to gmsl version which fixes outbound fed invites to synapse
2020-08-04 13:48:57 +01:00
Kegan Dougal
8ee4c0f71e
Always set invite_room_state else synapse rejects invites
2020-08-04 12:14:18 +01:00
Kegan Dougal
4cf7c08146
Fix response format for federation /devices requests
2020-08-04 12:02:13 +01:00
Kegan Dougal
78ab33f91f
Unbreak postgres
2020-08-04 11:41:48 +01:00
Kegsay
0c4e8f6d4f
Send device list updates to servers (outbound only) ( #1237 )
...
* Add QueryDeviceMessages to serve up device keys and stream IDs
* Consume key change events in fedsender
Don't yet send them to destinations as we haven't worked them out yet
* Send device list updates to all required servers
* Glue it all together
2020-08-04 11:32:14 +01:00
Neil Alexander
47a1ae2c33
Fix unit tests
2020-08-04 09:56:22 +01:00
Neil Alexander
cc1d01cd28
Merge branch 'master' into neilalexander/config
2020-08-04 09:43:02 +01:00
Kegsay
fb56bbf0b7
Generate stream IDs for locally uploaded device keys ( #1236 )
...
* Breaking: add stream_id to keyserver_device_keys table
* Add tests for stream ID generation
* Fix whitelist
2020-08-03 17:07:06 +01:00
Kegsay
ffcb6d2ea1
Produce OTK counts in /sync response ( #1235 )
...
* Add QueryOneTimeKeys for /sync extensions
* Unbreak tests
* Produce OTK counts in /sync response
* Linting
2020-08-03 12:29:58 +01:00
Kegsay
b5cb1d1534
Fix edge cases around device lists ( #1234 )
...
* Fix New users appear in /keys/changes
* Create blank device keys when logging in on a new device
* Add PerformDeviceUpdate and fix a few bugs
- Correct device deletion query on sqlite
- Return no keys on /keys/query rather than an empty key
* Unbreak sqlite properly
* Use a real DB for currentstateserver integration tests
* Race fix
2020-07-31 14:40:45 +01:00
Kegsay
a7e67e65a8
Notify clients when devices are deleted ( #1233 )
...
* Recheck device lists when join/leave events come in
* Add PerformDeviceDeletion
* Notify clients when devices are deleted
* Unbreak things
* Remove debug logging
2020-07-30 18:00:56 +01:00
Neil Alexander
b17bc36de0
Update config test
2020-07-30 16:18:59 +01:00
Neil Alexander
fc274aa588
Merge branch 'master' into neilalexander/config
2020-07-30 16:15:10 +01:00
Neil Alexander
292a9ddd82
Fix Yggdrasil demo builds
2020-07-30 15:47:44 +01:00
Kegsay
a2174d3294
Implement /keys/changes ( #1232 )
...
* Implement /keys/changes
And refactor QueryKeyChanges to accept a `to` offset.
* Unbreak tests
* Sort keys when serialising log tokens
2020-07-30 14:52:21 +01:00
Neil Alexander
bfe4931af7
Fix sync API build
2020-07-30 14:02:36 +01:00
Neil Alexander
930ced1102
Merge branch 'master' into neilalexander/config
2020-07-30 13:58:28 +01:00
Neil Alexander
ed6c8af282
Include database connection string in database options
2020-07-30 13:29:58 +01:00
Kegsay
9355fb5ac8
Hook up device list updates to the sync notifier ( #1231 )
...
* WIP hooking up key changes
* Fix import cycle, get tests passing and binary compiling
* Linting and update whitelist
2020-07-30 11:15:46 +01:00
Kegsay
0fdd4f14d1
Add support for logs in StreamingToken ( #1229 )
...
* Add support for logs in StreamingToken
Tokens now end up looking like `s11_22|dl-0-123|ab-0-12224`
where `dl` and `ab` are log names, `0` is the partition and
`123` and `12224` are the offsets.
* Also test reserialisation
* s/|/./g so tokens url escape nicely
2020-07-29 19:00:04 +01:00
Neil Alexander
393775ae68
Fix client API test
2020-07-29 15:48:46 +01:00
Neil Alexander
dc416ebdb2
Maybe fix appservices
2020-07-29 15:33:23 +01:00
Neil Alexander
16984262bc
Fix current state server test (sort of)
2020-07-29 15:26:56 +01:00
Neil Alexander
d6a6b27c5c
Further tweaks
2020-07-29 13:21:43 +01:00
Neil Alexander
65cae7a8f4
Fix more tests
2020-07-29 10:53:50 +01:00