Neil Alexander
89d2adadbd
Attempt to raise the file descriptor limit at startup ( #2527 )
2022-06-10 10:58:04 +01:00
Neil Alexander
1030072285
Rename the page to "Optimise your installation"
2022-06-10 10:18:32 +01:00
Neil Alexander
16ed1633b6
Highlighting in docs
2022-06-10 10:15:14 +01:00
Neil Alexander
e2a64773ce
Add new next steps page to the documentation
2022-06-10 10:14:15 +01:00
Till
660f7839f5
Correctly redact events over federation ( #2526 )
...
* Ensure we check powerlevel/origin before redacting an event
* Add passing test
* Use pl.UserLevel
* Make check more readable, also check for the sender
2022-06-09 18:38:07 +02:00
Neil Alexander
83797573be
Version 0.8.8 ( #2525 )
2022-06-09 12:18:50 +01:00
Till
289b3c5608
Allow "registration is idempotent, with username specified" to pass ( #2488 )
...
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-06-09 11:26:48 +01:00
Neil Alexander
3cdefcf765
Update sample configs for exempt_user_ids
2022-06-08 09:13:25 +01:00
Tommie Gannert
dba1965c8b
Fix two lint errors.
2022-06-08 09:40:11 +02:00
Tommie Gannert
4da104c5c3
Merge remote-tracking branch 'origin/main' into loginsso
2022-06-08 09:24:56 +02:00
Tommie Gannert
4362422a6d
Fix two lint errors.
2022-06-08 09:24:08 +02:00
Tommie Gannert
210ab1eef6
Add SSO tests.
...
Renames cookie oidc_nonce to sso_nonce, since it's defined in a file
that doesn't know about OIDC specifically.
2022-06-08 09:14:11 +02:00
Neil Alexander
c4df6d7723
Optimise state res v2 by only updating the allower when necessary (update to matrix-org/gomatrixserverlib@e55d796 )
2022-06-07 15:34:58 +01:00
Neil Alexander
b21a2223ef
Optimise state res v2 by parsing power level content less often (update to matrix-org/gomatrixserverlib@e938c07 )
2022-06-07 15:04:00 +01:00
Neil Alexander
6d4bd5d890
Rate limiting changes ( #2519 )
...
* Rate limiting changes
This makes the following changes:
* For logged in users, the rate limiting now applies to the device session rather than the remote IP address;
* For non-logged in users, the rate limiting continues to apply to remote address as it does today;
* It is now possible to add user IDs to the `exempt_user_ids` option under `rate_limiting` to exclude bots from rate limiting;
* Admin and appservice users are now exempt from rate limiting by default.
* Fix build with media API
2022-06-07 14:24:04 +01:00
Neil Alexander
27948fb304
Optimise loadAuthEvents, add roomserver tracing
2022-06-07 14:23:26 +01:00
Neil Alexander
aafb7bf120
Avoid panicking unnecessarily when shutting down the gobind P2P demos ( #2520 )
2022-06-07 10:46:21 +01:00
Neil Alexander
0d7020fbaf
Send tombstone to other servers when upgrading rooms
2022-06-06 17:27:50 +01:00
Neil Alexander
2cb609c428
Room upgrade tweaks
...
Squashed commit of the following:
commit 7a1568c716866594af6d0b1d561c58c96de29b20
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date: Mon Jun 6 15:17:49 2022 +0100
Make errors more useful
commit 64befe7c9a901b00650442171660c2dc4ea575fa
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date: Mon Jun 6 15:02:40 2022 +0100
Tweak ordering a bit
2022-06-06 15:18:02 +01:00
Neil Alexander
02597f15f0
Fix panic in QueryRestrictedJoinAllowed
2022-06-06 08:56:06 +01:00
Till
3e9c734da5
Make setting state idempotent ( #2512 )
...
* Make Setting state twice is idempotent pass
* Add passing tests
* PR comment & comments
2022-06-03 06:43:51 +02:00
Neil Alexander
f41931b566
Version 0.8.7 ( #2509 )
2022-06-01 11:40:37 +01:00
Neil Alexander
02e5c74101
Revert #2457
...
Squashed commit of the following:
commit 2bd0daf4d61376d2dd56628eaff267b0bc63e116
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date: Wed Jun 1 09:55:54 2022 +0100
Revert resolving old extremities as well as new
This may no longer be needed with the new state fixes and probably just burns more CPU time than is strictly necessary.
2022-06-01 10:09:27 +01:00
Neil Alexander
70cd8c68c2
Reduce error levels on device list update
2022-06-01 09:49:46 +01:00
Neil Alexander
3d9fe20748
Fix bugs related to state resolution ( #2507 )
...
* Fix bugs related to state resolution
* Clean up `resolve-state`
* Don't panic when entries can't be found
* Ensure we have state entries for the auth events
* Revert "Ensure we have state entries for the auth events"
This reverts commit 9b13b7ed37 .
* Revert "Revert "Ensure we have state entries for the auth events""
This reverts commit d86db197e3 .
* Fix bug
* Try that again
* Update gomatrixserverlib
* Remove recursion from `loadAuthEvents`
2022-06-01 09:46:21 +01:00
Neil Alexander
ea16614f71
Update versions
2022-06-01 09:39:17 +01:00
Till
ae7b6dd516
Fix #2498 ( #2506 )
2022-05-31 14:36:51 +02:00
Till
beed39a8f4
Fix pq: invalid input syntax for integer when trying to get a numeric localpart ( #2505 )
...
* Match at least once
* Add the test
2022-05-31 11:27:04 +02:00
Neil Alexander
9f8b3136b2
Fix bugs in resolve-state tool
2022-05-30 15:11:48 +01:00
Neil Alexander
fb52b6cedc
Sort resolve-state output
2022-05-30 14:38:50 +01:00
Neil Alexander
9869dc2cbe
Update readme
2022-05-30 11:11:21 +01:00
Neil Alexander
247604979a
Add missing indexes to federation API destination queues ( #2502 )
...
* Add missing indexes to federation API destination queues
* Fix duplicate name
2022-05-30 11:01:20 +01:00
Neil Alexander
500124dd18
Add support for room version 10 (update to matrix-org/gomatrixserverlib#315 )
2022-05-30 09:50:23 +01:00
Tommie Gannert
b8844fb1e2
Fix a lint warning.
2022-05-27 23:08:53 +02:00
Tommie Gannert
ffa527340a
Fix a lint error.
2022-05-27 23:00:44 +02:00
Tommie Gannert
f814f9bdf1
Fall back to numeric localpart if there is no suggested username.
...
Fixes https://github.com/matrix-org/dendrite/issues/2498 .
2022-05-27 22:29:20 +02:00
Tommie Gannert
09f0dca6aa
Refactor SSO configuration.
...
It makes more sense to base provider defaults on brand. Type is not
1:1 to brand.
Splits apart OIDC and OAuth2 to match actual specs.
2022-05-27 22:15:52 +02:00
Tommie Gannert
d351a48379
Fix a golangci-lint issue.
2022-05-27 19:37:41 +02:00
Tommie Gannert
9292bb42c1
Replace SSO discovery URL with an environment variable from Complement.
2022-05-27 19:31:08 +02:00
Tommie Gannert
80fa0bcb4c
Enable SSO in CI.
2022-05-27 19:30:30 +02:00
Tommie Gannert
ac706be242
Improve error reporting for OAuth2 SSO requests.
2022-05-27 19:30:05 +02:00
Tommie Gannert
6663882cf2
Fix OAuth2 user info credentials and add HTTP error handling.
2022-05-27 18:09:41 +02:00
Tommie Gannert
43bac75c5f
Fix callback URL building in SSOCallback.
...
It ended up without scheme and host. Do what SSORedirect does instead.
2022-05-27 12:31:38 +02:00
Tommie Gannert
618e18f259
Change cookie oidc_nonce to SameSite=None.
...
https://github.com/matrix-org/dendrite/issues/1297#issuecomment-1139357227
2022-05-27 09:58:31 +02:00
Neil Alexander
b541f3043f
Add support for MSC3787 and org.matrix.msc3787 room version (update to matrix-org/gomatrixserverlib#310 )
2022-05-26 15:08:17 +01:00
Neil Alexander
45c4c00672
Version 0.8.6 ( #2497 )
2022-05-26 13:01:04 +01:00
Neil Alexander
9e46d5025a
Upgrade various dependencies ( #2496 )
...
* Upgrade various dependencies
* Yaml dependency too
2022-05-26 12:34:43 +01:00
Neil Alexander
5a878b6e14
Update to matrix-org/gomatrixserverlib#314
2022-05-26 11:52:39 +01:00
Neil Alexander
9eb4fec33b
Make logging output for state deletions a bit better
2022-05-26 10:38:46 +01:00
Tommie Gannert
83bac7df36
Disables the SSO SyTest.
...
Requires a configuration change in SyTest.
2022-05-25 19:25:32 +02:00