aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-03Update PROFILING.mdNeil Alexander
2020-12-03Update PROFILING.mdNeil Alexander
2020-12-03Add PROFILING.mdNeil Alexander
2020-12-03Update FAQ.mdNeil Alexander
2020-12-03Update FAQ.mdNeil Alexander
2020-12-03Add FAQ.mdNeil Alexander
2020-12-03Peeking updates (#1607)Neil Alexander
* Add unpeek * Don't allow peeks into encrypted rooms * Fix send tests * Update consumers
2020-12-03Fix /joined_members API response (#1606)alexkursell
* Fix /joined_members API response * Fix golint issue
2020-12-03Simplify create-account (#1608)Neil Alexander
2020-12-02Version 0.3.2v0.3.2Neil Alexander
2020-12-02Top-level setup package (#1605)Neil Alexander
* Move config, setup, mscs into "setup" top-level folder * oops, forgot the EDU server * Add setup * goimports
2020-12-02Revert "Update quic-go"Neil Alexander
This reverts commit 93c3f1a7b3f0dbd9db8118a16701d63aab17a3ed.
2020-12-02Update quic-goNeil Alexander
2020-12-02Send client events to appservices (#1603)Neil Alexander
* Send client events to appservices * FormatSync instead of FormatAll
2020-12-02Add ability to disable federation (#1604)Neil Alexander
* Allow disabling federation * Don't start federation queues if disabled * Fix for Go 1.13
2020-12-02Optimise CheckServerAllowedToSeeEvent (#1602)Neil Alexander
* Try to limit how many state events we have to unmarshal * Comments
2020-12-01syncapi/requestpool: fix initial sync logic error in appendAccountData() (#1594)Ariadne Conill
* 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-01Assign CREATEDB permission to the test user (#1591)bodqhrohro
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-01Give fsAPI to keyserver in polylith/gobindNeil Alexander
2020-11-20Version 0.3.1v0.3.1Neil Alexander
2020-11-20Update last seen on sync requests (#1593)Neil Alexander
* 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-20Add last_seen_ip and last_seen_ts to /devices response (#1592)alexkursell
2020-11-19MSC2836: Threading - part one (#1589)Kegsay
* 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-18Allow = in user identifiers (#1590)bodqhrohro
While I was breaking through all the TDD bureaucracy to finally push this fix, it turned out that it already got fixed in #1578. Still I push the rest of the changes (basically, everything except of actually fixing the bug ;)). `=` is crucial for matrix-bifrost which turns XMPP @'s into =40. Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com>
2020-11-18Fix paths in quickstartNeil Alexander
2020-11-18Protect txnReq.newEvents with mutex (#1587)Neil Alexander
* Protect txnReq.newEvents and txnReq.haveEvents with mutex * Missing defer * Remove t.haveEventsMutex
2020-11-18Add IPv6 setting to nginx conf (#1582)TR_SLimey
* Added IPv6 setting to nginx conf https://matrix.to/#/!yomrOFwgFXzmeMAbzX:matrix.org/$sIkSxL002BKottY1Fop-bkusuyCJ1Y0zIFzqSWDYRrc?via=matrix.org&via=privacytools.io&via=dendrite.link * Add IPv6 support to polylith nginx conf also
2020-11-17Implemented whois endpoint (#1573)David Spenler
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-11-17Update README to remove mention that read receipts are not implemented (#1586)Aaron Raimist
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2020-11-16Pass pointers to events — reloaded (#1583)Neil Alexander
* Pass events as pointers * Fix lint errors * Update gomatrixserverlib * Update gomatrixserverlib * Update to matrix-org/gomatrixserverlib#240
2020-11-16Update docker readmeNeil Alexander
2020-11-16Acknowledgements in changelogNeil Alexander
2020-11-16Version 0.3.0v0.3.0Neil Alexander
2020-11-16Update sytest lists to blacklist flaky 'Forgotten room messages cannot be ↵Neil Alexander
paginated' test
2020-11-16Fix Dendrite not backfilling on world_readable rooms (#1575)Mayeul Cantan
The previous implementation was only checking if room history was "shared", which it wasn't for rooms where a user was invited, or world readable rooms. This implementation leverages the IsServerAllowed method, which already implements the complete verification algorithm. Signed-off-by: `Mayeul Cantan <oss+matrix@mayeul.net>` Co-authored-by: Kegsay <kegan@matrix.org>
2020-11-16Update build script to run on any POSIX (#1577)Felix Hanley
Signed-off-by: Felix Hanley <felix@userspace.com.au>
2020-11-16Add -version flag (#1581)S7evinK
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
2020-11-15Update README.mdNeil Alexander
2020-11-12Fix username regex to allow = character (#1578)Neil Alexander
2020-11-09Implement read receipts (#1528)S7evinK
* fix conversion from int to string yields a string of one rune, not a string of digits * Add receipts table to syncapi * Use StreamingToken as the since value * Add required method to testEDUProducer * Make receipt json creation "easier" to read * Add receipts api to the eduserver * Add receipts endpoint * Add eduserver kafka consumer * Add missing kafka config * Add passing tests to whitelist Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Fix copy & paste error * Fix column count error * Make outbound federation receipts pass * Make "Inbound federation rejects receipts from wrong remote" pass * Don't use errors package * - Add TODO for batching requests - Rename variable * Return a better error message * - Use OutputReceiptEvent instead of InputReceiptEvent as result - Don't use the errors package for errors - Defer CloseAndLogIfError to close rows - Fix Copyright * Better creation/usage of JoinResponse * Query all joined rooms instead of just one * Update gomatrixserverlib * Add sqlite3 migration * Add postgres migration * Ensure required sequence exists before running migrations * Clarification on comment * - Fix a bug when creating client receipts - Use concrete types instead of interface{} * Remove dead code Use key for timestamp * Fix postgres query... * Remove single purpose struct * Use key/value directly * Only apply receipts on initial sync or if edu positions differ, otherwise we'll be sending the same receipts over and over again. * Actually update the id, so it is correctly send in syncs * Set receipt on request to /read_markers * Fix issue with receipts getting overwritten * Use fmt.Errorf instead of pkg/errors * Revert "Add postgres migration" This reverts commit 722fe5a04628882b787d096942459961db159b06. * Revert "Add sqlite3 migration" This reverts commit d113b03f6495a4b8f8bcf158a3d00b510b4240cc. * Fix selectRoomReceipts query * Make golangci-lint happy Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-11-05Implement forgetting about rooms (#1572)S7evinK
* Add basic storage methods * Add internal api handler * Add check for forgotten room * Add /rooms/{roomID}/forget endpoint * Add missing rsAPI method * Remove unused parameters * Add passing tests Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Add missing file * Add postgres migration * Add sqlite migration * Use Forgetter to forget room * Remove empty line * Update HTTP status codes It looks like the spec calls for these to be 400, rather than 403: https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-forget Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-11-05Update gjson for safe integer rangesNeil Alexander
2020-10-28Created polylith reverse proxy sample for Hiawatha (#1571)Petter Jakub Økland
2020-10-27Add possibilty to configure MaxMessageBytes for sarama (#1563)S7evinK
* Add configuration for max_message_bytes for sarama * Log all errors when sending multiple messages Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Add missing config * - Better comments on what MaxMessageBytes is used for - Also sets the size the consumer may use
2020-10-27Update Docker sample configsNeil Alexander
2020-10-26Update documentation (#1569)Neil Alexander
* Update dendrite-config.yaml * Update README.md * Update INSTALL.md * Update INSTALL.md
2020-10-22Version 0.2.1 (#1558)v0.2.1Neil Alexander
* Version 0.2.1 * Credit where credit due * Update CHANGES.md * Include PRs
2020-10-22Document dendrite server key format (#1520)Adit Sachde
Co-authored-by: Kegsay <kegan@matrix.org>
2020-10-22Exclude old state events from sync when consumed from roomserver (#1548)Neil Alexander
* Exclude old room events from sync when consumed from roomserver * Fix comment * Experimental hack
2020-10-22Fix RewritesState bug (#1557)Neil Alexander
* Set RewritesState once * Check if any new state provided * Obey rewritesState * Don't nuke everything the sync API knows when purging state * Fix panic from duplicate insert * Consistency * Use HasState * Remove nolint * Clean up joined rooms on state rewrite