Commit graph

1336 commits

Author SHA1 Message Date
Neil Alexander 37c57e54ae
Merge branch 'master' into kegan/msc2836-2 2020-12-03 14:13:42 +00:00
Petter Jakub Økland 19b1d40d64
Hiawatha reverse proxy sample for monolith and fixes to polylith sample (#1609)
* Created polylith reverse proxy sample for Hiawatha

* Create monolith-sample.conf

* Added timeout to proxies and binding explanation.

* Fixed typo.

* Consistency with regards to polylith-sample.conf.
2020-12-03 13:52:00 +00:00
Neil Alexander 52905ffb82
Update PROFILING.md 2020-12-03 13:49:34 +00:00
Neil Alexander 253b05ccde
Update PROFILING.md 2020-12-03 13:48:02 +00:00
Neil Alexander 246866a131
Add PROFILING.md 2020-12-03 13:46:56 +00:00
Neil Alexander eef8f88092
Update FAQ.md 2020-12-03 13:28:41 +00:00
Neil Alexander a4bf9921ad
Update FAQ.md 2020-12-03 13:27:48 +00:00
Neil Alexander 71327b8efa
Add FAQ.md 2020-12-03 13:22:32 +00:00
Neil Alexander be7d8595be
Peeking updates (#1607)
* Add unpeek

* Don't allow peeks into encrypted rooms

* Fix send tests

* Update consumers
2020-12-03 11:11:46 +00:00
alexkursell 2b03d24358
Fix /joined_members API response (#1606)
* Fix /joined_members API response

* Fix golint issue
2020-12-03 11:01:49 +00:00
Neil Alexander ec7a0e42ae
Simplify create-account (#1608) 2020-12-03 10:55:17 +00:00
Neil Alexander 1f3a498601
Version 0.3.2 2020-12-02 17:46:28 +00:00
Neil Alexander b5aa7ca3ab
Top-level setup package (#1605)
* Move config, setup, mscs into "setup" top-level folder

* oops, forgot the EDU server

* Add setup

* goimports
2020-12-02 17:41:00 +00:00
Neil Alexander 3ef6187e96
Revert "Update quic-go"
This reverts commit 93c3f1a7b3.
2020-12-02 17:03:36 +00:00
Neil Alexander 93c3f1a7b3
Update quic-go 2020-12-02 16:39:41 +00:00
Kegan Dougal e0ab7c9e1b Enable msc2836 for ygg 2020-12-02 16:08:14 +00:00
Kegan Dougal 72e7bbd6ec Namespace mscs db 2020-12-02 15:53:18 +00:00
Kegan Dougal c0af70254b Merge branch 'master' into kegan/msc2836-2 2020-12-02 15:49:33 +00:00
Kegan Dougal 4c3f929f8e Enable MSC2836 in the p2p demo 2020-12-02 15:31:24 +00:00
Neil Alexander 417c7d3569
Send client events to appservices (#1603)
* Send client events to appservices

* FormatSync instead of FormatAll
2020-12-02 15:14:12 +00:00
Neil Alexander bdf6490375
Add ability to disable federation (#1604)
* Allow disabling federation

* Don't start federation queues if disabled

* Fix for Go 1.13
2020-12-02 15:10:03 +00:00
Kegsay b68cd6fff5
Merge branch 'master' into kegan/msc2836-2 2020-12-02 15:03:15 +00:00
Neil Alexander b4c3692dcc
Optimise CheckServerAllowedToSeeEvent (#1602)
* Try to limit how many state events we have to unmarshal

* Comments
2020-12-02 11:45:50 +00:00
Kegan Dougal fcf0451975 Remove cross-room threading impl 2020-12-01 18:27:00 +00:00
Ariadne Conill d5b8260196
syncapi/requestpool: fix initial sync logic error in appendAccountData() (#1594)
* requestpool: fix initial sync logic error in appendAccountData()

In initial sync, req.since is no longer nil, but instead,
req.since.PDUPosition() and req.since.EDUPosition() returns 0.

This ensures forgotten rooms do not come back as zombies.

* syncapi/requestpool: reintroduce req.since == nil check
2020-12-01 17:01:34 +00:00
bodqhrohro c667a19775
Assign CREATEDB permission to the test user (#1591)
During the tests databases get recreated, and this fails despite of the
user being the owner of a dropped database. Maybe related to certain
PostgreSQL version.

Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com>
2020-12-01 16:59:47 +00:00
Kegan Dougal 4a31e5bba7 Use /ev_rel rather than /event as the former includes child metadata 2020-12-01 16:30:51 +00:00
Kegan Dougal cbbd547fcc Do federated hits for include_children if we have unexplored children 2020-12-01 15:29:04 +00:00
Kegan Dougal 5c9cf46ba4 Add fetchUnknownEvent 2020-12-01 11:35:01 +00:00
Neil Alexander c16abb089c
Give fsAPI to keyserver in polylith/gobind 2020-12-01 10:52:02 +00:00
Kegan Dougal 14525f6d11 Implement storage functions for children 2020-11-30 16:00:48 +00:00
Kegan Dougal e66c82bc9c Add logic for exploring threads and tracking children; missing storage functions 2020-11-30 14:16:24 +00:00
Kegan Dougal d222289821 Add children and children_hash to unsigned, with tests 2020-11-26 14:53:24 +00:00
Kegan Dougal 91ee096b26 Actually send message events to the roomserver.. 2020-11-25 14:59:17 +00:00
Kegan Dougal 095cc3e7bf Handle direction: up 2020-11-25 12:04:23 +00:00
Kegan Dougal e278ce93af under CI: more logging and enable mscs, nil fix 2020-11-24 17:22:36 +00:00
Kegan Dougal 1bd676a257 Fix pointers 2020-11-24 14:59:05 +00:00
Kegan Dougal 04e879b581 Add auth chain to federated response 2020-11-24 11:56:11 +00:00
Kegan Dougal 4b4ff74103 Add QueryAuthChain for use with MSC2836 2020-11-24 11:36:39 +00:00
Kegan Dougal 711ec94b5f Use the right client/fed struct in the response 2020-11-24 11:18:40 +00:00
Kegan Dougal 0e911a0eea initial cut of federated threading 2020-11-24 11:01:12 +00:00
Kegan Dougal 7bfd7bbeb1 Extract room ID and servers from previous events; refactor a bit 2020-11-23 18:38:52 +00:00
Kegan Dougal d3451b1ab8 auth remote servers 2020-11-23 18:00:53 +00:00
Kegan Dougal dd063a2722 Call MSC2836EventRelationships in reqCtx 2020-11-23 16:59:13 +00:00
Kegan Dougal 3237cad4c2 Add MSC2836EventRelationships to fedsender 2020-11-23 16:46:15 +00:00
Kegan Dougal 27e0493a35 Update GMSL 2020-11-20 16:45:11 +00:00
Neil Alexander 9c52f82736
Version 0.3.1 2020-11-20 11:38:58 +00:00
Neil Alexander c636be5070
Update last seen on sync requests (#1593)
* Update last seen on sync requests

* Fix MSC2836 unit tests

* Only update once per minute

* Remove debug logging

* Configurable option

* Simplify updateLastSeen/cleanLastSeen
2020-11-20 11:29:02 +00:00
alexkursell 13cbd50dc2
Add last_seen_ip and last_seen_ts to /devices response (#1592) 2020-11-20 09:26:50 +00:00
Kegsay 6353b0b7e4
MSC2836: Threading - part one (#1589)
* Add mscs/hooks package, begin work for msc2836

* Flesh out hooks and add SQL schema

* Begin implementing core msc2836 logic

* Add test harness

* Linting

* Implement visibility checks; stub out APIs for tests

* Flesh out testing

* Flesh out walkThread a bit

* Persist the origin_server_ts as well

* Edges table instead of relationships

* Add nodes table for event metadata

* LEFT JOIN to extract origin_server_ts for children

* Add graph walking structs

* Implement walking algorithm

* Add more graph walking tests

* Add auto_join for local rooms

* Fix create table syntax on postgres

* Add relationship_room_id|servers to the unsigned section of events

* Persist the parent room_id/servers in edge metadata

Other events cannot assert the true room_id/servers for the
parent event, only make claims to them, hence why this is
edge metadata.

* guts to pass through room_id/servers

* Refactor msc2836 to allow handling from federation

* Add JoinedVia to PerformJoin responses

* Fix tests; review comments
2020-11-19 11:34:59 +00:00