Piotr Kozimor
433bc321ae
Can login with 3pid and password using m.login.password
2021-09-15 15:13:58 +02:00
PiotrKozimor
f290e722c3
Cherry-pick Feature/login with email ( #2 )
2021-09-14 17:41:49 +02:00
Piotr Kozimor
1fbed4194a
Fix further errors pointed by linter
2021-09-14 10:43:01 +02:00
Piotr Kozimor
5f8601d18c
Run gofmt -w .
2021-09-14 09:56:04 +02:00
Piotr Kozimor
316adf66d1
Refactor threepid sessions storage so that postgres and sqlite3 schemas are separate. Generate session id in database
2021-09-13 17:23:15 +02:00
Piotr Kozimor
bae4313b4b
Merge remote-tracking branch 'upstream/master' into piotr-kozimor/threepid-sessions-in-userapi
2021-09-13 13:01:10 +02:00
Neil Alexander
57fb44ac4b
Update pinecone to matrix-org/pinecone#12
2021-09-10 14:47:59 +01:00
Ryan W
1cd4d50181
Added .well-known/matrix/server endpoint ( #1988 )
...
* 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-10 10:05:31 +01:00
Ryan W
a624eab309
- Removed double imports ( #1989 )
...
- Lower cased error messages
Signed-off-by: Ryan Whittington <twentybitdev@gmail.com>
Co-authored-by: kegsay <kegan@matrix.org>
2021-09-08 17:31:03 +01:00
Piotr Kozimor
6ccccaa373
Initialize mailer only if enabled
2021-09-08 12:35:11 +02:00
Piotr Kozimor
61b2c1e5c7
Set defaults for threepid database in userapi and verify them
2021-09-08 12:34:53 +02:00
Piotr Kozimor
2cec5cbb7c
Add threepid database to dendrite config
2021-09-08 12:18:24 +02:00
Piotr Kozimor
2c6588a807
Fix select sessions statements
2021-09-08 12:18:05 +02:00
Piotr Kozimor
d3f63db611
Merge remote-tracking branch 'upstream/master' into piotr-kozimor/threepid-sessions-in-userapi
2021-09-08 09:18:45 +02:00
kegsay
7dc8fb1fe7
Add more logs ( #2005 )
...
* 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-09-07 15:07:14 +01:00
Neil Alexander
51b119107c
Don't return nonsense canonical room aliases in the public rooms responses ( #1992 )
2021-08-27 16:50:30 +01:00
Neil Alexander
2dd5fd1fd6
publicRooms should accept POST as well as GET ( #1991 )
2021-08-27 15:48:27 +01:00
Neil Alexander
037ff4fb23
Version 0.5.0
2021-08-24 15:03:28 +01:00
Neil Alexander
4b0cc32af2
Hopefully fix UIA for cross-signing setup ( closes #1983 ) ( #1986 )
2021-08-24 11:44:03 +01:00
Neil Alexander
329c9e671c
Update to matrix-org/pinecone@e692df1
2021-08-19 16:07:28 +01:00
Neil Alexander
9a2dcd6078
Update to matrix-org/pinecone@21e3b39228
2021-08-19 15:02:50 +01:00
Neil Alexander
cd3823308c
Version 0.5.0rc1
2021-08-18 14:29:45 +01:00
Neil Alexander
cf42ae6064
Build Docker images using Go 1.17
2021-08-18 14:13:38 +01:00
Kevin Liu
fe5050c0a5
Add and use M_ROOM_IN_USE ( #1972 )
...
Signed-off-by: nivekuil <mail@nivekuil.com>
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-08-18 12:41:30 +01:00
Neil Alexander
614e67280d
Delete device keys/signatures from key server when deleting devices ( #1979 )
...
* 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-18 12:07:09 +01:00
Sambhav Saggi
1bee1ae204
Syslog integration ( #1952 )
...
* 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-17 16:18:51 +01:00
Neil Alexander
ff21675c5b
Cross-signing fixes, notifications via sync, federation ( #1974 )
...
* 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-17 13:44:30 +01:00
S7evinK
8a4b90b7dd
Update golangci-lint ( #1978 )
...
* 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 3c76f219d3 .
Co-authored-by: Devon Mizelle <dev@devon.so>
2021-08-17 10:39:09 +01:00
Devon Mizelle
c2b9ab7470
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>
2021-08-16 14:19:35 +01:00
Neil Alexander
125ea75b24
Add type field to DeviceMessage, allow fields to be nullable ( #1969 )
2021-08-11 09:44:14 +01:00
Piotr Kozimor
9b52b83e1c
Fix shadow declaration of err
2021-08-11 10:10:49 +02:00
Piotr Kozimor
863b5eba84
Assemble submit URL
2021-08-11 08:28:56 +02:00
Piotr Kozimor
5065e77dd7
Refactor threepid session types and SmtpMailer initialization
2021-08-11 07:22:19 +02:00
Piotr Kozimor
3827837d76
Back to returning interface in NewInternalAPI
2021-08-11 06:03:45 +02:00
Piotr Kozimor
c7f8e6d3bb
Add missing methods in UserInternalAPITrace
2021-08-11 06:02:58 +02:00
Piotr Kozimor
840e54c6d2
Merge remote-tracking branch 'upstream/master' into piotr-kozimor/hs-sends-emails
2021-08-11 05:56:12 +02:00
Piotr Kozimor
6b8039c5a7
Run SmtpMailer tests only if test_mail build tag is provided
2021-08-10 11:10:16 +02:00
Piotr Kozimor
7a98afd072
Implement threepid sessions methods for UserInternalAPI
2021-08-10 10:43:47 +02:00
Piotr Kozimor
1f537ba1b9
Return only session id in CreateSession in UserInternalAPI
2021-08-10 10:42:48 +02:00
Piotr Kozimor
4d1f248a9b
Define Mailer interface and provide SmtpMailer implementation
2021-08-10 10:41:49 +02:00
Piotr Kozimor
503f43abe0
Rename RemoveSession to DeleteSession in threepids database
2021-08-10 10:39:06 +02:00
Piotr Kozimor
e81c9c17b7
Configure email in user api
2021-08-09 17:25:34 +02:00
Piotr Kozimor
9813a94220
Add default verification and password templates
2021-08-09 17:24:46 +02:00
Piotr Kozimor
3082a5dee9
Implement threepid sessions storage
2021-08-09 16:44:22 +02:00
Neil Alexander
b1377d991a
Cross-signing signature handling ( #1965 )
...
* 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-09 14:35:24 +01:00
Neil Alexander
e95b1fd238
Cross-signing validation for self-sigs, expose signatures over /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-06 10:13:35 +01:00
Neil Alexander
8e5a0139b5
Update to matrix-org/gomatrixserverlib@03e40fa
2021-08-05 11:48:22 +01:00
Neil Alexander
eb0efa4636
Cross-signing groundwork ( #1953 )
...
* 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-04 17:56:29 +01:00
kegsay
4cc8b28b7f
Ensure all create events have a snapshot NID of 0 ( #1961 )
...
Fixes #1924 for postgres users, though the underlying cause of why
they aren't 0 in the first place is unresolved.
2021-08-04 17:48:23 +01:00
Neil Alexander
7a9a2547b3
Cross-signing storage code ( #1959 )
2021-08-04 17:31:18 +01:00