Matthew Hodgson
36e32f14e6
add perform_handle_remote_peek.go
2020-09-12 23:01:43 +01:00
Matthew Hodgson
59e2be7113
rename remote_peeks_table as outbound_peeks_table
2020-09-12 23:01:06 +01:00
Matthew Hodgson
4e96e62923
rename RemotePeeks as OutboundPeeks
2020-09-12 22:59:25 +01:00
Matthew Hodgson
0ae0d11446
reimplement SS /peek to prod the RS to tell the FS about the peek
2020-09-12 22:45:00 +01:00
Matthew Hodgson
803647be56
handle SS /peek
2020-09-12 01:24:28 +01:00
Matthew Hodgson
c6a2604edc
support returning current state from QueryStateAndAuthChain
2020-09-12 01:23:57 +01:00
Matthew Hodgson
fff18454b1
todo for authenticating state returned by /peek
2020-09-12 01:23:32 +01:00
Matthew Hodgson
f8bb4487df
fix sql thinko
2020-09-12 00:24:22 +01:00
Matthew Hodgson
410ac724a6
reinstate federated peeks in the roomserver (doh)
2020-09-12 00:23:57 +01:00
Matthew Hodgson
df29509e7e
fix build & lint
2020-09-11 22:39:50 +01:00
Matthew Hodgson
a5c0521c3f
fix build & lint
2020-09-11 22:31:56 +01:00
Matthew Hodgson
65e59a1af9
support SendEventWithState with optional event
2020-09-11 22:31:32 +01:00
Matthew Hodgson
4ef6a3c759
clean up bad merge
2020-09-11 21:06:51 +01:00
Matthew Hodgson
baee97bff7
(almost) make it build
2020-09-11 21:04:33 +01:00
Matthew Hodgson
f236e8290d
Merge branch 'master' into matthew/peeking-over-fed
2020-09-11 19:44:40 +01:00
Matthew Hodgson
98cf8986a4
Revert "Merge branch 'kegan/HACK-goid-sqlite-db-is-locked' into matthew/peeking"
...
This reverts commit 3cebd8dbfb , reversing
changes made to ed4b3a58a7 .
2020-09-11 19:44:09 +01:00
Kegsay
913020e4b7
Add hardware requirements; fixes #324 ( #1420 )
2020-09-10 17:37:31 +01:00
Kegsay
95d7e2336d
Add support for database migrations ( #1416 )
...
* Add support for database migrations
Closes #1246
This PR does NOT add any migrations as an example. I have
manually tested that the library works with SQL and Go based
upgrades correctly. Documentation should be sufficient for
devs to add migrations.
* Clarifications
* Linting
2020-09-10 15:10:32 +01:00
Matthew Hodgson
39507bacc3
Peeking via MSC2753 ( #1370 )
...
Initial implementation of MSC2753, as tested by https://github.com/matrix-org/sytest/pull/944 .
Doesn't yet handle unpeeks, peeked EDUs, or history viz changing during a peek - these will follow.
https://github.com/matrix-org/dendrite/pull/1370 has full details.
2020-09-10 14:39:18 +01:00
Neil Alexander
35564dd73c
Process membership updates in writers ( #1414 )
2020-09-08 17:48:07 +01:00
Neil Alexander
a0f2a4510f
Exclude deleted keys from selectBatchDeviceKeysSQL ( #1412 )
2020-09-08 17:47:54 +01:00
Kegsay
b4bd0cc0f5
Track goids when running with tracing enabled ( #1413 )
...
* Track goids when running with tracing enabled
* Linting
2020-09-08 17:30:05 +01:00
Neil Alexander
668a722ee0
Backoff for 401s ( #1410 )
...
* Backoff for 401s
* Human-readable retry_after in logs
2020-09-08 13:41:08 +01:00
Neil Alexander
726ad6ce2e
Backoff ignore invalid signatures ( #1408 )
2020-09-08 10:28:13 +01:00
Neil Alexander
1602df8752
Ignore state events with invalid signatures when joining rooms ( #1407 )
...
* Use state from RespSendJoin post-check
* Don't create input events for invalid events
* Let's try this again
* Update gomatrixserverlib
* Update gomatrixserverlib to matrix-org/gomatrixserverlib@38f437f
2020-09-07 16:54:51 +01:00
Kegsay
c992f4f1f4
Remove current state server ( #1405 )
...
* Remove current state server
Closes #1365 #1272 #1357
* Remove current state server from scripts/docs
2020-09-07 14:47:59 +01:00
Neil Alexander
8589f8373e
Update gomatrixserverlib to matrix-org/gomatrixserverlib@66753e2
2020-09-07 14:39:04 +01:00
Kegsay
7913759921
Remove QueryBulkStateContent from current state server ( #1404 )
...
* Remove QueryBulkStateContent from current state server
Expected fail due to db impl not existing
* Implement query bulk state content
* Fix up rejecting invites over federation
* Fix bulk content marshalling
2020-09-07 12:38:09 +01:00
Neil Alexander
895ead8048
Use background context when processing event with missing state ( #1403 )
...
* Use background context when processing event with missing state
* Five minute timeout
* Remove context from txnreq, thread through instead
* Fix unit tests
2020-09-07 12:32:40 +01:00
Neil Alexander
b9caccbce8
Update GetStateEvent behaviour ( #1399 )
2020-09-04 19:40:21 +01:00
Kegsay
088294ee65
Remove QueryRoomsForUser from current state server ( #1398 )
2020-09-04 15:58:30 +01:00
Neil Alexander
5076925c18
Password changes ( #1397 )
...
* User API support for password changes
* Password changes in client API
* Update sytest-whitelist
* Remove debug logging
* Default logout_devices to true
* Fix deleting devices by local part
2020-09-04 15:16:13 +01:00
Kegsay
ca8dcf46b7
Remove QuerySharedUsers from current state server ( #1396 )
...
* Remove QuerySharedUsers from current state server
* Bugfixes
2020-09-04 14:25:01 +01:00
Kegsay
81688d6bde
Remove QueryCurrentState from current-state-server ( #1395 )
2020-09-04 12:30:56 +01:00
Kegsay
67cc8619d3
Remove QueryKnownUsers from current state server ( #1393 )
...
* Remove QueryKnownUsers from current state server
* Fix HTTP mode
2020-09-04 11:46:01 +01:00
Neil Alexander
c63abc8660
Sync bug fixes ( #1394 )
...
* Sync bug fixes
* Remove logging
2020-09-04 11:20:47 +01:00
Kegsay
2570418f42
Remove ServerACLs from the current state server ( #1390 )
...
* Remove ServerACLs from the current state server
Functionality moved to roomserver
* Nothing to see here, move along
2020-09-04 10:40:58 +01:00
Neil Alexander
f1a98e1193
Fix nil txn bug
2020-09-04 10:22:32 +01:00
Matthew Hodgson
4ca2cf49f8
typo
2020-09-04 01:44:38 +01:00
Matthew Hodgson
c1f1fcdc67
WIP of implementing MSC2444
2020-09-04 01:38:22 +01:00
Matthew Hodgson
994cc18b9c
correctly refactor perform_peek
2020-09-03 23:18:39 +01:00
Matthew Hodgson
3c5e079b87
fix package
2020-09-03 23:06:14 +01:00
Matthew Hodgson
da3742c8e2
move perform_peek
2020-09-03 22:39:12 +01:00
Matthew Hodgson
eda84cd915
reject peeks for non-worldreadable rooms
2020-09-03 22:15:30 +01:00
Neil Alexander
04bc09f591
Defer keyserver and federationsender wakeups to give HTTP listeners time to start ( #1389 )
2020-09-03 21:17:55 +01:00
Matthew Hodgson
8712ea337a
Merge branch 'master' into matthew/peeking
2020-09-03 21:01:30 +01:00
Kegsay
33b8143a95
Implement more CSS storage functions in roomserver ( #1388 )
2020-09-03 18:27:02 +01:00
Kegsay
b20386123e
Move currentstateserver API to roomserver ( #1387 )
...
* Move currentstateserver API to roomserver
Stub out DB functions for now, nothing uses the roomserver version yet.
* Allow it to startup
* Implement some current-state-server storage interface functions
* Add missing package
2020-09-03 17:20:54 +01:00
Neil Alexander
6150de6cb3
FIFO ordering of input events ( #1386 )
...
* Initial FIFOing of roomserver inputs
* Remove EventID response from api.InputRoomEventsResponse
* Don't send back event ID unnecessarily
* Fix ordering hopefully
* Reduce copies, use buffered task channel to reduce contention on other rooms
* Fix error handling
2020-09-03 15:22:16 +01:00
Neil Alexander
74743ac8ae
Rate limiting ( #1385 )
...
* Initial rate limiting
* Move rate limiting to client API
* Update rate limits to hopefully be self-cleaning
* Use X-Forwarded-For, add comments
* Reduce rate limit threshold
* Tweak interval
* Configurable backoff
* Review comments, set cleanup interval to 30 seconds
* Allow generate-config to produce sane CI config
* Fix Complement dockerfile
2020-09-03 10:12:11 +01:00