aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-12Fix missing signature check on the `/get_missing_events` responseNeil Alexander
2022-09-12Update to NATS Server v2.9.0Neil Alexander
2022-09-12Update to matrix-org/pinecone@b215925Neil Alexander
2022-09-12P2P demo tweaksNeil Alexander
2022-09-11Update to matrix-org/gomatrixserverlib@dec87dbaa40700a8c8f7c299c53f911047cf2cb9Neil Alexander
2022-09-09Only verify if fulltext indexing is enabledTill Faelligen
2022-09-09Version 0.9.7 (#2707)v0.9.7Neil Alexander
Changelog and version bump.
2022-09-09Optimise `SharedUsers` again by using complete composite indexNeil Alexander
2022-09-09Optimise shared users query in Synx API slightly by removing a potential sortNeil Alexander
2022-09-09Fix database transaction for keyserver `DeleteDeviceKeys`Neil Alexander
2022-09-09Fix transactions around assigning NIDsNeil Alexander
2022-09-09Change detection of already executed migrations (#2665)Till
This changes the detection of already executed migrations for the roomserver state block and keychange refactor. It now uses schema tables provided by the database engine to check if the column was already removed. We now also store the migration in the migrations table. This should stop e.g. Postgres from logging errors like `ERROR: column "event_nid" does not exist at character 8`.
2022-09-09More writer fixes in the Sync APINeil Alexander
2022-09-09Use database writer in user API `DeleteOldNotifications`Neil Alexander
2022-09-09Update getting pushrules, add tests, tweak pushrules (#2705)Till
This PR - adds tests for `evaluatePushrules` - removes the need for the UserAPI on the `OutputStreamEventConsumer` (for easier testing) - adds a method to get the pushrules from the database - adds a new default pushrule for `m.reaction` events (and some other tweaks)
2022-09-08Fix issue with stale device lists (#2702)Till
We were only sending the last entry to the worker, so most likely missed updates.
2022-09-07Fulltext implementation incl. config (#2480)Till
This adds the main component of the fulltext search. This PR doesn't do anything yet, besides creating an empty fulltextindex folder if enabled. Indexing events is done in a separate PR.
2022-09-07Use a single context insteadNeil Alexander
2022-09-07Update state reset capture to SentryNeil Alexander
2022-09-07Add HTTP status code to FederationClientError (#2699)Till
Also ensures we wait on more HTTP status codes.
2022-09-07Avoid unneeded JSON operations (#2698)Till
We were `json.Unmarshal`ing the EDU and `json.Marshal`ing right before sending the EDU to the stream. Those are now removed and the consumer does `json.Unmarshal` once.
2022-09-07Re-add waitTime if we're not blacklisted and no RetryAfter wasTill Faelligen
specified.
2022-09-07Add a SigningKeyUpdate producer (#2697)Till
This adds a new stream for signing key updates, this should ensure we don't lose any updates over federation.
2022-09-07Handle errors differently in the `DeviceListUpdater` (#2695)Till
`If a device list update goes missing, the server resyncs on the next one` was failing because a previous test would receive a `waitTime` of 1h, resulting in the test timing out. This now tries to handle the returned errors differently, e.g. by using the default `waitTime` of 2s. Also doesn't try further users in the list, if one of the errors would cause a longer `waitTime`.
2022-09-07Update to matrix-org/gomatrixserverlib@637a173Neil Alexander
2022-09-06Stronger default power levelsNeil Alexander
2022-09-06State resolution fixes in `applyAndAuthEvent` (update to ↵Neil Alexander
matrix-org/gomatrixserverlib#336)
2022-09-05Tweak Sentry againNeil Alexander
2022-09-05Set Sentry user where knownNeil Alexander
2022-09-05Improve Sentry reportingNeil Alexander
2022-09-05Tweak logging for detected state resetsNeil Alexander
2022-09-05State and auth tweaks (update to matrix-org/gomatrixserverlib#335)Neil Alexander
2022-09-05Optimise `resolve-state` toolNeil Alexander
2022-09-05Move `SetLatestEvents` callNeil Alexander
2022-09-02Only send (invite) events to the AS if it's interested in it (#2692)Till
This should hopefully fix #2691 (and maybe also #2690)
2022-09-01Update P2P demosNeil Alexander
2022-09-01Version 0.9.6 (#2689)v0.9.6Neil Alexander
Changelog and version bump.
2022-09-01Configuration tweaks (#2567)Neil Alexander
This makes the following changes: * The various `Defaults` functions are now responsible for setting sane defaults if `generate` is specified, rather than hiding them in `generate-config` * Some configuration options have been marked as `omitempty` so that they don't appear in generated configs unnecessarily (monolith-specific vs. polylith-specific options) * A new option `-polylith` has been added to `generate-config` to create a config that makes sense for polylith deployments (i.e. including the internal/external API listeners and per-component database sections) * A new option `-normalise` has been added to `generate-config` to take an existing file and add any missing options and/or defaults
2022-09-01Refactor appservices component (#2687)Neil Alexander
This PR refactors the app services component. It makes the following changes: * Each appservice now gets its own NATS JetStream consumer * The appservice database is now removed entirely, since we just use JetStream as a data source instead * The entire component is now much simpler and we deleted lots of lines of code 💅 The result is that it should be much lighter and hopefully much more performant.
2022-08-31Allow batching in `JetStreamConsumer` (#2686)Neil Alexander
This allows us to receive more than one message from NATS at a time if we want.
2022-08-31Pinecone standalone refactoring (#2685)Neil Alexander
This refactors the `dendrite-demo-pinecone` executable so that it: 1. Converts the old `.key` file into a standard `.pem` file 2. Allows passing in the `--config` option to supply a normal Dendrite configuration file, so that you can configure PostgreSQL instead of SQLite, appservices and all the other usual stuff
2022-08-30Check for `"creator"` field in `m.room.create` during event auth (update to ↵Neil Alexander
matrix-org/gomatrixserverlib@c71e518)
2022-08-30Index on `syncapi_send_to_device` table (#2684)PiotrKozimor
Introduced index improves select query performance. Example execution time of `selectSendToDeviceMessagesSQL` query dropped from 80 ms to 15 ms. No sytest modifications are required. ### Pull Request Checklist * [x] I have added added tests for PR _or_ I have justified why this PR doesn't need tests. * [x] Pull request includes a [sign off](https://github.com/matrix-org/dendrite/blob/main/docs/CONTRIBUTING.md#sign-off) Signed-off-by: `Piotr Kozimor <p1996k@gmail.com>`
2022-08-30Set the notification count when sending push notifications (#2683)Till
2022-08-30Use existing limit instead of default limit when lazy loading members (#2682)Till
This should fix an issue where we return less than the expected membership events, when doing an initial sync. When doing an initial sync, the state limit is set to `math.MaxInt32`, while the default filter is set to 20.
2022-08-30Fix race condition on startup (#2679)Till
`SetupAndServeHTTP` would race in `configureHTTPErrors` and while configuring routes.
2022-08-30Fix the Cat Overflow bug (update to matrix-org/gomatrixserverlib@2020bdc)Neil Alexander
2022-08-29Log roomserver errorTill Faelligen
2022-08-29Race in keyserver intialization (#2619)Brian Meek
Signed-off-by: Brian Meek <brian@hntlabs.com>
2022-08-29Default to limit of 20 state eventsTill Faelligen