Commit graph

2910 commits

Author SHA1 Message Date
strawberry
42970114ad only allow admins to send room state events by default (e.g. ACLs)
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-14 13:51:23 -04:00
strawberry
36d3f8decc don't debug log device display name for guest registrations
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-14 13:42:14 -04:00
strawberry
10e0e0178e nix: try lastModifiedDate for oci image created date
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-14 04:00:54 -04:00
strawberry
e01ae257e4 add list of passed, failed, and all complement tests
Signed-off-by: strawberry <strawberry@pupbrain.dev>
2024-04-13 22:27:28 -04:00
strawberry
8825621c06 update complement Dockerfile conduwuit config sed's
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-13 22:06:00 -04:00
strawberry
27d65dde3a raise complement test timeout to 30 minutes from 10 minutes
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-13 21:47:05 -04:00
strawberry
6b035dcb4a document commandline args for complement
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-13 20:35:32 -04:00
strawberry
733f00c5bd add config option for allowing guests to auto join rooms
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-13 20:33:24 -04:00
strawberry
c6aa0ebabe add config option for logging guest regs in admin room
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-13 20:19:10 -04:00
strawberry
b140ae7347 run all complement tests
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-13 18:58:31 -04:00
strawberry
4f2d528110 fix: use path_and_query() for "uri" in request_map for signatures
resolves X-Matrix signatures being invalid in some edge-cases,
and fixes Complement/Sytest federation tests

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-13 16:07:14 -04:00
strawberry
f6336896ba fix complement script
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-13 14:53:17 -04:00
strawberry
a7683b8bca cite banner image used by at least github repo
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-13 03:19:51 -04:00
strawberry
aaa410476b partially update differences.md, at note at the top
this is hard to maintain now, and i think conduwuit is reaching a point that
it's way too different from upstream to simply "list all the differences" out

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-13 02:16:37 -04:00
strawberry
4d3dd4a38e port room directory auth to new auth stuff
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-12 22:40:49 -04:00
strawberry
654eaac675 bump cargo.lock due to yanked jobserver
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-12 21:50:16 -04:00
Matthias Ahouansou
f1f5e1c993 merge the huge authentication MR mess (reject requests with authentication when not used)
and (fix: allow invalid auth when no auth is required)

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-12 20:28:32 -04:00
strawberry
e89ede45b0 fix rustdoc lint
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-12 20:03:09 -04:00
Matthias Ahouansou
e2c0ab8138 disable federation at the router level too
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-12 19:59:29 -04:00
strawberry
978b83df32 remove two unnecessary matches
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-12 19:50:42 -04:00
strawberry
4f7e5787e7 log error for /publicRooms requests, simplify it a bit
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-12 19:42:09 -04:00
strawberry
500fa6a9b0 fix example config well_known options
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-11 22:07:53 -04:00
strawberry
3569f76805 add back default derive for WellKnownConfig
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-11 21:50:40 -04:00
strawberry
ae7a563faa bump conduwuit version to 0.1.15
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-11 21:15:11 -04:00
Matthias Ahouansou
8a51727aba feat(federation): implement /make_leave and /send_leave
also fixed some clippy lints, and added "event_id" field
removal check for room v1 and 2

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-11 21:13:10 -04:00
strawberry
75cee3fb99 refactor well-known stuff to use proper ruma types, config types, etc
this does deprecate the original `well_known_` prefixed config options
with a dedicated/proper config sub-block (`[config.well_known]`)

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-11 20:33:33 -04:00
strawberry
76e5fa2599 add unstable support for MSC4125
from https://gitlab.com/famedly/conduit/-/merge_requests/626 with code fixes and clippy lint fixes

MSC4125: https://github.com/matrix-org/matrix-spec-proposals/pull/4125

Co-authored-by: Matthias Ahouansou <matthias@ahouansou.cz>
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-11 19:39:17 -04:00
strawberry
ef8f09a011 bump ruma, deps, and add MSC4125 ruma feature
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-11 18:29:27 -04:00
strawberry
92f11b5b8c simplify getting event content in build_and_append_pdu
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-11 18:15:22 -04:00
strawberry
c2976919fc mark room version 11 as stable
there's nothing unstable about this, and per upstream only unstable
room versions are used if they are complex to support (versions <=5)

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-11 17:44:00 -04:00
strawberry
905e613422 output jemalloc and hmalloc builds in CI, add back target check for cargo.toml
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-11 00:12:18 -04:00
strawberry
42907a82dc bump deps, fix repo link on cargo.toml
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-10 23:52:12 -04:00
strawberry
34522992e3 remove unnecessary malloc imports, remove cargo.toml env check
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-10 23:42:37 -04:00
strawberry
2a38b1f184 allow unset variables in nix-build-and-cache for unset ATTIC_TOKEN
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-10 23:36:34 -04:00
strawberry
82c6f3980c nix: simplify malloc outputs
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-10 23:03:40 -04:00
strawberry
c3001b3734 nix: use HEAD commit's date for docker image creation and reproducible images
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-10 21:21:29 -04:00
strawberry
ed32b86970 maybe add multiple outputs support to nix flake for jemalloc and hardened_malloc
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-10 20:31:00 -04:00
strawberry
7c05e31d2f dual malloc feature check
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-10 20:30:40 -04:00
strawberry
cce0e1c157 use hardened_malloc by default only on supported targets
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-10 16:44:50 -04:00
strawberry
8064daa203 add hardened_malloc-rs feature and global_allocator
Signed-off-by: strawberry <strawberry@pupbrain.dev>
2024-04-10 16:44:50 -04:00
Jason Volk
7d92cad55f deactivate bloom filter
Signed-off-by: Jason Volk <jason@zemos.net>
2024-04-10 12:15:34 -04:00
Jason Volk
6345742e8b tweak compaction options
Signed-off-by: Jason Volk <jason@zemos.net>
2024-04-09 15:26:45 -04:00
Jason Volk
c42209c0b3 use Arc<[u64]> rather than Arc<HashSet<u64>> for auth_chain_cache value.
Signed-off-by: Jason Volk <jason@zemos.net>
2024-04-09 15:26:45 -04:00
Jason Volk
2cc72de80e fix lossy origin regression 12a8c9badd
Signed-off-by: Jason Volk <jason@zemos.net>
2024-04-09 15:26:45 -04:00
Jason Volk
458e56818c polylogarithmic debodge
Signed-off-by: Jason Volk <jason@zemos.net>
2024-04-09 15:26:45 -04:00
Jason Volk
345be5ba5e use rocksdb caches for a few of the lru_caches
Signed-off-by: Jason Volk <jason@zemos.net>
2024-04-09 15:26:45 -04:00
strawberry
fc44ba6ab3 bump ruma and cargo.lock
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-09 15:26:45 -04:00
strawberry
839a89c968 remove some unnecessary loops
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-09 15:26:45 -04:00
strawberry
40596634c4 respond with actual servers for /_matrix/federation/v1/query/directory requests instead of just us
aka be spec compliant

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-09 15:26:45 -04:00
strawberry
973fed155e config option to allow/disallow federation profile requests
allow_profile_lookup_federation_requests

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-09 15:26:45 -04:00