aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-21Fix panic in roomserverNeil Alexander
2021-06-16Revert "Ensure user IDs match the spec (matrix-org/gomatrixserverlib#261)"Neil Alexander
This reverts commit 30e9353fdd4cc2a3c3e5bd6de139ca0e31dae7bb.
2021-06-15Ensure user IDs match the spec (matrix-org/gomatrixserverlib#261)Neil Alexander
2021-06-14Update go.mod/go.sumNeil Alexander
2021-06-14Set MaxFileSizeBytes <= 0 to "unlimited" (#1875)S7evinK
* Set MaxFileSizeBytes < 0 to "unlimited" Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * int64 overflows later in mediaapi/routing/upload.go[doUpload] * Prevent int overflow when uploading
2021-06-14Remove mention of enabling naffka in install instructions, as it is the ↵Arnaud Venturi
default value (#1853) Signed-off-by: Arnaud Venturi <git@toadjaune.eu>
2021-06-14Fix Key Generation Docs - resolves #1759 (#1865)Ben Yanke
This fixes the issue found in #1759 which broke due to go changes. The new command allows you to generate keys with docker, and drop them in the current working directory.
2021-06-14Add parameters to specify password (#1868)S7evinK
* Add parameters to specify password Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Fix typo * Add testdata * Use go1.13 compatible way to read files
2021-06-14Use NotFound instead of Forbidden for missing account data (#1872)Adam Greig
Signed-off-by: Adam Greig <adam@adamgreig.com>
2021-06-14Update go.mod/go.sumNeil Alexander
2021-06-14Pinecone demo updatesNeil Alexander
2021-06-07Add CORS to nginx config (#1791)Rasmus Thomsen
Without this entry, setups where users have the homeserver on the URL matrix.myurl.com but want the servername to be myurl.com don't work by default since clients like element.io can't connect to the homeserver
2021-06-07Link to Synapse (#1863)Ben Langfeld
Not everyone is very familiar.
2021-06-07Add missing IPv6 "ssl" keyword in nginx config examples (#1854)Arnaud Venturi
Signed-off-by: Arnaud Venturi <git@toadjaune.eu>
2021-06-07Try to optimize SelectOneTimeKeys (#1851)S7evinK
* Try to optimize SelectOneTimeKeys Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Use pg.Array when using ANY... Co-authored-by: Kegsay <kegan@matrix.org>
2021-06-07Use LimitReader to prevent DoS risk (#1843)S7evinK
* Use LimitReader to prevent DoS risk Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Check if bytesWritten is equal to the maxFileSize Add tests Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Use oldschool defer to cleanup after the tests * Let LimitReader read MaxFileSizeBytes + 1 Co-authored-by: Kegsay <kegan@matrix.org>
2021-06-07Fix SIGSEGV in IsInterestedInRoomID (#1846)bodqhrohro
* Avoid crash on non-compiled room regex Roughly fixes #1845 (actual compiling still needed) Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com> * Compile regexes for all namespaces Deadheres the regex compiling from building larger regexes for possibly exclusive namespaces only. A complete fix for #1845, so regexes for rooms namespaces and other non-whitelisted namespaces can be used more safely. Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com> * Appservice config: handle regexp parsing errors Signed-off-by: diamondburned <datutbrus@gmail.com> Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com> Co-authored-by: Kegsay <kegan@matrix.org>
2021-06-07Split the select+update query for txn_id counter (#1855)bodqhrohro
The update part wasn't executed actually for SQLite, so it is moved to a separate statement. Fixes #1852. Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com>
2021-06-02Update go.mod/go.sum for matrix-org/pinecone (Build 79)Neil Alexander
2021-05-25Update gomatrixserverlib to matrix-org/gomatrixserverlib#259Neil Alexander
2021-05-25Update go.mod/go.sumNeil Alexander
2021-05-25Update go.mod/go.sumNeil Alexander
2021-05-24Demo tweaksNeil Alexander
2021-05-24Allow clearing federation blacklist at startup for P2P demosNeil Alexander
2021-05-24Update pinecone demoNeil Alexander
2021-05-18Update go.mod/go.sumNeil Alexander
2021-05-18Update go.mod/go.sumNeil Alexander
2021-05-18Merge branch 'master' of github.com:matrix-org/dendriteNeil Alexander
2021-05-18Update dendrite-demo-pineconeNeil Alexander
2021-05-18Update MSC2946 implementation for stable spaces (#1859)Michael Telatynski
Now that MSC1772 passed FCP its identifiers have stabilised This outright drops support for experimental spaces but that's what you get for being on the bleeding edge
2021-05-10Update go.mod/go.sumNeil Alexander
2021-05-10Update go.mod/go.sumNeil Alexander
2021-05-10Updates to dendrite-demo-pineconeNeil Alexander
2021-05-07Update room directory in Pinecone demo some moreNeil Alexander
2021-05-07Fix public room directory in Pinecone demoNeil Alexander
2021-05-07Update pinecone in go.mod/go.sumNeil Alexander
2021-05-06Pinecone P2P demo (#1856)Neil Alexander
* Pinecone demo * Enable multicast, fix HTTP routing * Fix multicast import * Fix build * Update Pinecone demo * Fix the keys * Tweaks * Pinecone room directory support (early) * Fix gobind-pinecone * Add pinecone listener * Fix public key value * Use AuthenticatedConnect for dial * Fix gobind-pinecone * Stop panics * Give fsAPI to keyserver * Pinecone demo fixes * Update gobind build scripts * Account creation * Tweaks * Setup tweaks * API tweaks * API tweaks * API tweaks * Port mutex * Re-enable multicast * Add ReadCopy * Update quic-go, fixes * Shutdowns fixed for iOS * Update build script * Add WebSocket support * Bug fixes * Netconn context * Fix WebSocket connectivity * Fixes to gobind API * Strip frameworks * Configurability updates * Update go.mod * Update go.mod/go.sum * Update go.mod/go.sum * Update go.mod/go.sum * Try to stay connected tto static peer * Update gobind-pinecone * Update go.mod/go.sum * Test uTP+TLS * Use HTTP/2 * Don't use HTTP/2 * Update go.mod/go.sum * Attempt to reconnect to the static peer if it drops * Stay connected to static peers more stickily * Retry room directory lookups if they fail * NewQUIC -> NewSessions * Storage updates * Don't return immediately when there's nothing to sync * Updates * Try to reconnect to static peer more * Update go.mod/go.sum * Require Go 1.14 * Update go.mod/go.sum * Update go.mod/go.sum
2021-04-26Don't return immediately when there's nothing to syncNeil Alexander
2021-04-26Fix bug in SQLite migrationNeil Alexander
2021-04-26State storage refactor (#1839)Neil Alexander
* Hash-deduplicated state storage (and migrations) for PostgreSQL and SQLite * Refactor droomserver database setup for migrations * Fix conflict statements * Update migration names * Set a boundary for old to new block/snapshot IDs so we don't rewrite them more than once accidentally * Create sequence if not exists * Fix boundary queries * Fix boundary queries * Use Query * Break out queries a bit * More sequence tweaks * Query parameters are not playing the game * Injection escaping may not work for CREATE SEQUENCE after all * Fix snapshot sequence name * Use boundaried IDs in SQLite too * Use IFNULL for SQLite * Use COALESCE in PostgreSQL * Review comments @Kegsay
2021-04-19Remove the 'Content-Type' request header requirement (#1834)Fero
2021-04-15Fix registration error when disabledNeil Alexander
2021-04-14fedsender: tolerate dupe membership events (#1824)Kegsay
* fedsender: tolerate dupe membership events Previously if the fedsender got a duplicate membership event it would cause the entire process to crash. Now it doesn't. This masks an issue with the roomserver where it can emit duplicate membership events. * Update joined_hosts_table.go
2021-04-14Remove the Content-Length requirement on upload request (#1831)Fero
* Remove the Content-Length requirement * Make sure that the file size does not exceed max content size * Address review comment - universally check if temp file size exceeds max file size
2021-04-13Move room mutex in federation API (#1830)Neil Alexander
* Move room mutex in federation API to surround resolveStatesAndCheck * Guard processEventWithMissingState instead * Revert "Guard processEventWithMissingState instead" This reverts commit 0ce88036aa79b0ce97e967afb70fe932a547d5f0.
2021-04-09Remove legacy register endpoint (#1822)Kegsay
* Remove legacy register endpoint We only support `/r0` CS API paths, not `/v1`. * Finish removing
2021-04-08Optimise memory usage when calling /g_m_e (#1819)Kegsay
* Optimise memory usage when calling /g_m_e * cache more events * refactor handling of device list update pokes * Sigh
2021-04-08Document need for max-body-size change in reverse proxy as well (#1816)Tim McCormack
Just changing the Media API's `max_file_size_bytes` isn't enough if Dendrite is running behind a proxy; document the need for a proxy config change in the place the admin is most likely to notice it. Signed-off-by: Tim McCormack <cortex@brainonfire.net>
2021-04-07Implement OpenID module (#599) (#1812)Bruce MacDonald
* Implement OpenID module (#599) - Unrelated: change Riot references to Element in client API routing Signed-off-by: Bruce MacDonald <contact@bruce-macdonald.com> * OpenID module tweaks (#599) - specify expiry is ms rather than vague ts - add OpenID token lifetime to configuration - use Go naming conventions for the path params - store plaintext token rather than hash - remove openid table sqllite mutex * Add default OpenID token lifetime (#599) * Update dendrite-config.yaml Co-authored-by: Kegsay <kegsay@gmail.com> Co-authored-by: Kegsay <kegan@matrix.org>
2021-03-30Add a per-room mutex to federationapi when processing transactions (#1810)Kegsay
* Add a per-room mutex to federationapi when processing transactions This has numerous benefits: - Prevents us doing lots of state resolutions in busy rooms. Previously, room forks would always result in a state resolution being performed immediately, without checking if we were already doing this in a different transaction. Now they will queue up, resulting in fewer calls to `/state_ids`, `/g_m_e`, etc. - Prevents memory usage from growing too large as a result and potentially OOMing. And costs: - High traffic rooms will be slightly slower due to head-of-line blocking from other servers, though this has always been an issue as roomserver has a per-room mutex already. * Fix unit tests * Correct mutex lock ordering