Ginger
eba0130f8e
fix(complement): Fix complement conflicting with first-run
...
- Disabled first-run mode when running Complement tests
- Updated logging config under complement to be a bit less verbose
- Changed test result and log output locations
2026-03-03 18:43:53 +00:00
timedout
b507898c62
fix: Bump ruwuma again
2026-03-03 18:10:28 +00:00
nexy7574
f4af67575e
fix: Bump ruwuma to resolve duplicate state error
2026-03-03 06:01:02 +00:00
timedout
6adb99397e
feat: Remove MSC4010 support
2026-02-27 17:03:19 +00:00
Renovate Bot
8ce83a8a14
chore(deps): update rust crate axum-extra to 0.12.0
2026-02-25 17:16:35 +00:00
Niklas Wojtkowiak
052c4dfa21
fix(sync): don't override sliding sync v5 list range start to zero
2026-02-24 13:59:33 +00:00
lynxize
a43dee1728
fix: Don't show successful media deletion as an error
...
Fixes !admin media delete --mxc <url> responding with an error message
when the media was deleted successfully.
2026-02-23 22:02:34 -07:00
Niklas Wojtkowiak
763d9b3de8
fixup! fix(api): restore backwards compatibility for RTC foci config
2026-02-23 18:10:25 -05:00
Niklas Wojtkowiak
1e6d95583c
chore(deps): update ruwuma revision
2026-02-23 23:01:15 +00:00
Niklas Wojtkowiak
8a254a33cc
fix(api): restore backwards compatibility for RTC foci config
2026-02-23 23:01:15 +00:00
Niklas Wojtkowiak
c97dd54766
chore(changelog): add news fragment for #1442
2026-02-23 23:01:15 +00:00
Niklas Wojtkowiak
8ddb7c70c0
feat(api): implement MSC4143 RTC transports discovery endpoint
...
Add dedicated \`GET /_matrix/client/v1/rtc/transports\` and \`GET /_matrix/client/unstable/org.matrix.msc4143/rtc/transports\` endpoints for MatrixRTC focus discovery (MSC4143), replacing the deprecated well-known approach.
Move RTC foci configuration from \`[global.well_known]\` into a new \`[global.matrix_rtc]\` config section with a \`foci\` field. Remove \`rtc_foci\` from the \`.well-known/matrix/client\` response. Update LiveKit setup documentation accordingly.
Closes #1431
2026-02-23 23:01:15 +00:00
Niklas Wojtkowiak
cb9786466b
chore(changelog): add news fragment for #1441
2026-02-23 17:59:13 +00:00
Niklas Wojtkowiak
18d2662b01
fix(config): remove allow_public_room_directory_without_auth
2026-02-23 17:59:13 +00:00
timedout
558262dd1f
chore: Refactor transaction_ids -> transactions
2026-02-23 17:44:35 +00:00
timedout
d311b87579
chore: Fix incorrect capitalisation
...
I didn't realise I agreed to take an English class with @ginger while
working on this server lol
2026-02-23 17:25:12 +00:00
timedout
8702f55cf5
fix: Don't panic if nobody's listening
2026-02-23 17:22:37 +00:00
timedout
d4481b07ac
chore: Add news frag
2026-02-23 16:54:54 +00:00
Jade Ellis
92351df925
refactor: Make federation transaction handle errors correctly
...
We have a dedicated error type that's then matched.
Event sorting is now infallible.
Could probably be cleaned up in a bit.
2026-02-23 16:36:46 +00:00
Jade Ellis
47e2733ea1
refactor: Make stream utils generic over the error type
2026-02-23 16:36:46 +00:00
Jade Ellis
6637e4c6a7
fix: Clean up cache, prevent several race conditions
...
We use one map which is only ever held for a short time.
2026-02-23 16:36:46 +00:00
nexy7574
35e441452f
feat: Attempt to build localised DAG before processing PDUs
2026-02-23 16:36:46 +00:00
nexy7574
66bbb655bf
feat: Warn when server is overloaded
2026-02-23 16:36:45 +00:00
nexy7574
81b202ce51
chore: Decrease transaction log verbosity
2026-02-23 16:36:45 +00:00
nexy7574
4657844d46
feat: Show active transaction handle count in !admin federation incoming-federation
2026-02-23 16:36:45 +00:00
nexy7574
9016cd11a6
chore: Run pre-commit and clippy to fix inherited CI errs
2026-02-23 16:36:45 +00:00
nexy7574
dd70094719
feat: Make max_active_txns actually configurable
2026-02-23 16:36:45 +00:00
nexy7574
fcd49b7ab3
fix: Remove duplicate fields from logs
2026-02-23 16:36:45 +00:00
nexy7574
470c9b52dd
feat: Instrument process_inbound_transaction
2026-02-23 16:36:45 +00:00
nexy7574
0d8cafc329
feat: Support casting transaction processing to the background
2026-02-23 16:36:44 +00:00
nexy7574
2f9956ddca
feat: Add helper functions for federation channels
2026-02-23 16:36:44 +00:00
nexy7574
21a97cdd0b
chore: Refactor existing references to transaction service
2026-02-23 16:36:44 +00:00
nexy7574
e986cd4536
feat(federation): Restructure transaction_ids service
...
Adds two new in-memory maps to the service in to prepare for better handlers
2026-02-23 16:36:40 +00:00
Shane Jaroch
526d862296
fix: more aggressive user agent for URL preview
...
adding "facebookexternalhit" alongside "embedbot" fixes many errors, such as YouTube Music's:
"Your browser is deprecated. Please upgrade."
add admin command to clear URL stuck and broken data (per URL currently)
add command to clear all saved URL previews.
sync resolver docs.
2026-02-23 15:24:14 +00:00
Ben Botwin
fbeb5bf186
report permission denied errors
2026-02-23 15:22:18 +00:00
Ben Botwin
a336f2df44
fixed formatting
2026-02-23 15:22:18 +00:00
Ben Botwin
19b78ec73e
made error handling more concise
2026-02-23 15:22:18 +00:00
Ben Botwin
27ff2d9363
added more granular error handling for other file fetch function
2026-02-23 15:22:18 +00:00
Ben Botwin
50fa8c3abf
ran format
2026-02-23 15:22:18 +00:00
Ben Botwin
18c4be869f
added handling for other potential errors
2026-02-23 15:22:18 +00:00
Ben Botwin
fc00b96d8b
Added proper 404 for not found media and fixed devshell for running tests
2026-02-23 15:22:18 +00:00
Jade Ellis
fa4156d8a6
docs: Changelog
2026-02-22 21:19:20 +00:00
Jade Ellis
23638cd714
feat(appservices): MSC3202 Device masquerading for appservices
2026-02-22 21:19:20 +00:00
Raven
9f1a483e76
docs: Add information about partnered homeservers to the introduction page & update README.md
...
Includes step-by-step directions to ease the lift for those who have ended up
here and who have never created a matrix account or used matrix before in the
past.
Also updates the information in README.md to match, as these should generally be identical.
2026-02-21 18:51:56 -08:00
Renovate Bot
688ef727e5
chore(deps): update rust crate nix to 0.31.0
2026-02-21 16:33:05 +00:00
Shannon Sterz
3de026160e
docs: express forbidden_remote_server_names as valid regex
...
this field expects a regex not a glob, so the correct value should be
".*" if one wants to block all remote server names. otherwise, setting
"*" as documented results in an error on start because the configuration
could not be properly parsed.
2026-02-21 16:27:59 +00:00
Ginger
9fe761513d
chore: Clippy & prek fixes
2026-02-21 11:27:39 -05:00
Renovate Bot
abf1e1195a
chore(deps): update rust crate libloading to 0.9.0
2026-02-21 01:55:48 +00:00
Ginger
d9537e9b55
fix: Forbid registering users with a non-local localpart
2026-02-20 20:54:19 -05:00
Jade Ellis
0d1de70d8f
fix(deps): Update lockfile
2026-02-21 00:22:42 +00:00
Ben Botwin
4aa03a71eb
fix(nix): Added unstable flag to buildDeps
2026-02-21 00:15:53 +00:00
aviac
f847918575
fix(nix): Fix all-features build
...
The build was broken since we started using an unstable reqwest version
which requires setting an extra feature flag
2026-02-21 00:15:53 +00:00
Renovate Bot
7569a0545b
chore(deps): update dependency lddtree to 0.5.0
2026-02-20 22:59:34 +00:00
Jade Ellis
b6c5991e1f
chore(deps): Update rand
...
A couple indirect deps are still on rand_core 0.6 but we can deal
2026-02-20 22:57:45 +00:00
Katie Kloss
efd879fcd8
docs: Add news fragment
2026-02-20 10:13:54 +00:00
Katie Kloss
92a848f74d
fix: Crash before starting on OpenBSD
...
core_affinity doesn't return any cores on OpenBSD, so we try to
clamp(1, 0). This is Less Good than fixing that crate, but at
least allows the server to start up.
2026-02-20 10:13:54 +00:00
Renovate Bot
776b5865ba
chore(deps): update sentry-rust monorepo to 0.46.0
2026-02-19 14:56:25 +00:00
timedout
722bacbe89
chore: Fix busted lockfile merge
2026-02-19 02:33:41 +00:00
Jade Ellis
46907e3dce
chore: Migrate to axum 0.8
...
Co-authored-by: dasha_uwu
2026-02-19 02:18:29 +00:00
timedout
31e2195e56
fix: Remove non-compliant and non-functional non-authoritative directory queries
...
chore: Add news frag
2026-02-19 01:37:42 +00:00
Terry
7ecac93ddc
fix: Remove rocksdb secondary mode
2026-02-18 23:11:53 +00:00
Terry
6a0b103722
docs: Changelog
2026-02-18 23:11:53 +00:00
Terry
23d77b614f
fix: Remove ability to set rocksdb as read only
2026-02-18 23:11:53 +00:00
stratself
e01aa44b16
fix: add nodejs URL in CONTRIBUTING.md page
2026-02-18 23:07:29 +00:00
stratself
a08739c246
docs: rewrite how to load docs with new rspress engine
2026-02-18 23:07:29 +00:00
Ginger
c14864b881
fix: Wording fixes
2026-02-18 14:41:03 +00:00
Ginger
1773e72e68
feat(docs): Add a note about !779 to the troubleshooting page
2026-02-18 14:41:03 +00:00
kraem
0f94d55689
fix: don't warn about needed backfill via federation for non-federated rooms
2026-02-18 14:27:14 +00:00
Renovate Bot
abfb6377c2
chore(deps): update rust-patch-updates
2026-02-18 14:26:49 +00:00
Renovate Bot
91d64f5b24
chore(deps): update rust crate askama to 0.15.0
2026-02-18 05:04:23 +00:00
Jade Ellis
9a3f3f6e78
ci: Explicitly enable Dependency Dashboard
2026-02-17 21:33:30 +00:00
Jade Ellis
b3e31a4aad
ci(deps): Automerge typos updates
2026-02-17 21:33:13 +00:00
Jade Ellis
8cda431cc6
ci(deps): Group npm patch updates
2026-02-17 21:30:51 +00:00
Renovate Bot
02b9a3f713
chore(deps): update pre-commit hook crate-ci/typos to v1.43.5
2026-02-17 05:03:45 +00:00
timedout
d40893730c
chore: Lighten the phrasing
2026-02-17 02:07:19 +00:00
timedout
28fae58cf6
chore: Add news frag & rebuild config
2026-02-17 02:07:19 +00:00
timedout
f458f6ab76
chore: Disable presence by default, and add warnings to other heavy ops
2026-02-17 02:07:19 +00:00
Shane Jaroch
fdf9cea533
fix(admin-cli): concatenation/formatting error, i.e.,
...
**NOTE:** If there are any features, tools, or admin internals dependent on this output that would break, let me know!
I'm hoping this is acceptable, since it's a human-readable command.
Current output:
```shell
uwu> server list-backups
#1 Mon, 9 Feb 2026 20:36:25 +0000: 66135580 bytes, 595 files#2 Wed, 11 Feb 2026 02:33:15 +0000: 270963746 bytes, 1002 files#3 Sat, 14 Feb 2026 22:11:19 +0000: 675905487 bytes, 2139 files
```
Should be:
```shell
uwu> server list-backups
#1 Mon, 9 Feb 2026 20:36:25 +0000: 66135580 bytes, 595 files
#2 Wed, 11 Feb 2026 02:33:15 +0000: 270963746 bytes, 1002 files
#3 Sat, 14 Feb 2026 22:11:19 +0000: 675905487 bytes, 2139 files
```
2026-02-16 00:52:02 -05:00
Jade Ellis
ecb1b73c84
style: Trailing whitespace
2026-02-16 03:47:16 +00:00
rooot
e03082480a
docs(livekit): document nginx websockets too
...
Signed-off-by: rooot <hey@rooot.gay >
2026-02-16 03:43:43 +00:00
rooot
f9e7f019ad
docs(livekit): fix port in caddy config example
...
Signed-off-by: rooot <hey@rooot.gay >
2026-02-16 03:43:43 +00:00
rooot
12069e7c86
docs(livekit): add nginx proxy example
...
Signed-off-by: rooot <hey@rooot.gay >
2026-02-16 03:43:42 +00:00
Jade Ellis
77928a62b4
docs: Document BSD community room
2026-02-16 03:31:56 +00:00
elisaado
c73cb5c1bf
feat(docs): Add Kubernetes documentation with sample ( #1387 )
...
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1387
Reviewed-by: Jade Ellis <jade@ellis.link >
Co-authored-by: elisaado <forgejoellis@elisaado.com >
Co-committed-by: elisaado <forgejoellis@elisaado.com >
2026-02-16 03:14:29 +00:00
Jade Ellis
a140eacb04
docs: Fix trailing list
2026-02-16 03:12:50 +00:00
Jade Ellis
40536b13da
feat: Add experimental http3 support
...
Only enabled in Docker builds for now, due to build config required. Not
sure if more work is needed for 0RTT.
2026-02-16 02:56:49 +00:00
Jade Ellis
cacd8681d1
docs: Update & apply feedback
2026-02-16 02:55:26 +00:00
burgundia
b095518e6f
Update documentation to feature LiveKit-related configuration options present in continuwuity.toml
2026-02-16 02:35:41 +00:00
Jade Ellis
a91add4aca
docs: Apply feedback
2026-02-16 02:35:41 +00:00
Jade Ellis
7fec48423a
chore: Style
2026-02-16 02:35:40 +00:00
Jade Ellis
2f6b7c7a40
docs: Update TURN guide
2026-02-16 02:35:40 +00:00
Jade Ellis
48ab6adec1
chore: Apply review comments
2026-02-16 02:35:40 +00:00
Jade Ellis
592244d5aa
docs: Last dead link
2026-02-16 02:35:40 +00:00
Jade Ellis
091893f8bc
fix: oops
2026-02-16 02:35:40 +00:00
Jade Ellis
6eba6a838e
docs: Fix broken links
2026-02-16 02:35:39 +00:00
Jade Ellis
1a11c784f5
docs: Write up how to set up LiveKit calling
2026-02-16 02:35:38 +00:00
Renovate Bot
55ccfdb973
chore(deps): update rust-patch-updates
2026-02-15 23:04:26 +00:00
Henry-Hiles
a9a39e6d5e
fix: Update regex for web template in uwulib build
2026-02-15 23:04:05 +00:00
Jade Ellis
38bf1ccbcc
refactor: Drop duplicate clone
2026-02-15 23:03:23 +00:00
timedout
b7a8cbdb42
feat: Exclude empty rooms from !admin rooms list by default
...
Reviewed-By: Ginger <ginger@gingershaped.computer >
2026-02-15 23:03:23 +00:00
Ginger
4e1dac32a5
fix: Don't panic when running startup admin commands
2026-02-15 17:32:26 -05:00
timedout
7b21c3fd9f
chore: Update changelog
2026-02-15 20:39:14 +00:00
timedout
f566ca1b93
chore: Release 0.5.5
2026-02-15 20:31:58 +00:00
timedout
debe411e23
fix(ci): Work around LLVM issue & dynamically select clang pkg version
2026-02-15 20:27:55 +00:00
timedout
dc0d6a9220
fix: Install clang-23 specifically
...
clang (clang-22) is busted
2026-02-15 19:09:33 +00:00
timedout
2efdb6fb0d
fix: Work around https://github.com/llvm/llvm-project/issues/153385
2026-02-15 18:55:17 +00:00
Ginger
576348a445
fix: Set default value of allow_registration to true
2026-02-15 18:05:42 +00:00
Ginger
f322b6dca0
chore: News fragment
2026-02-15 18:05:42 +00:00
Ginger
a1ed77a99c
feat: Add a link to the clients list on matrix.org
2026-02-15 18:05:42 +00:00
Ginger
01b5dffeee
feat: Default index page improvements
...
- Add project logo to footer and favicon
- Display different messages depending on if first-run mode is active
2026-02-15 18:05:42 +00:00
Ginger
ea3c00da43
chore: Clippy fixes
2026-02-15 18:05:42 +00:00
Ginger
047eba0442
feat: Improve the initial setup experience
...
- Issue a single-use token for initial account creation
- Disable registration through other methods until the first account is made
- Print helpful instructions to the console on the first run
- Improve the welcome message sent in the admin room on first run
2026-02-15 18:05:42 +00:00
Ginger
11a088be5d
feat: Stop logging announcements to the console
2026-02-15 18:05:42 +00:00
Ginger
dc6bd4e541
fix: Silence unnecessary policy server errors in debug builds
2026-02-15 18:05:42 +00:00
Ginger
2bf9207cc4
feat: Add skeleton first-run service
2026-02-15 18:05:42 +00:00
Ginger
b2a87e2fb9
refactor: Add support for multiple static tokens to registration token service
2026-02-15 18:05:42 +00:00
timedout
7d0686f33c
fix: Error response can leak appservice token
...
Reviewed-By: Ginger <ginger@gingershaped.computer >
Reviewed-By: Jade Ellis <jade@ellis.link >
2026-02-15 17:58:48 +00:00
Jade Ellis
082c44f355
fix: Only sync LDAP admin status when admin_filter is configured
...
Closes #1307
2026-02-15 16:17:26 +00:00
Jade Ellis
117c581948
fix: Correct incorrectly inverted boolean expression
2026-02-15 16:11:19 +00:00
timedout
cb846a3ad1
style: Invert pending_invite_state check
2026-02-15 16:11:19 +00:00
timedout
81b984b2cc
style: Compress should_rescind_invite
2026-02-15 16:11:19 +00:00
timedout
e2961390ee
feat: Support rescinding invites over federation
2026-02-15 16:11:19 +00:00
timedout
cb75e836e0
style: Update error messages in make_join.rs
2026-02-15 16:11:19 +00:00
nexy7574
cb7a988b1b
chore: Add news frag
2026-02-15 16:11:19 +00:00
nexy7574
aa5400bcef
style: Fix IncompatibleRoomVersion log line
2026-02-15 16:11:18 +00:00
nexy7574
ff4dddd673
fix: Refactor local join process
2026-02-15 16:11:18 +00:00
nexy7574
c22b17fb29
fix: Return accurate errors in make_join for restricted rooms
2026-02-15 16:11:18 +00:00
timedout
3da7fa24db
fix: Produce more useful errors in make_join_request
2026-02-15 16:11:18 +00:00
timedout
d15ac1d3c1
fix: Use 404 instead of 400 (and include sender)
2026-02-15 15:55:36 +00:00
timedout
a9ebdf58e2
feat: Filter ignored PDUs in relations
2026-02-15 15:55:35 +00:00
timedout
f1ab27d344
feat: Return SENDER_IGNORED error for context and relations
2026-02-15 15:55:35 +00:00
timedout
8bc6e6ccca
feat: Return SENDER_IGNORED error in is_ignored_pdu
2026-02-15 15:55:32 +00:00
Jade Ellis
60a3abe752
refactor: Use HashSet
2026-02-15 15:35:29 +00:00
Ellie
e3b874d336
fix(sync): handle wildcard state keys in sliding sync required_state
2026-02-15 15:35:29 +00:00
Jade Ellis
f3f82831b4
docs: Changelog
2026-02-15 15:23:15 +00:00
Jade Ellis
26aac1408e
fix: Correct user agent changes
...
Correct the domain
Remove "embed" in the UA because the
global UA was modified, rather than
just the one for preview requests
2026-02-15 15:21:06 +00:00
Trash Panda
be8f62396a
feat(core): Change default user agent
2026-02-15 15:21:06 +00:00
Trash Panda
40996a6602
feat(core): Add config option for the url preview user agent
2026-02-15 15:21:05 +00:00
Jade Ellis
9cae531f90
doc: Changelog
2026-02-15 15:19:03 +00:00
Jade Ellis
56eea935b6
feat: Deadlock detector thread
2026-02-15 15:19:02 +00:00
Renovate Bot
fcb646f8c4
chore(deps): update rust-patch-updates
2026-02-15 05:02:30 +00:00
Jade Ellis
57b21c1b32
docs: Add links to matrix guides
2026-02-14 19:29:07 +00:00
Ginger
8d66500c99
chore: Code cleanup
2026-02-14 14:12:57 -05:00
Simon Gardling
abacf1dc20
chore: News fragment
2026-02-14 14:12:42 -05:00
Simon Gardling
134e5cadaf
fix(sliding-sync): Properly handle wildcard state_key
...
Fixes calls as described in https://forgejo.ellis.link/continuwuation/continuwuity/issues/1306
2026-02-14 14:12:35 -05:00
Renovate Bot
8ec0f0d830
chore(deps): update dependency @rspress/plugin-client-redirects to v2.0.3
2026-02-14 14:14:40 +00:00
Renovate Bot
0453544036
chore(deps): update dependency cargo-bins/cargo-binstall to v1.17.5
2026-02-14 05:03:21 +00:00
Jade Ellis
89ad809270
docs: Correct comment on rtc_focus_server_urls
2026-02-13 19:52:39 +00:00
Chris W Jones
ecd3a4eb41
build: Update ruwuma for RTC Foci responses
2026-02-13 19:52:39 +00:00
Chris W Jones
5506997ca0
feat: Add config option for livekit
...
This adds a new config option under `global.well_known` for livekit
server URLs. It also updates the well_known client API endpoint to
return this list.
Closes #1355
2026-02-13 19:52:39 +00:00
Renovate Bot
abc0683d59
chore(deps): update dependency @rspress/core to v2.0.3
2026-02-13 19:32:56 +00:00
Renovate Bot
dd60beb9fb
chore(deps): update dependency @rspress/plugin-sitemap to v2.0.3
2026-02-13 05:04:20 +00:00
arxari
d9520f9382
Change the federation testing site in the docs to a more verbose one
...
The new site is easy to use at a glance but provides more advanced info if needed
Nexxy approved https://matrix.to/#/#offtopic:continuwuity.org/$rHSywj-s3v9onrROBcwDCHnnOpPVFbu0-Xgrh9A4btw
2026-02-12 20:13:47 +00:00
arxari
40bb5366bb
Change the federation testing site to a more verbose one
...
The new site is easy to use at a glance but provides more advanced info if needed
Nexxy approved https://matrix.to/#/#offtopic:continuwuity.org/$rHSywj-s3v9onrROBcwDCHnnOpPVFbu0-Xgrh9A4btw
2026-02-12 20:11:20 +00:00
timedout
f82bd77073
style: Fix clippy issues
2026-02-12 19:10:13 +00:00
timedout
7d84ba5ff2
fix: Don't include latest_events in output
2026-02-12 17:37:29 +00:00
timedout
69a8937584
fix: Complement runner
2026-02-12 17:23:39 +00:00
timedout
b2ec13d342
fix: Redo the get_missing_events federation route
2026-02-12 16:48:12 +00:00
Jade Ellis
4e55e1ea90
docs: Add note about checking the contents of configuration
2026-02-11 16:56:07 +00:00
ginger
f5f3108d5f
chore: Formatting
2026-02-10 22:56:11 +00:00
chri-k
d1e1ee6156
fix: always treat server_user as an admin
2026-02-10 22:56:11 +00:00
Omar Pakker
ae16a45515
chore: Add towncrier news fragment
2026-02-10 23:07:38 +01:00
Omar Pakker
077bda23a6
feat(admin): Add resolver cache flush command
...
This command allows an admin to flush a specific server
from the resolver caches or flush the whole cache.
2026-02-10 23:07:32 +01:00
Renovate Bot
a2bf0c1223
chore(deps): update pre-commit hook crate-ci/typos to v1.43.4
2026-02-10 05:02:40 +00:00
Ginger
b9b1ff87f2
chore: Formatting fixes
2026-02-10 02:29:11 +00:00
Ginger
3c0146d437
feat: Implement a migration to fix busted local invites
2026-02-10 02:29:11 +00:00
Ginger
7485d4aa91
fix: Properly set stripped state for local invites
2026-02-10 02:29:11 +00:00
Jade Ellis
39bdb4c5a2
chore: Announcement for v0.5.4
2026-02-09 20:48:47 +00:00
Renovate Bot
55fb3b8848
chore(deps): update pre-commit hook crate-ci/typos to v1.43.3
2026-02-09 15:26:52 +00:00
timedout
19146166c0
chore: Linkify pull requests in CHANGELOG.md
2026-02-08 17:49:53 +00:00
timedout
f47027006f
chore: Bump cargo lock
2026-02-08 17:45:51 +00:00
timedout
b7a8f71e14
chore: Bump version
2026-02-08 17:41:53 +00:00
timedout
c7378d15ab
chore: Update changelog
2026-02-08 17:41:30 +00:00
timedout
7beeab270e
fix: Add failing spell check string to typos
...
This isn't the proper fix but whatever it makes CI pass
2026-02-08 17:25:09 +00:00
Julian Anderson
6a812b7776
chore: Add news fragment
2026-02-08 17:25:09 +00:00
Julian Anderson
b1f4bbe89e
docs(deploying/fedora): Remove seemingly nonexistent/impossible Fedora install method
2026-02-08 17:25:09 +00:00
Julian Anderson
6701f88bf9
docs(deploying/fedora): Fix URLs for known working install methods, add EL caveat, correct GPG key info
2026-02-08 17:25:09 +00:00
Jade Ellis
62b9e8227b
docs: Explain enabling backtraces at runtime
2026-02-08 17:23:09 +00:00
Jade Ellis
7369b58d91
feat: Try log original server error
2026-02-08 17:23:09 +00:00
Jade Ellis
f6df44b13f
feat: Try log panics before unwinds to catch backtraces
2026-02-08 17:23:09 +00:00
timedout
f243b383cb
style: Fix typo in validate_remote_member_event_stub
2026-02-08 15:37:40 +00:00
timedout
e0b7d03018
fix: Perform additional membership validation on remote knocks too
2026-02-08 15:34:07 +00:00
timedout
184ae2ebb9
fix: Apply validation to make_join process
2026-02-06 18:15:39 +00:00
timedout
0ea0d09b97
fix: Don't fail open when a PDU doesn't have a short state hash
2026-02-06 18:09:09 +00:00
timedout
6763952ce4
chore: Bump ruwuma
2026-02-06 17:52:48 +00:00
Renovate Bot
e2da8301df
chore(deps): update pre-commit hook crate-ci/typos to v1.43.2
2026-02-06 16:49:57 +00:00
April Grimoire
296a4b92d6
fix: Resolve unnecessary serialization issue
...
Fixes #1335
2026-02-06 07:52:19 +00:00
timedout
00c054d356
fix: Get_missing_events returns the same event N times
2026-02-05 21:28:21 +00:00
Renovate Bot
2558ec0c2a
chore(deps): update rust-patch-updates
2026-02-05 14:06:42 +00:00
timedout
56bc3c184e
feat: Enable running complement manually
2026-02-04 18:06:53 +00:00
Renovate Bot
5c1b90b463
chore(deps): update dependency cargo-bins/cargo-binstall to v1.17.4
2026-02-04 16:05:32 +00:00
Renovate Bot
0dbb774559
chore(deps): update dependency @rspress/plugin-sitemap to v2.0.2
2026-02-04 16:04:56 +00:00
Renovate Bot
16e0566c84
chore(deps): update dependency @rspress/plugin-client-redirects to v2.0.2
2026-02-04 16:02:09 +00:00
Renovate Bot
489b6e4ecb
chore(deps): update pre-commit hook crate-ci/typos to v1.43.1
2026-02-04 15:58:34 +00:00
Renovate Bot
e71f75a58c
chore(deps): update dependency @rspress/core to v2.0.2
2026-02-04 05:04:11 +00:00
timedout
082ed5b70c
feat: Use info level logs for residency check failures
2026-02-03 20:09:41 +00:00
timedout
76fe8c4cdc
chore: Add news fragment
2026-02-03 20:09:41 +00:00
timedout
c4a9f7a6d1
perf: Don't handle expensive requests for rooms we aren't in
...
Mostly borrowed from dendrite:
https://github.com/element-hq/dendrite/blob/a042861/federationapi/routing/routing.go#L601
2026-02-03 20:09:41 +00:00
timedout
a047199fb4
perf: Don't handle PDUs for rooms we aren't in
2026-02-03 20:09:41 +00:00
Renovate Bot
411c9da743
chore(deps): update rust-patch-updates
2026-02-02 01:34:58 +00:00
Renovate Bot
fb54f2058c
chore(deps): update dependency @rspress/plugin-client-redirects to v2.0.1
2026-02-01 05:03:41 +00:00
ginger
358273226c
chore: Update FUNDING.yml
2026-01-31 01:13:15 +00:00
timedout
fd9bbb08ed
fix: Restore admin room announcement for deactivations
2026-01-30 05:11:30 +00:00
timedout
53184cd2fc
chore: Add news fragment
2026-01-30 05:11:30 +00:00
timedout
25f7d80a8c
fix: Clippy lint
2026-01-30 05:11:30 +00:00
timedout
02fa0ba0b8
perf: Optimise account deactivation process
2026-01-30 05:11:30 +00:00
ginger
572b228f40
Update homeserver list
2026-01-29 23:35:07 +00:00
Renovate Bot
b0a61e38da
chore(deps): update pre-commit hook crate-ci/typos to v1.42.3
2026-01-29 15:49:54 +00:00
Renovate Bot
401dff20eb
chore(deps): update dependency cargo-bins/cargo-binstall to v1.17.3
2026-01-29 15:49:32 +00:00
Ginger
f2a50e8f62
fix(docs): Remove rspress-plugin-preview
2026-01-29 10:41:46 -05:00
Ginger
36e80b0af4
fix(docs): Add stub type definition for docs CSS
2026-01-29 10:36:44 -05:00
Ginger
c9a4c546e2
chore(deps): Update to rspress 2.0.0
2026-01-29 10:35:24 -05:00
Ginger
da8b60b4ce
fix(docs): Add redirect from old community page
2026-01-26 21:42:50 -05:00
Ginger
89afaa94ac
feat(docs): Move community pages into subdir, add partnered homeservers page
2026-01-26 21:32:05 -05:00
Ginger
2b5563cee3
fix(docs): Remove busted link in nav
2026-01-26 20:55:12 -05:00
Ginger
6cb9d50383
chore: News fragment
2026-01-21 12:27:13 -05:00
Ginger
77c0f6e0c6
fix: Add a code path for clients trying to use fallback auth
2026-01-21 12:27:13 -05:00
Jade Ellis
c85e710760
fix: Add option to mark certain config sections as optional
...
Fixes #1290
2026-01-20 17:36:22 +00:00
Renovate Bot
59346fc766
chore(deps): update pre-commit hook crate-ci/committed to v1.1.10
2026-01-20 16:25:19 +00:00
Renovate Bot
9c5e735888
chore(deps): update dependency cargo-bins/cargo-binstall to v1.16.7
2026-01-20 16:24:46 +00:00
Ginger
fe74e82318
chore: Formatting
2026-01-20 10:00:26 -05:00
K900
cb79a3b9d7
refactor(treewide): get rid of compile time build environment introspection
...
It's cursed and not very useful. Still a few uses of ctor left, but oh well.
2026-01-19 19:44:28 +00:00
timedout
ebc8df1c4d
feat: Add endpoints required for API-based takedowns and room bans
2026-01-18 18:47:15 +00:00
nex
b667a963cf
chore: Fixup typos
2026-01-18 15:22:14 +00:00
timedout
5a6b909b37
fix: Remove homebrewed error mangling for correctness
2026-01-18 15:22:14 +00:00
timedout
dba9cf0ad2
chore: Add news fragment
2026-01-18 15:22:14 +00:00
timedout
287ddd9bc5
fix: Only fall back to legacy media when response is M_UNRECOGNIZED
...
https://spec.matrix.org/v1.17/server-server-api/#content-repository
Previously we would fall back for ALL
auth media errors.
2026-01-18 15:22:14 +00:00
Jason Volk
79a278b9e8
Fix verification loss; workaround Nheko-Reborn/nheko#1908 ( closes #146 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2026-01-18 14:41:01 +00:00
Ginger
6c5d658ef2
fix: Fix explosions with new tracing
2026-01-15 09:28:26 -05:00
Renovate Bot
70c43abca8
chore(deps): update rust-patch-updates
2026-01-15 09:28:26 -05:00
Renovate Bot
6a9b47c52e
chore(deps): update rust-patch-updates
2026-01-15 05:03:40 +00:00
Ginger
c042de96f8
chore(deps): Update rspress to 2.0.0-rc.5
2026-01-14 09:35:20 -05:00
Jade Ellis
7a6acd1c82
chore: Changelog
2026-01-13 20:29:30 +00:00
Jade Ellis
d260c4fcc2
style: Fix yo unused variables
2026-01-13 20:29:30 +00:00
Jade Ellis
fa15de9764
feat: Admin announce improvements
...
- Check announcements on first start
- Print out any fetch errors on first start in the admin room
- Randomly jitter the next check
2026-01-13 20:29:30 +00:00
Jade Ellis
e6c7a4ae60
docs: Changelog
2026-01-13 00:05:20 +00:00
Jade Ellis
5bed4ad81d
chore: Admin announcement
2026-01-13 00:01:28 +00:00
Jade Ellis
587abe9d14
chore: Release
2026-01-12 23:47:37 +00:00
Jade Ellis
c499042a76
docs: Changelog
2026-01-12 23:45:42 +00:00
timedout
86e450a835
fix: M_BAD_JSON in send_join and send_knock
2026-01-12 17:53:37 +00:00
Jade Ellis
4c796029bb
chore: Add correct configuration for cargo release
2026-01-12 16:20:38 +00:00
Jade Ellis
fc3615c46b
docs: Changelog
2026-01-12 16:20:38 +00:00
Jade Ellis
7375f7a68e
feat: Improve the display of the configuration in the admin room
2026-01-12 16:20:38 +00:00
Ginger
ae28fe92d2
feat: Exclude undocumented commands
2026-01-12 10:51:17 -05:00
Ginger
00eeeb78de
fix: Remove extraneous dashes from command help
2026-01-12 10:47:19 -05:00
Ginger
a028049e6f
feat: Add copy to admin command reference index
2026-01-12 10:36:37 -05:00
Ginger
7b159bc8c8
feat: Add comments to generated files
2026-01-12 10:36:37 -05:00
Ginger
66fcedf08b
fix: Update documentation TOC
2026-01-12 10:36:37 -05:00
Ginger
3f790844f3
chore: Clippy fixes
2026-01-12 10:36:37 -05:00
Ginger
89be9d1efc
feat: Improve admin command reference generation
...
- Change xtasks to use `clap` for argument parsing
- Generate admin command reference manually instead of with `clap_markdown`
- Split admin command reference into multiple files
2026-01-12 10:36:37 -05:00
Astralchroma
60dd6baffd
Link to documentation clarifying what exactly "Performance optimised version." means
2026-01-11 16:54:33 +00:00
timedout
99a10998b4
style: Remove unused import
2026-01-11 15:42:06 +00:00
nex
05c6b5df75
fix: M_BAD_JSON in c2s invite
2026-01-11 15:37:59 +00:00
Jade Ellis
74db426c6b
fix: Correct federation timeouts
2026-01-09 19:51:29 +00:00
Jade Ellis
344d68dabc
fix: Use correct token handlers for Ruma
2026-01-09 19:42:14 +00:00
Jade Ellis
d3ee9c407a
fix: Apply timeouts in more places
2026-01-09 19:42:13 +00:00
Ginger
da956b1a2a
chore: Release
2026-01-09 09:28:54 -05:00
Ginger
244bf6ed2f
chore: Update changelog for 0.5.2
2026-01-09 09:28:37 -05:00
timedout
52a51f1de0
fix: Remove useless timestamp check in outlier upgrade process
2026-01-09 02:50:04 +00:00
timedout
6e118f445b
chore: Add news fragment
2026-01-09 02:50:04 +00:00
timedout
e3cf288f39
feat: Support creating custom v12 room IDs
2026-01-09 02:50:04 +00:00
Ginger
6e6c9ae4cb
chore: Update news fragments
2026-01-08 20:14:46 -05:00
timedout
5a2a1b6240
style: Clean up whoami code
2026-01-09 01:12:38 +00:00
timedout
fb536ca1ce
chore: Add news fragment
2026-01-09 00:47:09 +00:00
timedout
d22d47954f
fix: Return 403 instead of 404 at /_matrix/client/v3/account/whoami
2026-01-09 00:44:38 +00:00
Ginger
d48cc46643
fix: Allow cargo_common_metadata clippy lint
2026-01-08 19:28:27 +00:00
Ginger
8cf2d175d6
fix: Update package and crate metadata
2026-01-08 19:28:27 +00:00
Ginger
205ac22008
chore: Update admin command documentation
2026-01-08 14:27:50 -05:00
Jade Ellis
d353446488
fix: Incomplete rename
2026-01-07 23:48:04 +00:00
timedout
77e8fd1744
style: Use contains to check for row presence
2026-01-07 17:31:54 +00:00
timedout
7fa7b129c0
perf: Store empty value (row only needs to exist)
2026-01-07 17:31:54 +00:00
timedout
247bc15659
fix: Await future
2026-01-07 17:31:53 +00:00
timedout
88a35e139d
fix: Correctly return M_USER_LOCKED during login
2026-01-07 17:31:53 +00:00
timedout
37574ef5cc
chore: Add news fragment
2026-01-07 17:31:53 +00:00
timedout
1c816850ed
feat: Allow admins to disable the login capability of an account
...
# Conflicts:
# src/admin/user/commands.rs
2026-01-07 17:31:51 +00:00
timedout
3483059e1c
fix: Unawaited future causing build error
2026-01-07 14:33:37 +00:00
Ginger
d865dd4454
feat( !783 ): Add --once shortcut flag to issue command
2026-01-07 14:22:37 +00:00
Ginger
adc7c5ac49
fix( !783 ): Don't allow registrations by default with no token configured
2026-01-07 14:22:37 +00:00
Ginger
112403e470
chore( !783 ): Remove config file check for no static token or captcha
2026-01-07 14:22:37 +00:00
Ginger
ea0a124981
chore( !783 ): Update config file documentation, depluralize token subcommand
2026-01-07 14:22:37 +00:00
Ginger
bf205fb13c
chore( !783 ): Note that registration_token_file is gone
2026-01-07 14:22:37 +00:00
Ginger
9a6408f98f
chore( !783 ): News fragment
2026-01-07 14:22:37 +00:00
Ginger
ca77970ff3
feat( !783 ): Add admin commands for managing tokens
2026-01-07 14:22:37 +00:00
Ginger
42f4ec34cd
feat( !783 ): Initial implementation
...
Adds support for extra limited-use registration tokens
stored in the database, and a new service to manage them.
2026-01-07 14:22:37 +00:00
Renovate Bot
ecf74bb31f
chore(deps): update dependency lddtree to 0.4.0
2026-01-06 20:38:12 +00:00
timedout
8c716befdc
chore: Add news fragment
2026-01-06 20:32:52 +00:00
timedout
a8209d1dd9
feat: Add command to forcefully log out all of a user's devices
2026-01-06 20:28:23 +00:00
Jade Ellis
9552dd7485
style: Log error
2026-01-06 01:55:52 +00:00
Ginger
88c84f221f
chore: Add comment and warning to unhappy path
2026-01-06 00:59:32 +00:00
Laurențiu Nicola
a10bd71945
fix(admin): fix force-leaving rooms with no left_state PDU
2026-01-06 00:59:31 +00:00
Jade Ellis
2f11bf4d74
docs: Document image mirrors
2026-01-06 00:45:12 +00:00
Jade Ellis
1e8748d1a0
docs: Fix some issues
2026-01-06 00:45:12 +00:00
Tom Foster
70ef6e4211
docs: Document maxperf Docker image variants from #1017
...
Add documentation for the new performance-optimised Docker images with
"-maxperf" suffix. These use the release-max-perf build profile with LTO
and target haswell CPU architecture on amd64 for optimal performance.
Also restructure the static prebuilt binary section in generic deployment
docs for better clarity and fix various UK English spelling issues.
2026-01-06 00:45:12 +00:00
Renovate Bot
212c1bc14d
chore(deps): update github-actions-non-major
2026-01-06 00:24:55 +00:00
timedout
ce46b6869f
chore: Bump dependencies to fix request errors
2026-01-05 20:10:30 +00:00
timedout
a18b8254d0
chore: Add news fragment
2026-01-05 20:10:30 +00:00
timedout
279f7cbfe4
style: Fix failing lints
2026-01-05 20:10:29 +00:00
timedout
006c57face
perf: Don't check accept_make_join twice for restricted make_join
2026-01-05 20:10:29 +00:00
timedout
d52e0dc014
fix: Apply check_all_joins to make_join
2026-01-05 20:10:29 +00:00
timedout
4b873a1b95
fix: Apply spam checker to local restricted joins
2026-01-05 20:10:29 +00:00
timedout
76865e6f91
fix: Accept_may_join callback works again
2026-01-05 20:10:29 +00:00
timedout
99f16c2dfc
fix: Call user_may_join_room later in the join process
2026-01-05 20:10:28 +00:00
timedout
5ac82f36f3
feat: Consolidate antispam checks into a service
...
Also adds support for the spam checker join rule, and Draupnir callbacks
2026-01-05 20:10:28 +00:00
timedout
c249dd992e
feat: Add support for automatically rejecting pending invites
2026-01-05 20:10:28 +00:00
timedout
0956779802
feat: Add Meowlnir invite interception support
...
Co-authored-by: Jade Ellis <jade@ellis.link >
2026-01-05 20:10:27 +00:00
timedout
a83c1f1513
fix: Restrict suspend+lock commands to admin room
...
Also prevent locking the service user or admin users
2026-01-05 19:49:12 +00:00
timedout
8b5e4d8fe1
chore: Add news fragment
2026-01-05 19:34:21 +00:00
timedout
7502a944d7
feat: Add user locking and unlocking commands and functionality
...
Also corrects the response code returned by UserSuspended
2026-01-05 19:30:16 +00:00
Jade Ellis
aed15f246a
refactor: Clean up logging issues
...
Primary issues: Double escapes (debug fmt), spans without levels
2026-01-05 18:28:57 +00:00
timedout
27d6604d14
fix: Use a timeout instead of deadline
2026-01-03 17:08:47 +00:00
timedout
1c7bd2f6fa
style: Remove unnecessary then() calls in chain
2026-01-03 16:22:49 +00:00
timedout
56d7099011
style: Include errors in key claim response too
2026-01-03 16:10:06 +00:00
timedout
bc426e1bfc
fix: Apply client-requested timeout to federated key queries
...
Also parallelised federation calls in related functions
2026-01-03 16:05:05 +00:00
timedout
6c61b3ec5b
fix: Build error two: electric boogaloo
2025-12-31 21:15:28 +00:00
timedout
9d9d1170b6
fix: Build error
2025-12-31 21:04:06 +00:00
Jade Ellis
7be20abcad
style: Fix typo
2025-12-31 20:08:53 +00:00
Jade Ellis
078275964c
chore: Update precommit hooks
2025-12-31 20:08:53 +00:00
timedout
bf200ad12d
fix: Resolve compile errors
...
me and cargo check are oops now
2025-12-31 20:01:29 +00:00
timedout
41e628892d
chore: Add news fragment
2025-12-31 20:01:29 +00:00
timedout
44851ee6a2
feat: Fall back to remote room summary if local fails
2025-12-31 20:01:29 +00:00
timedout
a7e6e6e83f
feat: Allow local server admins to bypass summary visibility checks
...
feat: Allow local server admins to bypass summary visibility checks
Also improve error messages so they aren't so damn long.
2025-12-31 20:01:29 +00:00
Ginger
8a561fcd3a
chore: Clippy fixes
2025-12-31 19:56:35 +00:00
Ginger
25c305f473
chore: Fix comment formatting
2025-12-31 19:56:35 +00:00
Ginger
c900350164
chore: Add news fragment
2025-12-31 19:56:35 +00:00
Ginger
c565e6ffbc
feat: Restrict where certain admin commands may be used
2025-12-31 19:56:31 +00:00
Jade Ellis
442f887c98
style: Improve warning regarding admin removal
2025-12-31 19:40:42 +00:00
Terry
03220845e5
docs: Changelog
2025-12-31 19:35:53 +00:00
Terry
f8c1e9bcde
feat: Config defined admin list
...
Closes !1246
2025-12-31 19:35:40 +00:00
Ginger
21324b748f
feat: Enable console feature by default
2025-12-31 19:12:25 +00:00
Jade Ellis
b7bf36443b
docs: Fix typo
2025-12-31 19:03:22 +00:00
ginger
d72192aa32
fix(ci): Stop using nightly to build Debian packages
2025-12-30 14:23:31 -05:00
Jade Ellis
38ecc41780
chore: Release
2025-12-30 17:45:32 +00:00
Jade Ellis
7ae958bb03
docs: Announcement
2025-12-30 17:35:20 +00:00
Jade Ellis
f676fa53f1
chore: Specify the tag body template
2025-12-30 17:34:44 +00:00
Jade Ellis
978bdc6466
docs: Changelog
2025-12-30 17:34:44 +00:00
timedout
7c741e62cf
fix: Forbid creators in power levels
2025-12-30 17:34:43 +00:00
Olivia Lee
12aecf8091
validate membership events returned by remote servers
...
This fixes a vulnerability where an attacker with a malicious remote
server and a user on the local server can trick the local server into
signing arbitrary events. The attacker issue a remote leave as the local
user to a room on the malicious server. Without any validation of the
make_leave response, the local server would sign the attacker-controlled
event and pass it back to the malicious server with send_leave.
The join and knock endpoints are also fixed in this commit, but are less
useful for exploitation because the local server replaces the "content"
field returned by the remote server. Remote invites are unaffected
because we already check that the event returned from /invite has the
same event ID as the event passed to it.
Co-authored-by: timedout <git@nexy7574.co.uk >
Co-authored-by: Jade Ellis <jade@ellis.link >
Co-authored-by: Ginger <ginger@gingershaped.computer >
2025-12-30 15:24:45 +00:00
Renovate Bot
19372f0b15
chore(deps): update dependency cargo-bins/cargo-binstall to v1.16.6
2025-12-29 23:52:04 +00:00
Jade Ellis
a66b90cb3d
ci: Explicitly auto tag latest
2025-12-29 23:45:02 +00:00
Jade Ellis
7234ce6cbe
ci: Don't force tag all versions as latest
2025-12-29 23:45:02 +00:00
Jade Ellis
beb0c2ad9a
fix(ci): Don't double append latest tag suffix
2025-12-29 23:45:02 +00:00
Jade Ellis
39aaf95d09
docs: Changelog
2025-12-29 23:33:12 +00:00
Jade Ellis
5e0edd5a1c
feat: Allow configuring the OTLP protocol
2025-12-29 23:33:12 +00:00
Jade Ellis
d180f5a759
feat: Split otlp exporter into a new, enabled-by-default feature
2025-12-29 23:33:12 +00:00
Jade Ellis
f163264a82
docs: Update example domains
2025-12-29 23:33:12 +00:00
timedout
5e7bc590d2
chore: Apply suggestions
2025-12-29 23:30:49 +00:00
timedout
08df35946b
fix: File -> line
2025-12-29 23:30:49 +00:00
timedout
c4ebf289fa
fix: Dead link to code style doc
2025-12-29 23:30:49 +00:00
timedout
1fc6010f9a
fix: Issue title -> pull request title
2025-12-29 23:30:49 +00:00
timedout
1d91331275
fix: Stray whitespace
2025-12-29 23:30:49 +00:00
timedout
77e62ad772
feat: Add pull request template
2025-12-29 23:30:49 +00:00
timedout
696a1e6a4d
docs: Add information on writing changelog fragments
2025-12-28 00:59:31 +00:00
timedout
f41bbd7361
feat(meta): Set up towncrier
2025-12-28 00:53:44 +00:00
timedout
7350266c80
fix: Don't allow admin room upgrades and fix power levels during upgrade
2025-12-27 04:05:26 +00:00
Julian Anderson
322c0900c6
docs: handle traefik >=3.6.3 "encoded characters"
2025-12-24 22:40:50 -05:00
timedout
1237e60aaf
Revert "feat(ci): Allow running manual workflows against specific commits"
...
This reverts commit 9b4845bf8d .
2025-12-22 13:45:45 +00:00
timedout
9b4845bf8d
feat(ci): Allow running manual workflows against specific commits
2025-12-22 13:29:40 +00:00
aviac
fb5b515f96
chore: update flake lock
2025-12-22 04:11:41 +00:00
Jade Ellis
e6336d694a
chore: Fix escape
2025-12-22 02:42:21 +00:00
Jade Ellis
b7841280d9
chore: Security announcement
2025-12-22 02:36:31 +00:00
Jade Ellis
f4ccb81913
chore: Release
2025-12-22 00:23:20 +00:00
Jade Ellis
710cdfeadb
chore: Update mailmap
2025-12-21 20:34:11 +00:00
Jade Ellis
666849ea87
chore(ci): Unify artifact versions
2025-12-21 19:11:12 +00:00
Jade Ellis
71094803f1
fix(ci): Try use path that exists
2025-12-21 18:50:48 +00:00
Jade Ellis
bf91ce5c7f
feat: Mark v12 as stable
2025-12-21 17:15:16 +00:00
Jade Ellis
8fd15f26ce
style: Fix clippy
2025-12-21 17:12:36 +00:00
Jade Ellis
705fa6c5c6
fix: Simplify visibility check code
2025-12-21 17:12:36 +00:00
Jade Ellis
6f67c27538
fix: Ensure that room ID is present on state events sent to client
...
routes
Mostly fixes !1094
The remaining issue is federation routes
2025-12-21 17:12:35 +00:00
Jade Ellis
8586d747d1
feat: Run visibility checks on bundled relations
2025-12-21 17:12:35 +00:00
Jade Ellis
11012a9ce1
fix: Always return the same 404 message in context
2025-12-21 17:12:35 +00:00
Jade Ellis
07be190507
fix: Return 404 when event is not accessible
2025-12-21 17:12:35 +00:00
Jade Ellis
ae4acc9568
fix: Don't incorrectly add thread root to relation response
2025-12-21 17:12:35 +00:00
Jade Ellis
f83ddecd8c
refactor(perf): Push down visibility check after limit
2025-12-21 17:12:34 +00:00
Jade Ellis
dd87232f1f
refactor: Reduce database lookups in some cases
2025-12-21 17:12:34 +00:00
Jade Ellis
8e33f9a7d0
refactor: Improve code style for bundled aggregations
2025-12-21 17:12:34 +00:00
Jade Ellis
8d3e4eba99
fix: Add aggregations to the search endpoint
2025-12-21 17:12:34 +00:00
Jade Ellis
96bfdb97da
fix: Filter out invalid replacements from bundled aggregations
2025-12-21 17:12:34 +00:00
Jade Ellis
b61010da47
feat: Add bundled aggregations support
...
Add support for the m.replace and m.reference bundled
aggregations.
This should fix plenty of subtle client issues.
Threads are not included in the new code as they have
historically been written to the database. Replacing the
old system would result in issues when switching away from
continuwuity, so saved for later.
Some TODOs have been left re event visibility and ignored users.
These should be OK for now, though.
2025-12-21 17:12:34 +00:00
Jade Ellis
987c5eeb03
refactor: Promote handling unsigned data out of timeline
...
Also fixes:
- Transaction IDs leaking in event route
- Age not being set for event relations or threads
- Both of the above for search results
Notes down concern with relations table
2025-12-21 17:12:33 +00:00
timedout
7fa4fa9862
fix: Also check sender origin
2025-12-21 10:58:50 +00:00
timedout
b2bead67ac
fix: Apply additional validation to invites
2025-12-21 10:10:54 +00:00
timedout
48a6a475ce
fix: Omit children with invalid state from space summary
2025-12-18 19:48:58 +00:00
timedout
86450da705
style: Run clippy
2025-12-18 19:48:26 +00:00
timedout
8538b21860
feat: Check for incoming signatures
2025-12-18 19:03:32 +00:00
timedout
63e4aacd2b
style: Reword TODO comment
2025-12-18 18:24:00 +00:00
timedout
72f0eb9493
feat: Fetch policy server signatures
2025-12-18 18:23:54 +00:00
Odd E. Ebbesen
867d0ab671
fix(reload): Store paths to config files for admin reload
...
Paths given via --config at startup are now stored inside the config
struct at runtime, to make it possible to reload config without setting
an env var for the config file location.
2025-12-16 14:58:33 +00:00
Ginger
64e187e5b4
fix: Update comment in src/core/config/mod.rs
2025-12-16 14:19:43 +00:00
aviac
5dc449a87a
test: add test for config with default_room_version
...
This commit refactors the test a bit to run the basic test script with
different configs. Currently we have two configs we test:
- the bare minimum to make it run (base)
- base + default_room_version set to "12"
2025-12-16 14:19:43 +00:00
aviac
f5fda01013
docs: Add note about the type of the default_room_version option
2025-12-16 14:19:43 +00:00
Jade Ellis
cdc53b3421
fix: Allow using LDAP passwords in UIAA
...
Fixes #1131
Co-authored-by: Jade Ellis <jade@ellis.link >
2025-12-16 13:55:32 +00:00
Ginger
0b667ae4fd
fix(ci): Try explicitly specifying the ref for debian/fedora workflows
2025-12-15 10:21:46 -05:00
unbeatable-101
83baf9b524
Keep location of Continuwuity configuration file consitant
2025-12-13 22:51:16 +00:00
timedout
4f198fb4ef
fix: Enforce limits when joining rooms
2025-12-13 22:17:47 +00:00
timedout
1631c0afa4
fix: Perform additional validation on events
2025-12-13 21:36:20 +00:00
Charlotte Hartmann Paludo
862684af28
fix: remove trailing whitespace from secrets read from secrets file
2025-12-13 16:07:51 +00:00
Ginger
7345c241a9
fix: Don't halt and catch fire on deserialization errors in MSC4133 migration
2025-12-12 11:16:52 -05:00
Ginger
6a8b988b36
fix(ci): Downgrade upload-artifact actions again to v3 this time
2025-12-10 11:33:36 -05:00
Ginger
f1d6536793
fix(ci): Downgrade upload-artifact actions to v4
2025-12-10 11:33:36 -05:00
Ginger
cf8d8e4ea6
chore: Post-rebase cleanup
2025-12-09 03:25:04 +00:00
timedout
393d341f07
perf: Throttle frequent device metadata updates & centralise site
2025-12-09 03:25:03 +00:00
timedout
ba55dffa0e
perf: Don't increment the device list version when updating local info
2025-12-09 03:25:03 +00:00
timedout
f3115e14ab
feat: Update device metadata upon hitting hot endpoints
2025-12-09 03:25:03 +00:00
Ginger
b3fa4705ef
chore: Fix line endings
2025-12-07 15:28:19 -05:00
Ginger
53b06a7918
chore(sync/v3): Remove unused imports
2025-12-07 19:58:24 +00:00
Ginger
fafc1d3fd1
fix(sync/v3): Don't send rejected invites on initial syncs
2025-12-07 19:58:24 +00:00
Ginger
dbc74272c3
refactor(sync/v3): Extract left room timeline logic into its own function
2025-12-07 19:58:24 +00:00
Ginger
f11caac05e
fix(sync/v3): Don't send dummy leaves on an initial sync
2025-12-07 19:58:24 +00:00
Ginger
e581face44
chore: Formatting
2025-12-07 19:58:24 +00:00
ginger
037ba41adb
fix: Nitpicky comment reword
2025-12-07 19:58:24 +00:00
Ginger
941c8f7d52
fix: Bump max startup time to ten minutes in the systemd unit
2025-12-07 19:58:24 +00:00
Ginger
7dae118af9
chore(sync/v3): More goat sacrifices
2025-12-07 19:58:24 +00:00
Ginger
07dfc5528d
refactor(sync/v3): Split load_joined_room into smaller functions
2025-12-07 19:58:24 +00:00
ginger
3f4749a796
fix: Correct error message
2025-12-07 19:58:24 +00:00
Ginger
be8d72fafc
fix(sync/v3): Add a workaround for matrix-js-sdk/5071
2025-12-07 19:58:24 +00:00
Ginger
0008709481
fix(sync/v3): Stop ignoring leave cache deserialization failures
2025-12-07 19:58:24 +00:00
Ginger
ee51d4357f
fix(sync/v3): Do not include the last membership event when syncing left rooms
2025-12-07 19:58:24 +00:00
Ginger
8ffc6d4f15
chore(sync/v3): Sacrifice a goat to clippy
2025-12-07 19:58:24 +00:00
Ginger
93efe89a1f
fix(sync/v3): Cache shortstatehashes to speed up migration
2025-12-07 19:58:24 +00:00
Ginger
16f37d21ff
fix(sync/v3): Implement a migration for the userroomid_leftstate table
2025-12-07 19:58:24 +00:00
Ginger
800ac8d1f1
fix(sync/v3): Fix invite filtering for federated invites
2025-12-07 19:58:24 +00:00
Ginger
872f5bf077
feat(sync/v3): Remove TL size config option in favor of using the sync filter
2025-12-07 19:58:24 +00:00
Ginger
992217d644
chore(sync/v3): Fix clippy lints
2025-12-07 19:58:24 +00:00
Ginger
4fb4397a9f
fix(sync/v3): Remove mysterious membership event manipulation code
2025-12-07 19:58:24 +00:00
Ginger
61b6947e88
fix(sync/v3): Properly sync room heroes
2025-12-07 19:58:24 +00:00
Ginger
876d3faec4
chore(sync/v3): Use "build_*" terminology instead of "calculate_*"
2025-12-07 19:58:24 +00:00
Ginger
9cc0cc69f7
chore(sync/v3): Use more descriptive names for SyncContext properties
2025-12-07 19:58:24 +00:00
Ginger
5513bb4dff
chore: Remove unneeded comment
2025-12-07 19:58:24 +00:00
Ginger
693e327004
fix: Use prepare_lazily_loaded_members for joined rooms
...
Also, don't take read receipts into consideration for lazy loading.
Synapse doesn't do this and they're making initial syncs very large.
2025-12-07 19:58:24 +00:00
Ginger
3e6571a2b8
chore: Clippy fixes
2025-12-07 19:58:24 +00:00
Jade Ellis
f0f10f8f3e
feat: Typing notifications in simplified sliding sync
...
What's missing? Being able to use separate rooms & lists for typing
indicators.
At the moment, we use the same ones as we use for the timeline, as
todo_rooms is quite intertwined. We need to disentangle this to get that
functionality, although I'm not sure if clients use it.
2025-12-07 19:58:24 +00:00
Ginger
a4f2b55a8a
feat: Add a config option to change the max TL size for legacy sync
2025-12-07 19:58:24 +00:00
Ginger
213a361c53
fix: Set limited to true for newly joined rooms again
2025-12-07 19:58:24 +00:00
Ginger
1c21e4af6e
fix: Properly sync left rooms
...
- Remove most usages of `update_membership` in favor
of directly calling the `mark_as_*` functions
- Store the leave membership event as the value in the
`userroomid_leftstate` table
- Use the `userroomid_leftstate` table to synchronize the
timeline and state for left rooms if possible
2025-12-07 19:58:24 +00:00
Ginger
fceaaedc04
fix: Properly sync newly joined rooms
2025-12-07 19:58:24 +00:00
Ginger
0eff173c0b
fix(sync/v3): Further cleanup + improve incremental sync consistency
2025-12-07 19:58:24 +00:00
Ginger
72bf8e5927
fix: Correctly send limited timelines again
2025-12-07 19:58:24 +00:00
Ginger
3491f653a5
refactor: Split sync v3 into multiple files
2025-12-07 19:58:24 +00:00
Ginger
e820dd7aed
feat: Drop support for MSC3575 (legacy sliding sync)
2025-12-07 19:58:24 +00:00
Ginger
c92b7239a8
chore: Clippy fixes
2025-12-07 19:58:24 +00:00
Ginger
2940bc69c1
fix(sync/v3): Cleanup part 1: mostly fix redundant data in state
2025-12-07 19:58:24 +00:00
Jade
502919b248
chore: Tell continuwuity.org to use my livekit instance
2025-12-04 14:23:02 +00:00
Renovate Bot
33c3d23d60
chore(deps): update rust-patch-updates
2025-11-29 05:01:44 +00:00
Renovate Bot
ce318fe455
chore(deps): update pre-commit hook crate-ci/typos to v1.40.0
2025-11-28 20:19:35 +00:00
Renovate Bot
a729e1d63d
chore(deps): update actions/upload-artifact action to v5
2025-11-28 20:19:10 +00:00
Ginger
956c3dfa62
chore: Fix deprecation warning
2025-11-28 15:08:20 -05:00
Renovate Bot
49e8f06559
chore(deps): update rust-patch-updates
2025-11-28 15:00:38 -05:00
rooot
c0f4424cb9
fix(docs): blurry small logo, scroll resizing top bar
...
Signed-off-by: rooot <hey@rooot.gay >
2025-11-27 13:53:12 +01:00
Tobias Fella
3eac985c5e
fix(docs): Correct typo and outdated name
2025-11-26 21:13:43 +01:00
Jade
5fd341096d
fix(docs): Dead link
2025-11-26 00:10:59 +00:00
Renovate Bot
a1b2d6ec46
chore(deps): update dependency @rspress/plugin-client-redirects to v2.0.0-rc.1
2025-11-25 21:50:27 +00:00
Renovate Bot
551563ce83
chore(deps): update dependency @rspress/plugin-preview to v2.0.0-rc.1
2025-11-25 18:38:26 +00:00
Ginger
9f133cf75b
chore(deps): Update actions/checkout to v6
2025-11-25 18:26:28 +00:00
Ginger
23c398dc1e
fix(ci): Remove explicit references to code.forgejo.org in action steps
2025-11-25 18:26:28 +00:00
Renovate Bot
fa73893179
chore(deps): update pre-commit hook crate-ci/committed to v1.1.8
2025-11-25 17:16:13 +00:00
Renovate Bot
57fec44ec7
chore(deps): update dependency cargo-bins/cargo-binstall to v1.16.2
2025-11-24 05:02:19 +00:00
timedout
bc8d304dbf
style: Fix unnecessary qualification
...
Sounds like my university experience
2025-11-23 16:33:32 +00:00
timedout
7f4248a8c6
feat: Enhance remote room leave handling
2025-11-23 16:33:32 +00:00
aviac
430200b60e
fix: add explicit fix of rpath
...
Without this the rpath is empty and the binary won't be able to load the librocksdb.so.10 shared lib
2025-11-23 16:26:27 +00:00
Jade Ellis
a573f1f502
docs: Disable incomplete homepage prose for now
2025-11-22 23:13:52 +00:00
Jade Ellis
3bf3c24d22
docs: Update homepage layout
2025-11-22 22:41:53 +00:00
Jade Ellis
c1dc336c65
docs: Fix a couple contrast issues
2025-11-22 20:58:18 +00:00
Jade Ellis
be3c6ebb58
docs: Update rspress, add redirects
2025-11-22 20:49:19 +00:00
Jade Ellis
bdf31fa92e
docs: Remove exclude rules
2025-11-22 20:35:13 +00:00
Jade Ellis
1372f74812
docs: Capitalise page title
2025-11-22 20:35:13 +00:00
Jade Ellis
5935d99af0
feat(docs): Sitemap
2025-11-22 20:35:13 +00:00
Jade Ellis
6b11a65545
fix: Repair symlink
2025-11-22 20:35:13 +00:00
Jade Ellis
5ea1206739
docs: New site 🎉
2025-11-22 20:35:09 +00:00
Jade Ellis
d45c5a9f47
feat: Deal with low screen widths in CSS
2025-11-22 20:30:30 +00:00
Jade Ellis
9a1039b215
docs: Update logos
2025-11-22 20:30:29 +00:00
Renovate Bot
59f9b8bdb8
chore(deps): update rust crate bytes to v1.11.0
2025-11-22 16:13:45 +00:00
lily
3b76e9876d
fix: revert to mdbook version 0.4.52 since >=0.5.0 broke rendering with our current setup completely
2025-11-22 17:05:14 +01:00
nex
64c059f82e
fix(docs): Partially revert 4a9bea5764
...
Signed-off-by: nex <git@nexy7574.co.uk >
2025-11-22 14:15:26 +00:00
lily
76b90acea6
Remove rust flags since they're pretty much outdated and don't work anymore
...
Not much difference from what I've observed, plus it's as max-perf as it gets
2025-11-21 17:12:27 +00:00
Renovate Bot
5e0334088a
chore(deps): update dependency cargo-bins/cargo-binstall to v1.16.0
2025-11-21 16:27:13 +00:00
Ginger
eecc472258
fix(ci): Use the version from rust-toolchain.toml when restoring caches
2025-11-21 11:07:44 -05:00
Ginger
4a9bea5764
fix(docs): Fix git repository icon name
2025-11-21 10:46:15 -05:00
Ginger
08fd87c7de
chore: Kick forgejo
2025-11-21 15:19:39 +00:00
Ginger
ac6d639660
fix(docs): Remove unused multilingual option in mdBook config
2025-11-21 15:19:39 +00:00
Ginger
0958660eb5
ci: Do not run release-image workflow on pull requests
2025-11-21 14:52:41 +00:00
Renovate Bot
57c3290f02
chore(deps): update rust-patch-updates
2025-11-21 14:25:55 +00:00
nex
6794ea565f
fix(tests): Fix new syntax error in debug.rc
...
fixes #1180
2025-11-18 18:46:35 +00:00
Lilith
38080275d4
build(Cargo.toml): updated the versions automatically
2025-11-17 12:51:49 +00:00
Lilith
1138218878
build(Cargo.toml): resolve the fact that we have v0.5.0-rc.8.1 despite 0.5.0-rc.8 in toml
2025-11-17 12:51:49 +00:00
Renovate Bot
c0f1d8eab6
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v42
2025-11-17 00:33:11 +00:00
nex
192f78887a
chore: Add rc.8.1 release announcement
2025-11-16 22:08:09 +00:00
timedout
def8816c02
style: Fix clippy failures from 9e73146
2025-11-16 19:55:28 +00:00
timedout
9e73146b19
fix: Restore continuwuity's remembering capabilities
2025-11-14 14:57:49 +00:00
Renovate Bot
19d792e4eb
chore(deps): update rust crate ctor to 0.6.0
2025-11-14 14:03:57 +00:00
Renovate Bot
2a977f019f
chore(deps): update pre-commit hook crate-ci/typos to v1.39.2
2025-11-14 05:01:41 +00:00
ginger
76ea4dfa29
Update README.md
2025-11-13 19:55:12 +00:00
Renovate Bot
2ec771c84d
chore(deps): update rust crate bytesize to v2.2.0
2025-11-13 05:03:54 +00:00
timedout
9375e81974
fix(1163): Resolve algorithm misinterpretations
2025-11-13 03:33:47 +00:00
Renovate Bot
f22f35d27b
chore(deps): update rust crate syn to v2.0.110
2025-11-12 05:03:14 +00:00
Renovate Bot
d5c7d80709
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.11
2025-11-11 23:11:19 +00:00
Jade Ellis
1899d8bb00
ci: Mirror to Docker Hub
2025-11-11 23:11:09 +00:00
Ginger
9a5ba6171f
ci: Remove hardcoded default in setup-rust action
2025-11-11 10:37:03 -05:00
renovate
da3efa05b5
chore(Nix): Updated flake hashes
2025-11-11 15:07:05 +00:00
Ginger
b53ba2eef4
ci: Give flake hashes workflow permissions to push
2025-11-11 15:07:05 +00:00
Jade Ellis
33019c4529
chore: Update rust
2025-11-11 15:07:05 +00:00
Jade Ellis
f7bd9eaba8
chore(clippy): Remove old redundant lint
2025-11-11 13:59:12 +00:00
Jade Ellis
f9c42bbadc
refactor(clippy): Unused self
2025-11-11 13:59:12 +00:00
Jade Ellis
fe62c39501
style(clippy): Remove unneeded allocation
2025-11-11 13:59:12 +00:00
Jade Ellis
35320cf0d4
style(clippy): Elide lifetimes
2025-11-11 13:59:12 +00:00
Jade Ellis
eaf6a889c2
style(clippy): Unnecessary move
...
Function is used in a single place and the move doesn't seem to provide
any safety benefits, so 💨
2025-11-11 13:59:12 +00:00
Jade Ellis
b04f1332db
style(clippy): Remove dead code
...
Looks like this has been dead since we forked at least, seems pretty
safe to remove
2025-11-11 13:59:12 +00:00
Jade Ellis
9e4bcda17b
style(clippy): Make the event graph generic over the hasher
2025-11-11 13:59:12 +00:00
Jade
45e4053883
fix: Don't break when encountering the server user, as there may be real users after
2025-11-10 23:56:02 +00:00
Jade Ellis
c0b617f4f1
feat(sentry): Include the commit hash in the release name
2025-11-10 16:57:24 +00:00
Jade Ellis
a28cfd284b
chore(deps): Upgrade tracing / telemetry ecosystem
...
We no longer need the tracing patches, so I've removed those and
unpinned them in renovate.
otel's jaeger propagator is deprecated too, so it's replaced with the
builtin W3C TraceContext propagator
2025-11-10 16:42:28 +00:00
Jade Ellis
a5b9cb69bd
fix(deps): Pin hyper-util back to the patched version
2025-11-10 15:56:09 +00:00
Renovate Bot
3c8f252a14
chore(deps): update opentelemetry-rust monorepo to 0.31.0
2025-11-10 05:03:16 +00:00
Jade
8a63818f31
feat: Enable sentry compilation feature
2025-11-10 01:33:50 +00:00
Renovate Bot
5b5e26e529
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.10
2025-11-09 19:05:26 +00:00
aviac
866769c054
chore: replace serde-yml with serde-saphyr
...
- serde-yml has an un-addressed [security issue][sec-issue]
- [saphyr][saphyr] is a pretty recent and active crate that deals with YAML parsing
- based on that, someone recently created [serde-saphyr][serde-saphyr]
---
The change was pretty straightforward and mostly "just a search and replace". The new crate has it's `Error` type split
into serialization and derserialization errors. Hence I created one Continuwuity-Error variant for each instead of just
having a single `Yaml` variant. This was already done previously with the `Toml` errors so I thought this would be
rather acceptable.
[sec-issue]: https://github.com/advisories/GHSA-gfxp-f68g-8x78
[saphyr]: https://github.com/saphyr-rs/saphyr
[serde-saphyr]: https://github.com/saphyr-rs/saphyr/issues/66#issuecomment-3353212289
2025-11-09 11:23:32 +01:00
Renovate Bot
2e3b71f5f1
chore(deps): update rust-patch-updates
2025-11-08 23:57:36 +00:00
Jade
1312d61141
revert f7867cf6ca
...
revert ci: Clean up old images
2025-11-08 23:56:02 +00:00
Jade Ellis
f7867cf6ca
ci: Clean up old images
2025-11-08 23:29:25 +00:00
Jade Ellis
2ca6887a5d
chore(ci): Fix merge error
2025-11-08 23:08:10 +00:00
Jade Ellis
368685f8cd
ci: Re-run mirror script when files change
2025-11-08 23:00:37 +00:00
Jade Ellis
ad2d192b94
ci: Use PATs for github registry
...
https://stackoverflow.com/questions/76821352/how-can-you-authenticate-to-the-github-container-registry-using-a-github-app
thx github
2025-11-08 23:00:31 +00:00
Jade Ellis
3214e94cdb
ci: Mirror to ghcr
2025-11-08 22:59:27 +00:00
timedout
37c537379d
chore(ci): Add git.nexy7574.co.uk image mirror ( #1149 )
...
secrets were added to the org
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1149
Co-authored-by: timedout <git@nexy7574.co.uk >
Co-committed-by: timedout <git@nexy7574.co.uk >
2025-11-08 22:56:16 +00:00
Jade Ellis
3c01c5f085
chore: Don't try to update patched deps automatically
2025-11-08 21:17:04 +00:00
Renovate Bot
4c552bb8ca
chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v6
2025-11-08 20:56:00 +00:00
Jade Ellis
ce73d29855
chore: Fix typos
2025-11-08 20:54:49 +00:00
Renovate Bot
d6e314744b
chore(deps): update pre-commit hook crate-ci/typos to v1.39.0
2025-11-08 14:34:13 +00:00
Jade
ec603188de
ci: Enable pre-commit in renovate
2025-11-08 14:31:35 +00:00
timedout
fbf48addc7
fix(user_can): Fix room creators being unable to redact events in v12 rooms
2025-10-27 14:34:50 +00:00
nexy7574
cbf726580f
fix: Kicks in !v12 are impossible
2025-10-27 14:34:50 +00:00
nexy7574
28f258fc8c
fix: Incorrect interpretation of 5.5.4
2025-10-27 14:34:50 +00:00
nexy7574
8b3acfd770
fix: Inverted creatorship check
2025-10-27 14:34:50 +00:00
nexy7574
a581e8de01
fix: Don't check restricted join rules for invite joins
2025-10-27 14:34:50 +00:00
nexy7574
7c74db5e74
fix: Weird re-application of partially resolved state
2025-10-27 14:34:50 +00:00
nexy7574
b17b4235f3
fix: Unbans and kicks incorrectly checked creatorship in !v12
2025-10-27 14:34:50 +00:00
aviac
ec3564e8aa
chore: use upstream rust-jemalloc-sys-unprefixed after flake.lock update
2025-10-27 12:55:21 +00:00
aviac
9a887ac04b
chore: fix CI to make all checks green
...
- define a nix default package
- try to fix CI
- fix/improve (?) CI even more (??)
2025-10-27 12:55:21 +00:00
aviac
fed808a3c6
feat: add taplo.toml to check now that we have it
2025-10-27 12:55:21 +00:00
aviac
37983b33a2
feat: add treefmt
2025-10-27 12:55:21 +00:00
aviac
1b2224fac6
feat: add hydra jobs to build all packages
2025-10-27 12:55:21 +00:00
aviac
c1c165ab48
fix: apply rocksdb changes in checks and shll
2025-10-27 12:55:20 +00:00
aviac
68bea1816f
feat(nix): flake-parts, first draft
2025-10-27 12:55:20 +00:00
Odd E. Ebbesen
cb7875e479
fix( #1134 ): Update docs and implementation of admin media delete-past-remote-media ( #1136 )
...
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1136
Co-authored-by: Odd E. Ebbesen <git@oddware.net >
Co-committed-by: Odd E. Ebbesen <git@oddware.net >
2025-10-27 12:31:25 +00:00
Jade Ellis
910a3182f7
fix: Prevent crash on process exit on MacOS
2025-10-26 17:42:08 +00:00
Jade Ellis
05886f8dcb
feat: Add option to control WAL compression
...
Also enables zstd compression by default
2025-10-26 17:30:42 +00:00
timedout
cff3c27729
fix: Bump ruwuma, export new route, config loading
2025-10-24 16:37:22 -04:00
Kierre
80be2ca22c
Repair
2025-10-24 16:07:06 -04:00
Kierre
d133b6c0c3
feat: set MSC4373 values
2025-10-24 15:33:16 -04:00
Ginger
a3592bd3b7
feat: Make a few improvements to the systemd unit
...
- Use systemd's credential system to supply our config file
- Remove `ConfigurationDirectory` to prevent conflicts with package managers
- Set `config_reload_signal` to true using an envvar
2025-10-17 13:37:42 +00:00
Ginger
70e8e96302
fix: Use mode 600 for config files on Fedora because they contain secret info
2025-10-17 13:37:42 +00:00
timedout
6002edccd3
perf: Remove extraneous policy server check
2025-10-16 23:57:07 +01:00
timedout
d189004d65
feat: Add more granular controls for policy server calling ( #1127 )
...
Adds two new toggles to the configuration, the first of which allows disabling the policy server checks entirely, and the second of which allows disabling checking events created locally. They're both enabled by default for maximum PS efficacy but allowing them to be disabled allows people who frequently cannot contact policy servers, for example those in censored countries, to be able to still use rooms with pace, allows single-user/trusted-only homeservers to disable the preliminary check on their own events, and also gives an escape hatch in case an issue like #1060 happens again, especially with MSCs not in FCP being moving targets.
In future, I think we should gate all MSC implementations behind config flags, even if they default to on.
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1127
Reviewed-by: Jade Ellis <jade@ellis.link >
Co-authored-by: timedout <git@nexy7574.co.uk >
Co-committed-by: timedout <git@nexy7574.co.uk >
2025-10-16 22:45:23 +00:00
timedout
26b700bf51
fix: Policy server calls use the correct JSON object ( #1126 )
...
Fixes #1060
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1126
Reviewed-by: Jacob Taylor <aranjedeath@noreply.forgejo.ellis.link >
Co-authored-by: timedout <git@nexy7574.co.uk >
Co-committed-by: timedout <git@nexy7574.co.uk >
2025-10-16 21:06:54 +00:00
Renovate Bot
09f24745c3
chore(deps): lock file maintenance
2025-10-15 19:05:50 +00:00
Renovate Bot
7ffbbe6890
chore(deps): update https://github.com/actions/setup-node action to v6
2025-10-15 18:55:02 +00:00
Renovate Bot
ad94c112fe
chore(deps): update rust-patch-updates
2025-10-15 17:55:58 +00:00
Jade
8c7cc68cbf
fix(ci): Don't use shallow clone when we're comparing git history
2025-10-15 12:53:15 +00:00
Ginger
dc047b635f
feat: Send notifications to systemd when a reload is triggered
2025-10-15 03:12:25 +00:00
Renovate Bot
cc4c2fed25
chore(deps): lock file maintenance
2025-10-13 12:05:52 +00:00
Renovate Bot
17e47ecd6d
chore(deps): update github-actions-non-major
2025-10-13 11:27:22 +00:00
Jade
b1d5ff477b
chore: Update renovate config
...
- Limit renovate updates to mondays
- Don't group lock updates
- Update checksums if possible
2025-10-13 11:26:26 +00:00
Renovate Bot
d6dc01ac2c
chore(deps): update https://code.forgejo.org/actions/checkout action to v5
2025-10-13 10:41:20 +00:00
Jimmy Brush
77ebe0d02f
fix( !714 ): Off-by-one in v5 sync
...
Simplified sliding sync specifies ranges to be inclusive while rust ranges are
exclusive.
2025-10-13 10:28:19 +00:00
Renovate Bot
81e3d4c905
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.7
2025-10-13 10:27:18 +00:00
nexy7574
cb8f36444c
feat: Proactively read Content-Length to reject oversized uploads
2025-10-12 19:42:57 +00:00
nexy7574
799def70dc
feat: Produce even more informative errors when saving media fails
2025-10-12 19:42:57 +00:00
nexy7574
20f741d0e5
feat: Produce a more informative error when uploading media fails
2025-10-12 19:42:57 +00:00
Renovate Bot
d38f4a24f2
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.146.0
2025-10-11 05:03:03 +00:00
Renovate Bot
6604cc4df9
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.144.1
2025-10-10 05:01:39 +00:00
Renovate Bot
89aa4d1eae
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.143.1
2025-10-09 05:03:56 +00:00
Renovate Bot
9231ea5114
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.141.0
2025-10-08 05:01:41 +00:00
Renovate Bot
4a3c72338d
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.138.1
2025-10-07 05:02:54 +00:00
Renovate Bot
ab862f4383
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.135.5
2025-10-06 05:01:26 +00:00
Renovate Bot
bd43be931a
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.135.4
2025-10-05 05:03:52 +00:00
Ginger
148240cbbb
fix: Add missing ldap3 feature
2025-10-01 18:55:30 +00:00
Renovate Bot
2e9e42d9ae
chore(deps): update rust crate ldap3 to 0.12.0
2025-10-01 18:55:30 +00:00
Renovate Bot
89fbda0d6e
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.132.5
2025-10-01 05:03:28 +00:00
Renovate Bot
c97eb5c889
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.132.2
2025-09-30 05:01:26 +00:00
Ginger
366ec46b26
fix: Upload debs built on a schedule
2025-09-29 14:17:44 +00:00
ginger
62a98ebc71
fix: Upload RPMs built on a schedule
2025-09-29 14:17:44 +00:00
Renovate Bot
439c605efe
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.131.9
2025-09-29 05:03:13 +00:00
Renovate Bot
32df2f3487
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.131.8
2025-09-28 05:03:46 +00:00
Renovate Bot
692da7ffc2
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.6
2025-09-27 16:17:44 +00:00
Renovate Bot
1082b24b1d
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.131.6
2025-09-27 05:03:28 +00:00
nexy7574
f45ceedb8a
fix(upgrade): Potentially resolve CI clippy errors
...
I'm not convinced this isn't a rust bug itself,
but CI was complaining about lifetimes
and those complaints couldn't be reproduced locally,
so this should probably fix it maybe?
2025-09-26 18:47:49 +01:00
nexy7574
d614e43981
fix(stateres): Creators can always unban
...
Also basically rewrote all of the event auth logs to be more digestable
2025-09-26 18:47:49 +01:00
Renovate Bot
1e0e7a31aa
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.131.2
2025-09-26 05:02:43 +00:00
Renovate Bot
92fffe9c82
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.130.1
2025-09-25 08:28:06 +00:00
Renovate Bot
11e51300a5
chore(deps): update github-actions-non-major
2025-09-25 08:16:34 +00:00
Jade Ellis
ef84e1bb02
fix(v12): Create tombstone event on room upgrade
2025-09-25 08:15:23 +00:00
nexy7574
1887d58df8
fix: V12 room upgrades
2025-09-25 08:15:23 +00:00
nexy7574
c66f6f8900
fix(stateres): Correctly fetch missing auth events for incoming PDUs
2025-09-25 02:54:00 +01:00
Ginger
902fe7b7ab
fix: Fix panic in debug builds caused by MSC4133 migration
2025-09-24 16:45:11 -04:00
Renovate Bot
472e1fee17
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.127.2
2025-09-24 05:03:46 +00:00
Jade Ellis
3c6f2d07e0
ci: Only run RPM builds on tags or schedule
2025-09-23 22:16:46 +01:00
ginger
43254aa396
fix: Attempt to enable RPM signing
2025-09-23 22:15:01 +01:00
Tom Foster
48ebf86335
feat(ci): Add Fedora RPM package build workflow
...
Build and publish RPM packages for Fedora using rpkg and official
rust-packaging macros. Packages are automatically signed by Forgejo's
built-in package registry (introduced in v9.0).
Publishes packages to organised groups:
- continuwuity (binary): base group (stable/dev/branch-name)
- continuwuity-debuginfo: GROUP-debug
- continuwuity (source RPM): GROUP-src
Workflow triggers on pushes to relevant paths and version tags (v*).
Tagged releases use clean version numbers (v1.2.3 becomes 1.2.3-1)
while branch builds use sanitised branch name versioning.
Uses dnf builddep to install build dependencies directly from the
generated SRPM, ensuring consistency between CI and spec file without
duplication. This also prevents hiding packaging issues that could
occur with --nodeps fallbacks.
2025-09-23 22:15:00 +01:00
Ginger
f1e3b4907e
Build Debian packages and upload them to Forgejo's repository ( #996 )
...
This uses the existing `cargo-deb` metadata.
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/996
Reviewed-by: Tom Foster <tom@tcpip.uk >
Reviewed-by: nex <nex@noreply.forgejo.ellis.link >
Co-authored-by: Ginger <ginger@gingershaped.computer >
Co-committed-by: Ginger <ginger@gingershaped.computer >
2025-09-23 19:53:37 +00:00
Jade Ellis
9346a0d05e
fix(ci): Typo
2025-09-23 12:55:04 +01:00
nyanbinary
c99faae115
chore(nix): bump rocksdb version in flake.nix to 10.5.fb
2025-09-23 06:31:10 +00:00
Renovate Bot
a5aa68ee8d
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.125.2
2025-09-23 03:53:03 +00:00
Tom Foster
8959ac06ac
ci: Split Rust build cache into dependencies and incremental caches
...
Replace single large build cache with separate dependencies and incremental
caches. Dependencies cache survives source code changes and uses tiered
restore keys. Removes build directory from caching to improve CI performance
while maintaining effective compilation caching with sccache.
2025-09-23 04:30:35 +01:00
Tom Foster
47f7ebfd68
fix: Use node_version in npm cache key for wrangler installation
...
Replace hashFiles('**/package-lock.json') with node_version since wrangler
is installed via npm without a lockfile to hash. Removes trailing dash from
cache keys and ensures npm dependencies are regenerated when Node.js version
changes.
2025-09-23 04:30:35 +01:00
Tom Foster
7d91f218b1
ci: Migrate to detect-versions with namespaced cache keys
...
Replace local detect-runner-os action with external detect-versions@v1 to
reduce custom action maintenance. Add architecture detection for future
cross-platform support and namespace all cache keys with "continuwuity-"
prefix to prevent collisions with other projects on shared runners.
Updates cache mount IDs in Dockerfiles to match the new namespacing
convention, ensuring consistent cache isolation across CI and Docker builds.
2025-09-23 04:30:22 +01:00
Jade Ellis
e5e2db37d9
ci: Run image release workflow on tag
2025-09-22 17:03:26 +01:00
Jade Ellis
e08ea3b9e5
ci: Trace commands to push docker manifests
2025-09-22 17:03:26 +01:00
Jade Ellis
4f1907abfa
ci: Change tag generation to use suffix flavour
2025-09-22 17:03:26 +01:00
Ginger
92d74c293e
feat: Advertise support for MSC4155
2025-09-22 11:33:45 -04:00
Renovate Bot
3fbdced0e1
chore(deps): update github-actions-non-major
2025-09-22 05:04:03 +00:00
nexy7574
b70470fa71
fix: Event filters all non-state events
2025-09-21 20:10:36 +01:00
nexy7574
703d6a2075
chore: Bump version to rc.8
2025-09-21 18:17:24 +01:00
Savyasachee Jha
5b75e21810
Update resolv-conf to upstream 0.7.5
2025-09-21 17:13:38 +00:00
Ginger
13b7538785
Add support for MSC4155 ( #1013 )
...
[rendered msc here](https://github.com/Johennes/matrix-spec-proposals/blob/johannes/invite-filtering/proposals/4155-invite-filtering.md ). Closes #836 .
Co-authored-by: nexy7574 <git@nexy7574.co.uk >
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1013
Reviewed-by: nex <nex@noreply.forgejo.ellis.link >
Co-authored-by: Ginger <ginger@gingershaped.computer >
Co-committed-by: Ginger <ginger@gingershaped.computer >
2025-09-21 17:03:40 +00:00
Renovate Bot
9745bcba1c
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.121.4
2025-09-21 05:02:02 +00:00
nexy7574
c9c79fbea6
fix: Fix restricted join rules inconsistencies
2025-09-20 21:07:13 +00:00
nexy7574
92e9802340
style: Tidy up 1054
2025-09-20 21:07:00 +00:00
nexy7574
1d80b7ce0c
fix: Don't perform local join when there's no remote servers
2025-09-20 21:07:00 +00:00
Jade
563b6d4b30
fix: Update debug assertion with new serde type location
...
Fixes !1052
2025-09-20 18:04:16 +00:00
Renovate Bot
e86fc6d9f8
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.119.5
2025-09-20 05:03:27 +00:00
Renovate Bot
13adea6498
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.118.1
2025-09-19 10:31:58 +00:00
Renovate Bot
17d0bb6cf6
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.117.0
2025-09-18 21:06:35 +00:00
Renovate Bot
6dc5051fa6
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.116.10
2025-09-18 19:26:39 +00:00
Renovate Bot
3034c03ad1
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.116.8
2025-09-18 13:36:19 +00:00
Renovate Bot
fa6f549d39
chore(deps): lock file maintenance
2025-09-18 13:32:26 +00:00
Renovate Bot
999217b0f6
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.5
2025-09-18 13:31:48 +00:00
Renovate Bot
74fccff2cc
chore(deps): update github-actions-non-major
2025-09-18 13:31:19 +00:00
Shuroii
7a56a2462c
fix(ci): Use github env namespace as forgejo is still unsupported
2025-09-18 13:30:50 +00:00
Ginger
458811f241
fix: Fix nexy's very accurate and not-at-all busted fix to my fix
2025-09-17 20:04:50 -04:00
nexy7574
0672ce5b88
style: Fix clippy lint errors
2025-09-17 23:54:09 +01:00
Ginger
7f287c7880
fix: Use a database migration to fix corrupted us.cloke.msc4175.tz fields
...
(cherry picked from commit 4a893ce4cc81487bcf324dccefd8184ddef5b215)
2025-09-17 23:14:07 +01:00
Shuroii
9142978a15
fix: Fully qualify action
...
This fixes an issue where Forgejo tries to look for code.forgejo.org for the action despite it not being available.
2025-09-17 21:37:50 +00:00
Shuroii
a8eb9c47f8
feat(ci): Add a workflow to update flake hashes
...
This workflow is intended to be ran as dispatch whenever the rocksdb fork changes!
Other than that, it'll run on any toolchain changes (rust-toolchain.toml, Cargo.lock, Cargo.toml) and update the relevant hash accordingly.
2025-09-17 21:37:50 +00:00
nexy7574
9f18cf667a
chore: Temporarily disable bad tests
2025-09-17 22:25:04 +01:00
nexy7574
7e4071c117
Implement room v12 ( #943 )
...
**Does not yet work!** Currently, state resolution does not correctly resolve conflicting states. Everything else appears to work as expected, so stateres will be fixed soon, then we should be clear for takeoff.
Also: a lot of things currently accept a nullable room ID that really just don't need to. This will need tidying up before merge. Some authentication checks have also been disabled temporarily but nothing important.
A lot of things are tagged with `TODO(hydra)`, those need resolving before merge. External contributors should PR to the `hydra/public` branch, *not* ` main`.
---
This PR should be squash merged.
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/943
Co-authored-by: nexy7574 <git@nexy7574.co.uk >
Co-committed-by: nexy7574 <git@nexy7574.co.uk >
2025-09-17 20:46:03 +00:00
Renovate Bot
51423c9d7d
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.115.6
2025-09-17 05:03:46 +00:00
Ginger
a0b0ff9d5c
fix: Remove legacy check for u. prefix
2025-09-16 11:30:39 +00:00
Ginger
8e27d74c4a
fix: Slightly more parallelism
2025-09-16 11:30:39 +00:00
Ginger
d6b1055683
fix: Remove needless async marker
2025-09-16 11:30:39 +00:00
Ginger
c9117e6ee4
fix: Fix incorrect deserialization of MSC4133 profile fields
2025-09-16 11:30:39 +00:00
Ginger
e3415a500d
chore: Code cleanup
2025-09-16 11:30:39 +00:00
Ginger
e6fd3c970b
fix: Nuke explicit references to the MSC4175 tz profile field
2025-09-16 11:30:39 +00:00
Renovate Bot
6b7f35a8b8
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.115.0
2025-09-16 05:01:56 +00:00
Tom Foster
a120a4fa95
fix: Handle runner cargo bin path migration in timelord action
...
Runner images have migrated from /usr/share/rust/.cargo/bin to standard
~/.cargo/bin location. Action now checks old location first and migrates
binaries if found, maintaining compatibility with both paths.
Bump cache key to v3 to ensure fresh binary cache after path changes.
2025-09-15 16:17:32 +01:00
Renovate Bot
f872210b20
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.113.4
2025-09-15 05:01:40 +00:00
Renovate Bot
3dd04bd9df
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.113.2
2025-09-14 05:03:21 +00:00
Ginger
af45c348a4
fix: Properly deserialize changes to legacy fields made with MSC4133 endpoints
2025-09-14 01:28:08 +00:00
nexy7574
36dabecb82
chore(1014): Include MSC4155 in build features to resolve build errors
2025-09-14 00:53:43 +00:00
nexy7574
50cd1081ba
chore(1014): Bump ruwuma
2025-09-14 00:53:43 +00:00
nexy7574
14df55e5c5
style(1014): Remove unnecessary commented code
2025-09-14 00:53:43 +00:00
nexy7574
d9d0d1a465
fix( !1014 ): Don't prematurely return during registration
2025-09-14 00:53:43 +00:00
Tom Foster
81b6b3547c
fix: Resolve Forgejo runner v11 matrix job execution failure
...
Matrix jobs stopped starting after upgrading from runner v9 to v11 due to
changes in job dependency resolution. Remove redundant define-variables job
that computed static image paths and replace with IMAGE_PATH environment
variable.
Also fix timelord action binary caching for compatibility between different
runner images that install cargo binaries in different locations.
2025-09-13 17:12:09 +01:00
Renovate Bot
0bbc3c4e05
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.112.0
2025-09-12 21:11:13 +00:00
Jade
0f09fa3d31
chore(renovate): Specify automerge strategy
2025-09-12 21:02:25 +00:00
Tom Foster
3d5355dfc3
chore(renovate): Add auto-merge for renovatebot and reorganise package rules
...
Enable automatic merging of ghcr.io/renovatebot/renovate docker image updates
to reduce manual maintenance overhead.
Reorganise package rules by manager type (cargo, github-actions, docker) and
add missing description for cargo concurrency limit rule to improve config
maintainability.
2025-09-12 17:50:08 +01:00
Renovate Bot
2547eb3a90
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.109.0
2025-09-12 13:29:47 +00:00
Renovate Bot
51ba41823f
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.106.0
2025-09-12 13:23:28 +00:00
Tom Foster
542dff50bd
ci: Split Docker builds into sequential release and max-perf stages
...
Separate fast release builds from slow max-perf builds to optimise runner
utilisation and provide quicker feedback. Release builds complete first with
standard optimisations, followed by Haswell-optimised dragrace builds once
the safe builds pass successfully.
Extract build logic into focused composite actions for better log visibility
in Forgejo UI. Split monolithic build action into prepare-docker-build,
inline docker build step, and upload-docker-artifacts to ensure each phase
completes independently and shows logs immediately.
Creates separate manifests at each stage to avoid waiting for all builds
before publishing.
2025-09-12 12:43:19 +01:00
Tom Foster
9c147b182f
ci: Fix BuildKit cache invalidation and add Haswell-optimised builds
...
The workflow was rebuilding dependencies unnecessarily despite timelord
restoring timestamps because TARGET_CPU and RUST_PROFILE weren't passed
to Docker, creating inconsistent cache keys. Now passes both arguments
for proper cache reuse.
Adds Haswell-optimised builds alongside baseline builds using -march=haswell
for PCLMUL instruction support. Recent build improvements reducing compile
times from 15-20 minutes to ~5 minutes make this additional CPU variant
feasible. Users can pull optimised images with -haswell suffix.
2025-09-11 13:59:43 +01:00
Renovate Bot
7e76ca45c1
chore(deps): lock file maintenance
2025-09-11 12:28:11 +00:00
Tom Foster
5126cb4554
fix: Use forgejo/upload-artifact@v4 for artifact consistency
...
Follow-on to correct #1009 . The previous fix downgraded upload-artifact
to v3 but kept download-artifact@v4, creating incompatible storage
formats that prevented artifact pattern filtering from working.
Update all upload-artifact actions to v4 and adjust renovate
configuration to disable automatic updates for forgejo artifact
actions to maintain version consistency.
2025-09-11 11:57:04 +01:00
Renovate Bot
4d05d0f677
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.99.9
2025-09-11 09:56:48 +00:00
Tom Foster
0673ac1a6c
fix: Fix artifact action compatibility and add digest debugging
...
Resolve upload-artifact v4 GHES compatibility errors by downgrading to v3.
Switch to standard forgejo/download-artifact@v4 for pattern filtering support.
Update renovate configuration to prevent future incompatible upgrades.
Add diagnostic output to digest export step to troubleshoot zero-byte
artifact uploads preventing manifest creation. Include CI triggers for
Element workflow to test changes in pull requests.
2025-09-11 10:44:11 +01:00
Jade Ellis
ad11417145
chore(deps): Replace serde_yaml with serde_yml
2025-09-10 20:20:45 +01:00
Renovate Bot
0de904ffe4
chore(deps): update rust crate const-str to 0.7.0
2025-09-10 18:05:00 +00:00
Renovate Bot
d74b9de221
chore(deps): update dependency cargo-bins/cargo-binstall to v1.15.4
2025-09-10 17:44:44 +00:00
Renovate Bot
e7ac5988cb
chore(deps): update https://github.com/actions/setup-node action to v5
2025-09-10 17:06:45 +00:00
Jade Ellis
571f05017c
chore: Update resolv git hash
2025-09-10 17:50:37 +01:00
Jade Ellis
a339e73eb5
chore: Unify actions versions
2025-09-10 17:39:25 +01:00
Jade Ellis
72b78ed6d4
chore: Fix nightly-only clippy lints
2025-09-10 17:35:17 +01:00
nexy7574
baa89586e2
fix(MSC4277): Undo refuted response changes
2025-09-10 16:25:06 +00:00
nexy7574
7ad8ff2e45
style(MSC4277): Run lints to satisfy checks
2025-09-10 16:25:06 +00:00
nexy7574
2046b1e2f6
feat(MSC4277): Unify reporting endpoint behaviours
...
* reporting rooms now always returns 200 OK
* reporting an event returns OK if we don't know about the reported event
* removed the score parameter (needs a followup ruwuma update)
2025-09-10 16:25:06 +00:00
Renovate Bot
2cb980cd4c
chore(deps): update ghcr.io/renovatebot/renovate docker tag to v41.99.7
2025-09-10 16:16:34 +00:00
Jade Ellis
27e0ef7b2e
chore: Update renovate CI
...
- Fixes some issues with the action - Enables OSV vuln scanning -
Enables updating the dockerfile tool versions
2025-09-10 16:53:59 +01:00
Jade Ellis
7091882887
chore: Update cargo lockfile
2025-09-10 16:47:20 +01:00
Jade Ellis
a81546374d
ci: Make timelord docker work locally
2025-09-10 16:40:55 +01:00
Tom Foster
7950e2cc7f
ci: Refactor timelord action to use git-warp-time fallback
...
Updates the timelord action to fall back to git-warp-time when the cache
is completely empty, enabling timestamp restoration even on fresh builds.
When git-warp-time is used, performs an unshallow fetch to get full history,
while subsequent runs use normal fetches. Simplifies the interface by making
inputs optional with sensible defaults.
Adds binary caching for timelord-cli and git-warp-time tools to avoid
repeated installations, and updates paths to use /usr/share/rust/.cargo/bin/
for the catthehacker runner image used by the dind profile (may need updating
if/when switching to standard image).
The main timelord restore now happens inside the Dockerfile itself, as Docker
intentionally wipes all file mtimes on COPY/ADD operations.
2025-09-08 08:34:29 +00:00
Renovate Bot
8f186cd770
chore(deps): update https://github.com/renovatebot/github-action action to v43.0.11
2025-09-08 05:02:33 +00:00
Ginger
5d3e10a048
fix: Make RA use the full feature
2025-09-07 18:07:03 -04:00
Ginger
1e541875ad
fix: Nuke src/api/client/utils.rs
2025-09-07 18:06:11 -04:00
nexy7574
90fd92977e
style: Run clippy
2025-09-07 21:20:26 +00:00
Ginger
e27ef7f5ec
feat: Do not persist remote PDUs fetched with admin commands
2025-09-07 21:20:26 +00:00
Ginger
16f4efa708
fix: Fix pagination tokens being corrupted for backfilled PDUs
2025-09-07 21:20:26 +00:00
Ginger
e38dec5864
fix: Put the output of !admin query room-timeline pdus in a codeblock
2025-09-07 21:20:26 +00:00
Ginger
f3824ffc3d
fix: Use handle_incoming_pdu directly to keep remote PDUs as outliers
2025-09-07 21:20:26 +00:00
nexy7574
e3fbf7a143
feat: Ask remote servers for individual unknown events
2025-09-07 21:20:26 +00:00
nexy7574
09de586dc7
feat(PR977): Log more things in the join process
2025-09-07 22:01:07 +01:00
nexy7574
d1fff1d09f
perf(pr977): Remove redundant ACL check in send_join
2025-09-07 22:01:07 +01:00
nexy7574
f47474d12a
fix(PR977): Adjust some log levels
2025-09-07 22:01:07 +01:00
nexy7574
53da294e53
fix(PR977): Omitting redundant entries from the auth_chain caused problems
2025-09-07 22:01:07 +01:00
nexy7574
2cdccbf2fe
feat(PR977): Support omitting members in the send_join response
2025-09-07 22:01:07 +01:00
Tom Foster
6cf3c839e4
ci(release-image): Skip digest upload when not pushing images
...
After #992 , builds without registry credentials skip Docker image output
but still extract binary artifacts. However, we were still trying to
upload digests for images that weren't created. Add conditional check
to only upload digests when actually pushing to registry.
2025-09-07 21:27:56 +01:00
Tom Foster
4a1091dd06
ci(release-image): Unify binary extraction using BuildKit local output
...
Fork PRs currently fail binary extraction with 'invalid reference format'
and 'must specify at least one container source' errors. This replaces the
registry-specific docker create/copy method with BuildKit's local output
feature for all builds.
Uses multiple outputs in single build: image export plus local binary
extraction from /sbin. Speeds up extracting binary artifacts and saves a
couple of extra workflow steps in the process.
2025-09-07 20:46:11 +01:00
Tom Foster
1e9701f379
ci(release-image): Skip setup steps when using persistent BuildKit
...
When BUILDKIT_ENDPOINT is set, builds run on a persistent BuildKit instance,
making runner setup steps unnecessary. Skip Rust toolchain installation,
QEMU setup, caching steps, and timelord to eliminate ~7 operations per job.
Also adds output to git SHA and timestamp steps for visibility.
Cuts at least a minute off average build time through fewer installs,
cache restores, and cache saves.
2025-09-07 18:59:05 +01:00
Tom Foster
2cedf0d2e1
fix(ci): Use image output instead of docker for fork PRs
...
Docker exporter doesn't support manifest lists (multi-platform builds).
For fork PRs without registry credentials, use 'type=image,push=false'
instead of 'type=docker' to build multi-platform images locally without pushing.
2025-09-07 18:32:38 +01:00
Tom Foster
84fdcd326a
fix(ci): Resolve registry push failures for fork PRs
...
Fork PRs now fail during Docker image build with 'tag is needed when
pushing to registry' because BUILTIN_REGISTRY_ENABLED evaluates to false
without proper credentials, leaving the images list empty. This appears
to be due to recent Forgejo permission changes affecting fork access to
repository secrets.
Add fallback to official registry when credentials unavailable, skip
registry login and push operations for forks, and make merge job
conditional since no digests exist without push. This allows forks to
test Docker builds whilst avoiding authentication failures.
2025-09-07 17:39:18 +01:00
Tom Foster
d640853f9d
ci(docs): Optimise build performance with caching and conditional Node.js
...
Skip installing Node.js entirely if v20+ is already available, otherwise
install v22. Add npm dependency caching with OS-specific cache keys using
the custom detect-runner-os action for proper cache isolation between
runners. Dependencies normally take just under 10s, so this should more
than halve the doc build time to free up runner slots.
2025-09-07 14:51:10 +01:00
Tom Foster
fff9629b0f
fix(docker): Resolve liburing.so.2 loading error for non-root users
...
Container failed to start when running as non-root (user 1000:1000) because
copied directories had restrictive 770 permissions, likely due to different
umask in persistent BuildKit. Non-root users couldn't access /usr/lib to
load required dynamic libraries.
Introduces prepper stage using Ubuntu to organize files into layered structure
with explicit 755 directory permissions before copying to scratch image.
Also fixes workflow syntax error and removes docker/** from paths-ignore to
ensure Docker changes trigger CI builds.
2025-09-07 14:13:14 +01:00
Tom Foster
1a3107c20a
fix(ci): Replace Mozilla sccache action with token-free alternative
...
Replace mozilla-actions/sccache-action with a custom Forgejo-specific
implementation that eliminates GitHub token dependencies and rate limiting
issues for all contributors regardless of repository permissions.
The new action mirrors sccache binaries to the Forgejo package registry
and queries that instead of GitHub releases, maintaining identical functionality
including hostedtoolcache support.
2025-09-07 09:29:32 +01:00
aviac
969d7cbb66
feat(nix): remove rocksdb from flake.nix inputs
...
Consuming this flake is pretty annoying since the rocksdb input is
fetched on every build which takes ~ 10 - 20 sec. By removing it and
replacing it with a `pkgs.fetchFromGitea`, we create an intermediate
derivation which is better for caching reasons.
2025-09-06 17:40:31 +00:00
Jade Ellis
cd238b05de
fix: Remove bad colon in workflow
2025-09-06 16:21:21 +01:00
Jade Ellis
c0e3829fed
feat: Replace Jaeger with OTLP
2025-09-06 16:19:56 +01:00
Jade Ellis
1d7dda6cf5
chore: Upgrade ctor, cbor
2025-09-06 16:19:56 +01:00
Jade Ellis
6f19931c5b
chore(deps): Upgrade minor incompatible dependencies
2025-09-06 16:19:56 +01:00
Tom Foster
2516e783ba
ci: Support optional persistent BuildKit endpoints in Docker builds
...
Allows us to use runners with persistent BuildKit containers for improved
caching and faster build times. Falls back to standard docker-container
driver when BUILDKIT_ENDPOINT environment variable is not set.
2025-09-06 16:05:51 +01:00
Jade Ellis
fdf5771387
ci: Fix CI not triggering on external pull requests
2025-09-06 15:21:39 +01:00
Ginger
58bbc0e676
fix: Move packaging files from dist/ to pkg/
2025-09-06 14:03:57 +00:00
Ginger
0d58e660a2
fix: Remove unnecessary user and directory modifications
...
systemd creates a dynamic user for
continuwuity and manages directories for
it automatically, so the debian postinst
script no longer needs to do that.
2025-09-06 14:03:57 +00:00
Ginger
e7124edb73
fix: Update debian systemd unit path
2025-09-06 14:03:57 +00:00
Ginger
d19e0f0d97
feat: Move packaging scripts into dist/ and consolidate the service files
2025-09-06 14:03:57 +00:00
nex
467aed3028
chore: Add Ginger's GH noreply email to mailmap
2025-09-02 16:36:56 +00:00
Ginger
99b44bbf09
Update conduwuit-example.toml
2025-09-01 17:50:09 +00:00
Ginger
95aeff8cdc
Set the DB path as an env var in systemd service files to prevent footgunning
2025-09-01 17:50:09 +00:00
nexy7574
9e62e66ae4
chore(PR956): Update admin docs
2025-09-01 11:27:58 +00:00
nexy7574
76b93e252d
feat: Only inject vias when manual ones aren't provided during join
2025-09-01 11:27:58 +00:00
nexy7574
66d479e2eb
fix: Make remote leave helper a public fn
2025-09-01 11:27:58 +00:00
nexy7574
241371463e
feat: Force leave remote rooms admin command
2025-09-01 11:27:58 +00:00
nexy7574
d970df5fd2
perf(MSC4323): Parallelise some check futs
2025-09-01 12:13:37 +01:00
nexy7574
4e644961f3
perf(MSC4323): Remove redundant authorisation checks
2025-09-01 12:13:37 +01:00
nexy7574
35cf9af5c8
feat(MSC4323): Add versions flag
2025-09-01 12:13:37 +01:00
nexy7574
04e796176a
style(MSC4323): Satisfy our linting overlords
2025-09-01 12:13:37 +01:00
nexy7574
9783940105
feat(MSC4323): Advertise suspension support in capabilities
2025-09-01 12:13:37 +01:00
nexy7574
1e430f9470
feat(MSC4323): Implement agnostic suspension endpoint
2025-09-01 12:13:37 +01:00
Renovate Bot
5cce024841
chore(deps): update https://github.com/reproducible-containers/buildkit-cache-dance action to v3.3.0
2025-08-31 00:44:28 +00:00
Jade Ellis
e87c461b8d
feat: Cache renovate data, RO GitHub token
2025-08-31 01:37:50 +01:00
Jade Ellis
b934898f51
chore: Update renovate config, limit cargo updates
2025-08-31 00:25:41 +01:00
nexy7574
83e3de55a4
fix(sync/v2): Room leaves being omitted incorrectly
...
Partially borrowed from 85a84f93c7
2025-08-30 16:18:46 +01:00
Tom Foster
609e239436
fix(fedora): Correct linting issues in RPM spec file
...
The Fedora RPM packaging files added in PR #950 weren't passing pre-commit
checks, causing CI failures for any branches rebased after that merge. This
applies prek linting fixes (typo correction, trailing whitespace removal,
and EOF newline) to ensure CI passes for all contributors.
2025-08-30 16:10:41 +01:00
Ginger
34417c96ae
Update URL to point at the landing page
2025-08-28 21:10:46 +00:00
Ginger
f33f281edb
Update long description to match deb package
2025-08-28 21:10:46 +00:00
Ginger
ddbca59193
Add spec and service files for creating an RPM package
2025-08-28 21:10:46 +00:00
Tom Foster
b5a2e49ae4
fix: Resolve Clippy CI failures from elided lifetime warnings
...
The latest Rust nightly compiler (2025-08-27) introduced the
elided-named-lifetimes lint which causes Clippy CI checks to fail
when an elided lifetime ('_) resolves to a named lifetime that's
already in scope.
This commit fixes the Clippy warnings by:
- Making lifetime relationships explicit where 'a is already in scope
- Keeping elided lifetimes ('_) in functions without explicit
lifetime parameters
- Ensuring proper lifetime handling in the database pool module
Affected files (17 total):
- Database map modules: Handle, Key, and KeyVal references in get,
qry, keys, and stream operations
- Database pool module: into_recv_seek function
This change resolves the CI build failures without changing any
functionality, ensuring the codebase remains compatible with the
latest nightly Clippy checks.
2025-08-28 21:13:19 +01:00
Jade Ellis
37248a4f68
chore: Add reasons for test skips
2025-08-28 20:10:05 +01:00
Tom Foster
dd22325ea2
refactor(ci): Consolidate Rust checks with optimised toolchain setup
...
Merge rust-checks.yml into prek-checks.yml for a unified workflow that
runs formatting and clippy/test checks in parallel jobs.
Add reusable composite actions:
- setup-rust: Smart Rust toolchain management with caching
* Uses cargo-binstall for pre-built binary downloads
* Integrates Mozilla sccache-action for compilation caching
* Workspace-relative paths for better cache control
* GitHub token support for improved rate limits
- setup-llvm-with-apt: LLVM installation with native dependencies
- detect-runner-os: Consistent OS detection for cache keys
Key improvements:
- Install prek via cargo-binstall --git (crates.io outdated at v0.0.1)
- Download timelord-cli from cargo-quickinstall
- Set BINSTALL_MAXIMUM_RESOLUTION_TIMEOUT=10 to avoid rate limit delays
- Default Rust version 1.87.0 with override support
- Remove redundant sccache stats (handled by Mozilla action)
Significantly reduces CI runtime through binary downloads instead of
compilation while maintaining all existing quality checks.
2025-08-28 19:20:14 +01:00
nex
30a56d5cb9
Update renovate.json
2025-08-28 17:15:32 +00:00
nexy7574
3183210459
fix: Post-merge compile issues
2025-08-23 21:28:31 +01:00
RatCornu
57d7743037
feat: add ldap_only config option
2025-08-23 19:59:36 +00:00
Jade Ellis
cb09bfa4e7
fix: Correctly pass ldap feature from the default crate
2025-08-23 19:59:36 +00:00
Jade Ellis
0ed691edef
fix: Make builds without LDAP work correctly
2025-08-23 19:59:36 +00:00
Jade Ellis
c58b9f05ed
chore: Fix default attributes for config
2025-08-23 19:59:36 +00:00
RatCornu
fb7e739b72
chore: remove unused LDAP mail attribute
2025-08-23 19:59:36 +00:00
RatCornu
c7adbae03f
feat: ldap login
2025-08-23 19:59:36 +00:00
Jade Ellis
8b35de6a43
chore: Fix clippy lints with minimal diff
2025-08-22 00:51:54 +01:00
aviac
d191494f18
chore(nix): update fenix input
...
This is required, since now we're installing `rustfmt` from the latest
state of the fenix repo. This wasn't recent enough for the latest rust
version. The input was locked at (2025-07-02). Now it's up to date.
2025-08-22 00:37:16 +01:00
aviac
6d1f12b22d
chore(nix): make rustfmt-nightly available to default dev shell
...
I verified this by running `rustfmt --version` on my system. Note that I
don't have a system-wide install of rust and only rely on dev shells, so
this can't possibly come from somewhere else.
```
$ rustfmt --version
rustfmt 1.8.0-nightly (6677875279 2025-07-02)
```
2025-08-22 00:37:16 +01:00
aviac
ca3ee9224b
chore(rust): drop rustfmt from rust-toolchain.toml
...
This just installs regular rustfmt, which is not needed in this project.
One could say "It doesn't hurt", but in the NixOS dev shell it actually
does since it will shadow nightly rustfmt and we don't have the
`cargo +nightly fmt` synatx on NixOS that is available on other Distros.
Also "It doesn't hurt" to delete it for non NixOS users.
2025-08-22 00:37:16 +01:00
aviac
427b973b67
chore(rust): bump version 1.87 -> 1.89
...
- bump version in rust-toolchain.toml
- update sha in flake.nix
2025-08-22 00:32:04 +01:00
Tom Foster
aacaf5a2a0
fix(ci): Downgrade setup-uv action from v6 to v5
...
The setup-uv@v6 action has deprecated Node 18 support mid-version by
using the File API, causing workflow failures. Temporarily downgrading
to v5 until we migrate to a better runner image with Node 20+ support.
2025-08-21 21:10:15 +01:00
aviac
256bed992e
chore(nix): exec 'use flake' with direnv on NixOS systems
2025-08-21 13:40:11 +02:00
aviac
ecb87ccd1c
chore(nix): bump rocksdb version in flake.nix to 10.4.fb
...
This works without any further changes. Multiple people in the matrix
room (including myself) have reported that the built executable runs
fine with this. Nevertheless, there might be room for improvements (in
future commits)
2025-08-21 13:39:36 +02:00
Tom Foster
14a4b24fc5
fix(ci): Configure Renovate for Forgejo platform
...
- Set platform to 'forgejo' with proper API endpoint
- Use environment variables for all Renovate configuration
- Add git timeout and disable GitHub token warnings
- Move PR limit configuration to workflow
2025-08-17 17:37:24 +01:00
Tom Foster
731761f0fc
Merge branch 'main' into tom/prek-was-prefligit
2025-08-17 15:08:44 +00:00
Tom Foster
4524a00fc6
chore(ci): Remove obsolete prefligit action
...
Now using prek directly via uvx, this custom action is no longer needed.
2025-08-17 16:00:42 +01:00
Tom Foster
9db750e97c
fix(ci): Add full GitHub URL to renovate action
...
Forgejo's runner doesn't automatically assume actions are on github.com,
so we need to specify the full URL.
2025-08-17 15:51:29 +01:00
Tom Foster
b14a4d470b
Merge branch 'main' into tom/prek-was-prefligit
2025-08-17 14:16:35 +00:00
Tom Foster
5d1f141882
ci: Rename prefligit-checks.yml to prek-checks.yml
...
Rename workflow file to match the updated tool name.
2025-08-17 15:13:02 +01:00
Tom Foster
b447cfff56
ci: Update prefligit to prek
...
The prefligit project has been renamed to prek due to typosquatting
concerns. This updates our CI to use the new name and recommended
installation method via uv, which significantly reduces setup time
compared to cargo install and includes automatic caching.
- Replace outdated static prefligit action with direct prek invocation
- Use uv as recommended by upstream: https://github.com/j178/prek
- Update check-byte-order-marker to fix-byte-order-marker (deprecated)
- Simplify workflow by removing unused ref calculations
The same .pre-commit-config.yaml works unchanged. Developers can
install locally with 'uvx prek install' or other methods from the repo.
2025-08-17 15:11:38 +01:00
Tom Foster
283888e788
Merge branch 'main' into tom/renovate
2025-08-17 13:27:33 +00:00
Tom Foster
f54e59a068
ci: Add Renovate for automated dependency management
...
Configures Renovate bot to create PRs for outdated dependencies.
Runs daily at 5am UTC with manual trigger via workflow_dispatch.
Configuration:
- Ignores custom forks (jemalloc, telemetry packages)
- Groups: GHA minor/patch, Rust toolchain, lockfile, Rust patches
- Limits: 3 concurrent PRs, 2 PRs per hour
- Supports: Cargo, GitHub Actions, Nix
2025-08-17 14:20:20 +01:00
Tom Foster
2a183cc5a4
fix(build): Remove hardened_malloc from full feature set
...
The hardened_malloc feature conflicts with jemalloc, preventing successful
builds with the --features full flag. Commenting out hardened_malloc allows
the full profile to build correctly while maintaining all other features.
2025-08-17 13:44:32 +01:00
nexy7574
54acd07555
fix: Drop fake room v2 support
2025-08-16 16:22:24 +01:00
Tom Foster
583cb924f1
refactor: address code review feedback for auth and pagination improvements
...
- Extract duplicated thread/message pagination functions to shared utils module
- Refactor pagination token parsing to use Option combinators instead of defaults
- Split access token generation from assignment for clearer error handling
- Add appservice token collision detection at startup and registration
- Allow appservice re-registration with same token (for config updates)
- Simplify thread relation chunk building using iterator chaining
- Fix saturating_inc edge case in relation queries with explicit filtering
- Add concise comments explaining non-obvious behaviour choices
2025-08-12 05:29:41 +01:00
Tom Foster
9286838d23
fix(relations): improve thread pagination and include root event
...
Replace unreliable PduCount pagination tokens with ShortEventId throughout
the relations and messages endpoints. ShortEventId provides stable, unique
identifiers that persist across server restarts and database operations.
Key improvements:
- Add token parsing helpers that try ShortEventId first, fall back to
PduCount for backwards compatibility
- Include thread root event when paginating backwards to thread start
- Fix off-by-one error in get_relations that was returning the starting
event in results
- Only return next_batch/prev_batch tokens when more events are available,
preventing clients from making unnecessary requests at thread boundaries
- Ensure consistent token format between /relations, /messages, and /sync
endpoints for interoperability
This fixes duplicate events when scrolling at thread boundaries and ensures
the thread root message is visible when viewing a thread, matching expected
client behaviour.
2025-08-10 19:12:56 +01:00
Tom Foster
d1ebcfaf0b
fix(auth): prevent token collisions and optimise lookups
...
Ensures access tokens are unique across both user and appservice tables to
prevent authentication ambiguity and potential security issues.
Changes:
- On startup, automatically logout any user devices using tokens that
conflict with appservice tokens (resolves in favour of appservices)
and log a warning with affected user/device details
- When creating new user tokens, check for conflicts with appservice tokens
and generate a new token if a collision would occur
- When registering new appservices, reject registration if the token is
already in use by a user device
- Use futures::select_ok to race token lookups concurrently for better
performance (adapted from tuwunel commit 066097a8)
This fix-forward approach resolves existing token collisions on startup
whilst preventing new ones from being created, without breaking existing
valid authentications.
The find_token optimisation is adapted from tuwunel (matrix-construct/tuwunel)
commit 066097a8: "Optimize user and appservice token queries" by Jason Volk.
2025-08-10 17:10:06 +01:00
Tom Foster
e820551f62
fix(appservice): create sender_localpart user during appservice startup
...
Fixes #813 : Application services were unable to work because their sender_localpart
user was never created in the database, preventing authentication.
This fix ensures the appservice user account is created when:
- The server starts up and loads existing appservices from the database
- A new appservice is registered via the admin command
Additionally, if an appservice user has been accidentally deactivated, it will be
automatically reactivated when the appservice starts.
The solution centralises all appservice startup logic into a single `start_appservice`
helper method, eliminating code duplication between the registration and startup paths.
2025-08-10 17:10:06 +01:00
Yonatan Sidler
bd3db65cb2
fix(arch): fix config.toml not being loaded from LoadCredentials directory
2025-08-06 20:01:36 +03:00
nexy7574
e4a43b1a5b
fix(policy-server): Call the PS later in the PDU creation process
...
This avoids accidentally sending partially built PDUs to the policy server,
which may cause issues with some implementations
2025-08-02 00:19:33 +01:00
Jade Ellis
5775e0ad9d
docs: Make traefik router names consistent
2025-07-30 19:55:48 +01:00
Jade Ellis
238cc627e3
docs: Set traefik labels
2025-07-30 19:33:53 +01:00
Jade Ellis
b1516209c4
chore: Update funding file
2025-07-30 19:23:38 +01:00
Jade Ellis
0589884109
docs: Fix documentation link in README
...
Closes https://forgejo.ellis.link/continuwuation/continuwuity/issues/913
2025-07-28 19:28:34 +01:00
Jade Ellis
4a83df5b57
chore: Fix link
2025-07-25 17:35:18 +01:00
Jade Ellis
aa08edc55f
chore: Release announcement
2025-07-25 17:30:31 +01:00
Jade Ellis
00c7e220bb
chore: Release
2025-07-25 14:10:06 +01:00
Jade Ellis
87be4d1a52
feat: Almost-functional musl builds on Alpine
...
Lots of fiddling, still can't get stuff to work
Next step is a debian builder copying the static libs from alpine
2025-07-24 23:22:27 +01:00
Jade Ellis
205506f206
chore: Update deps
2025-07-24 22:18:10 +01:00
Jade Ellis
66181c61af
chore: Update rocksdb, feature flag changes
...
Most of the way to static musl builds, just zlib I think
2025-07-24 21:51:52 +01:00
Jade Ellis
b7a0442298
feat: Musl images in docker
...
Not working at the moment, need to upgrade the rust-rocksdb and possibly
zstd to stop them force-enabling dynamic libclang
2025-07-24 19:00:41 +01:00
Jade Ellis
1bc663e1c8
docs: Fix spacing at the top
2025-07-24 13:37:52 +01:00
Jade Ellis
68b0140c42
docs: Add vias to matrix.to links
2025-07-24 13:31:58 +01:00
nexy7574
f32f60d056
fix(policy-server): Return the correct result when an event is marked as spam
2025-07-23 18:01:46 +01:00
nexy7574
fe06d78c8e
fix(policy-server): Update ask_policy_server docstring
2025-07-23 17:58:33 +01:00
nexy7574
99ebe022ed
fix(policy-server): Correctly default to 10 second timeout
2025-07-23 17:56:45 +01:00
nexy7574
f335f45017
feat(policy-server): Add configurable timeout
2025-07-23 17:49:08 +01:00
nexy7574
1726633c0f
fix(policy-server): Fixup refactor
2025-07-23 17:49:08 +01:00
nexy7574
dfda27fadc
feat(policy-server): Don't fail-closed & refactor references
2025-07-23 17:49:08 +01:00
Jade Ellis
9465c5df1f
style: Improve logging and comments
2025-07-23 17:49:07 +01:00
nexy7574
2d475b1220
style(policy-server): Run clippy
2025-07-23 17:49:07 +01:00
nexy7574
d7fa624fd2
feat(policy-server): Optimise policy server lookups
2025-07-23 17:49:07 +01:00
nexy7574
cc9202b0c4
feat(policy-server): Limit policy server request timeout to 10 seconds
2025-07-23 17:49:07 +01:00
nexy7574
a3d62ed0d9
feat(policy-server): Prevent local events that fail the policy check
2025-07-23 17:49:07 +01:00
nexy7574
78b7175677
feat(policy-server): Soft-fail redactions for failed events
2025-07-23 17:49:07 +01:00
nexy7574
74d60f256b
style(policy-server): Restructure logging
2025-07-23 17:49:07 +01:00
nexy7574
732c69f5ca
fix(policy-server): Avoid unnecessary database lookup
2025-07-23 17:49:07 +01:00
nexy7574
8e7801f323
chore: Update ruwuma & fix lints
2025-07-23 17:49:06 +01:00
nexy7574
9017efe45b
feat(policy-server): Policy server following
2025-07-23 17:49:06 +01:00
Jade Ellis
7e2f04a78a
chore: Check all features in CI and docs
2025-07-20 21:25:27 +01:00
Jade Ellis
d74514f305
ci: Fix inverted latest tag
2025-07-20 20:59:29 +01:00
Jade Ellis
95610499c7
chore: Disable direnv's nix flake interfering with cargo cache
2025-07-20 16:36:01 +01:00
Jade Ellis
f593cac58a
feat: Enable hardware-lock-elision and deadlock_detection
2025-07-20 16:35:59 +01:00
Jade Ellis
1c985c59f5
refactor: Allow with_lock to return data and take an async closure
2025-07-20 16:34:48 +01:00
Jade Ellis
b635e825d2
refactor: Implement with_lock for lock_api
2025-07-20 16:34:36 +01:00
Jade Ellis
6d29098d1a
refactor: Replace remaining std RwLocks
2025-07-20 16:33:36 +01:00
Jade Ellis
374fb2745c
refactor: Replace remaining std Mutexes
2025-07-20 16:32:48 +01:00
Jade Ellis
a1d616e3e3
refactor: Replace std RwLock with parking_lot
2025-07-20 16:31:55 +01:00
Jade Ellis
30a8c06fd9
refactor: Replace std Mutex with parking_lot
2025-07-20 16:31:02 +01:00
rooot
0631094350
docs(config): warn about federation key query timeout caveat
...
Signed-off-by: rooot <hey@rooot.gay >
2025-07-20 16:24:56 +01:00
rooot
9051ce63f7
feat(config): introduce federation connection timeout setting
...
fixes #906
Signed-off-by: rooot <hey@rooot.gay >
2025-07-20 16:24:26 +01:00
Jade Ellis
f513cb7598
chore: Remove false positives in typo checks
2025-07-19 20:31:54 +01:00
nexy7574
c639228f4d
style(space-upgrades): Remove unused import left over from 6691b7672b
2025-07-19 18:37:45 +01:00
nexy7574
331832616f
feat(space-upgrades): MSC4168: Override space child vias
2025-07-19 18:37:45 +01:00
nexy7574
b2b18002ea
fix(space-upgrades): Remove unused helper function
2025-07-19 18:37:45 +01:00
nexy7574
57868a008c
feat(space-upgrades): Skip empty state events in room upgrade
2025-07-19 18:37:45 +01:00
nexy7574
f063814d94
fix(space-upgrades): Incorrectly updated parent children events
2025-07-19 18:37:38 +01:00
nexy7574
3b5335630d
feat(space-upgrades): Transfer all state keys during upgrade
...
Before this change, only state events with an
empty state key would be cloned.
This allows m.space.child to be cloned appropriately.
2025-07-19 18:35:59 +01:00
nexy7574
b2883c3d6e
feat(space-upgrades): Update parent spaces in upgrade
...
This relies on the room being upgraded referencing
the space itself, but there isn't an easy way to
do it otherwise.
2025-07-19 18:35:58 +01:00
nexy7574
62bdfe1ce8
feat(space-upgrades): Copy over space child & parent states
2025-07-19 18:35:56 +01:00
Jade Ellis
843e501902
docs: Add section for testing TURN servers
2025-07-16 23:47:41 +01:00
Jade Ellis
0a8c13ffd2
fix: Use boolean where expected in services
...
Fixes https://forgejo.ellis.link/continuwuation/continuwuity/issues/905
2025-07-16 23:27:14 +01:00
Jade Ellis
a89ceb93d8
docs: Update Docker and generic instructions
...
Add instructions for proxying .well-known to Continuwuity in with
Traefik. Clarify and expand build instructions in generic deployment,
separating Rust toolchain and Nix approaches.
2025-07-16 23:27:14 +01:00
Jade Ellis
13de0ac822
docs: Update and improve NixOS documentation
...
Documentation now mentions the official package
2025-07-16 23:27:14 +01:00
Jade Ellis
4a5b122d77
docs: Improve grammar in Debian package
2025-07-16 23:27:14 +01:00
Jade Ellis
2655acf269
docs: Improve grammar in deployment documentation
2025-07-16 23:27:14 +01:00
Jade Ellis
3c320f6d6e
docs: Fix code examples in style guide
2025-07-16 23:27:14 +01:00
Jade Ellis
946449d3e5
docs: Add link to UV docs
2025-07-16 23:27:13 +01:00
Jade Ellis
b17f278803
docs: Add code style guide
2025-07-16 23:27:13 +01:00
Jade Ellis
6a4905271e
refactor: Add with_lock traits
2025-07-16 23:27:13 +01:00
Jade Ellis
cfc64ddb40
docs: Note python requirements
2025-07-16 23:27:13 +01:00
Jade Ellis
6aceac3833
docs: Note policy on large formatting diffs
2025-07-16 23:27:13 +01:00
Nyx
5bf20db8e7
Add /_continuwuity/ paths
2025-07-14 17:49:06 +00:00
nexy7574
1abe8f7835
fix: Creation bug
2025-07-12 22:37:49 +01:00
nexy7574
ce84c46459
style(902): Fix clippy complaining about cast
2025-07-09 15:28:31 +01:00
nexy7574
7b60f5368d
feat(902): Upload files for admin commands that are too long
2025-07-09 15:11:09 +01:00
nexy7574
e61a593932
fix: Implement MSC4307
2025-07-08 22:40:44 +00:00
nexy7574
b71186d958
chore(recaptcha): Update example config file
...
Unsure how this managed to get past the `git commit -S -a`
but sure
2025-07-08 19:47:42 +01:00
nexy7574
c362499cef
docs(recaptcha): Clarify registration when token & captcha are configured
2025-07-08 19:34:47 +01:00
nexy7574
14774fa153
feat(recaptcha): Don't allow pubkey without associated privkey
2025-07-08 19:32:23 +01:00
nexy7574
ff805d8ae1
feat(recaptcha): Fix linting issues after the linter fix lied to me
2025-07-08 19:27:51 +01:00
nexy7574
f0994355d4
feat(recaptcha): Fix linting issues
2025-07-08 19:15:55 +01:00
nexy7574
980774a275
feat(recaptcha): Update example config after previous changes
2025-07-08 19:08:25 +01:00
nexy7574
e4a6abe15e
feat(recaptcha): Disable treating captcha-enabled servers as abuse-prone
2025-07-08 19:07:27 +01:00
nexy7574
df1cb10a8e
feat(recaptcha): Add documentation for new fields
2025-07-08 19:03:35 +01:00
nexy7574
651d07a609
feat: Add ReCaptcha registration flow
2025-07-08 18:58:05 +01:00
Odd E. Ebbesen
13b21b00a9
feat: #821 - Options to disable local typing and read receipts
2025-07-08 14:52:28 +02:00
Odd E. Ebbesen
c3c33f47e2
feat: #821 - Options to disable local typing and read receipts
2025-07-08 14:45:57 +02:00
Odd E. Ebbesen
564e7097e6
feat: #821 - Options to disable local typing and read receipts
2025-07-08 12:43:48 +02:00
Gwendolyn Kornak
925e200d9c
include xtask
2025-07-07 14:18:09 -07:00
Shuroii
b5bf68b8c8
fix: RocksDB build
2025-07-07 20:47:30 +01:00
Shuroii
6289bcaabc
style: Run statix
2025-07-07 20:47:30 +01:00
Shuroii
cb138f5039
ref: Clean up rocksdb build
2025-07-07 20:47:29 +01:00
Shuroii
36a7bd7eb3
chore: Update toolchain hash & flake.lock
2025-07-07 20:47:29 +01:00
Shuroii
520a179bb0
ref: Remove lots of unused Nix assets
...
Also change some links to the new ones, removing reliance on June's github repos in some places
2025-07-07 20:47:29 +01:00
Shuroii
09199b0ea7
style: Format nix
...
nixfmt-rfc-style for flake
nixpkgs-fmt for nix/ directory
2025-07-07 20:47:29 +01:00
transgwender
0e2fdc415c
Update the rust 1.87 hash
2025-07-07 01:42:26 +00:00
Jade Ellis
8fb94f99e9
ci: Upload binaries as artifacts
2025-07-07 01:40:59 +00:00
Jade Ellis
3977ccfcea
ci: Fix docker tags
2025-07-07 01:40:59 +00:00
Jade Ellis
890b8e25fc
ci: Mirror RC tags
2025-07-07 01:40:59 +00:00
Jade Ellis
28a29c3a7b
feat: Generate binary documentation
...
Also refactors main.rs/mod.rs to silence clippy
2025-07-06 22:58:01 +01:00
Jade Ellis
d98ce2c7b9
feat: Generate admin command documentation
...
The first part of getting admin command docs on the website.
There's also the beginnings of manpage generation here, although it's
kinda sus and I'm not sure how it's supposed to work. I'll leave that to
anyone who wants to package it.
We introduce the beginings of the xtask pattern here - we do a lot of
file generation, I thought it would be best to avoid doing that on every
compilation. It also helps avoid lots of runtime deps.
We'll need to document generating this stuff & probably add pre-commit
hooks for it, though.
2025-07-06 22:58:00 +01:00
Jade Ellis
18d12a7756
feat: Support logging to journald with tracing-journald
...
This stubs out on non-unix platforms.
2025-07-06 22:58:00 +01:00
Jade Ellis
928b7c5e4a
fix: Correct vars
2025-07-06 22:57:33 +01:00
Jade Ellis
af8783ee51
ci: Mirror registry images
2025-07-06 22:45:01 +01:00
Nyx
52954c5b75
Even more renaming
2025-07-06 14:00:42 -05:00
Tom Foster
7e406445d4
Element Web build fixes
2025-07-03 22:26:02 +01:00
Jade Ellis
293e7243b3
style: Fix formatting/clippy issues
2025-07-02 19:32:50 +01:00
Jason Volk
143cb55ac8
Fix clippy::unnecessary-unwrap.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:29:32 +01:00
Jason Volk
3c7c641d2d
Add revoke_admin to service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:29:32 +01:00
Jason Volk
36e81ba185
Split state_cache service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:29:31 +01:00
Jason Volk
56420a67ca
Outdent state_compressor service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:29:31 +01:00
Jason Volk
c5c309ec43
Split timeline service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:29:28 +01:00
Jason Volk
c06aa49a90
Fix regression 75aadd5c6a
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:17:09 +01:00
Jason Volk
364293608d
Post-formatting aesthetic and spacing corrections
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:17:06 +01:00
Jason Volk
af4f66c768
Cleanup/improve other async queries in some client handlers.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:12:51 +01:00
Jason Volk
116f85360f
Toward abstracting Pdu into trait Event.
...
Co-authored-by: Jade Ellis <jade@ellis.link >
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:03:26 +01:00
Jason Volk
3d0360bcd6
Dedup and parallelize current key backup count and etag fetching.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:03:26 +01:00
Jason Volk
667afedd24
Macroize various remaining Error constructions.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 19:03:24 +01:00
Jason Volk
21bbee8e3c
Simplify api to send notices to admin room
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 18:58:18 +01:00
Jason Volk
732a77f3a8
Use integrated error instead of panic on some legacy codepaths
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 18:58:18 +01:00
Jason Volk
f3dd90df39
Mitigate large futures
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 18:58:18 +01:00
Jason Volk
2051c22a28
Support optional device_id's in lazy-loading context.
...
Co-authored-by: Jade Ellis <jade@ellis.link >
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 18:58:17 +01:00
Jason Volk
49f7a2487f
Modernize various sender_user/sender_device lets.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-07-02 18:58:14 +01:00
nexy7574
d6aa03ea73
style: Remove extraneous import
2025-07-02 00:53:40 +00:00
nexy7574
8e0852e5b5
docs: Add suggestion about auto join room
...
Adds suggestion to suspend_on_register doc that admins
should add a room that contains information to their
auto_join_rooms as to not confuse new users who may be
lost at the fact they can't join any rooms or send any
messages.
2025-07-02 00:53:40 +00:00
nexy7574
6e60918584
feat: Suspend new users on registration
2025-07-02 00:53:40 +00:00
nexy7574
68afb07c27
feat: Stabilise room summary API (MSC3266)
...
# Conflicts:
# Cargo.lock
# Cargo.toml
2025-07-02 00:48:16 +01:00
nexy7574
b44791799c
fix: Room bans preventing federated leaves
...
Fixes the issue where room bans prevent federating leave
events, resulting in local users being stuck in remote
rooms
2025-07-01 23:14:41 +01:00
nexy7574
4f69da47c6
feat: Advertise support for spec v1.8, 1.12, 1.13, and 1.14
2025-07-01 18:38:48 +01:00
nexy7574
24d2a514e2
chore: Resolve linting errors
2025-07-01 18:00:28 +01:00
nexy7574
f49c73c031
feat: Forbid suspended users from sending reports
2025-07-01 15:44:04 +01:00
nexy7574
59912709aa
feat: Send intentional mentions in report messages
2025-07-01 15:42:38 +01:00
nexy7574
97e5cc4e2d
feat: Implement user reporting
2025-07-01 01:55:13 +01:00
Jade Ellis
17930708d8
chore: Add second ko-fi as custom link
2025-06-29 23:06:26 +01:00
Jade Ellis
ec9d3d613e
chore: Add funding
2025-06-29 23:02:15 +01:00
nexy7574
d4862b8ead
style: Remove redundant, unused functions
2025-06-29 15:38:01 +00:00
Jade Ellis
acb74faa07
feat: Pass sender through admin commands
2025-06-29 15:38:01 +00:00
Jade Ellis
ecc6fda98b
feat: Record metadata about user suspensions
2025-06-29 15:38:01 +00:00
nexy7574
13e17d52e0
style: Remove unnecessary imports (clippy)
2025-06-29 15:38:01 +00:00
nexy7574
d8a27eeb54
fix: Failing open on database errors
...
oops
2025-06-29 15:38:01 +00:00
nexy7574
eb2e3b3bb7
fix: Missing suspensions shouldn't error
...
Turns out copying and pasting the function
above verbatim actually introduces more
problems than it solves!
2025-06-29 15:38:01 +00:00
nexy7574
72f8cb3038
feat: Do not allow suspended users to send typing statuses
2025-06-29 15:38:01 +00:00
nexy7574
1124097bd1
feat: Only allow private read receipts when suspended
2025-06-29 15:38:01 +00:00
nexy7574
08527a2880
feat: Prevent suspended users upgrading rooms
2025-06-29 15:38:01 +00:00
nexy7574
8e06571e7c
feat: Prevent suspended users uploading media
2025-06-29 15:38:01 +00:00
nexy7574
90180916eb
feat: Prevent suspended users performing room changes
...
Prevents kicks, bans, unbans, and alias modification
2025-06-29 15:38:01 +00:00
nexy7574
d0548ec064
feat: Forbid suspended users from sending state events
2025-06-29 15:38:01 +00:00
nexy7574
1ff8af8e9e
style: Remove unneeded statements (clippy)
2025-06-29 15:38:01 +00:00
nexy7574
cc864dc8bb
feat: Do not allow suspending admin users
2025-06-29 15:38:01 +00:00
nexy7574
8791a9b851
fix: Inappropriate empty check
...
I once again, assumed `true` is actually `false`.
2025-06-29 15:38:01 +00:00
nexy7574
968c0e236c
fix: Create the column appropriately
2025-06-29 15:38:01 +00:00
nexy7574
5d5350a9fe
feat: Prevent suspended users creating new rooms
2025-06-29 15:38:01 +00:00
nexy7574
e127c4e5a2
feat: Add un/suspend admin commands
2025-06-29 15:38:01 +00:00
nexy7574
a94128e698
feat: Prevent suspended users joining/knocking on rooms
2025-06-29 15:38:01 +00:00
nexy7574
a6ba9e3045
feat: Prevent suspended users changing their profile
2025-06-29 15:38:01 +00:00
nexy7574
286974cb9a
feat: Prevent suspended users redacting events
2025-06-29 15:38:01 +00:00
nexy7574
accfda2586
feat: Prevent suspended users sending events
2025-06-29 15:38:01 +00:00
nexy7574
fac9e090cd
feat: Add suspension helper to user service
2025-06-29 15:38:01 +00:00
nexy7574
b4bdd1ee65
chore: Update ruwuma
...
Fixes the wrong field name being serialised
2025-06-29 13:43:27 +01:00
nexy7574
4b5e8df95c
fix: Add missing init fields
2025-06-29 13:29:27 +01:00
nexy7574
d63c8b9fca
feat: Support passing through MSC4293 redact_events
2025-06-29 13:16:31 +01:00
nexy7574
9b6ac6c45f
fix: Ignore existing membership when room is disconnected
2025-06-29 12:14:20 +00:00
nexy7574
52e042cb06
Always calculate state diff IDs in syncv3
...
seemingly fixes #779
2025-06-28 20:37:40 +00:00
Jason Volk
f508e7654c
fix: off by one.
2025-06-28 00:38:45 +00:00
nexy7574
543ab27747
fix: Additional sanity checks when creating a PDU
...
Prevents creating events that are most likely catastrophically invalid
2025-06-27 20:58:52 +01:00
Jade Ellis
c82ea24069
docs: Add Matrix chat and space badges to README
2025-06-27 18:44:46 +01:00
Jacob Taylor
db58d841aa
fix: Only load children of nested spaces
2025-06-25 18:17:06 +01:00
Jade Ellis
f1ca84fcaf
fix: Correct project brand in admin & OTEL
2025-06-24 23:16:48 +01:00
Jade Ellis
63962fc040
docs: Remove completed items from the README
2025-06-24 23:13:28 +01:00
Jade Ellis
a24278dc1b
docs: Update mirror badges
2025-06-24 23:12:09 +01:00
Jade Ellis
b787e97dc1
chore: Document & enforce conventional commit messages
2025-06-24 22:43:44 +01:00
Jade Ellis
eb75c4ecb0
chore: Fix typos in commit messages automatically
2025-06-24 22:43:44 +01:00
Jade Ellis
9bbe333082
ci: Don't run docs flow when the secret is inaccessible
2025-06-24 22:43:43 +01:00
Jade Ellis
3177545a6f
chore: Remove clippy pre-commit hook
...
It's too slow for a good git experience
2025-06-24 21:45:54 +01:00
Kimiblock Moe
4a289a9fee
arch systemd: use credentials to load config
2025-06-24 11:07:11 +00:00
Jade Ellis
4d69a1ad51
docs: Deduplicate sections
2025-06-23 01:25:38 +01:00
Jade Ellis
4f174324ba
docs: Update contributing guide
2025-06-23 01:04:27 +01:00
Jade Ellis
2ecbd75d64
ci: fixes
...
- Install UV
- Verbose run
- Set permissions explicitly
- Check all files
2025-06-21 19:17:21 +01:00
Jade Ellis
a682e9dbb8
chore: Add commit to ignored revs
2025-06-21 18:03:38 +01:00
Jade Ellis
46c193e74b
chore: fix end of files & trailing whitespace
2025-06-21 17:59:01 +01:00
Jade Ellis
93719018a8
ci: Run additional sanity checks on repository
2025-06-21 17:58:28 +01:00
Jade Ellis
70df8364b3
chore: Bump rustyline-async from 0.4.3 to 0.4.6
2025-06-21 00:50:02 +01:00
Jade Ellis
bae8192fb3
chore: Bump resolv-conf from 0.7.1 to 0.7.4
2025-06-20 23:39:20 +01:00
Jade Ellis
add5c7052c
chore: Update lockfile
2025-06-20 21:51:53 +01:00
Jade Ellis
01200d9b54
build: Allow specifying build profile
...
Additionally splits caches by target CPU
2025-06-20 21:48:37 +01:00
Jade Ellis
0ba4a265be
build: Upgrade to Rust 1.87
2025-06-20 21:45:29 +01:00
Jade Ellis
08fbcbba69
build: Use newer LLVM for rust 1.87
2025-06-20 21:35:48 +01:00
Jade Ellis
b526935d45
build: Specify debian version
2025-06-20 21:35:03 +01:00
Jade Ellis
a737d845a4
chore: Don't specify targets in rust-toolchain
2025-06-20 21:25:34 +01:00
nex
e508b1197f
feat: allow overriding the "most recent event" when forcing a state download ( #853 )
...
Add option to select which event to set the state at to, for the force-set-room-state admin command.
This allows us to work around issues where the latest PDU is one that remote servers don't know about (i.e. failed federation for whatever reason)
Closes #852
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/853
Reviewed-by: Jade Ellis <jade@ellis.link >
Co-authored-by: nex <nex@noreply.forgejo.ellis.link >
Co-committed-by: nex <nex@noreply.forgejo.ellis.link >
2025-06-19 21:27:50 +00:00
Kimiblock
d6fd30393c
Update docs/deploying/arch-linux.md
2025-06-19 12:36:49 +00:00
Jade Ellis
6e16a6ef8f
chore: Release announcement
2025-06-14 22:34:24 +01:00
Jade Ellis
0870c8d647
chore: Release
2025-06-14 20:53:00 +01:00
Jade Ellis
d0f00e6f5c
feat: Allow mentioning @room in an admin announcement
2025-06-14 19:09:54 +01:00
Jade Ellis
5d44653e3a
fix: Incorrect command descriptions
2025-06-14 16:51:24 +01:00
Jade Ellis
44e60d0ea6
docs: Tiny phrasing changes to the security policy
2025-06-14 16:34:58 +01:00
Jade Ellis
d7514178ab
ci: Fix extra bracket in commit shorthash
2025-06-13 14:30:26 +01:00
Jade Ellis
1d45e0b68c
feat: Add warning when admin users will be exposed as support contacts
2025-06-13 13:39:50 +01:00
Jade Ellis
3c44dccd65
ci: HACK, disable saving to actions cache
2025-05-26 19:16:50 +01:00
Jade Ellis
b57be072c7
build: Don't rerun on git changes
2025-05-26 19:16:05 +01:00
Jade Ellis
ea5dc8e09d
fix: Use correct brand in clap version string
2025-05-26 19:16:05 +01:00
Jade Ellis
b9d60c64e5
ci: Don't specify container for image builder
2025-05-26 19:16:04 +01:00
Jade Ellis
94ae824149
ci: Don't install rustup if it's already there
2025-05-26 19:16:03 +01:00
Jade Ellis
640714922b
feat: For knock_restricted rooms, automatically join rooms we meet
...
restrictions for rather than knocking
2025-05-26 19:16:03 +01:00
Jade Ellis
2b268fdaf3
fix: Allow joining via invite for knock_restricted rooms
2025-05-26 19:16:01 +01:00
Jade Ellis
e8d823a653
docs: Apply feedback on security policy
2025-05-26 15:01:58 +01:00
Jade Ellis
0ba77674c7
docs: Security policy
2025-05-25 00:36:28 +01:00
Jade Ellis
2ccbd7d60b
fix: Reference config directly
2025-05-21 21:06:44 +01:00
Jade Ellis
60960c6e09
feat: Automatically set well-known support contacts
2025-05-21 20:32:53 +01:00
Jade Ellis
ce40304667
chore: Upgrade deps
2025-05-21 15:28:46 +01:00
Jade Ellis
dcbc4b54c5
ci: Always show sccache stats
2025-05-21 12:45:25 +01:00
Jade Ellis
fce024b30b
chore: Add must_use annotation
2025-05-21 12:45:14 +01:00
Jade Ellis
3e4e696761
fix: Make sure empty VERSION_EXTRA strings are ignored
...
Also updates built & removes unused optional features
2025-05-21 12:35:36 +01:00
Jason Volk
f605913ea9
Eliminate associated Id type from trait Event.
...
Co-authored-by: Jade Ellis <jade@ellis.link >
Signed-off-by: Jason Volk <jason@zemos.net >
2025-05-21 11:36:15 +01:00
Jason Volk
44302ce732
Eliminate explicit parallel_fetches argument.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-05-21 11:36:15 +01:00
Jason Volk
bfb0a2b76a
Remove unused Pdu::into_any_event().
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-05-21 11:36:14 +01:00
Jason Volk
fcd5669aa1
Join jemalloc background threads prior to exit.
...
Co-authored-by: Jade Ellis <jade@ellis.link >
Signed-off-by: Jason Volk <jason@zemos.net >
2025-05-21 11:36:13 +01:00
Jade Ellis
9b8b37f162
docs: Badges for mirrors
2025-05-21 02:51:09 +01:00
Jade Ellis
7a46563f23
ci: Cache docker image build mounts
2025-05-21 01:48:25 +01:00
Jade Ellis
1bf6537319
build: Split docker target cache by target platform
2025-05-20 22:47:55 +01:00
Jade Ellis
4ed04b343a
build: Use xtrace in bash scripts in Dockerfile
2025-05-20 22:13:13 +01:00
Jade Ellis
a4ad72e11d
ci: Run cargo test
2025-05-20 21:48:40 +01:00
Jade Ellis
1f57508879
ci: Don't clippy check dependancies
2025-05-20 21:47:35 +01:00
Jade Ellis
a325dfa56a
ci: Use timelord in clippy check
2025-05-20 21:47:27 +01:00
Jade Ellis
b5d2ef9a4a
ci: Refactor timelord to its own action
2025-05-20 21:36:01 +01:00
Jade Ellis
e200a7d991
ci: Cache Rust registry
2025-05-20 21:36:01 +01:00
Jade Ellis
034762c619
chore: Allow raw string hashes for metadata crate
2025-05-20 21:36:00 +01:00
Jade Ellis
e31d261e66
ci: Run clippy check
2025-05-20 21:36:00 +01:00
Jade Ellis
c5db43ba9a
chore: Docker ignore forgejo files
2025-05-20 21:31:41 +01:00
Jade Ellis
ec08e16b9f
build: Allow builder to decide on incremental or not
2025-05-20 21:31:41 +01:00
Jade Ellis
f14725a51b
ci: Check formatting
...
Also moves rustup installation to a seperate workflow and
enables caching.
The sccache action required a github.com api token, so we set
all that up too.
2025-05-20 21:31:41 +01:00
Jade Ellis
d03325c65a
chore: Set editorconfig for workflows
2025-05-20 21:31:40 +01:00
Jade Ellis
066794fe90
ci: Don't try build images on PR
2025-05-20 21:31:40 +01:00
Jade Ellis
beee996f72
docs: Rename conduwuit to continuwuity in more places
2025-05-10 20:37:08 +01:00
Jade Ellis
7c58e40c96
chore(typos): Ignore certificate files
2025-05-10 19:42:40 +01:00
Jade Ellis
5577ddca27
chore: Add CONTINUWUITY_ environment variables
...
Also updates some examples to match
2025-05-10 12:54:33 +01:00
Jade
c0f46269b5
docs: Fix name in README
2025-05-08 09:38:47 +00:00
Jade Ellis
01594a6243
chore: Fix typos across the codebase
2025-05-06 20:51:12 +01:00
Jade Ellis
d78fc53577
ci: Fix bad comparison
2025-05-01 21:27:12 +01:00
Jade Ellis
e3ae024ed3
chore: Link to Matrix rooms directly
2025-05-01 21:23:37 +01:00
Jade Ellis
fb9d4c30f4
feat: Prefill server name in federation test
2025-05-01 21:23:37 +01:00
Jade Ellis
cbcf4300df
ci: Cache timelord-cli to avoid unnecesary compilation
2025-05-01 21:23:37 +01:00
Jade Ellis
a98da7d942
refactor: Move git version info gather in into a build script
2025-05-01 00:38:35 +01:00
Jade Ellis
e1655edd83
feat: HTML default page
2025-04-30 22:31:25 +01:00
Jade Ellis
4158c1cf62
fix: Hack around software treating empty join rule incorrectly
2025-04-28 20:45:08 +01:00
Glandos
edd5fc6c7e
Actualiser debian/conduwuit.service
2025-04-27 18:52:20 +00:00
Kokomo
6b0288dd4c
Update Contributing.md file ( #807 )
...
Cleaned up wording and adjusted the links
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/807
Reviewed-by: nex <nex@noreply.localhost >
Reviewed-by: Jade Ellis <jade@ellis.link >
Co-authored-by: Kokomo <git@kokomo.cloud >
Co-committed-by: Kokomo <git@kokomo.cloud >
2025-04-27 18:42:02 +00:00
Kokomo
90f1a193e3
Add maintainer emails
2025-04-27 18:36:57 +00:00
Kokomo
a9a478f077
Add back space oops
2025-04-27 18:36:57 +00:00
Kokomo
b2620e6922
Remove email and add reference to matrix space
2025-04-27 18:36:57 +00:00
Tom Foster
60caa448b0
Tidy up publishing restriction check
2025-04-27 18:13:10 +00:00
Tom Foster
eb886b6760
Element Web client build
2025-04-27 18:13:10 +00:00
Tom Foster
73c991edd0
Ignore all markdown for auto image builds
2025-04-27 18:13:10 +00:00
Tom Foster
c698d65a92
Make Cloudflare Pages optional in CI
2025-04-27 18:13:10 +00:00
Jade Ellis
1a5ab33852
chore: Error on missing ID in messages
2025-04-27 16:35:38 +00:00
Jade Ellis
77c4f9ff2f
fix: Do not panic on invalid membership event content
2025-04-26 22:00:52 +01:00
Jade Ellis
dcbacb5b78
feat: Allow controlling client message filtering
2025-04-26 21:59:25 +01:00
Jade Ellis
c203c1fead
chore: Enable blurhashing by default
2025-04-26 21:56:39 +01:00
nexy7574
cdf105a24e
Don't serialize the x-key before storing it
...
Co-authored-by: dasha <admin@dimensionproject.net >
2025-04-25 02:18:00 +01:00
Jade Ellis
859ec56b4f
docs: Fix configuration examples and defaults
2025-04-24 00:48:20 +01:00
Jade Ellis
45872ede7a
chore: Fix formatting
2025-04-24 00:48:20 +01:00
Jade Ellis
f83238df78
refactor: Use config service
2025-04-24 00:48:20 +01:00
Tom Foster
4c8dfc4c2c
Suggested community guidelines changes
2025-04-24 00:41:16 +01:00
nexy7574
bfd7ab5a22
Bump ruwuma to 652cc48
2025-04-24 00:41:16 +01:00
nexy7574
ee11afb460
Inject reason into federated leave request membership
2025-04-24 00:41:16 +01:00
Jade Ellis
1d840950b3
docs: Mention Helm chart is for conduwuit
2025-04-23 22:20:08 +01:00
Nyx Tutt
f791dc6918
docs: Rename in more places
2025-04-23 22:18:16 +01:00
nexy7574
3eb4ee7af1
Change tom's email address
2025-04-23 19:30:20 +01:00
nexy7574
8f21403796
Use any runner for docs
2025-04-23 17:39:36 +01:00
nexy7574
4fbecca2d3
Add well-known/matrix/support
2025-04-23 17:39:26 +01:00
Jade Ellis
0307238bf8
docs: Work around DNS issues in example compose files
2025-04-22 14:29:25 +01:00
Jade Ellis
1d42b88f50
docs: Update Docker DNS troubleshooting section
2025-04-22 14:29:25 +01:00
Jade Ellis
81f8151aca
docs: Add matrix rooms to README
2025-04-22 14:29:25 +01:00
Jade Ellis
66e8cd8908
docs: Tone down the docker warning
2025-04-22 14:29:24 +01:00
Nyx Tutt
7beff25d3d
Update welcome message
2025-04-22 01:49:48 +00:00
nex
0c302f3137
Don't re-build images for docs changes
...
Ironically, this will trigger a rebuild anyway
2025-04-22 01:33:09 +00:00
n
c7ac2483a9
Fix offtopic room link
...
Signed-off-by: n <me@everypizza.im >
2025-04-22 01:27:50 +00:00
Jade Ellis
c68378ffe3
docs: Update 'Try it out' section
2025-04-21 00:38:47 +01:00
Jade Ellis
fbd404fa84
docs: Update docker documentation
2025-04-21 00:19:08 +01:00
nexy7574
ff93cfdc64
Fix up the docs, replace a lot of conduwuit references
2025-04-20 23:50:48 +01:00
Jade Ellis
22e7617362
chore: Release
2025-04-20 23:07:20 +01:00
Jade Ellis
b7b7d3a9e7
chore: Add the current prerelease to cargo.toml
2025-04-20 23:07:01 +01:00
nex
1c59b41ff1
Merge pull request 'Support fi.mau.room_id, and fully qualified room_id in /createRoom' ( #777 ) from nex/custom-room-id into main
...
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/777
Reviewed-by: Jade Ellis <jade@ellis.link >
2025-04-20 20:29:18 +00:00
Jade Ellis
2d9bdc0979
refactor: The update checker has become the announcements checker
...
Replaces June's endpoint with a continuwuity endpoint.
Adds a JSON schema.
Closes #89
Closes #760
2025-04-20 21:01:29 +01:00
Peter Gervai
5486dbda24
config: rocksdb_compaction help was inverted :-)
...
You seem to have replaced `disable_rocksdb_compaction` with `rocksdb_compaction`, since the help is blackmailing me never to set it to `true`, except **true is the default**.
I have tried to make it say what you possibly meant.
2025-04-20 19:48:09 +01:00
nexy7574
41581c9ae8
Fix invalid room ID check & prevent room IDs being prefixed with !
2025-04-20 15:41:19 +01:00
nexy7574
d3022b4112
Prevent creating custom room IDs belonging to other servers
2025-04-20 02:46:16 +01:00
nexy7574
6920814da9
Support fi.mau.room_id, and fully qualified room_id in /createRoom
2025-04-20 02:31:58 +01:00
Jade Ellis
fe7963d306
docs: Clarify
2025-04-20 00:31:08 +01:00
Jade Ellis
84445b8458
docs: Document backfill bypassing federation restrictions
2025-04-20 00:16:29 +01:00
Jade Ellis
9e62076baa
feat: Add allowed_remote_server_names
...
This allows explicitly allowing servers. Can be
combined with the opposite to create allowlist-only
federation.
See also #31
Closes #673
2025-04-19 23:37:55 +01:00
Jade Ellis
0eb9e4f3d2
refactor: Centralize server forbidden checks into moderation module
...
This moves all checks related to `forbidden_remote_server_names`,
`forbidden_remote_room_directory_server_names` and
`prevent_media_downloads_from` to a new `moderation` module.
This is useful for implementing more complicated logic globally.
Mostly the changes from #673 , but is also relevant for #750
2025-04-19 23:37:54 +01:00
Jason Volk
e71138ab6f
reduce large stack frames
2025-04-19 23:33:53 +01:00
Jason Volk
8e7373c027
mitigate additional debuginfo expansions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:53 +01:00
Jason Volk
576a783a6f
add missing feature-projections between intra-workspace crates
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:53 +01:00
Jason Volk
21ec255159
eliminate Arc impl for trait Event
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:53 +01:00
Jason Volk
3c5bbd4f05
simplify database backup interface related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
4f8fec7e5a
replace admin command branches returning RoomMessageEventContent
...
rename admin Command back to Context
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
fb3020d8da
misc async optimizations; macro reformatting
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
ecf20f7ebb
improve appservice service async interfaces
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
b3e5d2f683
remove box ids from admin room command arguments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
83126cc667
propagate better message from RustlsConfig load error. ( #734 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:52 +01:00
Jason Volk
eac713a2a9
slightly optimize user directory search loop
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
e8a64bb59d
increase snake sync asynchronicity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
05e65936fa
modest cleanup of snake sync service related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
e7c3f78377
modernize state_res w/ stream extensions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
d8b56c9c35
add ReadyEq future extension
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
75fb19a5ca
add ready_find() stream extension
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jason Volk
d98ec6bf46
relax Send requirement on some drier stream extensions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-19 23:33:51 +01:00
Jade Ellis
1b1198771f
ci: Move timelord to actions to avoid bad cache invalidations from cargo
2025-04-19 20:25:55 +01:00
Jade Ellis
d4561e950b
ci: Run builtin registry whenever secret is available
2025-04-18 22:25:10 +01:00
Jade Ellis
298e2af3d7
ci: Try invert condition for branch prefix
2025-04-18 22:24:35 +01:00
Jade Ellis
c5b99fbccd
ci: Enable buildx caching
2025-04-18 21:05:17 +01:00
Jade Ellis
2e6ec2f89c
chore: Update git links
2025-04-18 17:59:20 +01:00
Jade Ellis
b16e26952a
ci: Use dind label
2025-04-18 14:09:20 +01:00
Jade Ellis
9e0530839d
ci: Remove non-functional cache steps
2025-04-18 14:09:19 +01:00
Jade Ellis
d85aaabe9e
fix: Disable buildkit caching
...
This is for tom's runners, whilst they're having network issues
2025-04-18 14:09:19 +01:00
Jade Ellis
71d2421f55
ci: Only prefix non-default branches
...
AKA, tag image:main as the latest commit
2025-04-18 14:09:19 +01:00
Jade Ellis
fb793e8315
ci: Limit concurrency
...
Mainly to prevent runners from getting bogged down
2025-04-18 14:09:19 +01:00
Jade Ellis
10947f6f1a
fix: Replace rust cache with direct cache use, as Rust is not installed on CI image
2025-04-18 14:09:19 +01:00
Jade Ellis
93253237e9
ci: Prefix branch builds with branch-
2025-04-18 14:09:19 +01:00
Jade Ellis
0ac1ce9996
fix: Hardcode matrix
2025-04-18 14:09:19 +01:00
Jade Ellis
3ced2e2f90
fix: Use forgejo patched artifact actions
2025-04-18 14:09:18 +01:00
Jade Ellis
70cee36041
fix: Allow specifying user & password for builtin registry
2025-04-18 14:09:18 +01:00
Jade Ellis
cacaa6c512
build: Use hacks for a cached actions build
...
- Use cache dance for github actions caching
- Use timelord hack to avoid bad cache invalidation
2025-04-18 14:09:18 +01:00
Jade Ellis
6b92e96582
feat: Docker images built with Forgejo Actions
2025-04-18 14:09:18 +01:00
Jade Ellis
dc599db19c
chore: Change branding string to continuwuity
2025-04-18 14:00:31 +01:00
Jade Ellis
3a95585f0e
fix: Disambiguate appservices in lazy loading context
...
In the previous commit, app services would all appear to be the same
device when accessing the same user. This sets the device ID to be the
appservice ID when available to avoid possible clobbering.
2025-04-18 14:00:31 +01:00
nexy7574
68d68a0645
fix: Do not panic when sender_device is None in /messages route
...
The device ID is not always present when the appservice is the client.
This was causing 500 errors for some users, as appservices can lazy
load from `/messages`.
Fixes #738
Co-authored-by: Jade Ellis <jade@ellis.link >
2025-04-18 14:00:30 +01:00
Jacob Taylor
773c3d457b
fix space hierarchy pagination not respecting client-specified limit.
2025-04-17 07:48:54 -07:00
Tom Foster
b91af70e0b
Add Forgejo CI workflow for Cloudflare Pages
2025-04-16 15:49:46 +01:00
Tom Foster
538347204f
Add Matrix .well-known files
2025-04-16 15:49:46 +01:00
Tom Foster
90880e2689
Update mdBook config for continuwuity
2025-04-16 15:49:46 +01:00
Jade Ellis
f76f669d16
chore: Remove the default sentry endpoint
2025-04-15 22:35:54 +00:00
Jade Ellis
dad407fb22
chore: Add words to cspell dictionary
2025-04-15 22:35:39 +00:00
Jade Ellis
17a04940fc
chore: Update Olivia Lee in mailmap
2025-04-15 21:58:39 +01:00
Jade Ellis
6e5392c2f5
chore: Add Timo Kösters to the mailmap
2025-04-15 14:48:09 +00:00
Jade Ellis
57779df66a
chore: Add mailmap
2025-04-15 14:48:09 +00:00
Jade Ellis
35bffa5970
ci: Delete all old CI files
...
Part of #753
2025-04-15 10:25:49 +01:00
Jade Ellis
4f9e9174e2
docs: Mention future migration guide
2025-04-15 10:11:47 +01:00
Jade Ellis
3e54c7e691
docs: Phrasing
2025-04-15 10:11:47 +01:00
Jade Ellis
57d26dae0d
docs: Remove hidden conduwuit badges
2025-04-15 10:11:47 +01:00
Jade Ellis
e054a56b32
docs: New readme
...
It's a continuwuation!
2025-04-15 10:10:21 +01:00
June Clementine Strawberry
d8311a5ff6
bump crossbeam-channel bc yanked crate with potential double free
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-08 23:38:54 -04:00
June Clementine Strawberry
47f8345457
bump tokio because of RUSTSEC-2025-0023
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-08 09:05:49 -04:00
June Clementine Strawberry
99868b1661
update new complement flakes
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-06 16:11:35 -04:00
June Clementine Strawberry
d5ad973464
change forbidden_server_names and etc to allow regex patterns for wildcards
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-06 15:25:19 -04:00
June Clementine Strawberry
ff276a42a3
drop unnecessary info log to debug
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-06 13:19:09 -04:00
June Clementine Strawberry
5f8c68ab84
add trace logging for room summaries, use server_in_room instead of exists
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-06 13:17:13 -04:00
June Clementine Strawberry
6578b83bce
parallelise IO of user searching, improve perf, raise max limit to 500
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 20:09:22 -04:00
June Clementine Strawberry
3cc92b32ec
bump rust toolchain to 1.86.0
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 18:37:13 -04:00
June Clementine Strawberry
9678948daf
use patch of resolv-conf crate to allow no-aaaa resolv.conf option
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 18:33:43 -04:00
Jason Volk
500faa8d7f
simplify space join rules related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 22:12:33 +00:00
Jason Volk
d6cc447add
simplify acl brick-check conditions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 22:12:33 +00:00
June Clementine Strawberry
e28ae8fb4d
downgrade deranged crate
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 14:26:00 -04:00
June Clementine Strawberry
c7246662f4
try partially reverting 94b107b42b
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 14:07:37 -04:00
June Clementine Strawberry
a212bf7cfc
update default room version to v11
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-05 14:00:40 -04:00
Jason Volk
58b8c7516a
extend extract_variant to multiple variants
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 02:44:46 +00:00
Jason Volk
bb8320a691
abstract and encapsulate the awkward OptionFuture into Stream pattern
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 02:44:46 +00:00
Jason Volk
532dfd004d
move core::pdu and core::state_res into core::matrix::
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-05 02:44:46 +00:00
June Clementine Strawberry
4e5b87d0cd
add missing condition for signatures upload failures
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-04 11:34:31 -04:00
Jason Volk
00f7745ec4
remove the db pool queue full warning
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-04 02:59:54 +00:00
Jason Volk
d036394ec7
refactor incoming prev events loop; mitigate large future
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 22:40:40 +00:00
Jason Volk
6a073b4fa4
remove additional unnecessary Arc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 22:40:40 +00:00
Jason Volk
b7109131e2
further simplify get_missing_events; various log calls
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 22:40:40 +00:00
June Clementine Strawberry
94b107b42b
add some debug logging and misc cleanup to keys/signatures/upload
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-03 16:08:18 -04:00
Jason Volk
29d55b8036
move systemd stopping notification point
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
Jason Volk
45fd3875c8
move runtime shutdown out of main; gather final stats
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
Jason Volk
f9529937ce
patch hyper-util due to conflicts with federation resolver hooks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
Jason Volk
0b56204f89
bump additional dependencies
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
Jason Volk
58adb6fead
upgrade hickory and hyper-util dependencies
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
Jason Volk
5d1404e9df
fix well-known using the hooked resolver
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-04-03 19:38:51 +00:00
June Clementine Strawberry
f14756fb76
leave room locally if room is banned, rescind knocks on deactivation too
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-03 12:21:16 -04:00
June Clementine Strawberry
24be579477
add appservice MSC4190 support
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-03 12:21:16 -04:00
June Clementine Strawberry
0e0b8cc403
fixup+update msc3266, add fed support, parallelise IO
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-03 00:56:37 -04:00
June Clementine Strawberry
1036f8dfa8
default shared history vis on unknown visibilities, drop needless error log
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-02 22:46:01 -04:00
June Clementine Strawberry
74012c5289
significantly improve get_missing_events fed code
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-02 22:44:44 -04:00
June Clementine Strawberry
ea246d91d9
remove pointless and buggy *_visibility in-memory caches
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-02 22:38:47 -04:00
June Clementine Strawberry
1b71b99c51
fix weird issue with acl c2s check
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-04-02 10:49:38 -04:00
Jason Volk
0f81c1e1cc
revert hyper-util upgrade due to continued DNS issues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 22:17:08 -04:00
Jason Volk
bee1f89624
bump dependencies
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 05:03:52 +00:00
Jason Volk
5768ca8442
upgrade dependency ByteSize
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 04:27:20 +00:00
Jason Volk
3f0f89cddb
use async_trait without axum re-export
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 04:27:20 +00:00
Jason Volk
d3b65af616
remove several services.globals config wrappers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 03:00:53 +00:00
Jason Volk
d60920c728
workaround some large type name length issues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 03:00:53 +00:00
Jason Volk
db99d3a001
remove recently-made-unnecessary unsafe block
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-31 02:30:32 +00:00
Jason Volk
bee4c6255a
reorg PduEvent strip tools and callsites
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
dc6e9e74d9
add spans for for jemalloc mallctl points
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
5bf5afaec8
instrument tokio before/after poll hooks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
095734a8e7
bump tokio to 1.44.1
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
a93cb34dd6
disambiguate UInt/u64 type related in client/api/directory; use err macros.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-30 23:00:37 +00:00
Jason Volk
b03c493bf9
add stub for database benches
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-29 01:06:39 +00:00
Jason Volk
d0132706cd
add --read-only and --maintenance program option
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-29 01:06:39 +00:00
Jason Volk
0e2009dbf5
fix client hierarchy loop condition
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-28 22:47:51 +00:00
Ginger
3e57b7d35d
Update expected test results
2025-03-28 14:30:14 -04:00
Ginger
75b6daa67f
Fix off-by-one error when fetching room hierarchy
2025-03-28 14:30:14 -04:00
June Clementine Strawberry
6365f1a887
remove sccache from ci for now
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-28 14:26:12 -04:00
Jason Volk
b2bf35cfab
fix benches from state-res
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-28 09:01:46 +00:00
Jason Volk
7f448d88a4
use qualified crate names from within workspace
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-27 07:08:41 +00:00
Jason Volk
c99f5770a0
mark get_summary_and_children_federation Send
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-27 07:08:41 +00:00
Jason Volk
dfe058a244
default config item to 'none' when zstd_compression not featured
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-27 01:09:27 +00:00
Jason Volk
07ba00f74e
abstract raw query command iterations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 04:43:05 +00:00
Jason Volk
9d0ce3965e
fix lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 02:25:54 +00:00
Jason Volk
d1b82ea225
use #[ignore] for todo'ed tests
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
23e3f6526f
split well_known resolver into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
8010505853
implement clear_cache() for resolver service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
9ce95a7030
make service memory_usage()/clear_cache() async trait
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
d8ea8b378c
add Map::clear() to db interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
17003ba773
add FIFO compaction for persistent-cache descriptor; comments/cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
a57336ec13
assume canonical order in db serialization test
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
7294368015
parallelize IO for PublicRoomsChunk vector
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
aa4d2e2363
fix unused import without feature jemalloc_conf
...
fix span passed by value
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
Jason Volk
07ec9d6d85
re-sort pushkey_deviceid ( 33c5afe050)
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-03-26 01:33:41 +00:00
cy
33c5afe050
delete pushers created with different access token on password change
2025-03-21 10:34:17 -04:00
June Clementine Strawberry
7bf92c8a37
replace unnecessary check when updating device keys
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-17 23:02:34 -04:00
cy
658c19d55e
check if we already have a more preferable key backup before adding
2025-03-16 18:23:19 -04:00
cy
4518f55408
guard against using someone else's access token in UIAA
2025-03-15 19:35:09 -04:00
June Clementine Strawberry
ee3c585555
skip a few flakey complement tests
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-15 19:14:45 -04:00
June Clementine Strawberry
6c29792b3d
respect include_leave syncv3 filter
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-13 15:49:40 -04:00
June Clementine Strawberry
258b399de9
bump ruwuma
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-13 15:23:10 -04:00
June Clementine Strawberry
5dea52f0f8
stop doing complement cert gen and just use self-signed cert
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-13 10:50:43 -04:00
June Clementine Strawberry
1d1ccec532
fix some nightly clippy lints
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-13 08:37:34 -04:00
June Clementine Strawberry
0877f29439
respect membership filters on /members
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-13 08:37:34 -04:00
June Clementine Strawberry
e920c44cb4
ignore humantime dep as tracing console-subscriber uses it (somewhere)
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-11 21:15:11 -04:00
June Clementine Strawberry
ae818d5b25
remove most of cargo test from engage as crane does that but with more caching
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-11 21:09:24 -04:00
June Clementine Strawberry
7f95eef9ab
bump ruwuma
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-11 21:09:19 -04:00
June Clementine Strawberry
3104586884
bump tracing-subscriber, allowlist cargo-doc lint in admin room
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-11 18:05:36 -04:00
Odd Eivind Ebbesen
c4b05e77f3
Fix up wording in the doc comments for admin media deletion ( #694 )
2025-03-10 17:28:29 -04:00
Ginger
1366a3092f
Check the room_types filter when searching for local public rooms ( #698 )
2025-03-10 17:28:19 -04:00
Tamara Schmitz
1e23c95ec6
docs: refactor reverse proxy setup sections ( #701 )
2025-03-10 17:27:53 -04:00
June Clementine Strawberry
56dba8acb7
misc docs updates
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-10 17:27:06 -04:00
June Clementine Strawberry
889fb3cf26
add download-artifact pattern for OCI images only
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-10 13:55:11 -04:00
June Clementine Strawberry
e704bbaf11
update complement test results
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-10 12:59:18 -04:00
June Clementine Strawberry
5ba0c02d52
bump ruwuma to fix a threads issue, fix more error codes, delete legacy sytest cruft
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-10 12:29:54 -04:00
June Clementine Strawberry
df1edcf498
adjust complement cert generation
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-10 10:40:44 -04:00
June Clementine Strawberry
0e2ca7d719
implement disable TLS validation config option
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-09 21:55:07 -04:00
June Clementine Strawberry
0e342aab7f
fix a few error codes
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-09 14:20:24 -04:00
June Clementine Strawberry
47ff91243d
update complement results
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-09 03:33:29 -04:00
June Clementine Strawberry
d0c767c23c
fix a few things to make some complement tests pass
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-09 01:43:49 -05:00
June Clementine Strawberry
06f2039eee
bump ruwuma to maybe fix rare device key upload issues
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-09 00:44:56 -05:00
June Clementine Strawberry
0b012b529f
comment gotestfmt for now
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-08 19:32:16 -05:00
June Clementine Strawberry
5efe804a20
always disable fed, evict admins, and forget the room when banning a room
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-08 18:29:19 -05:00
strawberry
ef96e7afac
add cargo auditable for future use, ignore paste dependency being unmaintained for now
...
Signed-off-by: strawberry <june@girlboss.ceo >
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-08 14:05:52 -05:00
strawberry
c8a730c29e
implement MSC4267 automatically forgetting room on leave
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-08 03:07:42 -05:00
strawberry
bb0b57efb8
bump rust-rocksdb
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-08 02:30:58 -05:00
strawberry
5a3264980a
adjust complement script to allow using your own hs OCI image without nix
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-08 01:35:26 -05:00
strawberry
90fee4f50e
add gotestfmt log output to complement script and CI output
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-08 00:15:13 -05:00
strawberry
51d29bc1cb
bump complement
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-07 21:44:52 -05:00
strawberry
298b58c069
set file_shape for roomsynctoken_shortstatehash to 3, remove rust-rocksdb package spec
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-03-07 21:44:33 -05:00
June Clementine Strawberry
6052c0c8a2
ci: allow ourselves to write to the public docs directory
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-07 01:25:43 -05:00
June Clementine Strawberry
8b3f629198
bump rust-rocksdb
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-07 00:57:47 -05:00
June Clementine Strawberry
4f882c3bd8
add some ACL paw-gun checks, better PUT state event validation
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-07 00:57:39 -05:00
June Clementine Strawberry
2c58a6efda
allow broken no-op deny+allow room server ACL keys
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-07 00:54:30 -05:00
June Clementine Strawberry
fe65648296
remove unnecessary map_err
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 20:10:32 -05:00
June Clementine Strawberry
5ad1100e0f
bump our rocksdb fork
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 19:49:21 -05:00
June Clementine Strawberry
20dd1d148d
add new complement test results
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 18:55:13 -05:00
June Clementine Strawberry
fa71162c7d
bump rocksdb to v9.11.1
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 18:55:10 -05:00
June Clementine Strawberry
f34e0b21a3
remove rust-rocksdb dylib wrapper as we have a fork already
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 18:12:54 -05:00
June Clementine Strawberry
d80e61cbee
bump ring to 0.17.12
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 17:53:23 -05:00
June Clementine Strawberry
c92678ecbe
dont build with zlib in the nix flake
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 14:07:38 -05:00
June Clementine Strawberry
ecea0cff69
fix TestFetchMessagesFromNonExistentRoom complement test
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 13:44:44 -05:00
June Clementine Strawberry
931fd4c802
add missing target
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 13:44:44 -05:00
June Clementine Strawberry
657e91fd42
dont send push notifications from ignored users PDUs
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 13:44:42 -05:00
June Clementine Strawberry
f4c51cd405
remove zlib as a default rocksdb compression option
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 00:18:28 -05:00
June Clementine Strawberry
17b625a85b
reject device keys if they dont match user ID or device ID or are missing fields
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 00:14:49 -05:00
June Clementine Strawberry
c10500f8ae
bump rust-rocksdb and ruwuma
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-06 00:14:24 -05:00
June Clementine Strawberry
2c1ec3fb02
allow both lowercase and uppercase usernames to login
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-05 21:31:49 -05:00
June Clementine Strawberry
408f5bd30c
add val_size_hints on membership cfs (todo remove these anyways)
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-05 19:34:27 -05:00
June Clementine Strawberry
97208d6081
add more safety checks before allowing a room marked as forgotten
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-05 19:34:27 -05:00
June Clementine Strawberry
35981d5aef
automatically forget rooms on leaving
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-05 19:34:22 -05:00
June Clementine Strawberry
7c17163730
switch to self-hosted ci runner, remove sudo usages
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-05 17:39:59 -05:00
June Clementine Strawberry
1ecd027389
always run checks when building in nix (doCheck true)
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-03 01:06:04 -05:00
June Clementine Strawberry
df72384c16
delete snappy, bump rust-rocksdb, bump rocksdb to v9.10.0 again
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-03 01:05:43 -05:00
June Clementine Strawberry
0d741bbd46
remove nix run ci test as its covered by complement
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-03 00:15:12 -05:00
June Clementine Strawberry
af714d5778
refactor+fix various issues with regs/logins and admin user commands
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-02 23:16:30 -05:00
June Clementine Strawberry
00cc23b649
bump nix lockfile, bump cargo.lock, bump ruwuma
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-02 23:15:30 -05:00
June Clementine Strawberry
de53ad83b2
run nightly cargo fmt again
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-02 23:15:05 -05:00
June Clementine Strawberry
17e0384eeb
ignore errors instead of expecting for state gathering
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-03-02 23:11:43 -05:00
June Clementine Strawberry
dca7bf9635
try bumping cache-nix-action to v6
...
Signed-off-by: June Clementine Strawberry <june@3.dog >
2025-02-27 10:45:04 -05:00
Jason Volk
a67ab75417
fix edition 2024 lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-27 10:26:45 -05:00
June Clementine Strawberry
cbf207bd1f
try adding back some skipped complement tests
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 03:11:34 -05:00
June Clementine Strawberry
4bdd0d77db
bump complement, actually run all tests
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 02:52:19 -05:00
June Clementine Strawberry
045e8a2937
stop building mac binaries for now because of linker issues
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 02:51:55 -05:00
June Clementine Strawberry
a1e1f40ded
run cargo fix for rust 2024 changes and rustfmt
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 01:17:45 -05:00
June Clementine Strawberry
e97952b7f6
bump nix lock, update to rust 2024 and 1.85.0 toolchain
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-02-23 01:17:30 -05:00
morguldir
bec19df275
increase compression levels for some column families again
2025-02-22 17:12:31 +01:00
morguldir
8085a1c064
Implement MSC3967, also fixes error when uploading keys in element
...
Co-authored-by: Aiden McClelland <me@drbonez.dev >
Signed-off-by: morguldir <morguldir@protonmail.com >
2025-02-22 16:46:06 +01:00
morguldir
1061f68f0e
bump ruwuma
2025-02-21 21:13:06 +01:00
Jason Volk
01155fa649
fix unsafe precondition violation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-22 16:44:39 -05:00
strawberry
c614d5bf44
bump ruwuma
...
Signed-off-by: strawberry <june@girlboss.ceo >
2025-02-17 17:35:03 -05:00
Jason Volk
f47677c995
refactor spaces
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
6113803038
better error logging on send_join response failure
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
4de0dafdf1
bump ruma
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
f2ca670c3b
optimize further into state-res with SmallString
...
triage and de-lints for state-res.
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
0a9a9b3c92
larcen state-res from ruma
2025-02-16 17:40:21 -05:00
Jason Volk
b872f8e593
optimize with SmallString; consolidate related re-exports
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
ecc9099127
add conf item to re-disable atomic flush
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
e123a5b660
add state accessories for iterating state_keys of a type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
59c073d0d8
add unconstrained feature to service worker
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
5428526120
add tail-efficient logic extension
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
d8e94ee965
split spaces service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
31ab84e928
simplify client event endpoint
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
565837ad75
request auth media first
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
2d71d5590a
fix pdu add_relation() helper
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Jason Volk
3ec43be959
join initial fetches in get_relations()
...
skip recursion for max_depth=0
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-16 17:40:21 -05:00
Dzming Li
e3b81f7b64
Fix in caddyfile guide
...
If the reverse_proxy directive is omitted before 127.0.0.1:6167 in your Caddyfile, enabling the service with systemctl enable will result in an error.
2025-02-10 10:55:16 -05:00
strawberry
b6e9dc3d98
comment out borked ci thing for now
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-09 10:17:28 -05:00
strawberry
cfcd6eb1a6
bump ruwuma to stop erroring on empty push response body
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-07 18:00:58 -05:00
strawberry
88e7e50daf
add missing source OCI image label metadata
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-07 11:49:00 -05:00
strawberry
8345ea2cd3
add --locked and --no-fail-fast to cargo test, add other feature test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 19:02:14 -05:00
strawberry
add2e0e9ee
bump rust-rocksdb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 18:27:36 -05:00
strawberry
43e6c27bb7
misc nix tweaks to maybe speedup ci
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 18:27:36 -05:00
strawberry
c7c9f0e4a6
catch clippy lints for --no-default-features builds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 18:27:36 -05:00
strawberry
ef2d307c15
fix warnings and errors when building with no features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 18:27:32 -05:00
strawberry
f761d4d5c9
bump db version to 17, cleanup, rerun old migrations for users who downgraded
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 16:48:19 -05:00
strawberry
16b07ae3ec
add default systemd support for a TTY to use console mode from
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-06 16:47:10 -05:00
Jason Volk
62d80b97e6
add systemd unit logging mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-06 03:16:56 +00:00
strawberry
fda8b36809
add more systemd notify integration with stopping/reloading/ready states
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-05 07:32:00 +00:00
strawberry
f6dfc9538f
bump ruwuma to stop erroring on duplicate yaml values on appservice EDUs (we dont implement this atm anyways)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-05 07:32:00 +00:00
strawberry
f80d85e107
add SIGUSR1 systemctl reload config support to systemd units
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-02-05 07:32:00 +00:00
Jason Volk
9158edfb7c
fix empty join timeline bug
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-05 07:32:00 +00:00
Jason Volk
04656a7886
fix spaces pagination bug
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-05 07:32:00 +00:00
Jason Volk
442bb9889c
improvements on blurhashing feature
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 21:47:03 +00:00
Niko
62180897c0
Added blurhash.rs to fascilitate blurhashing.
...
Signed-off-by: Niko <cnotsomark@gmail.com >
2025-02-04 21:47:03 +00:00
Nineko
80277f6aa2
Adds .gitattributes to the projects to prevent LN and CLRF conflicts. ( #681 )
2025-02-04 16:46:00 -05:00
Jason Volk
d32534164c
fix soft-failed redaction regression ( ff8bbd4cfa)
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 21:00:12 +00:00
Jason Volk
b3271e0d65
split state_accessor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 00:02:00 +00:00
Jason Volk
106bcd30b7
optimize incremental sync state diff
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 00:02:00 +00:00
Jason Volk
da4b94d80d
trap panics when running in gdb
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-04 00:02:00 +00:00
Jason Volk
32f990fc72
fix the panic counter in the tower layer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-03 01:16:09 +00:00
Jason Volk
5e59ce37c4
snapshot sync results at next_batch upper-bound
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 16:30:55 +00:00
Jason Volk
a774afe837
modernize remove_to_device_events
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 16:30:55 +00:00
Jason Volk
ffe3b0faf2
make shutdown grace periods configurable
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 16:30:55 +00:00
Jason Volk
bd6d4bc58f
enforce timeout on request layers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 16:30:55 +00:00
Jason Volk
b4d22bd05e
remove unnecessary cf arc refcnt workaround
...
log errors and panics propagating through the request task join
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 10:08:30 +00:00
Jason Volk
7ce782ddf4
fix jemalloc cfgs lacking msvc conditions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 10:08:30 +00:00
Jason Volk
4add39d0fe
cache compressed state in a sorted structure for logarithmic queries with partial keys
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 10:08:30 +00:00
Jason Volk
ea49b60273
add Option support to database deserializer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-02-02 00:09:18 +00:00
Jason Volk
2fa9621f3a
flatten state_full_shortids
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
09bc71caab
fix missed concurrent fetch opportunities in sender ( ffd0fd4242)
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
6983798487
implement lazy-loading for incremental sync
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
a4ef04cd14
fix room join completion taking wrong sync branch
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
4e0cedbe51
simplify v3 sync presence collecting
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
4ff1155bf0
reroll encrypted_room branch in incremental sync state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:46:26 +00:00
Jason Volk
e161e5dd61
add pair_of! macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-31 22:45:37 +00:00
morguldir
f698254c41
make registration tokens reloadable, and allow configuring multiple
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2025-01-31 03:09:02 +01:00
Jason Volk
69837671bb
simplify request handler task base
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-30 18:58:32 +00:00
Jason Volk
ff8bbd4cfa
untwist the redaction check stanza
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-30 05:26:30 +00:00
Jason Volk
1a8482b3b4
refactor incoming extremities retention; broad filter, single pass
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-30 05:26:30 +00:00
Jason Volk
31c2968bb2
move db files command w/ filter args; misc related cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 23:21:08 +00:00
Jason Volk
3c8376d897
parallelize state-res pre-gathering
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 23:21:07 +00:00
Jason Volk
50acfe7832
flatten auth chain iterations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 21:28:26 +00:00
Jason Volk
eb7d893c86
fix malloc_conf feature-awareness
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 06:37:30 +00:00
Jason Volk
936161d89e
reduce bottommost compression underrides
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 03:09:13 +00:00
Jason Volk
329925c661
additional info level span adjustments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 03:09:13 +00:00
Jason Volk
af399fd517
flatten state accessor iterations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
ad0b0af955
combine state_accessor data into mod
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
2c5af902a3
support executing configurable admin commands via SIGUSR2
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
2f449ba47d
support reloading config via SIGUSR1
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
a567e314e9
simplify shutdown signal handlers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
ed3cd99781
abstract the config reload checks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
99fe88c21e
use smallvec for the edu sending event buffer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
ffd0fd4242
pipeline pdu fetch for federation sending destination
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
b2a565b0b4
propagate better error from server.check_running()
2025-01-29 01:18:08 +00:00
Jason Volk
c516a8df3e
fanout edu processing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
94d786ac12
process rooms and edus concurrently
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
677316631a
pipeline prologue of handle_incoming_pdu
...
simplify room_version/first_pdu_in_room argument passing
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
2b730a30ad
add broad_flat_map
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-29 01:18:08 +00:00
Jason Volk
98f9570547
add option to disable rocksdb checksums
...
reference runtime state for default option initialization
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:38:47 +00:00
Jason Volk
13335042b7
enable the paranoid-checks options in debug mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:36:00 +00:00
Jason Volk
6db8df5e23
skip redundant acl check when sender is origin
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:36:00 +00:00
Jason Volk
d0b4a619af
furnish batch interface with trait
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:36:00 +00:00
Jason Volk
4a2d0d35bc
split federation request from sending service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:36:00 +00:00
Jason Volk
3e0ff2dc84
simplify references to server_name
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-28 18:36:00 +00:00
June Clementine Strawberry
71a3855af6
fix couple more docker manifest typos
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-26 21:30:15 -05:00
Jade Ellis
db7d23e780
fix creating manifest on wrong repo
2025-01-26 20:38:26 -05:00
Jade Ellis
1c585ab1b6
create manifests for unique docker tags
2025-01-26 20:38:26 -05:00
Jade Ellis
24e6086f12
load correct image file
2025-01-26 20:38:26 -05:00
Jade Ellis
ee63f720c9
revert incorrect tags
2025-01-26 20:38:26 -05:00
June Clementine Strawberry
4b3c54bbfa
check if DOCKER_USERNAME is empty as well in dockerhub desc publish
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-26 13:11:47 -05:00
Jason Volk
68856645ee
refactor lazy-loading
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-26 17:48:53 +00:00
Jason Volk
9ad4f20da4
propagate underflow as error result, not index bounds panic
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-26 17:48:53 +00:00
Jason Volk
186c459584
use scalar for file shape; increase shape for small-type columns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-26 17:48:53 +00:00
Jason Volk
29a19ba437
add write_to_cache to descriptor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-26 17:48:53 +00:00
June Clementine Strawberry
3b0195e6b3
misc various github actions ci fixes
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-26 01:10:25 -05:00
June Clementine Strawberry
4b331fe50e
update README.md, crate metadata, and OCI image metadata
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-26 01:08:39 -05:00
June Clementine Strawberry
c323894497
use test in postrm deb script before deleting
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 21:27:21 -05:00
June Clementine Strawberry
5b5ccba64e
make conduwuit lowercase in the user-agent again
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 21:20:55 -05:00
bumpsoo
9dcf289c7a
(doc): Update docker-compose.yml and conduwuit-example.toml
...
The server cannot start without a registration token when registration is configured
Signed-off-by: bumpsoo <bumpsoo063@protonmail.ch >
2025-01-25 20:08:46 -05:00
Jade Ellis
d86061084c
Publish haswell images to image registries ( #674 )
...
* push haswell images to docker repos
* Add OCI labels to image
* fixup! Add OCI labels to image
* fixup! push haswell images to docker repos
* fixup! Add OCI labels to image
* fixup! Add OCI labels to image
* fixup! Add OCI labels to image
2025-01-25 20:05:41 -05:00
Jade Ellis
1d26eec82d
publish README to docker hub
2025-01-25 19:34:10 -05:00
June Clementine Strawberry
9514064c1c
use --locked for macOS builds
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 13:40:31 -05:00
June Clementine Strawberry
2abf15b9e9
revert back to v9.9.3 due to upstream build issue with macos
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 13:35:22 -05:00
June Clementine Strawberry
cd5d4f48be
add mau.dev mirror of conduwuit
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 03:08:35 -05:00
morguldir
eed3291625
ci: set variable after ssh has been configured, mainly for draft pull requests
2025-01-25 02:01:55 -05:00
morguldir
6a7fe3ab7c
limit wal archive size to 1gb
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2025-01-25 02:01:36 -05:00
June Clementine Strawberry
72daf7ea68
bump rocksdb to v9.10.0, reverts upstream rocksdb regression causing deadlocks on corrupt WAL files
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-25 02:01:20 -05:00
Jason Volk
94f2384fb0
fix missing iteration-optimized read options on several stream types
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
d59f68a51a
add sensitive-field directives to config display
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
b1b6dc0479
reloadable configuration
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
184a3b0f0c
reduce some tracing span levels; bump ruma
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
b5c167de12
call decay prior to purge for trim-memory
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
5be07ebc0f
eliminate references to services.globals.config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
7c6b8b132a
add config reloading indirector
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
1351d07735
improve path argument to Config::load and constructions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
6e7c73336c
move room version config check out of services.globals
...
make available_room_versions() non-member associated
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
52adae7553
add sequence method to db engine; improve engine interface/tracing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-25 01:35:18 +00:00
Jason Volk
a5520e8b1b
fix SRV override loss on cache expiration
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-23 01:48:53 +00:00
Jason Volk
265802d546
additional prof/stats jemalloc related interface tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-23 01:48:53 +00:00
Jason Volk
da9f1ae5d7
expire resolver cache entries
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 08:51:56 +00:00
Jason Volk
607e338ac2
cache result of resolution at completion of resolution
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 07:56:24 +00:00
Jason Volk
f75d9fa79e
deduplicate name resolutions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 06:57:18 +00:00
Jason Volk
7c0c029a4a
add try_lock to MutexMap; allow TryFrom constructions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 06:40:07 +00:00
Jason Volk
49023aa295
use database for resolver caches
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 02:16:51 +00:00
Jason Volk
0c96891008
add CBOR support to database schema
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 00:52:48 +00:00
Jason Volk
1f31e74024
add del to raw suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-22 03:50:51 +00:00
Jason Volk
9ab381e4eb
generate fmt::Display for Config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 07:12:20 +00:00
Jason Volk
dda27ffcb1
add some compaction related interfaces
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 12:05:07 +00:00
Jason Volk
8ab825b12c
add stream parallelism extension combinators
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-21 20:43:38 +00:00
Jason Volk
19f6d9d0e1
add index-compression and auto-readahead to descriptor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 12:12:44 +00:00
Jason Volk
277b4951e8
add compression-shaping; tweak default compression levels
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 11:50:17 +00:00
Jason Volk
610129d162
outdent auth_chain Service impl
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 09:05:49 +00:00
Jason Volk
4c0ae8c2f7
parallelize get_auth_chain outer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 09:02:50 +00:00
Jason Volk
ea25dc04b2
parallelize current and incoming fork-state fetch
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 07:38:32 +00:00
Jason Volk
388730d6dd
add TryWideband trait to similar to TryBroadband
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 07:38:19 +00:00
Jason Volk
ac944496c1
optimize statekey-from-short loopsite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-14 19:17:45 +00:00
Jason Volk
3dae02b886
add preferred jemalloc config
...
add muzzy/dirty configuration mallctl interface
add program argument for --gc-muzzy=false
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 01:30:41 +00:00
Jason Volk
3eed408b29
additional util macros and reorg
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
4fbbfe5d30
add alt argument format for detecting cargo build phase
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
df3eb95d4f
additional affinity utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
7045481fae
add from_errno construction to Error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
c6ae6adc80
pre-allocate some amount of media read buffer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
afdf5a07b5
abstract hidden line related in config generator macro
2025-01-20 04:48:47 +00:00
Jason Volk
f9e76d6239
improve debug memory-stats options
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
8141ca3444
refactor admin outputs to asyncwrite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
abf33013e3
check-in additional database test related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
96e85adc32
use cache builder for row and table cache options
...
add cache check using multi-get path
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:48:47 +00:00
Jason Volk
fc1170e12a
additional tracing span tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
819e35f81f
remove mutex lock/unlock during sync iteration.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
bab40a3747
enable hashing on large-block indexes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
aad42bdaa0
reduce block size on small tables
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
3759d1be6c
tweak per-column write_buffer down from default
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
77d8e26efe
integrate trim-on-park memory reclamation to runtime
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:04 +00:00
Jason Volk
7a8ca8842a
add jemallctl base; add trim to interface w/ console cmd
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:17:02 +00:00
Jason Volk
80832cb0bb
add checked math wrapper
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:16:17 +00:00
Jason Volk
98d8e5c63c
add standard error trait and thread access error conversions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-20 04:16:17 +00:00
Jason Volk
5167e1f06d
add option to disable listeners
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 01:43:58 +00:00
Jason Volk
e56d3c6cb3
add multi_get_statekey_from_short
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 01:43:58 +00:00
Jason Volk
afcd0bfeef
add deref_at macro util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-18 01:43:58 +00:00
strawberry
5b8464252c
cleanup+fix login get_token code, use db ser/deser instead
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-17 17:40:53 -05:00
Jade Ellis
2cc6ad8df3
implement /login/get_token (MSC3882)
2025-01-17 17:40:53 -05:00
Jade Ellis
afe9e5536b
remove undocumented jwt token login
2025-01-17 17:40:53 -05:00
Jason Volk
9ebb39ca4f
add missing cfg_attr on deserialisation db test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-15 14:34:50 -05:00
June Clementine Strawberry
f59e3d8850
bump nix lockfile, cargo.lock, rust to 1.84, and fix tracing fork
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-14 13:05:25 -05:00
morguldir
6cb3275be0
Add initial MSC4186 (Simplified Sliding Sync) implementation
...
Signed-off-by: morguldir <morguldir@protonmail.com >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-14 15:09:51 +01:00
morguldir
be16f84410
syncv3: use a function for repeated pattern of fetching sticky params
2025-01-13 22:31:21 -05:00
strawberry
9dd058de60
update complement results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:15:16 -05:00
strawberry
5a1c41e66b
knocking implementation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
add sync bit of knocking
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:15:16 -05:00
strawberry
fabd3cf567
ci: set binary as executable before uploading to webserver
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:15:16 -05:00
strawberry
5e21b43f25
run direnv exec in engage default steps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:15:16 -05:00
strawberry
9bda5a43e5
fix /kick endpoint unbanning banned users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:15:16 -05:00
strawberry
8c18481d1d
optimise resetting all user presences
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-13 14:09:53 -05:00
Holger Huo
fde1b94e26
fix: logic mistake
2025-01-11 21:43:58 -05:00
Holger Huo
b71201cf19
add: clear online status on server boot
2025-01-11 21:43:57 -05:00
Holger Huo
8451ea3bc3
update: refresh timeout greater than idle timeout
2025-01-11 21:43:57 -05:00
Holger Huo
6f15c9b3f4
fix: presence timer not working
2025-01-11 21:43:57 -05:00
strawberry
0074f903d8
delete lix binary cache because it has terrible reliability
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-11 21:43:57 -05:00
strawberry
1852eeebf2
disable more unnecessary features in various build outputs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-11 20:48:36 -05:00
strawberry
5b6279b1c5
ci: require docker publishing to pass tests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-11 20:48:36 -05:00
strawberry
4c2999ccd1
gate libloading to conduwuit_mods feature and cfg only
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-11 20:48:36 -05:00
strawberry
53d03bbb1f
gate sd_notify to linux target_os only
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-11 19:37:44 -05:00
Jason Volk
66231676f1
gracefully ignore unknown columns; add dropped flag in descriptor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 22:29:05 +00:00
Jason Volk
16fa2eca87
add conf item for write buffer size
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
6a0f9add0c
refactor database engine/options; add column descriptors
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
02f19cf951
tweak tracing spans; inlines
...
db deserializer tracing instrument cover
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
685b127f99
simplify iterator state constructor arguments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
cc1889d135
Add default-enabled feature-gates for url_preview and media_thumbnail
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
0238f27605
prevent example-config generating in test builds
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 07:03:34 +00:00
Jason Volk
5dae086197
exclude config item from doctest
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-10 06:53:15 +00:00
Jason Volk
44e6b1af3c
fixes for tests to be run in release-mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 19:56:42 +00:00
Jason Volk
94c8683836
improve db pool topology configuration
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Jason Volk
d36167ab64
partially revert 9a9c071e82; use std threads for db pool.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Jason Volk
925061b92d
flatten timeline pdus iterations; increase concurrency
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Jason Volk
27328cbc01
additional futures extension utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Jason Volk
a3f9432da8
eliminate the state-res mutex hazard
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Jason Volk
82168b972a
fix heroes calculation regression
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-09 18:14:23 +00:00
Neil Svedberg
7526ba9d6f
Add header to console
...
When the console is launched, it now prints this message:
conduwuit VERSION admin console
"help" for help, ^D to exit the console, ^\ to stop the server
2025-01-09 10:18:49 -05:00
Jade Ellis
8c74e35e76
automatically retry returning data in syncv3 ( #652 )
...
* automatically retry returning data in syncv3
* reference service
* clippy fixes
2025-01-03 22:15:48 -05:00
June Clementine Strawberry
e5049cae4a
update complement test results
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-02 22:02:11 -05:00
Jason Volk
f1af7ec08c
fix unused import in release mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-03 02:36:24 +00:00
June Clementine Strawberry
3b8a90ad13
delete more stuff to free up runner space
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-02 20:56:27 -05:00
strawberry
7a349fdc58
use latest sccache, bump nix flake lock, cache everything in rust-cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-02 19:13:27 -05:00
strawberry
6c8a1b5e9b
bump ruwuma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-02 18:48:04 -05:00
strawberry
a5d70f7356
add some m.room.member checks on putting direct state events
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-02 18:16:00 -05:00
Jason Volk
50cadbee96
add faster shutdown point in unix socket listener
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-02 08:20:02 +00:00
Jason Volk
b1182fe8a4
improve some router tracing spans
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-02 08:20:02 +00:00
Jason Volk
77d7e8a3ad
add json array to serde_json::Value db deserialization without Raw
2025-01-02 06:52:32 +00:00
strawberry
72797532b6
fix MSC4133 fields not being returned as original types
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2025-01-01 23:28:01 -05:00
Jason Volk
b4ef646485
translate 5xx to 404 on remote media request
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
b8f8f68634
improve memory-usage output w/ more byte-sizes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
33635e11d1
bump ruma
...
tweak tracing instrument
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
1a71798859
add Expected trait to utils; use (already transitive) num-traits.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
7e4453620e
move exponential backoff util to different submod
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
2259e2c82f
batch queries to maximize throughput
...
query-side streams for first level of callsites
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
1792711d09
support core affinity mask
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
0b2fca5ad9
add complement diff from e2f6753a3280
2025-01-01 23:28:01 -05:00
June Clementine Strawberry
0e110bb48b
fix flipped room ver check on send_join
...
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay >
2025-01-01 23:28:01 -05:00
Jason Volk
3ffe2cd56e
reduce backoff warning from infolog
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
c5b94be5b8
remove dev_release_log_level cfg
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
2bbb28bb88
get device info with libc using major/minor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
203cf57fdf
add console log event format hook
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
9c6b5b4407
add faster interruption to resolver ( #649 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
a1fc4d49ac
reduce non-debug startup warnings
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
b56e480b3c
integrate some std io error kinds with our status code abstraction
...
associate rocksdb error kinds with std io error kinds
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
7c8eeaf4ea
simplify multi_get_or_create/related stream implementations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
9eb99f8070
abstract async shutdown waiting loop
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
0a9b6c136f
refactor for ruma identifiers optimizations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
d91570d0e6
add Error variant for FeatureDisabled
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
3a2c5be4f4
reduce exponential backoff for prev fetch
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
e21403a4d4
use VecDeque for todo queues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
74eb30c106
add LIFO scheduling for database frontend pool workers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
6458f4b195
refactor various Arc<EventId> to OwnedEventId
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
5a335933b8
pass stream width to ruma state res
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
3b95af9a18
move stream width related into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
a407909d09
reduce unnecessary info-level spans to debug
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
7a6d657558
configurable dynamic stream concurrency scalar
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
b195107053
optimize for multi-queue storage topologies with affinity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
e5a1309583
additional interruption points to hasten shutdown
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
03f2ac9caf
simplify usage of mpmc channels which don't require receiver lock
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
5fdb8895b1
add utils to detect device io characteristics
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
749f29aaab
add and/and_then to BoolExt
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
a3d87be22f
enable atomic_flush for database columns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
aefc4b4e69
add more program options for tokio
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
503210c3bf
toggle worker_affinity feature from program argument
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
674acc8657
add program options for tokio histogram settings
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
af3d6a2e37
shard sender into multiple task workers by destination hash
...
rename Destination::Normal variant
tracing instruments
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
98e6c81e49
offload remaining db iterator initial seeks on cache miss
...
consume task budget on cache hit
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Jason Volk
14341bb906
simplify and improve db iter State init interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2025-01-01 23:28:01 -05:00
Neil Svedberg
5bce0a3a46
Improve documentation for configuration
...
Although the configuration file was mostly wrapped to a line-width of
80, some lines were wrapped slightly shorter. I fixed this.
In general, all sentences were changed to start with a capital letter
and end with a period or other punctuation mark.
Many of the documentation commets read as, "config option to do XYZ". I
shortened these to simply "do XYZ".
2025-01-01 16:31:30 -05:00
Neek
c53e9e07f2
update cohost link
...
added an archive.org link to the cohost post as it will fully shut down at the end of the year
2024-12-27 13:57:18 -05:00
nexy7574
7f645ff0e9
Make some doc changes to admin media delete-past-remote-media
...
Adjust before/after doc to clarify internationally
Courtesy of @Aranjedeath
Run `cargo fmt`, properly
Fix stupid doc command issue
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-20 13:56:40 -05:00
Jade Ellis
5b5735f653
update ruwuma
2024-12-19 21:03:12 -05:00
Jade Ellis
025950139e
do not try to push to GHCR on pull requests from forks
2024-12-19 21:02:34 -05:00
Jade Ellis
0602e38ada
remove logging
2024-12-19 21:02:34 -05:00
Jade Ellis
8f73caae0b
fix github actions runs on forks
...
This commit contains two separate fixes:
1) use lowercased github username/repository for the docker
repository name.
This is because image registries only accept
lowercase in image repository names, but github stores the
repository and username in a case-sensitive manner. This broke
image uploads for me, as my username has uppercase chars.
2) change run conditions for some steps.
It will no longer attempt to set up SSH web publishing if the SSH
private key is not set.
It will also run the image registry upload steps if registry
usernames are missing, instead skipping individual uploads where
the token for that registry is missing.
Finally, it simplifies the sccache run conditions to use the
`SCCACHE_GHA_ENABLED` env variable, rather than duplicating that
logic.
Signed-off-by: Jade Ellis <jade@ellis.link >
2024-12-19 21:02:34 -05:00
admin@dimensionproject.net
802395bdb7
add password argument to reset-password admin cmd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-18 20:46:01 -05:00
Jason Volk
60a952508e
use macro for error constructions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 14:16:29 -05:00
Jason Volk
4d46df2af5
abort tasks for non-async pool shudown
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 14:16:23 -05:00
strawberry
7b8320e0eb
bump rocksdb to v9.9.3
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-18 13:41:30 -05:00
Jason Volk
6c42ac2726
add num_workers() convenience to core metrics
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 13:32:13 -05:00
Jason Volk
71673b2a88
add worker_affinity feature
...
split runtime init from main.rs
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 13:31:58 -05:00
Jason Volk
5f7636f177
set dbpool thread name (gated by tokio_unstable)
...
Signed-off-by: Jason Volk <jason@zemos.net >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-18 13:31:41 -05:00
Jason Volk
f78104a959
relax Send on input iterator
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 13:29:51 -05:00
Jason Volk
ad8cbcaac1
check cache prior to offloading iterator seek
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-18 13:29:43 -05:00
strawberry
f54a62dda0
Revert "Send read reciept and typing indicator EDUs to appservices with receive_ephemeral"
...
This reverts commit 3675c941f8 .
2024-12-18 11:26:18 -05:00
strawberry
9040ad054e
Revert "misc typing cleanup"
...
This reverts commit 4dd809fdc4 .
2024-12-18 11:26:04 -05:00
strawberry
4dd809fdc4
misc typing cleanup
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-17 23:13:35 -05:00
Jade Ellis
3675c941f8
Send read reciept and typing indicator EDUs to appservices with receive_ephemeral
2024-12-17 22:49:45 -05:00
Jade Ellis
5b6ff3869c
Fix typo in test from rename
2024-12-17 19:29:46 +00:00
AsenHu
9ec35cf684
skip uploading JSON files in release workflow
2024-12-17 03:01:40 +00:00
AsenHu
63c4975483
fix bug
2024-12-17 02:08:52 +00:00
strawberry
5813419f4b
free up ci runner space on both jobs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 22:49:34 -05:00
strawberry
8dcdb4b09a
update some more docs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 22:48:22 -05:00
strawberry
7ad710d96a
bump complement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 18:00:49 -05:00
strawberry
c8c9d73b20
enable edns0 on hickory resolver config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 17:24:45 -05:00
strawberry
004671b437
dont copy join_authorized_via_users_server on leaving rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 15:58:53 -05:00
strawberry
aeae67a7ee
bump ruwuma to stop sending empty content rulesets
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 15:20:28 -05:00
strawberry
74c5bfd311
dont allow m.room.server_acl to be redacted
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 14:31:11 -05:00
strawberry
2ba0400758
return proper error for attempting to update m.room.create
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 14:23:13 -05:00
strawberry
468071336b
ping online presence on read updates like synapse
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 14:13:51 -05:00
strawberry
9c6908b8c1
bump ruwuma, implement MSC4076, add more pusher HTTP URL validation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 14:05:28 -05:00
strawberry
c8349988aa
ping online presence on typing updates like synapse
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 02:53:32 -05:00
strawberry
6c96acc482
use fast binary_search for some const slices
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 01:41:50 -05:00
strawberry
52693db477
hide messages from users servers on the forbidden_remote_server_names list
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 01:02:52 -05:00
strawberry
77e0b76408
apply new rustfmt.toml changes, fix some clippy lints
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-15 01:00:41 -05:00
strawberry
0317cc8cc5
rename conduit to conduwuit finally
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-14 22:24:45 -05:00
strawberry
c6bf8f5ea1
improve gh actions security using zizmor
...
https://github.com/woodruffw/zizmor
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-14 21:00:33 -05:00
strawberry
e4489a5d20
bump rust-rocksdb fork
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 21:59:37 -05:00
strawberry
a9f6bb6169
remove jemalloc_prof and jemalloc_stats from all-features builds (exc. debug)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 13:35:36 -05:00
strawberry
1b9c331049
use database::Json() to serialise MSC4133 profile value before insert
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 11:13:21 -05:00
strawberry
17273b1cea
upload CI binaries to webserver for easy direct download
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 11:09:29 -05:00
Asen
c5aca8036d
add auto upload assets, upload binary to webserver
...
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 01:57:49 -05:00
strawberry
b73d558cba
start producing haswell target optimised x86 binaries for rocksdb fast CRC32 support
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-13 01:57:45 -05:00
strawberry
76a5a67b6f
fix a couple rust 2024 lints introduced in rust 1.82.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-12 10:22:30 -05:00
strawberry
e0446181c5
remove unnecessary args in pack_receipts
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 22:07:53 -05:00
strawberry
a26b1c5722
send private read receipt on sliding stink (sync)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 22:02:48 -05:00
strawberry
c9bb943a34
mark device list updates when a device is deleted/removed
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 21:25:40 -05:00
strawberry
353dc17af4
construct private read receipt properly
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 21:25:07 -05:00
strawberry
66a82447da
log hostname in DNS error tracing spans
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 21:24:53 -05:00
strawberry
3e64a5c907
delete pointless bad_query_ratelimiter harming e2ee performance
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 19:46:34 -05:00
strawberry
5d51adc29d
update complement test results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 19:17:23 -05:00
strawberry
0740d7259a
document modifying systemd unit if changing database path
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 18:22:51 -05:00
strawberry
af08d3f7bd
document 'DNS No connections available' troubleshooting
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 18:12:27 -05:00
strawberry
9ca964a97e
update stored default push rules when removing legacy mentions
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 17:36:51 -05:00
strawberry
39abd9a827
(temp) drop sccache version down in CI to 0.8.2
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 16:38:29 -05:00
strawberry
ac0545f773
always set limited true on left timeline events in sync (for now)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 16:38:29 -05:00
strawberry
80f9536d21
rename config.rs to account_data.rs, refactor, add some missing checks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 16:38:29 -05:00
strawberry
ef8392cbbe
allow empty POST request bodies (synapse behaviour) to improve compatibility
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 16:38:25 -05:00
strawberry
1e3bb02ced
bump cargo.lock, bump some deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 14:26:15 -05:00
strawberry
badb83484f
fix private read receipt support
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-11 14:25:32 -05:00
Jason Volk
34f9e3260f
additional sync v3 refactoring/optimizations and tracing instruments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-10 06:20:30 +00:00
Jason Volk
aba88ccead
misc tracing span tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-10 06:20:30 +00:00
Jason Volk
5fc8e90e02
fix runtime metrics command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-10 05:40:45 +00:00
Jason Volk
cd67ca6c57
fix .gitignore to allow /target to be a symlink
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-10 05:40:45 +00:00
strawberry
9cb71e212a
nix: bump flake.lock finally after 3 months
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 17:03:54 -05:00
strawberry
0ff37b829c
update default systemd units to use network-online.target fully
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 13:33:24 -05:00
strawberry
b6ac3649ee
use fork of complement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 13:04:13 -05:00
strawberry
e1bd6a7c2d
nix: try bumping to latest complement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:52:06 -05:00
strawberry
faf48405aa
bump rocksdb to v9.8.4, enable track_and_verify_wals_in_manifest by default
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:52:06 -05:00
strawberry
ab4a283870
update complement config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
9d59f777d2
refactor fed membership endpoints, add missing checks, some cleanup, reduce line width
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
61670370ed
add rocksdb paranoid_file_checks config option, add some more config checks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
1606441d09
disable admin_room_notices for complement, update welcome text
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
cf71aeef0b
fix+improve membership endpoint UX, dont reuse old membership reasons, small parallelisation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
a1b0369033
reduce line width on banned_room_check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
c070edc189
fix profile updates reusing old membership content + small parallelise + remove unnecessary Result
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
strawberry
35e9d9b02e
fix duplicate timezone keys being sent on profile lookup requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-09 12:28:14 -05:00
Jason Volk
a752fb9943
rename mod with tracing inits due to macro issues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 20:33:25 +00:00
Jason Volk
f70fdca828
remove jemalloc_stats from main default features
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 20:33:25 +00:00
Jason Volk
82133ee2ea
bump rust-rocksdb
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
ff56ee7413
add back the consume_budget on cache hits
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
6aa35260e6
misc database options tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
139a1ac504
configure the tokio runtime tunables
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
65a370836c
derive specific ReadOptions for iterators
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
aa6d0fcaa7
add unwrap_or_default() to future TryExt extension
...
start an OptionFuture extension
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:27 +00:00
Jason Volk
d921b82376
add options for console tracing EnvFilter details
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:26 +00:00
Jason Volk
da984d49cf
remove unnecessary tracing of pdu conversions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:26 +00:00
Jason Volk
b7a41f283f
optimize sync v3 asynchronicity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:26 +00:00
Jason Volk
b77a1eb079
move cork to remove_to_device_events fn
...
add cork around write-heavy database routine called in loop; cleanup
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:23 +00:00
Jason Volk
23cf2b2236
add is_err() to TryFuture extension
...
add fold_default to Future tools extension
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:23 +00:00
Jason Volk
de3b137df8
eliminate future wrapping stream for all_pdus()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:23 +00:00
Jason Volk
8e8c6bfe07
abstract supported room versions apis
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:23 +00:00
Jason Volk
f0a1aaf7bc
extend x-platform support for binding URL previews to interfaces via address
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-08 07:12:23 +00:00
Jade Ellis
52cee65748
add support for binding to a specific interface for url previews
...
This is helpful to, for example, bind to an interface that can
only access the public internet. The resulting setup is less
maintenance-heavy / error-prone than manually maintaining a deny/
allowlist to protect internal resources.
Signed-off-by: Jade Ellis <jade@ellis.link >
2024-12-07 23:27:56 +00:00
strawberry
fe1ce521aa
add ignored user checks on /context and /event, misc cleanup
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-04 18:33:12 -05:00
strawberry
ad0c5ceda4
add origin to tracing instrument logs on /send
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-04 17:13:39 -05:00
Jason Volk
68afdb22c7
force Cargo.lock version to 3
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 21:55:50 +00:00
Jason Volk
1d02851028
implement several broadband loops
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 21:50:20 +00:00
Jason Volk
59d5e3ebf1
additional stream extensions for any/all
...
additional stream extension TryBroadbandExt
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 21:49:19 +00:00
Jason Volk
c2d97aaa5e
increase default db pool worker count for large systems
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 21:49:19 +00:00
Jason Volk
513236b3ce
bump ruma for async state-res optimizations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
strawberry
9db0325b42
bump rust to 1.83.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-04 00:51:57 +00:00
morguldir
e0494c1538
add /bin/conduit to OCI image contents
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-12-04 00:51:57 +00:00
Jason Volk
784ccd6bad
return stream from multi_get_eventid_from_short
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
48703173bc
split get_batch from get.rs; add aqry_batch
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
c01b049910
move cidr_range_denylist from globals to client service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
9d9f403ad5
prevent adding presence timer for server's own user
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
3109c0daba
perform async shutdown for database pool after services stop
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
ef9b1c6303
simplify sender shutdown; prevent launching any retries
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
b7df0a14c6
parallelize events_before and events_after in api/client/context
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-04 00:51:57 +00:00
Jason Volk
b5006a4c41
offload initial iterator seeks to threadpool
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 13:25:33 +00:00
Jason Volk
320b0680bd
pipeline various loops
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 13:25:33 +00:00
Jason Volk
ed8c21ac9a
modernize async srv lookup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 13:25:33 +00:00
Jason Volk
9a9c071e82
use tokio for threadpool mgmt
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 07:39:02 +00:00
Jason Volk
89a158ab0b
add delay before starting updates check
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 07:39:02 +00:00
Jason Volk
7d6710c033
add broadband stream extensions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 07:39:02 +00:00
Jason Volk
61d9ac66fa
add ref_at util macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 07:39:02 +00:00
Jason Volk
3b30bd3580
add try_filter_map to TryReadyExt
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-03 07:39:02 +00:00
Jason Volk
3fbd74310f
impl transposed form of MapExpect
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-01 10:51:04 +00:00
Jason Volk
9263439af8
fix is_matching macro argument designator
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-12-01 10:51:04 +00:00
Jason Volk
4a3cc9fffa
de-arc state_full_ids
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-30 08:38:12 +00:00
Jason Volk
b5266ad9f5
parallelize sender edu selection
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-29 08:47:03 +00:00
Jason Volk
6175e72f1c
simplify get_pdu() interface; eliminate unconditional Arc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-29 08:47:02 +00:00
Jason Volk
58be22e695
fix new lints; clippy::unnecessary-map-or
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-29 06:58:45 +00:00
Jason Volk
2a9bb1ce11
add configurables for frontend pool options
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-28 07:20:43 +00:00
Jason Volk
3ad6aa59f9
use smallvec for db query buffering
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-28 06:03:33 +00:00
strawberry
76c75cc05a
bump tracing fork
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-27 20:58:04 -05:00
Jason Volk
c7ae951676
add frontend threadpool to database
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 10:53:44 +00:00
Jason Volk
94d7b21cf0
use stricter timeout for fetching state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 06:30:20 +00:00
Jason Volk
2aeee4f509
parallel query for outlier/non-outlier pdu data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 06:30:20 +00:00
Jason Volk
dd8c646b63
optimize state compressor I/O w/ batch operation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 06:30:20 +00:00
Jason Volk
527494a34b
fix oversized tracing span arguments; lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 06:30:20 +00:00
Jason Volk
e83fa12451
tweak dev profile
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 02:57:13 +00:00
Jason Volk
4f97ff98d6
enter the tokio runtime for the scope of main init
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-27 02:57:13 +00:00
Jason Volk
f69c596f56
generalize return value wrapping to not require Arc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-26 03:45:21 +00:00
Jason Volk
238523f177
cleanup: reuse api rather than querying db
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-26 03:45:21 +00:00
strawberry
c5c74febb5
bump rust-rocksdb to 4bce1bb97d8be6f0d47245c99d465ca9cef33aad
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-25 16:32:09 -05:00
morguldir
63d1fcf213
add queued transactions rocksdb cf cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-25 16:08:30 -05:00
strawberry
b20bd65d38
fix matrix-appservice-irc workaround
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-25 15:55:31 -05:00
Jason Volk
62d560e2fb
improve tracing instruments on database::map
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 07:00:55 +00:00
Jason Volk
6c66391988
fix unnecessary serialization of sender query keys
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 06:50:15 +00:00
strawberry
6ccfc9ed98
slightly refactor appservice registration command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 23:14:19 -05:00
strawberry
e9fee04eef
fix needlessly strict appservice user existence check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 23:14:19 -05:00
strawberry
8611cc0ee9
fix ignored_filter check, exclude dummy events over sync
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 23:14:19 -05:00
Jason Volk
2592f83b69
add migration fix for duplicate readreceipt entries
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 02:54:29 +00:00
Jason Volk
c903a71807
refactor and optimize receipt service data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 02:54:29 +00:00
Jason Volk
343ec59a8b
use arrayvec for integer deserialization buffer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 02:54:29 +00:00
Jason Volk
6f1d50dda3
panic on otherwise ignored errors in debug mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-25 02:54:29 +00:00
strawberry
29c715a45f
ci: remove some old/unnecessary paths-ignore
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 19:30:54 -05:00
strawberry
2675033aac
send plain txt admin room error responses
...
fixes bracketed arguments not showing up on missing args
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 19:19:08 -05:00
strawberry
b87362cbf1
ci: add test for validating generated example config is current
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-24 19:17:07 -05:00
Jason Volk
1c751168c6
check-in missed example config changes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 23:50:05 +00:00
Jason Volk
a582d0559a
bump url and cargo lock
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 22:16:16 +00:00
Jason Volk
4e74a1811b
ci: set cancel-in-progress to true
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 22:16:16 +00:00
Jason Volk
97ad9afc86
default to main event for batch tokens
...
fix prev_batch token for legacy sync timeline
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 21:47:25 +00:00
Jason Volk
c519a40cb8
use multiget for shortid conversions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 21:30:32 +00:00
Jason Volk
3789d60b6a
refactor to iterator inputs for auth_chain/short batch functions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 21:30:32 +00:00
Jason Volk
5da42fb859
refactor account_data.changes_since to stream
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 21:30:31 +00:00
Jason Volk
fd4c447a2d
move attribute argument extractor to utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 07:11:26 +00:00
Jason Volk
f30b08f015
fix optional config section related
...
split api/client well_known
simplify well_known config access
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 07:11:26 +00:00
Jason Volk
5f1cab6850
passthru worker thread count from env
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-24 05:18:36 +00:00
strawberry
175e1c6453
correct admin cmd getting version and bin name
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-23 22:36:22 -05:00
strawberry
af772b0240
various misc documentation improvements
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-23 22:35:54 -05:00
strawberry
3fe98f35f2
remove queued push keys on pusher deletion, use more refs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-23 13:45:27 -05:00
strawberry
9d23a2b6f5
add missing length checks on pushkey/appid, improve error msgs for pusher
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-23 12:53:26 -05:00
strawberry
f15370027e
improve DNS error messages
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-23 12:05:52 -05:00
Jason Volk
b94eeb9580
fix deletions on readreceipt update
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-22 09:38:34 +00:00
Jason Volk
3968d03868
move and improve common-rooms related
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-22 09:38:34 +00:00
Jason Volk
aea82183b2
add set intersection util for two sorted streams
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-22 09:38:34 +00:00
Jason Volk
bae0667066
limit sync response events to within the since/next_batch window
...
fixes #606
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-22 09:02:01 +00:00
strawberry
5256cad396
ignore bare_urls lint for well_known client config option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-21 23:49:46 -05:00
strawberry
9100af9974
add eventid_pdu database cf cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-21 23:45:16 -05:00
strawberry
b6d53e97a6
bump ruwuma and a few http deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-21 23:44:50 -05:00
strawberry
336de49e6a
tiny optimisation in append_pdu push notif
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-21 23:44:50 -05:00
emily
ee3c58f78f
docs: add workaround to use unix sockets with the nixos module
2024-11-20 11:14:05 -05:00
nisbet-hubbard
876c6e933c
A minimal caveat
2024-11-20 09:41:11 -05:00
Jason Volk
2f2cebe84d
implement local room preview
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 09:12:50 +00:00
Jason Volk
e257512aa7
relax state visibility for invited modes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
411c60009d
enrich state iteration interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
7680d1bd5e
replace yields point with consume_budget
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
8fedc358e0
typename additional shortids
...
cleanup/split state_compressor load
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
90106c4c33
streamline batch insertions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
a05dc03100
use debug_warn for backfill event evals
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-19 08:37:25 +00:00
Jason Volk
26bcc7e312
fix default stateinfo cache size
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-17 00:15:13 +00:00
strawberry
85a6d8fc6b
ci: fix github pages publish check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-16 01:57:31 -05:00
Tamara Schmitz
2b2793fac6
docs: add note about the nixos service defaulting to sqlite
...
Co-authored-by: June 🍓 🦴 <june@girlboss.ceo >
2024-11-16 00:18:58 -05:00
strawberry
8f14048528
ci: free up a bit of runner space safely (again)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 23:48:55 -05:00
strawberry
7f96b2f92a
nix: remove libllvm, libgcc, and llvm from OCI images as well
...
aarch64 OCI images love llvm??
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 23:18:12 -05:00
strawberry
b92b4e043c
drop hyper-util back down to 0.1.8 due to DNS issues
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 22:16:11 -05:00
strawberry
6319384072
implement GET /_matrix/client/v3/pushrules/global/
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 21:41:38 -05:00
strawberry
ead9d66797
send the actual unsupported room version in join errors
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 21:28:08 -05:00
strawberry
cd2c473bfe
add missing fix_referencedevents_missing_sep key on fresh db creations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 21:00:26 -05:00
Jason Volk
887ae84f1e
optimize sha256 interface gather/vector inputs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
Jason Volk
14e3b242df
add database get_batch stream wrapper
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
Jason Volk
9f7a4a012b
improve tracing/logging for state_compressor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
Jason Volk
5f625216aa
slight optimizations for statediff
...
calculate with_capacity for set/get_statediff() etc
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
Jason Volk
20836cc3db
flush=false for database-backup in read-only/secondary modes; improve error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
Jason Volk
59834a4b05
add is_read_only()/is_secondary() to Engine
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-16 00:33:40 +00:00
strawberry
4b652f5236
ok cargo doc
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 17:50:39 -05:00
strawberry
be5a04f47c
ci: install liburing-dev
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 17:09:36 -05:00
strawberry
9c95a74d56
fix getting canonical alias server for backfill
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
6b1b464abc
add missing knock_restricted room type to /publicRooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
f897b4daee
ci: remove all free runner space steps due to flakiness
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
666989f74c
delete trivy as lately its been terribly unreliable
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
9783bc78ba
remove sentry_telemetry from default features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
c23786d37f
dont try to backfill empty, private rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
a9c280bd4c
document NAT hairpinning/loopback if needed
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:16 -05:00
strawberry
c1f553cf4f
bump rocksdb to v9.7.4, and ruwuma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 16:48:11 -05:00
strawberry
b4d809c681
add more checks for gh pages deployment workflow
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:49:54 -05:00
strawberry
3f69f2ee73
replace deprecated sha-1 crate, try to reduce some unnecessary crates/features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:44:29 -05:00
strawberry
dac1a01216
update generated example config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:43:58 -05:00
strawberry
44a7ac0703
add debug_assert is_sorted for inline content types
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
011d44b749
add missing declared support for MSC3952
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
72fb8371f9
link to migrating from conduit on the README
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
4f0bdb5194
general misc bug fixes and slight improvements
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
fd2a002480
dont build sentry or perf_measurements features for complement
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
4296d7174f
add receive_ephemeral check for appservice EDU sending (if it even works)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
4fe47903c2
misc docs changes/improvements from example config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
strawberry
08365bf5f4
update config documentation, commit generated example config
...
also removes the no-op/useless "database_backend" config option
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-15 09:41:17 -05:00
Jason Volk
4ec5d1e28e
replace additional use tracing::
...
add log:: to disallowed-macros
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-14 04:50:07 +00:00
Jason Volk
e228dec4f2
add byte counting for compressed state caches
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 23:14:05 +00:00
Jason Volk
6ffdc1b2a6
bump serde, image, loole, termimad etc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 22:59:28 +00:00
Jason Volk
004be3bf00
prepare utf-8 check bypass for database deserializer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 22:59:28 +00:00
Jason Volk
77fab2c323
use ruma visibility enum in directory interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 02:38:03 +00:00
Jason Volk
68582dd868
add parallel query for current membership state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 02:38:03 +00:00
Jason Volk
feefa43e65
add pretty/si-unit byte size parsing/printing utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 02:38:03 +00:00
strawberry
c59f474aff
fixes for gh workflow
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 02:38:03 +00:00
Jason Volk
86694f2d1d
move non-generic code out of generic; reduce codegen
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-13 02:38:03 +00:00
Jason Volk
999d731a65
move err macro visitor out-of-line; reduce codegen
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 22:45:44 +00:00
Jason Volk
3962333043
partially revert e507c31306
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 21:35:30 +00:00
Jason Volk
61174dd0d3
check if lazyset already contains user prior to querying
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 21:30:48 +00:00
Jason Volk
e2afaa9f03
add config item for with_span_events
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 20:50:05 +00:00
Jason Volk
9790a6edc9
add unwrap_or_err to result
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 20:50:05 +00:00
Jason Volk
08a4e931a0
supplement a from_str for FmtSpan
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-11 20:50:05 +00:00
OverPhoenix
24a5ecb6b4
fix incorrect user id for non-admin invites checking
2024-11-10 22:24:35 +00:00
Jason Volk
1efc52c440
increase logging during server keys acquire
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 11:17:42 +00:00
Jason Volk
f290d1a9c8
prevent retry for missing keys later in join process
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 08:47:15 +00:00
strawberry
7e087bb93c
Fixes for CI
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 04:33:30 +00:00
Jason Volk
5e74391c6c
fix config generator macro matchers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 04:33:30 +00:00
Jason Volk
cc86feded3
bump ruma
...
fixes for key type changes
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 04:33:30 +00:00
Jason Volk
14fce38403
cork around send_join response processing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 04:33:30 +00:00
Jason Volk
10be301646
split large notary requests into batches
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-10 04:33:29 +00:00
Jason Volk
1ce3db727f
split event_handler service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 09:21:42 +00:00
Jason Volk
6eba36d788
split make_body template
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 09:21:42 +00:00
Jason Volk
f59e8af734
slight cleanup/simplifications to backfil
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 09:21:30 +00:00
Jason Volk
1f2e939fd5
optional arguments for timeline pdus iterations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 08:22:54 +00:00
Jason Volk
13ef6dcbcf
add standalone getters for shortid service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 06:09:04 +00:00
Jason Volk
27966221f1
add ready_try_fold to utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 06:09:04 +00:00
Jason Volk
79c6b51860
renames for core pdu
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 06:09:04 +00:00
Jason Volk
e507c31306
make pdu batch tokens zeroith-indexed
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-08 06:06:18 +00:00
Jason Volk
f36757027e
split api/client/room
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
7450c654ae
add get_pdu_owned sans Arc; improve client/room/event handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
3ed2c17f98
move sync watcher from globals service to sync service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
26c890d5ac
skip redundant receipts on syncs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
137e3008ea
merge rooms threads data and service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Jason Volk
9da523c004
refactor for stronger RawPduId type
...
implement standard traits for PduCount
enable serde for arrayvec
typedef various shortid's
pducount simplifications
split parts of pdu_metadata service to core/pdu and api/relations
remove some yields; improve var names/syntax
tweak types for limit timeline limit arguments
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-06 21:46:20 +00:00
Kirill Hmelnitski
2e4d9cb37c
fix thread pagination
...
refactor logic
increase fetch limit for first relates
apply other format
Co-authored-by: Jason Volk <jason@zemos.net >
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-04 19:25:31 +00:00
Jason Volk
78aeb620bc
add broad timeout on acquire_origins keys operation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-04 19:25:31 +00:00
Jason Volk
4a94a4c945
rename pdu/id to pdu/event_id
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-04 19:25:31 +00:00
Jason Volk
768e81741c
use FnMut for ready_try_for_each extension
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 14:51:07 +00:00
Jason Volk
8d251003a2
reduce Error-related codegen; add PoisonError
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 14:51:07 +00:00
Jason Volk
52f09fdb51
add database migration for missing referencedevents separator
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 14:50:28 +00:00
Jason Volk
f191b4bad4
add map_expect for stream
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 14:50:28 +00:00
Jason Volk
8742437036
wrap unimplemented ser/de branches with internal macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
ba1c134689
move migrations out of globals service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
1f1e2d547c
optimize override ips; utilize all ips from cache
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
f746be82c1
typename some loose u64 ShortId's
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
0bc6fdd589
Refactor ShortStateInfo et al to properly named structures
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
6b0eb7608d
add Filter extension to Result
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
e49aee61c1
consolidate and parallelize api/server access check prologues
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
7fcc6d11a4
de-wrap state_accessor.server_can_see_event
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
0eb67cfea0
additional bool extensions for Result/Option conversion
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 08:03:25 +00:00
Jason Volk
9775694423
inline database stream interface functions lt 64B
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 07:32:09 +00:00
Jason Volk
a7cb1c5951
slightly optimize request signing/verifying
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 07:32:09 +00:00
Jason Volk
ed76797b55
add raw_ overloads for prefix/from counting
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 07:32:09 +00:00
Jason Volk
ad117641b8
add tuple-apply macro with length argument for now
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 07:32:09 +00:00
Jason Volk
1fbfc983e9
optimize FedDest::Named port
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-11-03 07:32:09 +00:00
strawberry
0387871063
add workaround for matrix-appservice-irc using historical localparts
...
see https://github.com/matrix-org/matrix-appservice-irc/issues/1780
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 21:20:36 -04:00
strawberry
6f37a251fb
allow taking room aliases for auto_join_rooms config option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 20:55:40 -04:00
strawberry
9466aeb088
remove some unnecessary debug prints on notices
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 18:52:25 -04:00
strawberry
ee6af6c90e
drop report delay response range to 2-5 secs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 18:46:20 -04:00
strawberry
6cbaef2d12
always set RUST_BACKTRACE=full in OCI images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 13:17:31 -04:00
strawberry
240c78e810
strong-type URL for URL previews to Url type
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-11-02 13:17:22 -04:00
strawberry
8ed9d49b73
skip new flakey complement test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-31 14:41:35 -04:00
Jason Volk
354dc9e703
add map accessor to Database; move cork interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-28 20:52:52 -04:00
strawberry
567a4cb441
implement admin command to force join all local users to room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
strawberry
c71db93e22
implement admin command to force join list of local users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
strawberry
0a281241ef
bump few dependencies, bump ruwuma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
strawberry
85890ed425
remove some unnecessary HTML from admin commands
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
strawberry
065396f8f5
better document allow_inbound_profile_lookup_federation_requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
strawberry
d92f2c121f
document nginx needing request_uri
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-28 20:52:52 -04:00
Jason Volk
52e356d780
generate ActualDest https string on the fly
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-28 20:52:52 -04:00
Jason Volk
7a09ac81e0
split send from messages; refactor client/messages; add filters to client/context
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-28 20:52:52 -04:00
Jason Volk
6c9ecb031a
re-export ruma Event trait through core pdu
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 21:38:49 +00:00
Jason Volk
e7e606300f
slightly simplify reqwest/hickory hooks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 19:17:41 +00:00
Jason Volk
9787dfe77c
fix clippy::ref_option
...
fix needless borrow
fix clippy::nonminimal_bool
2024-10-27 02:11:07 +00:00
Jason Volk
5e6dbaa27f
apply room event filter to messages endpoint ( #596 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 02:11:07 +00:00
Jason Volk
d281b8d3ae
implement filters for search ( #596 )
...
closes #596
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 02:11:07 +00:00
Jason Volk
21a67513f2
refactor search system
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 02:11:07 +00:00
Jason Volk
f245389c02
add typedef for pdu_ids
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
1e7207c230
start an ArrayVec extension trait
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
0426f92ac0
unify database record separator constants
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
6808671751
merge search service w/ data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
b7369074d4
add RoomEventFilter matcher for PduEvent
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
cf59f738b9
move macros incorrectly moved out of utils to top level
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
8742266ff0
split up core/pdu
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
ee92a33a4d
add some accessors to Ar for common patterns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:11:50 +00:00
Jason Volk
60cc07134f
log error for auth_chain corruption immediately
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
Jason Volk
e175b7d28d
slightly cleanup prev_event eval loop
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
Jason Volk
0e616f1d12
add event macro log wrapper suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
Jason Volk
9438dc89e6
merge and resplit/cleanup appservice service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
Jason Volk
efb28c1a99
add a Map::contains suite to db
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
Jason Volk
49343281d4
additional bool extensions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-27 00:09:05 +00:00
strawberry
b921983a79
send room alias on pusher notification
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
60d84195c5
implement MSC4210, bump ruwuma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
d6991611f0
add require_auth_for_profile_requests config option, check endpoint metadata instead of request string
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
0efe24a028
remove spaces from CSP header to save a few bytes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
2ce91f33af
log method on tracing req spans, fix path sometimes being truncated
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
652b04b9b6
update conduwuit freebsd docs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
f29879288d
document conduwuit k8s helm chart
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
strawberry
89cc865868
bump conduwuit to 0.5.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
Jason Volk
aa768b5dec
distill active and old keys for federation key/server response
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
c769fcc347
move core result into core utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
5cb0a5f676
add config generator controls via attribute metadatas
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
367d153380
add default-directives to config document comments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
3396542168
complete the example-config generator macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
b08c1241a8
add some interruption points in recursive event handling to prevent shutdown hangs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
dd6621a720
reduce unnecessary clone in pdu handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
b8260e0104
optimize for pdu_exists; remove a yield thing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
ca57dc7928
optimize config denylists
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
d35376a90c
aggregate receipts into single edu; dedup presence; refactor selection limits etc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
a74461fc9a
split keys_changed for stronger-type overloads
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
0e0438e1f9
further optimize presence_since iteration
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
c06f560913
add some additional database::de test cases
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
167807e0a6
de-wrapper max_fetch_prev_event; increase default config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
0e55fa2de2
add ready_try_for_each to TryReadyExt extension utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
b505f0d0d7
add (back) query_trusted_key_servers_first w/ additional configuration detail
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
ac75ebee8a
event_handler/timeline service cleanups
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
93130fbb85
add is_ok to futures TryExtExt utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
1fdcab0319
additional sync cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
828cb96ba9
split client/sync
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
55b8908894
merge rooms state_compressor service and data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
84191656fb
slightly cleanup appservice_in_room
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
0b085ea84f
merge remaining rooms state_cache data and service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
4576313a7c
merge rooms user service and data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
ed5b5d7877
merge rooms state service and data
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
d0ee4b6d25
add resolve_with_servers() to alias service; simplify api
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
b4ec1e9d3c
add federation client for select high-timeout requests
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
c0939c3e9a
Refactor server_keys service/interface and related callsites
...
Signed-off-by: Jason Volk <jason@zemos.net >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-26 18:50:29 -04:00
Jason Volk
d82ea331cf
add random shuffle util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
1a09eb0f02
use string::EMPTY; minor formatting and misc cleanups
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
89b5c4ee1c
add timepoint_from_now to complement timepoint_ago in utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
2ed0c267eb
Refactor for structured insertions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
8258d16a94
re-scheme naming of stream iterator overloads
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
19880ce12b
add IgnoreAll directive to deserializer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
d3d11356ee
add serialized insert interface
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
2f24d7117a
further develop serializer for insertions
...
add JSON delegator to db serializer
consolidate writes through memfun; simplifications
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
fc4d109f35
add document comments to config items
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
f67cfcd535
cleanup Config::load()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
2a59a56eaa
initial example-config generator
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
c40d20cb95
add macro util to determine if cargo build or check/clippy.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
43b0bb6a5e
add non-allocating fixed-size random string generator
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
a5e85727b5
add tuple access functor-macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
16f82b02a0
add util to restore state on scope exit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
c9c405facf
relax Sized bound for debug::type_name
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
8ea2dccc9a
sort rustfmt
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:29 -04:00
Jason Volk
e482c0646f
Add constructions and Default for PduBuilder
...
simplify various RoomMemberEventContent constructions
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
f503ed918c
misc cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
57e0a5f65d
additional database stream deserializations for serde_json::from_ elim
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
d526db681f
refactor various patterns for serde_json::from_ elim
...
bump ruma
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
55c85f6851
refactor to pdu.get_content() for serde_json::from_ elim
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
f7af6966b7
refactor to room_state_get_content() for serde_json::from_ elim
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
68315ac112
Add state_get_content(shortid) for serde_json::from elim
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
da34b43302
abstract account-data deserializations for serde_json::from_elim
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
48a767d52c
abstract common patterns as core pdu memberfns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
2b2055fe8a
parallelize calculate_invite_state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
685eadb171
add is_not_found as Error member function; tweak interface; add doc comments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
dd9f53080a
add unwrap_or to TryFutureExtExt
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
4485f36e34
add mactors for true/false
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
a2e5c3d5d3
add FlatOk trait to Result/Option suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
08a2fecc0e
catch panics at base functions to integrate with other fatal errors.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
89a3c80700
split admin-room branch from build_and_append_pdu (fixes large stack warning)
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
56dd0f5139
use loop condition to account for loole channel close
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
Jason Volk
814b9e28b6
fix unnecessary re-serializations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-26 18:50:28 -04:00
strawberry
8eec78e9e0
mark the server user bot as online/offline on shutdown/startup
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
morguldir
9eace1fbbb
fix sliding sync room type filter regression
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
Jason Volk
ba683cf534
fix aliasid_alias key deserialization
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:38:45 -04:00
Jason Volk
bd9a9cc5f8
fix trait-solver issue requiring recursion_limit increase
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:38:45 -04:00
Jason Volk
2d049dacc3
fix get_all_media_keys deserialization
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:38:45 -04:00
Jason Volk
c6b7c24e99
consume all bytes for top-level Ignore; add comments/tweaks
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:38:45 -04:00
strawberry
fa7c1200b5
miniscule spaces code optimisations
...
still terrible though
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
bd56d83045
fix room directory regression
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
ab9a65db5d
add MSC4151 room reporting support
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
54a107c3c4
drop unnecessary error to debug_warn
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
98363852b1
fix: dont add remote users for push targets, use hashset instead of vec
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
4eb7ad79d1
update last_seen_ip and last_seen_ts on updating device metadata
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:45 -04:00
strawberry
115ea03edf
remove unnecessary full type annos
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
a9e3e8f77a
dont send non-state events from ignored users over /context/{eventId}
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
6a81bf23de
dont send events from ignored users over /messages
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
7a59add8f1
add support for reading a registration token from a file
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
ee1580e480
fix list_rooms admin command filters
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
b64a235165
use ok_or_else for a rare error
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
4413793f7e
dont allow sending/receiving room invites with ignored users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
2083c38c76
dont send non-state events from ignored users over sync
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
890ee84f71
dont send read receipts and typing indicators from ignored users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:18 -04:00
strawberry
fafe320899
send EDUs to appservices if in events
...
to_device is not supported yet
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:38:14 -04:00
strawberry
8311952629
bump ruma, cargo.lock, and deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:37:15 -04:00
Jason Volk
36677bb982
optimize auth_chain short_id to event_id translation step
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -04:00
Jason Volk
ab06701ed0
refactor multi-get to handle result type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -04:00
Jason Volk
26dcab272d
various cleanup tweaks/fixes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -04:00
Jason Volk
96fcf7f94d
add rocksdb secondary; fix read_only mode.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -04:00
Jason Volk
6b80361c31
additional stream tools
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -04:00
Jason Volk
a8d5cf9651
Add rocksdb logging integration with tracing.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:30 -04:00
Jason Volk
c569881b08
merge rooms/short Data w/ Service; optimize queries
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:36:28 -04:00
Jason Volk
0e8ae1e13e
add ArrayVec-backed serialized query overload; doc comments
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:32:33 -04:00
Jason Volk
5192927a53
split remaining map suites
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:32:33 -04:00
strawberry
4496cf2d5b
add missing await to first admin room creation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-25 00:32:33 -04:00
Jason Volk
3f7ec4221d
minor auth_chain optimizations/cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:32:33 -04:00
Jason Volk
4776fe66c4
handle serde_json for deserialized()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:32:33 -04:00
Jason Volk
946ca364e0
Database Refactor
...
combine service/users data w/ mod unit
split sliding sync related out of service/users
instrument database entry points
remove increment crap from database interface
de-wrap all database get() calls
de-wrap all database insert() calls
de-wrap all database remove() calls
refactor database interface for async streaming
add query key serializer for database
implement Debug for result handle
add query deserializer for database
add deserialization trait for option handle
start a stream utils suite
de-wrap/asyncify/type-query count_one_time_keys()
de-wrap/asyncify users count
add admin query users command suite
de-wrap/asyncify users exists
de-wrap/partially asyncify user filter related
asyncify/de-wrap users device/keys related
asyncify/de-wrap user auth/misc related
asyncify/de-wrap users blurhash
asyncify/de-wrap account_data get; merge Data into Service
partial asyncify/de-wrap uiaa; merge Data into Service
partially asyncify/de-wrap transaction_ids get; merge Data into Service
partially asyncify/de-wrap key_backups; merge Data into Service
asyncify/de-wrap pusher service getters; merge Data into Service
asyncify/de-wrap rooms alias getters/some iterators
asyncify/de-wrap rooms directory getters/iterator
partially asyncify/de-wrap rooms lazy-loading
partially asyncify/de-wrap rooms metadata
asyncify/dewrap rooms outlier
asyncify/dewrap rooms pdu_metadata
dewrap/partially asyncify rooms read receipt
de-wrap rooms search service
de-wrap/partially asyncify rooms user service
partial de-wrap rooms state_compressor
de-wrap rooms state_cache
de-wrap room state et al
de-wrap rooms timeline service
additional users device/keys related
de-wrap/asyncify sender
asyncify services
refactor database to TryFuture/TryStream
refactor services for TryFuture/TryStream
asyncify api handlers
additional asyncification for admin module
abstract stream related; support reverse streams
additional stream conversions
asyncify state-res related
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:32:30 -04:00
Jason Volk
6001014078
add UnwrapInfallible to Result
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
a5de27442a
re-export crates used by error macros
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
f7ce4db0b0
add is_not_found functor to error; tweak status code matcher
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
a5822ebc27
add missing err! case
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
63053640f1
add util functors for is_zero/is_equal; move clamp to math utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
bd75ff65c9
move common_elements util into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
aa265f7ca4
add err log trait to Result
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
3d4b0f10a5
add expected! macro to checked math expression suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
2709995f84
add MapExpect to Result
...
add DebugInspect to Result
move Result typedef into unit
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
99ad404ea9
add str traits for split, between, unquote; consolidate tests
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
Jason Volk
2db017af37
simplify service trait bounds and lifetimes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-25 00:15:01 -04:00
strawberry
16014e1594
remove ProcSubset=pid from systemd units for now
...
they appear to cause strange rust malloc issues on Debian systems
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 23:51:02 -04:00
strawberry
7e828440f9
allow conduit database version 16
...
Conduit bumped the database version to 16, but did not introduce any
breaking changes. Their database migrations are extremely fragile and risky,
and also do not really apply to us, so just to retain Conduit -> conduwuit
compatibility we'll check for both versions.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 23:44:15 -04:00
strawberry
f6918833d7
remove -unknown- from nix flake
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 23:04:14 -04:00
strawberry
4d7bbe9fb4
tiny micro-optimisations in some config stuff
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:37:40 -04:00
strawberry
75be68fa61
add config option to control sending admin notices of alerts
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:37:34 -04:00
strawberry
0760150822
cache all 3 x86_64 nix devshells in CI
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:08:23 -04:00
strawberry
37a2ba59d0
improve UX of admin media deletion commands, ignore errors by default, support deleting local media too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:02:58 -04:00
strawberry
724711218a
add note that ko-fi takes a fee
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:02:58 -04:00
strawberry
359fb25262
add missing feat_sha256_media to fresh database creations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 22:02:51 -04:00
strawberry
9761e2f10c
fix lockdown_public_room_directory bypass, add appservice exclusion
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 21:38:26 -04:00
strawberry
30e3e45f9f
misc CI improvements, build macOS binaries, flake improvements/fixes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 21:29:17 -04:00
strawberry
e5efd55838
feature-gate direct TLS mode to make rustls/aws-lc-rs optional
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:54:21 -04:00
strawberry
87734a074f
add m.call and m.call.member to list of permissions to set on public rooms
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:53:31 -04:00
strawberry
a7c4a7933d
disable log colours in the complement config
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:52:14 -04:00
strawberry
83becf013c
add config option to disable ANSI log colours
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:51:54 -04:00
strawberry
acb9eae707
add back server name to error sending PDU to remote server
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:51:50 -04:00
strawberry
2eee454a18
docs: nixos and unix socket fail, jemalloc and hardened.nix
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:50:52 -04:00
strawberry
e0b2595905
support reading TURN secret from a file (turn_secret_file)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:49:23 -04:00
strawberry
73afc1fd8f
allow taking multiple --config arguments to "include"/merge more config files
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:49:17 -04:00
strawberry
6acdd0d947
improve some general documentation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:49:13 -04:00
strawberry
e38c37d9e7
allow users to respond to polls by default (org.matrix.msc3381.poll.response)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:49:08 -04:00
strawberry
45254638b1
drop target-cpu optimised builds
...
this seems too broken.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:48:59 -04:00
strawberry
2d54264fbe
bump rust to 1.82.0, rocksdb v9.7.3, ruwuma, and a few nix pkgs
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-24 20:47:51 -04:00
Toby Murray
6c1c7b35a5
Separate command lines
...
I don't think this works if the commands are invoked on the same line with no thing joining them, so separate them on to separate lines.
2024-10-24 15:09:28 -04:00
nisbet-hubbard
8428e7cdf7
Update generic.md
2024-10-19 12:35:20 -04:00
strawberry
e589464954
bump cargo.lock and deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-10-05 22:33:58 -04:00
Jason Volk
0413037246
fix lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-10-05 17:07:37 -07:00
Jacob Taylor
b9a8f8e6c7
automatically scale conduwuit caches by CPU-core-count
2024-10-05 17:07:37 -07:00
strawberry
032b199129
add db query command to get all pushers for a user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-15 19:56:29 -04:00
strawberry
e9e5fe2176
implement MSC4165, removing own power levels on deactivation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-15 14:20:01 -04:00
strawberry
17fd34eb12
dedupe some account deactivation steps, remove all profile fields on deactivation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-15 12:08:07 -04:00
strawberry
895b178720
add admin command to force demote a local user from a room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-15 11:36:47 -04:00
strawberry
a65dd6dfb3
dont allow guests to publish to room directories
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-14 12:37:29 -04:00
strawberry
e146c75279
dont include appservices in room guest access enforcement check
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-14 12:27:22 -04:00
strawberry
d75aebc373
implement generic K-V support for MSC4133, GET/PUT/DELETE
...
no PATCH still yet
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-14 11:16:49 -04:00
morguldir
80b72637e2
ci: enable cachix after restoring the cache
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-13 05:09:10 +02:00
morguldir
a41e63b40e
Add back allow_check_for_updates
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-12 22:51:31 -04:00
strawberry
cf9b72ce3f
remove a few unnecessary muts
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-09 21:41:57 -04:00
strawberry
38552b36e9
make the first user admin if created from CLI / --execute
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-09 21:13:37 -04:00
strawberry
9de780b56c
remove unnecessary displayname requirement on making user admin
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-09 21:10:56 -04:00
strawberry
55f71d3912
bump conduwuit to 0.4.7
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 19:56:53 -04:00
strawberry
61347bee06
advertise support for MSC4133 and MSC4175
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 19:53:33 -04:00
strawberry
38cd88e1e8
remove unnecessary cloning on account deactivation profile updates
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 19:33:21 -04:00
strawberry
b44f7f5476
remove MSC4175 timezone on account deactivation
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 19:23:54 -04:00
strawberry
e888810e67
update complement results for TestFederationThumbnail
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 16:22:02 -04:00
morguldir
02aee2f174
ci: retry attic push 3 times, and continue on errors
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-08 20:51:34 +02:00
morguldir
24c408f4c6
bump rocksdb to 9.6.1, add binutils to devshell
2024-09-08 19:21:23 +02:00
morguldir
1c1f300efe
ci: avoid propagating bash errors immidiately
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-08 17:41:02 +02:00
morguldir
8dccc04b40
nix: explicitly include liburing in the devshell
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-08 17:40:02 +02:00
strawberry
96ab59b5b0
bump cargo.lock
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-08 10:28:21 -04:00
strawberry
c47337f3db
docs: ignore development.md and contributing.md from lychee
...
and update 2 other nix references
Signed-off-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-08 10:24:38 -04:00
morguldir
3e0d404fb4
syncv3: use RoomTypeFilter struct instead of Option<RoomType>
...
Signed-off-by: morguldir <morguldir@protonmail.com >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-07 18:09:21 +02:00
morguldir
593d3bb321
nix: update flake.lock, skip building tests for liburing
...
Signed-off-by: morguldir <morguldir@protonmail.com >
2024-09-08 05:03:30 +02:00
strawberry
f14a253664
add local_only arg to list joined members in room admin cmd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-07 12:46:59 -04:00
strawberry
b3974c569d
log device display name on normal user registrations too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-07 10:10:46 -04:00
strawberry
f163ebf3bb
implement MSC4133 only with MSC4175 for GET/PUT/DELETE
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-07 09:27:35 -04:00
strawberry
5ae9a5ff31
bump nix lockfile, and ruma
...
• Updated input 'attic':
'github:zhaofengli/attic/6d9aeaef0a067d664cb11bb7704f7ec373d47fb2' (2024-08-21)
→ 'github:zhaofengli/attic/bea72d75b6165dfb529ba0c39cc6c7e9c7f0d234' (2024-09-02)
• Added input 'attic/flake-parts':
'github:hercules-ci/flake-parts/8471fe90ad337a8074e957b69ca4d0089218391d' (2024-08-01)
• Added input 'attic/flake-parts/nixpkgs-lib':
follows 'attic/nixpkgs'
• Updated input 'attic/nixpkgs':
'github:NixOS/nixpkgs/d4a7a4d0e066278bfb0d77bd2a7adde1c0ec9e3d' (2024-08-16)
→ 'github:NixOS/nixpkgs/b96f849e725333eb2b1c7f1cb84ff102062468ba' (2024-08-30)
• Updated input 'attic/nixpkgs-stable':
'github:NixOS/nixpkgs/205fd4226592cc83fd4c0885a3e4c9c400efabb5' (2024-07-09)
→ 'github:NixOS/nixpkgs/797f7dc49e0bc7fab4b57c021cdf68f595e47841' (2024-08-22)
• Updated input 'complement':
'github:matrix-org/complement/6e4426a9e63233f9821a4d2382bfed145244183f' (2024-07-30)
→ 'github:matrix-org/complement/39733c1b2f8314800776748cc7164f9a34650686' (2024-08-22)
• Updated input 'crane':
'github:ipetkov/crane/7ce92819802bc583b7e82ebc08013a530f22209f' (2024-08-18)
→ 'github:ipetkov/crane/7e4586bad4e3f8f97a9271def747cf58c4b68f3c' (2024-09-04)
• Removed input 'crane/nixpkgs'
• Updated input 'fenix':
'github:nix-community/fenix/e88b38a5a3834e039d413a88f8150a75ef6453ef' (2024-08-21)
→ 'github:nix-community/fenix/d9afdb4465ba2f20bb73b0ff5d2c2837cafc2e14' (2024-09-06)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/3723e5910c14f0ffbd13de474b8a8fcc74db04ce' (2024-08-20)
→ 'github:rust-lang/rust-analyzer/124c7482167ff6eea4f7663c0be87ea568ccd8c6' (2024-09-05)
• Updated input 'liburing':
'github:axboe/liburing/2d4e799017d64cd2f8304503eef9064931bb3fbd' (2024-08-21)
→ 'github:axboe/liburing/0fe5c09195c0918f89582dd6ff098a58a0bdf62a' (2024-09-06)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/36a9aeaaa17a2d4348498275f9fe530cd4f9e519' (2024-08-21)
→ 'github:NixOS/nixpkgs/ad416d066ca1222956472ab7d0555a6946746a80' (2024-09-04)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-07 09:27:29 -04:00
strawberry
6f643a4b06
bump rust to 1.81.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-06 21:08:21 -04:00
strawberry
80698c0b17
docs: add some more conduwuit development info
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-06 20:33:02 -04:00
strawberry
909eeac5b0
drop target CPU for aarch64 to cortex-a53 instead of cortex-a73
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-06 19:02:04 -04:00
strawberry
f521f88daf
docs: mildly update the NixOS page to ref https://github.com/NixOS/nixpkgs/pull/339260
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-06 19:00:38 -04:00
strawberry
8f7ade4c22
document all the fancy admin room config options and arguments
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 12:44:24 -04:00
strawberry
8849a100fd
dont use HTML for initial welcome message
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 12:11:56 -04:00
strawberry
5dfda2d300
fix one header in readme
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 12:08:38 -04:00
strawberry
c13e9a7c2b
document allow_legacy_media config option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 12:00:08 -04:00
morguldir
393eef431b
syncv3: avoid fetching timelines for invites
2024-08-31 18:58:39 +02:00
Jason Volk
4bac9b33cc
propagate config error for cidr range
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-09-01 11:15:55 +00:00
strawberry
60605e9579
remove unnecessary loop/allocations on CIDR range init
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 00:59:43 -04:00
strawberry
27bfb67d75
add --no-details to admin rooms list command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 00:56:49 -04:00
strawberry
fc1834d629
use codeblocks instead of HTML tables for some admin commands
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 00:44:22 -04:00
strawberry
2fcedad2b1
document ways to recovering admin room access
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-09-01 00:40:17 -04:00
strawberry
b362f0e0fa
fix some other markdown formatting
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-31 16:05:47 -04:00
strawberry
5530e7434a
notify admin room on new room directory publishes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-31 13:18:48 -04:00
strawberry
bfb10cda26
slightly cleanup and simplify client /report endpoint
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-31 12:51:24 -04:00
strawberry
5dbb868936
remove unnecessary loops/allocations in client /capabilities
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-31 12:18:21 -04:00
Jason Volk
14b9511d2e
fix default capture EnvFilter in release mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-31 12:24:11 +00:00
morguldir
7b852352e5
deploying: make traefik config self-sufficient, include well known
2024-08-31 14:09:16 +02:00
Jason Volk
b45df5f7bd
bump appservice requests to v1.7
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-31 09:55:26 +00:00
strawberry
4797183b43
remove unnecessary loop/allocations in /joined_members
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 19:52:55 -04:00
strawberry
d68b71a0aa
add appservice ping client endpoint (MSC2659)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 19:38:15 -04:00
strawberry
922875477f
docs: fix some borked codeblocks
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 19:38:15 -04:00
strawberry
3a623dbdc3
add force_leave_room admin command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 17:17:00 -04:00
strawberry
ae98610c50
docs: document new startup --execute admin cmd flag/argument
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 16:42:37 -04:00
strawberry
bceed3c829
dont debug print startup admin command content body
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 15:01:54 -04:00
strawberry
b89d2ceccd
bump syn, serde, and tokio
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 12:57:50 -04:00
renovate[bot]
eaa8997506
Update nixos/nix Docker tag to v2.24.4
2024-08-30 12:57:50 -04:00
strawberry
42a42b24a9
renovate: exclude rust deps we forked / cant easily bump or upgrade
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 12:57:50 -04:00
strawberry
8d7e5ca2bb
redirect/handle r0 media paths too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 12:57:50 -04:00
strawberry
119cc2eec0
fix typo with reqwest builder for disabling zstd
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-30 12:57:50 -04:00
morguldir
9fde835673
syncv3: read receipts extension (MSC3960)
2024-08-30 18:23:42 +02:00
morguldir
bf9d498621
syncv3: check timestamps of all the rooms in the timeline
2024-08-30 18:20:18 +02:00
morguldir
f8cf57c1fb
syncv3: fix bump types and only set timestamp if we find an event
2024-08-30 11:39:14 +02:00
morguldir
26a6d349dc
nix: fix toolchain splicing warning
...
we load the toolchain from a file so not sure how we would create a toolchain based on pkgs 🤔
2024-08-30 10:35:05 +02:00
morguldir
77c0c13a83
syncv3: support per room account data
2024-08-30 10:31:08 +02:00
morguldir
36b8de1339
syncv3: include invited rooms in the count
2024-08-30 09:30:50 +02:00
morguldir
29a6065bae
syncv3: include latest timestamps, calculated from a default set of types
...
List borrowed from synapse
2024-08-24 14:52:48 +02:00
morguldir
f4c8b77377
syncv3: include the invite_state in the response
2024-08-24 07:33:07 +02:00
morguldir
85400d15bc
syncv3: reset the connection after restarts
2024-08-24 06:57:31 +02:00
morguldir
13334a88ca
syncv3: handle empty conn_id by mapping it to a predefined string
2024-08-24 06:45:33 +02:00
morguldir
351062eb82
syncv3: add support for filtering invites and room types
2024-08-24 06:44:32 +02:00
morguldir
001523ec81
Avoid panicing during sliding sync if the user isn't in any rooms
2024-08-24 05:23:51 +02:00
morguldir
0a5f18ed83
reformat: make markdown files wrap at 80 chars
2024-08-24 05:13:43 +02:00
morguldir
16ce62302a
.editorconfig: use tabs for rust files
2024-08-24 05:11:38 +02:00
Jason Volk
0068624cd6
add exception for upload when allow_legacy_media=false
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
2837151dba
redirect legacy url preview
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
3d8757c896
update complement for new media
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
b175892178
support MSC4180 unstable stable flag for MSC3916
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
d8a1996e24
bump ruma for deprecation warning suppression
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
a934a7f687
freeze remote media via legacy endpoints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
1638be0339
add authenticated media client api
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
ea2343850f
add remote fetch suite for authenticated media
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
fcfb323cd5
relegate legacy media handlers to separate file
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
84a8e36120
add federation endpoints for authenticated media
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-30 08:24:52 +00:00
Jason Volk
47f9c69eff
split media related migrations into service dir
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
73af171830
add config option for pruning missing media
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
9654dd9218
Fix stale example config for media_compat_file_link
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
dea5fee6a3
abstract duration parsing into utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
4d42a29c51
add thumbnail dimension structure
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
7b0e830f4c
add interface to get file metadata w/ admin command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
e7b2c14280
tag admin room m.server_notice on grant
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
bb5f2556c3
improve admin command error propagation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
f047675a63
rename admin/handler to admin/processor
...
Handler is overused. Handler ought to mean the end-function handling the
command. The command processor is the central dispatcher to the handler.
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
f4db6292b3
add smoketest-assist execution mode
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
fcb9d04d9e
add program argument for functional testing; simplify execute argument
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
ffc41cb01f
split admin service startup related into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
e4bcbb8088
propagate errors from reqwest client constructions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
e4ba34a638
remove zombie globals/client file
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
strawberry
d5e7befaa9
move a few MXC parsing logs to trace
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
1157140657
mark sending ruma matrix version as 1_11
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
fb49e37067
add admin command to delete all remote media from a specific server
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
8923c9a227
add admin command to redact an individual event from a local user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
2b7e0dcb80
add admin command to delete all local media by a local user
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
e790785db8
fix: force argument for delete past remote media wasn't fully functional
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
6b65a8fc86
add functions to delete media from specific local users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
a79ae7d1a2
add missing MXC URI prefix bytes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
156199a218
add --no_details to list banned rooms command
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
c16e5b50eb
update complement results
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
47ca835c20
initialise default TLS crypto provider with aws_lc_rs manually
...
we use ring for hashing state and ruma, and reqwest/rustls defaults
to aws_lc_rs, so we have to manually pick which one. there doesn't
seem to be a way to just use one for some reason, so lets just use
the new aws_lc_rs.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
morguldir
dc3d9ebbf1
Bump flake.lock to avoid https://github.com/NixOS/nixpkgs/issues/332957 for cargo-audit
2024-08-29 19:19:20 +00:00
morguldir
c1bcdeaf01
Add olm to permittedInsecurePackages for CI
2024-08-29 19:19:20 +00:00
strawberry
08efebd5af
bump rocksdb to v9.5.2
...
• Updated input 'rocksdb':
'github:girlbossceo/rocksdb/60fa2881f3b60b0b77ad3ded0904d432a98f392c' (2024-08-18)
→ 'github:girlbossceo/rocksdb/5a67ad7ce46328578ee5587fb0c23faa03d14e67' (2024-08-22)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
morguldir
ddacda9ecf
add heroes support to sliding sync responses
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
1e4b1e516e
ci: allow olm vulnerable library in nixpkgs for ci
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
fadb2de5bf
docs: document list of projects conduwuit has forked
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
edd42974e5
bump cargo.lock and deps, add zstd compression to reqwest client
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
e0fd84149d
bump nix flake.lock
...
• Updated input 'attic':
'github:zhaofengli/attic/26b9417bde03edc6280d1f7ce709cd619cdb72d4' (2024-08-13)
→ 'github:zhaofengli/attic/acf3c351f8de47c6857f31948ab253f9c7ce2a6f' (2024-08-19)
• Updated input 'attic/crane':
'github:ipetkov/crane/480dff0be03dac0e51a8dfc26e882b0d123a450e' (2024-05-29)
→ 'github:ipetkov/crane/4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4' (2024-08-06)
• Updated input 'attic/flake-compat':
'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17)
→ 'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33' (2023-10-04)
• Updated input 'attic/flake-utils':
'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
→ 'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11)
• Added input 'attic/flake-utils/systems':
'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
• Updated input 'attic/nixpkgs':
'github:NixOS/nixpkgs/07262b18b97000d16a4bdb003418bd2fb067a932' (2024-03-25)
→ 'github:NixOS/nixpkgs/d4a7a4d0e066278bfb0d77bd2a7adde1c0ec9e3d' (2024-08-16)
• Updated input 'attic/nixpkgs-stable':
'github:NixOS/nixpkgs/44733514b72e732bd49f5511bd0203dea9b9a434' (2024-03-26)
→ 'github:NixOS/nixpkgs/205fd4226592cc83fd4c0885a3e4c9c400efabb5' (2024-07-09)
• Updated input 'cachix':
'github:cachix/cachix/bd558fd32f55d6df1c3d496bade90335a1a6044d' (2024-08-10)
→ 'github:cachix/cachix/72bb6b9987149f53f2458bb1596306c621d8b804' (2024-08-14)
• Updated input 'crane':
'github:ipetkov/crane/4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4' (2024-08-06)
→ 'github:ipetkov/crane/7ce92819802bc583b7e82ebc08013a530f22209f' (2024-08-18)
• Updated input 'fenix':
'github:nix-community/fenix/296d44c440302980824c5f3b67e477cf0522e0c1' (2024-08-13)
→ 'github:nix-community/fenix/b6a1c29a8f460af63f66cad2b5acf3b78867603e' (2024-08-20)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/32a86cb1dad2b208e8f36f1bb50c2e4806b0371f' (2024-08-12)
→ 'github:rust-lang/rust-analyzer/979e3b54f70f6f231c117a5d628b98106e5c7d31' (2024-08-19)
• Updated input 'liburing':
'github:axboe/liburing/401b3e4bde2316d35e93b548269c72bbb64adc02' (2024-08-13)
→ 'github:axboe/liburing/1ecfda19594e68b760a09b91ef442f7e76a3514e' (2024-08-19)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/a58bc8ad779655e790115244571758e8de055e3d' (2024-08-11)
→ 'github:NixOS/nixpkgs/8a3354191c0d7144db9756a74755672387b702ba' (2024-08-18)
• Updated input 'rocksdb':
'github:girlbossceo/rocksdb/911f4243e69c2e320a7a209bf1f5f3ff5f825495' (2024-07-13)
→ 'github:girlbossceo/rocksdb/60fa2881f3b60b0b77ad3ded0904d432a98f392c' (2024-08-18)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
23690fd837
make jemalloc stats an optional feature
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
867050df9e
use fork of rust-rocksdb and jemallocator
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
Jason Volk
50e66a2976
add partial envfilter support for admin log capture; conf item
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
4d0fc41222
add conf item for federation loopback prevention bypass
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
152ae705a0
refactor for structured Mxc type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
54e6a41404
move remote media fetchers into services
...
minor error simplification
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
c3f00f4d15
remove redundant CSP directives which effectively default to the same value
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
43300ea41e
Make axum-dual-protocol a non-feature. Fix build issues.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
17a54bc4f8
refactor for ruma cow headers; update for ContentDisposition type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
f540bed61e
propagate additional errors from db options
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
2cf472a69b
elide header from command output when no logs captured
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
b2d8da489c
add configurable automatic admin command execution after startup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
025afb61cb
bump ruma again for borrowed identifier deserialization
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
40d53563fc
integrate ruma js_int errors into enum
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
5db816277b
add from serde_json error to enum
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
efa70b9e78
add serde de/ser impls for error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
bac795de5f
use transparent thiserror attribute; cleanup error variants
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
f69f4c479c
propagate error from database options building
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
992f725362
allow expression to defer macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
0e56d1c7a2
add math::try_into util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
b4d5282123
add nullary type_name debug util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
15ad7523aa
split Destination enum into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
Jason Volk
eb6e509ad8
use where clause for long lines
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-29 19:19:20 +00:00
strawberry
4432c06c86
remove local room aliases and unpublish room when banning a room
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
bc5ecb0c72
attempt to recreate server default push rules more if broken/empty content/etc
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
f1b41ce6e3
remove unnecessary alias check on deleting room aliases
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
826b1d1d62
remove unnecessary "unsupported room version" error on PDU processing to allow custom room versions properly
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
c40ed0c98e
add missing remove aliases on room upgrade transferring room aliases
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
Matthias Ahouansou
2d9aab2e79
support timestamped appservice messaging
...
Co-authored-by: strawberry <strawberry@puppygock.gay >
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
66679c7522
nix: bump flake.lock
...
• Updated input 'attic':
'github:zhaofengli/attic/6139576a3ce6bb992e0f6c3022528ec233e45f00' (2024-07-09)
→ 'github:zhaofengli/attic/26b9417bde03edc6280d1f7ce709cd619cdb72d4' (2024-08-13)
• Updated input 'cachix':
'github:cachix/cachix/4e9e71f78b9500fa6210cf1eaa4d75bdbab777c3' (2024-07-02)
→ 'github:cachix/cachix/bd558fd32f55d6df1c3d496bade90335a1a6044d' (2024-08-10)
• Updated input 'cachix/devenv':
'github:cachix/devenv/bb32aa986f2f695385e54428d0eaf7d05b31466e' (2024-06-30)
→ 'github:cachix/devenv/ff5eb4f2accbcda963af67f1a1159e3f6c7f5f91' (2024-08-08)
• Updated input 'cachix/devenv/pre-commit-hooks':
follows 'cachix/pre-commit-hooks'
→ follows 'cachix/git-hooks'
• Added input 'cachix/git-hooks':
'github:cachix/git-hooks.nix/c7012d0c18567c889b948781bc74a501e92275d1' (2024-08-09)
• Added input 'cachix/git-hooks/flake-compat':
follows 'cachix/flake-compat'
• Added input 'cachix/git-hooks/gitignore':
'github:hercules-ci/gitignore.nix/637db329424fd7e46cf4185293b9cc8c88c95394' (2024-02-28)
• Added input 'cachix/git-hooks/gitignore/nixpkgs':
follows 'cachix/git-hooks/nixpkgs'
• Added input 'cachix/git-hooks/nixpkgs':
follows 'cachix/nixpkgs'
• Added input 'cachix/git-hooks/nixpkgs-stable':
'github:NixOS/nixpkgs/194846768975b7ad2c4988bdb82572c00222c0d7' (2024-07-07)
• Updated input 'cachix/nixpkgs':
'github:NixOS/nixpkgs/00d80d13810dbfea8ab4ed1009b09100cca86ba8' (2024-07-01)
→ 'github:NixOS/nixpkgs/cb9a96f23c491c081b38eab96d22fa958043c9fa' (2024-08-04)
• Removed input 'cachix/pre-commit-hooks'
• Removed input 'cachix/pre-commit-hooks/flake-compat'
• Removed input 'cachix/pre-commit-hooks/gitignore'
• Removed input 'cachix/pre-commit-hooks/gitignore/nixpkgs'
• Removed input 'cachix/pre-commit-hooks/nixpkgs'
• Removed input 'cachix/pre-commit-hooks/nixpkgs-stable'
• Updated input 'crane':
'github:ipetkov/crane/2d83156f23c43598cf44e152c33a59d3892f8b29' (2024-07-09)
→ 'github:ipetkov/crane/4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4' (2024-08-06)
• Updated input 'fenix':
'github:nix-community/fenix/5087b12a595ee73131a944d922f24d81dae05725' (2024-07-13)
→ 'github:nix-community/fenix/296d44c440302980824c5f3b67e477cf0522e0c1' (2024-08-13)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/ffbc5ad993d5cd2f3b8bcf9a511165470944ab91' (2024-07-11)
→ 'github:rust-lang/rust-analyzer/32a86cb1dad2b208e8f36f1bb50c2e4806b0371f' (2024-08-12)
• Updated input 'liburing':
'github:axboe/liburing/1d674f83b7d0f07553ac44d99a401b05853d9dbe' (2024-07-12)
→ 'github:axboe/liburing/401b3e4bde2316d35e93b548269c72bbb64adc02' (2024-08-13)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/7e7c39ea35c5cdd002cd4588b03a3fb9ece6fad9' (2024-07-12)
→ 'github:NixOS/nixpkgs/a58bc8ad779655e790115244571758e8de055e3d' (2024-08-11)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
a2afdbe1fa
bump various cargo deps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
f86ab0cd03
bump rust toolchain to hotfix 1.80.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
7b8ef3b070
dont apply new_user_displayname_suffix to appservice user registrations
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
83ef4eecc7
reduce unnecessary logging on URL preview and event, use sensible error code for URL previews
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
52ccad04a6
apply forbidden_remote_server_names to outbound sending and inbound federation handling
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
8fe19a6ef0
dont send duplicate membership update events if pfp and display name are same
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
fd96f597cd
respect m.room.guest_access on room joins
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
982f9eb780
implement MSC4166, returning M_NOT_FOUND if no TURN URIs are set
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 19:19:20 +00:00
strawberry
aeb6fbe70f
remove matrix.org code of conduct from conduwuit's foundational rules
...
while their code of conduct has very great baseline points, this is not a code of
conduct the foundation upholds themselves, so it would be a disserve to mislead
folks into using this as a baseline.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-29 14:24:37 -04:00
Aurora Master
d264935625
Update ci.yml
2024-08-27 13:56:43 -04:00
Matthew Scheffel
28cd784972
paginate_relations_with_filter DRY & flip ordering #504
2024-08-16 22:19:10 -04:00
strawberry
6662aa21ef
bump complement to 6e4426a9e63233f9821a4d2382bfed145244183f
...
• Updated input 'complement':
'github:matrix-org/complement/0d14432e010482ea9e13a6f7c47c1533c0c9d62f' (2024-07-10)
→ 'github:matrix-org/complement/6e4426a9e63233f9821a4d2382bfed145244183f' (2024-07-30)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-08 17:18:26 -04:00
Jason Volk
9b9a91f6ef
add our_modules() for log capture filter convenience
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
94b805de0b
generalize log capture to all admin commands; simplify handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
eded585f79
rename some command types for consistency
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
a552321287
add Clap to Error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
f98bfbbdcd
add string stream convenience util; add ?Sized bounds on log fmt functors
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
e9ab548445
tweak some tracing log levels
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
15184d1a79
Add span scope names array to capture filter data; optimize values visitor vec.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
0c6bbde25f
fix markdown table formatter for log capture
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
13aa353765
add arrayvec as a dependency
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
ac941a801a
add interface to query rocksdb properties w/ admin cmd
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
f261d44edb
add method to iterate opened database columns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
849cfdcdfa
add rocksdb stats level option with conf item
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
Jason Volk
1470331f7e
add repair_mode documentation to example conf
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-08 18:09:21 +00:00
strawberry
dcaa96a79f
sync: always include_redundant_members when using element_hacks feature
...
see:
- https://github.com/matrix-org/matrix-js-sdk/pull/4329
- 568051c0f0/synapse/handlers/pagination.py (L639)
- https://matrix.to/#/!n8DKU1BeeJilOJXDPr:seirdy.one/$gvGF7GuPrLPR8nHg4UiHvP-ZVwuiMkYS8O6VlsDCW9w?via=awawawawawawawawawawawawawawawawawawawawawawawawawawawawawawaw.gay&via=transfem.dev&via=matrix.org
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:07:01 -04:00
strawberry
101a966922
docs: mention potential DNS issues when using docker
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:06:28 -04:00
strawberry
57940f38ea
set last_seen_ip on new/initial device creation
...
this is not automatically updating, but at least have something
useful there instead of nothing
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:06:19 -04:00
strawberry
22f8c339fc
debian: remove --verbose from postinst
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:06:09 -04:00
strawberry
c896acb729
dont consider presence status changes apart of presence spam
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:06:01 -04:00
strawberry
7f1bc490d6
docs: update configuration docs for the new -O option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:05:27 -04:00
strawberry
1091c30845
docs: mention FreeBSD specific build commandline for deployment
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:05:16 -04:00
strawberry
12d9e454db
display success/failure count in get-remote-pdu-list
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:04:51 -04:00
strawberry
82b973a8b1
nix: use cortex-a73 / ARMv8-a, strip and remove unnecessary bloat
...
for some reason gcc is included in OCI images
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:04:41 -04:00
strawberry
71ee31a014
add missing newline in banned room list output
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-07 12:04:12 -04:00
skedastically
69b4ec81b6
update container registry links ( #549 / #548 )
...
* gitlab URL
* Update docker.md
2024-08-05 15:23:40 -04:00
Jason Volk
fe0969e7ca
fix release-max-perf profile [ci skip]
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-01 13:37:27 +00:00
Jason Volk
2e3e14b045
refactor some additional errors
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-01 10:58:59 +00:00
Jason Volk
f51d4237c7
bump cargo
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-01 10:58:59 +00:00
strawberry
d8a87258d6
rust: bump console-subscriber to 0.4
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-01 10:58:58 +00:00
strawberry
3da2242730
bump tokio, use default-features = false for more crates
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-08-01 10:58:58 +00:00
Jason Volk
5add9a8c34
support field values in err! macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-08-01 10:58:58 +00:00
Jason Volk
5b1642f641
split server_keys from event_handler into service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 21:10:22 +00:00
Jason Volk
eb94aa7079
remove dangling sending/resolve unit
...
this was probably un-deleted during a rebase conflict resolution,
but remained outside of the mod tree.
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 21:10:22 +00:00
Jason Volk
24884c3b9b
move media helpers from api to services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 03:04:17 +00:00
Jason Volk
a0a002b17f
disable legacy media compat by default; cleanse directory when disabled
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 03:04:17 +00:00
Jason Volk
f632b06e6d
use Services instead of Server for middleware function state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 03:04:17 +00:00
Jason Volk
1f88866612
optimize api state extractor
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-31 03:04:17 +00:00
Jason Volk
ccef1a4c8b
add formal wrapping for api state
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 21:32:43 +00:00
Jason Volk
5c258f41c8
fixes for modules
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
15126ee1b2
additional weak references where applicable
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
e37ac56dba
use weak references to break services dependency cycle
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
a74613be96
improve database repair/shutdown log messages
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
a95ded167f
fix type complexity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
95121b6e05
use single-line codeblock for specific features lists
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
e6884ef13a
fix various nightly incidental lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
49033db2b8
fix trailing body passed to commands
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
ddc8c3b46c
split presence data object into file; improve service encapsulations
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
Jason Volk
ea95627dce
hoist rustc flag string array to global const
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-28 05:59:12 -07:00
strawberry
c3e751542d
ci: default to empty string to "unset" variables
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-28 05:59:12 -07:00
strawberry
4b765aa17c
ci: only use sccache conditionally
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-27 15:28:17 -04:00
Jason Volk
954cfc6bb7
bump cargo
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 09:08:51 +00:00
Jason Volk
2f85a5c1ac
de-global services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 09:08:51 +00:00
Jason Volk
7e50db4193
de-global services from admin
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
7a3cc3941e
parse generics for implement macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
ca82b59c6f
upgrade to syn 2.x
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
3b5607ecdc
add macro for out-of-line definitions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
96f6a75bc8
add refutable pattern function macro
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
68f42baf73
rename admin Command to CommandInput
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
271959ee27
add debug list-dependencies admin command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
c423a83656
add cli override for any configuration item
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
4e975887cf
add command to list features
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
8bb69eb81d
add simple ast dimension diagnostic
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
2100618d47
add rustc build flags reflection
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
936d2915e2
add cargo manifest reflection
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
f014231644
add conf item to disable rocksdb compaction
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
7d487d53d8
de-cycle conduit_macros from conduit_core.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
d7d874f88d
start core info module; move version to info
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
ee864bcd9e
normalize admin debug command handlers
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
111cbea6fc
add debug time command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
85f734ec74
proc macro ✨
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
2468e0c3de
unconditionally derive Debug on subcommand enums
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
f841c2356d
preliminary get-signing-keys command
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
c64adbec0e
split signing_keys_for from verify_keys_for
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
4458efa2b2
rename signing_keys_for to verify_keys_for
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
5c0bf29122
add util for camel to snake case conversion
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
91b49a7786
add basic exchange util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
5a17fbccf5
add type_name debug tool
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
5ed95ea357
contextualize handler in object
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
ccfa939bd3
split admin command enum from handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
263e338088
add --console program option to automatically spawn
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
2fb43dd38d
infra to synthesize program options with config options
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
59efabbbc2
de-global server_is_ours / user_is_local
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
010e4ee35a
de-global services for services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
992c0a1e58
de-global services for admin
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
9b20c6918f
add indirection for circular-dependencies between services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
3dc91525ce
fix over-tabulation
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
a88f913a17
enrich interface for inter-service referencing
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
4343218957
initialize some containers with_capacity
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:42 +00:00
Jason Volk
b116984e46
use mutex_map for url preview lock
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:41 +00:00
Jason Volk
b0ac5255c8
move sending service impl properly back to mod root
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:41 +00:00
Jason Volk
29fc5b9b52
de-global some services in services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:41 +00:00
Jason Volk
3ccd9ea326
consolidate all resolution in resolver; split units
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 08:26:41 +00:00
Jason Volk
8a2ae401df
convert Client into Service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:54:05 +00:00
Jason Volk
f465d77ad3
convert Resolver into a Service.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:54:05 +00:00
Jason Volk
2fd6f6b0ff
add polymorphism to Services
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:54:05 +00:00
Jason Volk
8b6018d77d
de-global services() from api
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:54:03 +00:00
Jason Volk
463f1a1287
only use graceful shutdown w/ axum-server fixed
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-27 07:53:09 +00:00
strawberry
04fc87ad07
ci: try to free more runner storage/space
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
dc573f4562
ci: run free disk space for documentation workflow too
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
74826dcb94
resolve lint_groups_priority lint ( https://github.com/rust-lang/cargo/issues/12918 )
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
b20c4e0539
bump MSRV and rust toolchain to 1.80.0
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
fb8a2846df
ci/nix: use a "test" cargo profile
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
04971d0430
ci: cache all crates in rust-cache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
f098532b09
ci: retry nix-build-and-cache 3 times before failing due to attic issues
...
attic just sucks and every 5 CI runs guarantees at least 2 false
gateway errors that i can't do anything about.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
60927c1c72
ci: try using sccache
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
03296412ab
ci: validate deb packages produced
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
934ab6a4fe
nix: add dpkg to devshell packages for dpkg-deb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:10 -04:00
strawberry
1378399f9d
ci: build and upload static debug/dev binaries and OCI images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-25 22:50:08 -04:00
strawberry
09680f653f
nix: add outputs for debug builds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 19:55:49 -04:00
strawberry
39f19c483a
nix: use all-features for complement OCI images
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 19:55:46 -04:00
strawberry
39c0f4ea3d
delete unused bad_signature_ratelimiter rm'd in 67f9553790
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 19:12:20 -04:00
strawberry
405167fc3f
add harmless check for presence PUT matching sender user
...
this is already done but we just don't error and always
use the sender user. match synapse behaviour where we check
and error.
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
b13ea4ff45
fix non-working admin room topic accessor output
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
100fc5e0f7
bump tokio to 1.39.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
96f9d64111
add back is_historical check on admin user creations from accidental removal
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
30ad5da5f1
use ruma-identifiers-validation feature from our ruma
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
ce0ca96df4
clarify that sentry_traces_sample_rate is a percentage
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
4851ad26e2
bump cargo.lock, lock jemallocator to 0.5.4
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:25 -04:00
strawberry
328759a60f
ci: run quick smoke test of x86_64 static binary
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-24 01:41:21 -04:00
strawberry
463fa4fd53
nix: dont build unnecessary jemalloc docs or cxx integration
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-22 17:57:51 -04:00
strawberry
db494e0d68
bump conduwuit to 0.4.6
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-22 17:57:51 -04:00
Myned
4788040458
fix media_startup_check typo
...
Signed-off-by: Myned <dev@bjork.tech >
2024-07-22 13:31:20 -04:00
Matthew Scheffel
06531993f6
Calculate Age Rather than Hardcoding to 1 ( #531 )
2024-07-17 21:47:59 -04:00
strawberry
c29197b3f4
ci: dont publish -rc tags as latest docker branches
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-16 00:44:47 -04:00
Jason Volk
739eab46d5
refactor thumbnail math
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:40:18 +00:00
Jason Volk
923a98eb66
partially revert dc18f89c0b for now
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:40:18 +00:00
Jason Volk
4430e4dee0
de-global some services()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
d67f19a55d
cleanup some error callsites
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
b903b46d16
split thumbnailing related into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
167559bb27
rename FileMeta::file to Option<content>
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
838e4b9d8d
log more details for panic in tower handler
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
038b71fc9d
add state to router
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
720fbd09c2
move routes into api router top level
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
c42cb90dd3
simplify result handler / 405 error interposition
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
Jason Volk
5950355348
break from wait loop on empty taskset
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-16 02:39:49 +00:00
strawberry
f79bd2ac72
bump ruma-identifiers-validation to c51ccb2c68d2e3557eb12b1a49036531711ec0e5
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
80ec0e31b1
bump tracing fork
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
bda44b16b1
ci: run nix dynamic build test with DIRENV_DEVSHELL=dynamic
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
e2280aa1a5
ci: try removing --impure
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
bdf2de076a
ci: set NIX_CONFIG with our binary caches for the earlier CI steps
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
1797fec3c9
nix: disable USE_RTTI for rocksdb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-15 22:13:05 -04:00
strawberry
188fa5a073
patch rustyline-async and use no default features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
f0c63c539b
nix: dont build more unnecessary tests/tools for rocksdb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
649e9da1f8
nix: try to make armv8.2-a / cortex-a55 optimised builds if target is aarch64
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
df28359a19
nix: dont build rocksdb core tools (ldb / sst_dump) (-DWITH_CORE_TOOLS=1)
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
9370e93a8d
nix: try to make x86-64-v2 optimised builds if target is x86_64
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
bdd5845490
docs: suggest recursive chmod
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:18 -04:00
strawberry
bacffd6174
rename conduit_cache_capacity_modifier to cache_capacity_modifier
...
this prefix causes you to require setting the environment variable
to `CONDUWUIT_CONDUIT_CACHE_CAPACITY_MODIFIER`
alias this so we dont break any configs
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:08:15 -04:00
strawberry
a1bfd7a018
nix: dont include experimental feature on all-features builds
...
this is just future infra for it
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
strawberry
7009f56a7a
fix user directory publishing access controls
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
strawberry
2c0bfac43e
nix: bump flake.lock and rocksdb to v9.4.0
...
• Updated input 'attic':
'github:zhaofengli/attic/717cc95983cdc357bc347d70be20ced21f935843' (2024-06-01)
→ 'github:zhaofengli/attic/6139576a3ce6bb992e0f6c3022528ec233e45f00' (2024-07-09)
• Updated input 'complement':
'github:matrix-org/complement/bc97f1ddc1cd7485faf80c8935ee2641f3e1b57c' (2024-07-02)
→ 'github:matrix-org/complement/0d14432e010482ea9e13a6f7c47c1533c0c9d62f' (2024-07-10)
• Updated input 'crane':
'github:ipetkov/crane/0aed560c5c0a61c9385bddff471a13036203e11c' (2024-07-06)
→ 'github:ipetkov/crane/2d83156f23c43598cf44e152c33a59d3892f8b29' (2024-07-09)
• Updated input 'fenix':
'github:nix-community/fenix/abc0549e3560189462a7d394cc9d50af4608d103' (2024-07-08)
→ 'github:nix-community/fenix/5087b12a595ee73131a944d922f24d81dae05725' (2024-07-13)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/a5b21ea0aa644dffd7cf958b43f11f221d53404e' (2024-07-07)
→ 'github:rust-lang/rust-analyzer/ffbc5ad993d5cd2f3b8bcf9a511165470944ab91' (2024-07-11)
• Updated input 'liburing':
'github:axboe/liburing/7b3245583069bd481190c9da18f22e9fc8c3a805' (2024-06-22)
→ 'github:axboe/liburing/1d674f83b7d0f07553ac44d99a401b05853d9dbe' (2024-07-12)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/655a58a72a6601292512670343087c2d75d859c1' (2024-07-08)
→ 'github:NixOS/nixpkgs/7e7c39ea35c5cdd002cd4588b03a3fb9ece6fad9' (2024-07-12)
• Updated input 'rocksdb':
'github:girlbossceo/rocksdb/a935c0273e1ba44eacf88ce3685a9b9831486155' (2024-07-02)
→ 'github:girlbossceo/rocksdb/911f4243e69c2e320a7a209bf1f5f3ff5f825495' (2024-07-13)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
strawberry
fcb6c8a113
bump rust-rocksdb
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
Charles Hall
1ab77aeb91
don't strip binary for dev builds
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:06:52 -04:00
strawberry
3d73b53136
update complement results
...
we dont implement authenticated media yet
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-14 12:35:00 +00:00
strawberry
101fdbc9b1
bump cargo.lock
...
Updating bytes v1.6.0 -> v1.6.1
Updating cc v1.1.0 -> v1.1.3
Updating http-body v1.0.0 -> v1.0.1
Updating syn v2.0.70 -> v2.0.71
Updating thiserror v1.0.61 -> v1.0.62
Updating thiserror-impl v1.0.61 -> v1.0.62
Signed-off-by: strawberry <strawberry@puppygock.gay >
Co-authored-by: Jason Volk <jason@zemos.net >
2024-07-14 12:35:00 +00:00
Jason Volk
e53c2fbc5a
fix tracing flame envfilter defaults; remove preprocessed cfgs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
95006f7e46
fix unnecessary preprocessing cfgs
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
cce270d938
tokio metrics
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
5ec49b3f62
split csp into array; integrate error; cleanup type
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
e4dc4a1ba5
fix graceful shutdown on unix socket
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
d2fb6d04c9
cleanup pending transactions before sender worker completes
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
05efd9b044
elaborate error macro and apply at various callsites
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
b3f2288d07
add constant-expression string utils
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
084751ae38
refactor globals::updates into a Service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
aa7a310200
move media startup into service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
38c989a07e
split service manager into unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
5be679e17b
refactor main task stack through service mgr
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
b8baa1223d
reduce RoomVersionId patterns
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
b87f1649d4
split error into directory
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
4a6f089b23
move some config checks into check unit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
4600c7f32d
move infallible handling into error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
4cc92dd175
refactor Error::bad_config
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
93ec4e579b
error macro suite
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
c111d2e395
abstract service worker pattern; restart on panic.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
03d890cd49
move admin tests into unit; fix
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
a35b6cbfdd
use separate configurable jaeger envfilter
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-14 11:31:39 +00:00
Jason Volk
5570220c89
use separate but configurable envfilter for sentry
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
899b79873e
propagate errors from tracing init
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
57969f9480
fix large stack array exceeding limit
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
d88ab37120
add configuration for sentry to send panics and errors
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
bc58e5002d
add interface for current log filter; fix console suppression
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
160f48043e
add selective log handle reload
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
0023b09f5b
make tracing reload handles into a named map
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
db3c718ddc
add config for sentry stacktraces
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
e73aa2aa21
log propagated errors in admin service; minor cleanup
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
61f2a3c68b
catch panic from admin commands
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
0627b46f40
add panic suite to Error
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
f10f5319db
elaborate error log functor stack
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
16e76d45cb
improve alloc stats interface; fix admin command formatting
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
2a304c2b6c
add some usage stats output on the mutex maps
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
271f720286
move mutex maps out of globals into respective service
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
2d251eb19c
cleanup on drop for utils::mutex_map.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
01b2928d55
add make user admin command ( #136 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
50c2d2b801
add command to force join user to room ( #136 )
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
5dcdafe207
take local join branch when remote join would fail
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
c62d653989
tweak some log levels
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
Jason Volk
454dd43d4c
fix membership route ABA's
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-13 21:20:05 +00:00
AlexPewMaster
8077e910f6
Fix CONDUWUIT_CONFIG variable in docker-compose.yml files (+ remove deprecated compose version)
2024-07-13 17:16:39 -04:00
strawberry
b5d4a1c1b0
drop harmless state event not found message to debug_info
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
aa9540af21
slightly simplify send_state_event route
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
080975ab0e
adjust/update complement conduwuit config.toml
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
f129d90900
nix: delete -DWITH_SNAPPY=1 from rocksdb cmakeFlags
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
53223a4d5f
remove snappy as a default feature
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
05befa4ba2
nix: make enableLiburing in rocksdb conditional instead of default true
...
for some reason enableLiburing in nixpkgs rocksdb is default
true which breaks Darwin entirely
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
a8e690f22b
nix: unset patches in rocksdb
...
we have the patch already and i dont want to make it nix
exclusive by reverting it in my rocksdb fork
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
192c1e08da
add exclude_disabled and exclude_banned room list admin cmd arguments
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
0fa6976d86
add client IP and user logging on join, remove unnecessary Option
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
93e7cf461d
add client IP logging to media requests
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
d036d8adcb
bump rust-rocksdb to 0.27.1
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
7a4bbe2ff6
nix: drop hardened_malloc feature from all-features builds
...
this is non-functional and i've spent far too long trying to figure
out what the issue is
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
438911c18d
nix: remove unnecessary dependencies gathering from allFeatures
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
bd71435a22
ci: build static binaries and OCI imgs with --all-features
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
53fa7c3729
nix: add all-features outputs/packages
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
d2facaee0b
bump various dependencies
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
0dae9280d9
nix: bump flake.lock
...
• Updated input 'crane':
'github:ipetkov/crane/087e08a41009bf083d51ab35d8e30b1b7eafa7b0' (2024-07-03)
→ 'github:ipetkov/crane/0aed560c5c0a61c9385bddff471a13036203e11c' (2024-07-06)
• Updated input 'fenix':
'github:nix-community/fenix/f6994934e25396d3a70ddb908cefccd8d3c37ac4' (2024-07-05)
→ 'github:nix-community/fenix/27cbad7cc093c5298231b87daa04db9610053651' (2024-07-06)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/cae997e3380363a906588f14c7b4587f39cf09f5' (2024-07-03)
→ 'github:rust-lang/rust-analyzer/f2afcb874e7410121c366ae601660abe327e320b' (2024-07-05)
• Updated input 'fenix':
'github:nix-community/fenix/27cbad7cc093c5298231b87daa04db9610053651' (2024-07-06)
→ 'github:nix-community/fenix/abc0549e3560189462a7d394cc9d50af4608d103' (2024-07-08)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/f2afcb874e7410121c366ae601660abe327e320b' (2024-07-05)
→ 'github:rust-lang/rust-analyzer/a5b21ea0aa644dffd7cf958b43f11f221d53404e' (2024-07-07)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/9f4128e00b0ae8ec65918efeba59db998750ead6' (2024-07-03)
→ 'github:NixOS/nixpkgs/655a58a72a6601292512670343087c2d75d859c1' (2024-07-08)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
35336eb686
ci: use $COMPLEMENT_SRC from nix devshell for a pinned complement rev
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
efea13a675
add access control checks for room directory publishing/removing
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
b5ee15a216
dont skip_all tracing instrument on fetch_state
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
0873e18e14
remove random duplicate function
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
6abc4ad798
make local_aliases_for_room db iterator Send
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
373991a8d6
cleanup and fix backfill from server getting
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
68ad351f84
nix: partially remove some liburing overrides
...
the argument one is weird and causing build script invalid arguments
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
83e853e7a3
add "unstable" endpoint legacy Element Android/iOS seems to call
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
1c453b1b55
require authentication on change password and deactivation routes
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
60141950f7
fix wrong deactivate-all argument comment
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
391bfd986e
use ruma's X-Matrix to construct the sending X-Matrix header value
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
da03de1d32
bump flake.lock fully
...
• Updated input 'crane':
'github:ipetkov/crane/109987da061a1bf452f435f1653c47511587d919' (2024-05-24)
→ 'github:ipetkov/crane/087e08a41009bf083d51ab35d8e30b1b7eafa7b0' (2024-07-03)
• Updated input 'fenix':
'github:nix-community/fenix/b6fc5035b28e36a98370d0eac44f4ef3fd323df6' (2024-05-22)
→ 'github:nix-community/fenix/f6994934e25396d3a70ddb908cefccd8d3c37ac4' (2024-07-05)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/21ec8f523812b88418b2bfc64240c62b3dd967bd' (2024-05-19)
→ 'github:rust-lang/rust-analyzer/cae997e3380363a906588f14c7b4587f39cf09f5' (2024-07-03)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/5710852ba686cc1fd0d3b8e22b3117d43ba374c2' (2024-05-21)
→ 'github:NixOS/nixpkgs/9f4128e00b0ae8ec65918efeba59db998750ead6' (2024-07-03)
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
e54f4d4397
ci: move complement diff results test output
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
daa5c34ea3
fix empty version string for NixOS users
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
strawberry
3259ea08b5
use cond compilation for config check, fix docker check w/unix sockets, use our logging instead of tracing
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-10 22:00:46 -04:00
Jason Volk
158de10fe6
log erroring errors; improve inspection functors.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-09 04:09:34 +00:00
Jason Volk
4718387dbe
fix wrapper macro semicolons
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-09 03:38:07 +00:00
Jason Volk
a43c78e55f
add RumaError to Error; encapsulate RumaResponse in api
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-09 03:38:07 +00:00
Jason Volk
7ba0777bd3
move RumaResponse out of core Error; cleanup Error conversions.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
59d86d3641
restrict clippy::string_slice
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
51df946911
de-branch duration limit statement
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
23a9055199
relax and de-clutter let_underscore_must_use
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
100c6f572b
trim unused dependencies in member crates
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
eb5556e74e
additional tracing spans / log cleanup.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
8296e0ed67
slightly optimize command completer
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:10 +00:00
Jason Volk
8e3be6feb0
slightly optimize Destination::get_prefix()
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
59c4062305
set trivial/leaf spans to debug level
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
113a27c1d5
use usize for max_request_size config item
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
5af880e4f4
fix reference count on punned ColumnFamily Arc
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
56a1b0e761
restrict untripped clippies
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
5722c4ae39
fix needless collect
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
dfd13780df
mitigate additional cast lints
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
dcd7422c45
fix as conversions
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
7397064edd
fix arithmetic side-effects
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
52a561ff9e
abstract expoential backoff to math utils.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
5e72d36800
add math utils; integrate checked expression macros
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
611f09829e
use shorthand constraint syntax and formatting
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
a388c2e06e
allow clippy::enum_glob_use
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
24b37e03a0
add pretty time util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
Jason Volk
a309ef55c9
restore signal state after channel failures
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-08 22:02:09 +00:00
AlexPewMaster
c1c084dda1
Introduce a new way of deploying conduwuit using caddy in Docker
2024-07-08 17:59:59 -04:00
strawberry
72d9e8ed2b
bump conduwuit version to 0.4.5
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-07 14:32:41 -04:00
Jason Volk
a3638dbb15
use rwlock for command handler.
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-07 06:24:08 +00:00
Jason Volk
5254eb4f72
add basic tab completion to console
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-07 06:24:08 +00:00
Jason Volk
b31e81a469
add common_prefix string util
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-06 15:26:07 +00:00
Jason Volk
0e580292a6
encap admin handler init/fini in crate
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-06 15:26:07 +00:00
Jason Volk
38a24e0170
remove unused deps in member crates
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-06 15:26:07 +00:00
Jason Volk
8350aced39
add ctrl-\ quit support to admin console
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-06 15:26:07 +00:00
Jason Volk
04e3de08eb
add log to error functors for Result::map_or_else
...
Signed-off-by: Jason Volk <jason@zemos.net >
2024-07-06 15:26:07 +00:00
Christoph Dittmann
2bc53139fa
Don't send empty presence EDUs
...
I run a homeserver whose logs show a high number of incoming empty
presence EDUs originating from the user agent "Conduwuit/0.4.4". They
arrive at a rate of about 2 queries per second per Conduwuit server.
The empty EDUs all look the same, only with `origin_server_ts`
increasing:
```
{"origin":"example.com","origin_server_ts":1720266475601,"edus":[{"edu_type":"m.presence","content":{"push":[]}}]}
```
These updates are unnecessary because they don't do anything. They
only increase network traffic and CPU usage on both sides.
After this commit, the empty presence updates are no longer inserted
into the outgoing event queue.
2024-07-06 14:13:33 +02:00
strawberry
8691141237
ci: try running nix-build-and-cache prior dynamic build test
...
Signed-off-by: strawberry <strawberry@puppygock.gay >
2024-07-05 02:48:36 -04:00