Commit graph

385 commits

Author SHA1 Message Date
Roman Isaev
b8ea41b2ad
tests for sessionsDict.crossSigningKeysReplacement 2025-01-25 02:02:24 +00:00
Roman Isaev
c1ad175178
more test fixes 2025-01-25 01:08:52 +00:00
Roman Isaev
27f7a5e3eb
mas: fix tests 2025-01-25 00:56:19 +00:00
Roman Isaev
453445695c
mas: store crossSigngingKeysReplacement period in sessionsDict struct instead of db 2025-01-24 23:31:46 +00:00
Roman Isaev
a185027fda
cr fixes 2025-01-23 02:45:56 +00:00
Roman Isaev
8a05a66cd7
code review fixes 2025-01-23 01:25:04 +00:00
Roman Isaev
641f5b54f8
mas: todo comment 2025-01-17 03:45:25 +00:00
Roman Isaev
021431c710
mas: fix key_crosssigning_test.go 2025-01-17 03:24:07 +00:00
Roman Isaev
b44f899637
mas: cross signing fixes after merge 2025-01-17 02:56:17 +00:00
Roman Isaev
6833e99558
Merge branch 'main' of github.com:element-hq/dendrite into msc3861 2025-01-17 02:55:30 +00:00
Till
7f4ba1f6eb
MSC3967: Do not require UIA when first uploading cross signing keys (#3471)
Playing around with Copilot, tests are generated.

Requires https://github.com/matrix-org/gomatrixserverlib/pull/444
2025-01-16 22:43:50 +01:00
Roman Isaev
418c584e40
mas: TestAdminAllowCrossSigningReplacementWithoutUIA 2025-01-15 18:54:59 +00:00
Roman Isaev
0db7647f46
mas: TestAdminUserDevicesDelete 2025-01-15 13:02:28 +00:00
Roman Isaev
f1de5aa838
mas: TestAdminUserDeviceDelete 2025-01-15 12:14:14 +00:00
Roman Isaev
930daa1090
mas: move org.matrix.cross_signing_reset const from logintypes.go to key_crosssigning.go 2025-01-10 00:51:29 +00:00
Roman Isaev
0990676466
linter fixes 2025-01-09 01:29:57 +00:00
Roman Isaev
fb15db7f7a
unit tests fix 2025-01-08 10:11:27 +00:00
Roman Isaev
7eec60e2ef
mas: reorganise endpoints 2025-01-07 02:28:20 +00:00
Roman Isaev
811a504e01
mas: handle 3pids from mas 2025-01-06 03:19:47 +00:00
Roman Isaev
5cffc2c257
mas: fix displayname handling 2025-01-06 03:18:31 +00:00
Roman Isaev
cc7deb22ad
mas: added support of msc3861 to /keys/device_signing/upload endpoint
this change is based mostly on changes made in synapse https://github.com/element-hq/synapse/blob/develop/synapse/rest/client/keys.py#L392
2025-01-05 02:42:20 +00:00
Roman Isaev
9b064b1572
minor refactoring 2025-01-05 02:38:07 +00:00
Roman Isaev
48f3cd3367
mas: added /admin/v1/deactivate/{userID} endpoint 2025-01-05 02:35:37 +00:00
Roman Isaev
c06e0aa206
refactor logger calls 2025-01-05 02:24:40 +00:00
Roman Isaev
803cce882f
mas: added admin's delete devices endpoint 2025-01-01 02:26:15 +00:00
Roman Isaev
f4ff4266f5
mas: refactor admin user device handler 2025-01-01 00:37:03 +00:00
Roman Isaev
ff63e7fa98
mas: modify PUT /profile/{userID}/displayname endpoint
Extended logic of the endpoint in order to make it compatible with
MAS
2024-12-30 20:40:00 +00:00
Roman Isaev
be8d490e56
mas: implemented PUT /admin/v2/users/{userID} endpoint
MAS requires this endpoint to fetch the data for the account management page
2024-12-30 17:14:04 +00:00
Roman Isaev
9d9841d02e
mas: added "admin's replacement without uia" endpoint
i.e. /_synapse/admin/v1/users/{userID}/_allow_cross_signing_replacement_without_uia
2024-12-30 13:34:21 +00:00
Roman Isaev
63a199cec3
mas: first successful attempt of login with via mas 2024-12-29 23:53:37 +00:00
Roman Isaev
e1dfe62b20
mas: rename msc2965 to msc3861 2024-12-22 00:35:04 +00:00
Roman Isaev
2c47959600
mas: added username_available endpoint 2024-12-22 00:23:25 +00:00
Roman Isaev
ba542fedcd
mas: added /auth_issuer endpoint 2024-12-21 01:00:13 +00:00
Neil
72039f651e
Update dependencies (#3449)
Signed-off-by: Neil Alexander <git@neilalexander.dev>

---------

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2024-12-15 11:27:27 +01:00
Johannes Marbach
7acf32f24d
Add via parameter on join room requests as per MSC4156 (#3441)
This implements
[MSC4156](https://github.com/matrix-org/matrix-spec-proposals/pull/4156)
which will ship with Matrix 1.12 and is the continuation of
https://github.com/matrix-org/dendrite/pull/3438.

### Pull Request Checklist

<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->

* [ ] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off)
_or_ I have already signed off privately

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
Co-authored-by: Till <2353100+S7evinK@users.noreply.github.com>
2024-12-09 20:31:20 +01:00
Till Faelligen
11b48749bf
Fix linting 2024-11-14 16:40:08 +01:00
Quentin Gliech
075b236155
Update the license headers to mention the commercial license 2024-10-18 16:14:08 +02:00
Quentin Gliech
6e6c3de0a6
Rename the go package
github.com/matrix-org/dendrite to github.com/element-hq/dendrite
2024-10-17 17:33:45 +02:00
Quentin Gliech
8b769d2cc4
Fixup missed license headers 2024-10-17 17:21:25 +02:00
Quentin Gliech
6bfe946bd2
Update the copyright headers in all files 2024-10-17 17:16:37 +02:00
Till
7a4ef240fc
Implement MSC3916 (#3397)
Needs https://github.com/matrix-org/gomatrixserverlib/pull/437
2024-08-16 12:37:59 +02:00
Alex
9897959731
Fix: Edited messages appear twice in fulltext search (#3363)
As stated in https://github.com/matrix-org/dendrite/issues/3358 the
search response contains both original and edited message.
This PR fixes it by removing of the original message from the fulltext
index after indexing the edit message event.
I also made some cosmetic changes/fixes i found in the code

Signed-off-by: `Alexander Dubovikov <d.lexand@gmail.com>`
2024-07-27 22:30:17 +02:00
0x1a8510f2
46902e5766
Take advantage of changes in recent Go versions (#3361)
Given that #2714 wasn't merged but we are now at a minimum supported Go
version of 1.20 (soon to be 1.21), I wanted to carry over some of the
changes. Namely:
- Fix the log typo
- Simplify build constraints for unix
- Use stdlib atomic package

### Pull Request Checklist

<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->

* [x] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off)
_or_ I have already signed off privately

Signed-off-by: `0x1a8510f2 <admin@0x1a8510f2.space>`

---------

Co-authored-by: devonh <devon.dmytro@gmail.com>
2024-05-01 00:38:36 +00:00
Till
b732eede27
Fix spaces over federation (#3347)
Fixes #2504

 A few issues with the previous iteration:
- We never returned `inaccessible_children`, which (if I read the code
correctly), made Synapse raise an error and thus not returning the
requested rooms
- For restricted rooms, we didn't return the list of allowed rooms
2024-03-28 20:40:45 +01:00
Till
ad0a7d09e8
Add getting/deleting single event report (#3344)
Based on https://github.com/matrix-org/dendrite/pull/3342

Adds `GET /_synapse/admin/v1/event_reports/{reportID}` and `DELETE
/_synapse/admin/v1/event_reports/{reportID}`
2024-03-22 21:54:29 +00:00
Till
79072c3dcd
Add /_synapse/admin/v1/event_reports endpoint (#3342)
Based on #3340 

This adds a `/_synapse/admin/v1/event_reports` endpoint, the same
Synapse has. This way existing tools also work with Dendrite.
Given this is already getting huge (even though many test lines),
splitting this into two PRs. (The next adds "getting one report" and
"deleting reports")

[skip ci]
2024-03-22 22:32:30 +01:00
Till
b9abbf7b20
Add event reporting (#3340)
Part of #3216 and #3226 

There will be a follow up PR which is going to add the same admin
endpoints Synapse has, so existing tools also work for Dendrite.
2024-03-21 19:27:34 +01:00
Till
ecb7b383e9
Remove unused token (#3331)
Part of https://github.com/matrix-org/dendrite/issues/3225
2024-02-19 19:19:06 +00:00
Till
e9deb5244e
Fix /createRoom and /invite containing displayname/avatarURL of inviter (#3326)
Fixes #3324
2024-02-13 19:28:52 +01:00
Till
8f68f1ff53
Move /joined_members back to the clientapi/roomserver (#3312)
Partly reverts #2827 by moving `/joined_members` back to the
clientAPI/roomserver
2024-01-25 21:35:05 +01:00