aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-09Version 0.8.8 (#2525)v0.8.8Neil Alexander
2022-06-09Allow "registration is idempotent, with username specified" to pass (#2488)Till
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-06-08Update sample configs for `exempt_user_ids`Neil Alexander
2022-06-07Optimise state res v2 by only updating the allower when necessary (update to ↵Neil Alexander
matrix-org/gomatrixserverlib@e55d796)
2022-06-07Optimise state res v2 by parsing power level content less often (update to ↵Neil Alexander
matrix-org/gomatrixserverlib@e938c07)
2022-06-07Rate limiting changes (#2519)Neil Alexander
* Rate limiting changes This makes the following changes: * For logged in users, the rate limiting now applies to the device session rather than the remote IP address; * For non-logged in users, the rate limiting continues to apply to remote address as it does today; * It is now possible to add user IDs to the `exempt_user_ids` option under `rate_limiting` to exclude bots from rate limiting; * Admin and appservice users are now exempt from rate limiting by default. * Fix build with media API
2022-06-07Optimise `loadAuthEvents`, add roomserver tracingNeil Alexander
2022-06-07Avoid panicking unnecessarily when shutting down the `gobind` P2P demos (#2520)Neil Alexander
2022-06-06Send tombstone to other servers when upgrading roomsNeil Alexander
2022-06-06Room upgrade tweaksNeil Alexander
Squashed commit of the following: commit 7a1568c716866594af6d0b1d561c58c96de29b20 Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Mon Jun 6 15:17:49 2022 +0100 Make errors more useful commit 64befe7c9a901b00650442171660c2dc4ea575fa Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Mon Jun 6 15:02:40 2022 +0100 Tweak ordering a bit
2022-06-06Fix panic in `QueryRestrictedJoinAllowed`Neil Alexander
2022-06-03Make setting state idempotent (#2512)Till
* Make Setting state twice is idempotent pass * Add passing tests * PR comment & comments
2022-06-01Version 0.8.7 (#2509)v0.8.7Neil Alexander
2022-06-01Revert #2457Neil Alexander
Squashed commit of the following: commit 2bd0daf4d61376d2dd56628eaff267b0bc63e116 Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Wed Jun 1 09:55:54 2022 +0100 Revert resolving old extremities as well as new This may no longer be needed with the new state fixes and probably just burns more CPU time than is strictly necessary.
2022-06-01Reduce error levels on device list updateNeil Alexander
2022-06-01Fix bugs related to state resolution (#2507)Neil Alexander
* Fix bugs related to state resolution * Clean up `resolve-state` * Don't panic when entries can't be found * Ensure we have state entries for the auth events * Revert "Ensure we have state entries for the auth events" This reverts commit 9b13b7ed37f40ce6d1301d9cb423a27b0db9c897. * Revert "Revert "Ensure we have state entries for the auth events"" This reverts commit d86db197e3e317f7d64ec6722cc60533872f4617. * Fix bug * Try that again * Update gomatrixserverlib * Remove recursion from `loadAuthEvents`
2022-06-01Update versionsNeil Alexander
2022-05-31Fix #2498 (#2506)Till
2022-05-31Fix `pq: invalid input syntax for integer` when trying to get a numeric ↵Till
localpart (#2505) * Match at least once * Add the test
2022-05-30Fix bugs in `resolve-state` toolNeil Alexander
2022-05-30Sort `resolve-state` outputNeil Alexander
2022-05-30Update readmeNeil Alexander
2022-05-30Add missing indexes to federation API destination queues (#2502)Neil Alexander
* Add missing indexes to federation API destination queues * Fix duplicate name
2022-05-30Add support for room version 10 (update to matrix-org/gomatrixserverlib#315)Neil Alexander
2022-05-26Add support for MSC3787 and `org.matrix.msc3787` room version (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#310)
2022-05-26Version 0.8.6 (#2497)v0.8.6Neil Alexander
2022-05-26Upgrade various dependencies (#2496)Neil Alexander
* Upgrade various dependencies * Yaml dependency too
2022-05-26Update to matrix-org/gomatrixserverlib#314Neil Alexander
2022-05-26Make logging output for state deletions a bit betterNeil Alexander
2022-05-25Update 1_planning.md (#2467)Brandon
* Update 1_planning.md Modes section of the planning component of the documentation rewritten for grammar and clarity. * Update 1_planning.md Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-05-25Try to spot state deletions when they happen (#2489)Neil Alexander
2022-05-25Mark room versions 8 and 9 as stableNeil Alexander
2022-05-25Fix using the remote provided event from `/send_join` (#2490)Neil Alexander
2022-05-25Fix the `resolve-state` toolNeil Alexander
2022-05-25Restricted join support on `/make_join`, `/send_join` (#2478)Neil Alexander
* Add `QueryRestrictedJoinAllowed` * Add `Resident` flag to `QueryRestrictedJoinAllowedResponse` * Check restricted joins on federation API * Return `Restricted` to determine if the room was restricted or not * Populate `AuthorisedVia` properly * Sign the event on `/send_join`, return it in the `/send_join` response in the `"event"` key * Kick back joins with invalid authorising user IDs, use event from `"event"` key if returned in `RespSendJoin` * Use invite helper in `QueryRestrictedJoinAllowed` * Only use users with the power to invite, change error bubbling a bit * Placate the almighty linter One day I will nuke `gocyclo` from orbit and everything in the world will be much better for it. * Review comments
2022-05-24Allow authing invited user in rooms with `"restricted"` join rule (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#313)
2022-05-24Fix `join_authorised_via_users_server` key name in `SendEvent`Neil Alexander
2022-05-24Give PL100 to invited users in `trusted_private_chat` preset (#2485)Neil Alexander
2022-05-24Strip `join_authorised_by_users_server` when updating membership events ↵Neil Alexander
using `/rooms/{roomID}/state` (#2482)
2022-05-24Handle invite in appservice roomserver consumer (#2476)Aaron Ogle
Signed-off-by: Aaron Ogle <aaron@geekgonecrazy.com>
2022-05-23Preserve content from `/make_join` as well as supplied content in the ↵Neil Alexander
request (#2481)
2022-05-23Fix control flow related to joining restricted v8/v9 rooms (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#312)
2022-05-23Allow defers to run in `TestMain` in federation API testsNeil Alexander
2022-05-23Update to matrix-org/gomatrixserverlib#311 (#2479)Neil Alexander
* Update to matrix-org/gomatrixserverlib#311 * Update to squash commit
2022-05-20Fix `/deactivate` (#2474)Till
* Fix /deactivate * Update test to correctly check the expected response
2022-05-19syncapi: don't return early for no-op incremental syncs (#2473)kegsay
* syncapi: don't return early for no-op incremental syncs Comments explain why, but basically it's an inefficient use of bandwidth and some sytests rely on /sync to block. * Honour timeouts * Actually return a response with timeout=0
2022-05-18Really SKIP_NODB (#2472)Till
* Really SKIP_NODB * Use fatalError in createLocalDB * Check if createdb exists * Revert change * Remove !Quiet
2022-05-17bugfix: fix race condition when updating presence via /sync (#2470)kegsay
* bugfix: fix race condition when updating presence via /sync Previously when presence is updated via /sync, we would send the presence update asyncly via NATS. This created a race condition: - If the presence update is processed quickly, the /sync which triggered the presence update would see an online presence. - If the presence update was processed slowly, the /sync which triggered the presence update would see an offline presence. This is the root cause behind the flakey sytest: 'User sees their own presence in a sync'. The fix is to ensure we update the database/advance the stream position synchronously for local users. * Bugfix for test
2022-05-17Remove debug loggingKegan Dougal
2022-05-17bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466)kegsay
* Fix flakey sytest 'Local device key changes get to remote servers' * Debug logs * Remove internal/test and use /test only Remove a lot of ancient code too. * Use FederationRoomserverAPI in more places * Use more interfaces in federationapi; begin adding regression test * Linting * Add regression test * Unbreak tests * ALL THE LOGS * Fix a race condition which could cause events to not be sent to servers If a new room event which rewrites state arrives, we remove all joined hosts then re-calculate them. This wasn't done in a transaction so for a brief period we would have no joined hosts. During this interim, key change events which arrive would not be sent to destination servers. This would sporadically fail on sytest. * Unbreak new tests * Linting