aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-28Alias key backup endpoints onto /unstable, fix key backup bugs (#1947)Neil Alexander
* Default /unstable requests to stable endpoints if not overridden specifically with a custom route * Rewrite URL * Try something different * Fix routing manually * Fix selectLatestVersionSQL * Don't return 0 if no backup version exists * Log more useful error * fix up replace keys check * Don't enforce uniqueness on e2e_room_keys_versions_idx Co-authored-by: kegsay <kegan@matrix.org>
2021-07-27Update to neilalexander/utp@54ae7b1Neil Alexander
2021-07-27Key Backups (3/3) : Implement querying keys and various bugfixes (#1946)kegsay
* Add querying device keys Makes a bunch of sytests pass * Apparently only the current version supports uploading keys * Linting
2021-07-27Key Backups (2/3) : Add E2E backup key tables (#1945)kegsay
* Add PUT key backup endpoints and glue them to PerformKeyBackup * Add tables for storing backup keys and glue them into the user API * Don't create tables whilst still WIPing * writer on sqlite please * Linting
2021-07-27Use db writer on sqlite account table (#1944)kegsay
2021-07-27Key backups (1/2) : Add E2E session backup metadata tables (#1943)kegsay
* Initial key backup paths and userapi API * Fix unit tests * Add key backup table * Glue REST API to database * Linting * use writer on sqlite
2021-07-26Version 0.4.1v0.4.1Neil Alexander
2021-07-26Not finding the snapshot is not fatal (#1940)kegsay
2021-07-26fix:Inviting to an unsupported room version return M_BAD_JSON instead of ↵Meenal Trivedi
Incompatible_Version (#1930) * fix:Inviting to an unsupported room version return M_BAD_JSON instead of M_UNSUPPORTED_ROOM_VERSION Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * fix Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * feat: make requested changes Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com> * Use error typecast from matrix-org/gomatrixserverlib#272 Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-07-22Don't set prev state when it is the same as the event it replaces (#1936)Neil Alexander
2021-07-22Track knocking in membership updater (#1935)Neil Alexander
* Topologically sort outliers in SendEventWithState * Knock in membership updater * Update gomatrixserverlib * Update gomatrixserverlib * Get the NID of the knock event properly for the membership updater
2021-07-22Update to matrix-org/gomatrixserverlib@b9eb787Neil Alexander
2021-07-21Update to matrix-org/gomatrixserverlib@ae88543Neil Alexander
2021-07-21Update to matrix-org/gomatrixserverlib#271Neil Alexander
2021-07-21Various alias fixes (#1934)Neil Alexander
* Generate m.room.canonical_alias instead of legacy m.room.aliases * Add omitempty tags * Add aliases endpoint to client API * Check power levels when setting aliases * Don't return null on /aliases * Don't return error if the state event fails * Update sytest-whitelist * Don't send updated m.room.canonical_alias events * Don't check PLs after all because for local aliases they are apparently irrelevant * Fix some bugs * Allow deleting a local alias with enough PL * Fix some more bugs * Update sytest-whitelist * Fix copyright notices * Review comments
2021-07-21Optimise QueryServerJoinedToRoom (#1933)Neil Alexander
* Optimise checking if a server is in a room * Fix queries * Fix queries
2021-07-21Support initial_state properly in `/createRoom` (#1932)Neil Alexander
* Refactor room creation to allow initial_state * GMSL types * Tweaks to alias * Fix ordering * Fix bugs * Fix create content * Only unmarshal create content if specified * Review comments @Kegsay
2021-07-20Update to matrix-org/gomatrixserverlib#270Neil Alexander
2021-07-20Add startup testing for Wasm Pinecone build (#1910)J. Ryan Stinnett
* Only include go-sqlite3 on the relevant binaries * The driver name is always sqlite3 now * Update to matrix-org/go-sqlite3-js@e537baa * Add initial Wasm test harness * Upgrade go-sqlite3-js This fixes an error about semicolons in single statements. * Add browser-like WebSocket API for testing * Upgrade go-sqlite3-js This upgrade includes printing panic messages next to stacks. * Run for all PRs targeting any branch * Use manual Node caching * Temporarily run for all pushes * Use npm ci instead of install * Use HTTPS auth for repo packages * Match path style from build.sh * update utp Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-07-20Only include go-sqlite3 on the relevant binaries (#1900)Neil Alexander
* Only include go-sqlite3 on the relevant binaries * The driver name is always sqlite3 now * Update to matrix-org/go-sqlite3-js@e537baa
2021-07-20Fixed log printing bug (closes #1885)Neil Alexander
Signed-off-by: Kilos kilosliu@workly.ai>
2021-07-20Rename Riot to Element (#1874)S7evinK
* s/riot/element/g Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * fix formatting Co-authored-by: kegsay <kegan@matrix.org> Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-07-19Fix failing ban tests (#1884)David Spenler
* Add room membership and powerlevel checks for func SendBan * Added non-error return to func GetStateEvent when no state events with the specified state key are found * Add passing tests to whitelist * Fixed formatting * Update roomserver/storage/shared/storage.go Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com> Co-authored-by: kegsay <kegan@matrix.org> Co-authored-by: kegsay <kegsay@gmail.com>
2021-07-19Set MaxFileSizeBytes <= 0 to unlimited (#1876)S7evinK
* Revert "Set MaxFileSizeBytes <= 0 to "unlimited" (#1875)" This reverts commit 9ed044042156a9bdfafb4ae9830b3ed41225444e. * Actually allow unlimited upload Signed-off-by: Till Faelligen <tfaelligen@gmail.com> Co-authored-by: kegsay <kegan@matrix.org>
2021-07-19Metric fixesNeil Alexander
Squashed commit of the following: commit c6eb4d8bbf80320ec2b6d416c77659b0343e5e47 Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Mon Jul 19 16:52:57 2021 +0100 Fix bug commit d420966d9ac44936728960a8d38602662b58f1c3 Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Mon Jul 19 16:46:12 2021 +0100 Update metric commit 0ad6e37846e2ebbbd0e33a38274094bd15b8f11b Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Mon Jul 19 16:30:14 2021 +0100 Fix observe for calculateStateDurations
2021-07-19Set buckets for dendrite_roomserver_calculate_state_duration_microsecondsNeil Alexander
2021-07-19dendrite_roomserver_calculate_state_duration_microseconds as histogram ↵Neil Alexander
rather than summary
2021-07-19Update to matrix-org/gomatrixserverlib#269Neil Alexander
2021-07-19Fix failing Complement tests (#1931)kegsay
* Check for missing state keys to avoid panicking * Check for not allowed errors on send_leave * More logging * handle send_join errors too * Additional send_join checks * s/join/gmsl.json/
2021-07-16Fix DNS CacheLifetime (#1926)S7evinK
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
2021-07-16fedsender: try to satisfy all notary key requests from the cache first (#1925)kegsay
* fedsender: try to satisfy all notary key requests from the cache first * Linting
2021-07-15fedsender: add cache tables for notary keys (#1923)kegsay
* Add notary server tables for postgres * Add sqlite tables * fedsender: GetServerKeys -> QueryServerKeys As it now checks a cache and can return multiple responses
2021-07-15Update dendrite-demo-yggdrasil to Yggdrasil 0.4 (#1921)Neil Alexander
* Update Yggdrasil P2P demo for Yggdrasil v0.4 * Build fixes
2021-07-14Add missing sytest to whitelistKegan Dougal
2021-07-14sytests: fix failing PL tests by updating GMSL (#1920)kegsay
2021-07-14Remove unused binariesNeil Alexander
2021-07-14AWSY: update list and shuffle groups (#1919)kegsay
So it's more accurate.
2021-07-14bugfix: retire invites even when we cannot talk to the remote server to ↵kegsay
make/send_leave (#1918) * bugfix: retire invites even when we cannot talk to the remote server to make/send_leave Also modify the leave response in /sync to include a fake event as this is ultimately what clients (and sytest) will use to determine leave-ness. * hash the event ID * Base64 not hex
2021-07-13Fix failing complement test (#1917)kegsay
Specifically `TestBannedUserCannotSendJoin`
2021-07-13Expose more data when outputting output room events (#1916)kegsay
* Add more logging for content fields * Fix fields
2021-07-12update whitelist (#1914)kegsay
* update whitelist * newline
2021-07-12Actually bump GMSLKegan Dougal
2021-07-12Update are we synapse groupings (#1913)kegsay
2021-07-12Update blacklistKegan Dougal
2021-07-12Fix attribution in changelogNeil Alexander
2021-07-12Version 0.4.0v0.4.0Neil Alexander
2021-07-12Add shared secret sytests to whitelistKegan Dougal
2021-07-12Propose config better (#1758)Melroy van den Berg
Better explain where the config file are located and how to deal with the yml file. Co-authored-by: kegsay <kegan@matrix.org>
2021-07-09Move a couple of callers to helpers.IsServerCurrentlyInRoom over to the ↵Neil Alexander
query API (#1912)
2021-07-09Implement /_synapse/admin/v1/register (#1911)kegsay
* Implement /_synapse/admin/v1/register This is implemented identically to Synapse, so scripts which work with Synapse should work with Dendrite. ``` Test 27 POST /_synapse/admin/v1/register with shared secret... OK Test 28 POST /_synapse/admin/v1/register admin with shared secret... OK Test 29 POST /_synapse/admin/v1/register with shared secret downcases capitals... OK Test 30 POST /_synapse/admin/v1/register with shared secret disallows symbols... OK ``` Sytest however has `implementation_specific => "synapse"` which stops these tests from running. * Add missing muxes to gobind * Linting