aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-02Support WebP based thumbnails (#2033)hacktivista
Co-authored-by: Felix Freeman <libsys@hacktivista.org>
2021-11-02Update to matrix-org/gomatrixserverlib@5e02b64Neil Alexander
2021-11-01Add part of #1322 tests (#2034)kegsay
* Add part of #1322 tests * Fix #1322
2021-10-29Remove tests from the blacklist (#2031)kegsay
* Remove tests from the blacklist They seem to be more reliable now * Update whitelist
2021-10-29Add 'Federation publicRoom Name/topic keys are correct' to the sytest ↵Andrew Morgan
whitelist (#2029) Sytest had two tests with the name `Name/topic keys are correct`. https://github.com/matrix-org/sytest/pull/1098 edited one so that the names were unique. It seems that this test name was in the dendrite Sytest whitelist. This PR adds the additional, new name to the whitelist as well. Time to see if CI passes!
2021-10-29generate-config: add flags for db and server name (#2030)kegsay
2021-10-25Update README.md (#2012)cofob
2021-10-25Update are-we-synapse-yet (#2018)S7evinK
* Update are-we-synapse-yet Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * More missing presence tests * Move tests to presence only
2021-10-22Fix dendritejs buildNeil Alexander
2021-10-22Update Pinecone demoNeil Alexander
2021-10-21sytest: update blacklist and whitelist (#2025)kegsay
Should make CI happy again
2021-10-21Upgrade containerd dep (#2024)kegsay
2021-10-13Update sytest blacklist/whitelist for known flaky tests (closes ↵Neil Alexander
matrix-org/sytest#1155)
2021-10-12Update to matrix-org/pinecone@d568c316384c42e249b87dcbf35dd6f72aa9257fNeil Alexander
2021-10-08Fix dendritejs-pineconeNeil Alexander
2021-10-08Update Pinecone demoNeil Alexander
2021-10-05Bump github.com/matrix-org/dugong (#2011)Aaron Bieber
The latest version of dugong has a fix for removing log files after they are compressed. Signed-off-by: Aaron Bieber <aaron@bolddaemon.com>
2021-09-20Update to matrix-org/pinecone@4f07afaNeil Alexander
2021-09-10Update pinecone to matrix-org/pinecone#12Neil Alexander
2021-09-10Added .well-known/matrix/server endpoint (#1988)Ryan W
* Added .well-known/matrix/server endpoint Signed-off-by: Ryan Whittington <twentybitdev@gmail.com> * Replaced tabs with spaces Signed-off-by: Ryan Whittington <twentybitdev@gmail.com>
2021-09-08- Removed double imports (#1989)Ryan W
- Lower cased error messages Signed-off-by: Ryan Whittington <twentybitdev@gmail.com> Co-authored-by: kegsay <kegan@matrix.org>
2021-09-07Add more logs (#2005)kegsay
* Add more logs To help debug the migration issue in #1924 along with manual data-loss-inducing fixes. Also log the origin server on processed txns to help debug buggy server origins. * Fix query
2021-08-27Don't return nonsense canonical room aliases in the public rooms responses ↵Neil Alexander
(#1992)
2021-08-27publicRooms should accept POST as well as GET (#1991)Neil Alexander
2021-08-24Version 0.5.0v0.5.0Neil Alexander
2021-08-24Hopefully fix UIA for cross-signing setup (closes #1983) (#1986)Neil Alexander
2021-08-19Update to matrix-org/pinecone@e692df1Neil Alexander
2021-08-19Update to matrix-org/pinecone@21e3b392289b9412aa0d290f9f03fe9a1f8909e9Neil Alexander
2021-08-18Version 0.5.0rc1v0.5.0rc1Neil Alexander
2021-08-18Build Docker images using Go 1.17Neil Alexander
2021-08-18Add and use M_ROOM_IN_USE (#1972)Kevin Liu
Signed-off-by: nivekuil <mail@nivekuil.com> Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-08-18Delete device keys/signatures from key server when deleting devices (#1979)Neil Alexander
* Delete device keys/signatures from key server when deleting device from user API * Move loop to within database transaction * Don't fall over deleting no rows
2021-08-17Syslog integration (#1952)Sambhav Saggi
* Syslog integration, part 1 * Add protocol, make sure syslog actually logs * Make golangci-lint happy about shadow variables * Add syslog tag, wrap syslog in logLevelHook
2021-08-17Cross-signing fixes, notifications via sync, federation (#1974)Neil Alexander
* Initial work on signing key update EDUs * Fix build * Produce/consume EDUs * Producer logging * Only produce key change notifications for local users * Better naming * Try to notify sync * Enable feature * Use key change topic * Don't bother verifying signatures, validate key lengths if we can, notifier fixes * Copyright notices * Remove tests from whitelist until matrix-org/sytest#1117 * Some review comment fixes * Update to matrix-org/gomatrixserverlib@f9416ac * Remove unneeded parameter
2021-08-17Update golangci-lint (#1978)S7evinK
* Update golangci-lint * Use unconditional strings.TrimSuffix * Add error checks Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Disable lint typecheck * Fix ineffectual error assignment (#1976) Was working on another PR and noticed that golangci-lint was failing locally on `ineffassign` Signed-off-by: Devon Mizelle <dev@devon.so> * Revert "Disable lint typecheck" This reverts commit 3c76f219d3cb43e4ee9a9c319abd0b8879972cfc. Co-authored-by: Devon Mizelle <dev@devon.so>
2021-08-16Fix ineffectual error assignment (#1976)Devon Mizelle
Was working on another PR and noticed that golangci-lint was failing locally on `ineffassign` Signed-off-by: Devon Mizelle <dev@devon.so>
2021-08-11Add type field to DeviceMessage, allow fields to be nullable (#1969)Neil Alexander
2021-08-09Cross-signing signature handling (#1965)Neil Alexander
* Handle other signatures * Decorate key ID properly * Match by key IDs * Tweaks * Fixes * Fix /user/keys/query bug, review comments, update sytest-whitelist * Various wtweaks * Fix wiring for keyserver in API mode * Additional fixes
2021-08-06Cross-signing validation for self-sigs, expose signatures over ↵Neil Alexander
`/user/keys/query` and `/user/devices/{userId}` (#1962) * Enable unstable feature again * Try to verify when a device signs a key * Try to verify when a key signs a device * It's the self-signing key, not the master key * Fix error * Try to verify master key uploads * Actually we can't guarantee we can do that so nevermind * Add signatures into /devices/list request * Fix nil pointer * Reprioritise map creation * Don't skip devices that don't have signatures * Add some debug logging * Fix logic error in QuerySignatures * Fix bugs * Expose master and self-signing keys on /devices/list hopefully * maps are tedious * Expose signatures via /keys/query * Upload signatures when uploading keys * Fixes * Disable the feature again
2021-08-05Update to matrix-org/gomatrixserverlib@03e40faNeil Alexander
2021-08-04Cross-signing groundwork (#1953)Neil Alexander
* Cross-signing groundwork * Update to matrix-org/gomatrixserverlib#274 * Fix gobind builds, which stops unit tests in CI from yelling * Some changes from review comments * Fix build by passing in UIA * Update to matrix-org/gomatrixserverlib@bec8d22 * Process master/self-signing keys from devices call * nolint * Enum-ify the key type in the database * Process self-signing key too * Fix sanity check in device list updater * Fix check * Fix sytest, hopefully * Fix build
2021-08-04Ensure all create events have a snapshot NID of 0 (#1961)kegsay
Fixes #1924 for postgres users, though the underlying cause of why they aren't 0 in the first place is unresolved.
2021-08-04Cross-signing storage code (#1959)Neil Alexander
2021-08-04Fix sqlite migration issues (#1960)kegsay
* Do not store 'null' in the database for empty JSON arrays This can cause issues, though it should be noted that the majority of the time this will marshal/unmarshal just fine, see https://play.golang.org/p/Doe2NZUgv7Q * bugfix: sqlite migration should handle create events as having no 'before' snapshot The state snapshot for any given event in the roomserver represents the state _before_ the event. For the create event, this is nothing, so the state snapshot nid should be 0. In some cases this wasn't happening, resulting in a nice mix of possible options including: - A state snapshot without any state blocks `[]` or `null`. - A state snapshot with a single state block with a single event, the create event, causing a circular loop. This is incorrect as it represents the state before the event, not after. * Add state key check
2021-08-03Minimum version Go 1.15 (#1957)Neil Alexander
2021-08-03Add tracing to user API (#1948)kegsay
Use the trace version in tests so we can just implement the required API functions.
2021-08-03Update containerd dependencyNeil Alexander
2021-08-03Update dependencies (#1956)Neil Alexander
2021-08-02Read the right username field when performing account deactivation (#1954)kegsay
`Login` has 2 username fields, and we were always checking the deprecated one. Instead, check both.
2021-07-28Factor out StatementList to `sqlutil` and use it in `userapi`Kegan Dougal
It helps with the boilerplate.