timedout
98d78dfdf1
Merge branch 'main' into nex/feat/notary-server
...
# Conflicts:
# src/api/server/key.rs
# src/service/server_keys/mod.rs
# src/service/server_keys/request.rs
# src/service/server_keys/verify.rs
2026-11-23 14:18:38 +00:00
Erwan Leboucher
5d66476126
fix(metrics): Fix in-flight requests, PDU lag, latency buckets and thumbnail accounting
2026-11-21 16:06:51 +00:00
Ginger
a4ef1ecfa2
chore: Clippy fixes
2026-11-20 10:48:04 -05:00
timedout
8ffa3e5367
fix: Wrap parsed & raw values
...
Rather than passing them around separately everywhere, just unify them into a single struct that is primarily fetched via a raw.
Also stores raw data directly into the database so that signatures can be verified later rather than only at receive time.
2026-11-18 15:10:51 +00:00
hexchen
cec1f85f88
fix: verify_server_keys_response fails on non-standard json fields
...
Previously `verify_server_keys_response` would work with re-serialized
ServerSigningKeys, which drops any extra, non-standard fields from the
origin server response. The signature is made over the whole response
though, meaning that any response including extra fields will not pass
signature verification.
2026-11-18 15:10:51 +00:00
Erwan Leboucher
2c605151eb
fix: Don't apply get_missing_events limit to earliest_events
2026-11-11 21:51:52 +00:00
Henry-Hiles
7b927196a2
chore: Use up-to-date Ruma
...
Some changes to sticky events were needed for this also.
2026-11-11 14:28:43 +00:00
timedout
7a6bea70b2
fix: SEC34
...
Reviewed-By: Jade Ellis <jade@ellis.link >
Reviewed-By: Ginger <ginger@gingershaped.computer >
Reviewed-By: Jacob Taylor <jacob@explodie.org >
2026-11-10 20:41:19 +00:00
Jade Ellis
c7aebd2b52
fix: Deduplicate read receipts and preserve per-thread state
2026-11-10 20:02:20 +00:00
Jade Ellis
24b1e2ebe8
refactor(service): Use SyncRwLock and SyncMutex for in-memory services
...
Convert in-memory data structures in appservice, rooms::typing, and sync
wakers to use SyncRwLock and SyncMutex. Drop appservice locks before
making outbound network requests in room alias queries and federation
invites.
2026-10-28 21:48:22 +00:00
timedout
b0a5caf576
perf: Fetch auth chain events in parallel
2026-10-16 18:32:38 +01:00
timedout
17ddd3966d
fix: Apply proper limits to get_missing_events
2026-10-16 18:19:22 +01:00
timedout
fe02b03d15
style: Stop warning when encountering an unknown event in get_missing_events
...
This is actually an expected condition, but it's retained as a debug warning as it may be relevant in debugging
2026-10-16 18:11:55 +01:00
Ginger
e6ca06a501
feat: Add support for MSC4560
2026-10-15 22:56:04 -04:00
Ginger
4f21fa2bda
refactor: Clean up join rule evaluation logic
2026-10-15 22:55:36 -04:00
timedout
298113c0a6
feat: Update MSC4456 implementation, new route
2026-10-14 10:34:52 +01:00
timedout
62de19970e
fix: Address review comments
2026-10-14 10:34:51 +01:00
timedout
6b532eb7d0
perf: Yield ssk instead of doing a serialization roundtrip
2026-10-14 10:34:51 +01:00
timedout
b541aadc2b
feat: Don't double-sign our own keys
2026-10-14 10:34:51 +01:00
timedout
c1f6a7c082
fix: Don't do weird wire signing for server keys route
2026-10-14 10:34:51 +01:00
timedout
3508b1a5e3
fix: Don't make origin key requests to ourself
...
Intercepting the request and serving it locally seems like a pretty good blanket solution
2026-10-14 10:34:51 +01:00
timedout
9867e99bb2
fix: Typo (MSC4456 -> MSC4556)
2026-10-14 10:34:50 +01:00
timedout
c486eeac06
fix: Don't serve expired responses in the criterialess path
2026-10-14 10:34:49 +01:00
timedout
1ded0b4e97
fix: Enforce specific notary limits per MSC4556
2026-10-14 10:34:49 +01:00
timedout
cd94a0d3ab
fix: Refuse to process >4096 servers and/or >8192 keys
...
pending msc
2026-10-14 10:34:49 +01:00
timedout
08307970a1
fix: Deduplicate signing key responses if we already satisfied them
2026-10-14 10:34:49 +01:00
timedout
ebf7c9920a
fix: Don't short circuit if all requested servers have no query criteria
...
Also adds some traces
2026-10-14 10:34:48 +01:00
timedout
19bc5d2016
feat: Correctly ask origin for keys before seeding from local cache
2026-10-14 10:32:36 +01:00
timedout
4e1fb09bfb
fix: Maybe query origin when fetching latest keys
2026-10-14 10:32:36 +01:00
timedout
39cd151ca3
fix: Don't attempt to contact origins as a notary more than once a minute
2026-10-14 10:32:36 +01:00
timedout
a5a7905494
fix: Actually contact origins in notary key fetching
2026-10-14 10:32:35 +01:00
timedout
a05d7a8cf3
style: Condense repeated code into a reusable function
2026-10-14 10:32:35 +01:00
timedout
af8ca8580e
fix: Correctly sum total_queried_keys
2026-10-14 10:32:35 +01:00
timedout
7050ea84e3
feat: Strip extraneous signatures to avoid leaking our own notaries
2026-10-14 10:32:35 +01:00
timedout
441ab78c4e
feat: Notary server
2026-10-14 10:32:34 +01:00
Erwan Leboucher
ea3ec965ed
fix(metrics): Address review feedback
2026-10-12 10:03:15 +01:00
Erwan Leboucher
5185045cb6
feat(metrics): Record metrics with OpenTelemetry and export over OTLP
2026-10-12 10:03:14 +01:00
timedout
3af5302dd8
feat: Add more useful errors to send_join
...
See also: #2340
2026-10-10 02:23:39 +01:00
Jade Ellis
7ce47be4de
feat: Send read receipts and typing indicators to appservices
2026-10-06 23:56:28 +01:00
timedout
550dd0160a
fix: SEC8
...
Reviewed-By: Ginger <ginger@gingershaped.computer >
Reviewed-By: Jade <jade@ellis.link >
Reviewed-By: Jacob Taylor <jacob@explodie.org >
2026-09-28 02:00:37 +01:00
timedout
89eecd2bf7
fix: Record redacted_because_id instead of redacted_because
2026-09-27 17:32:46 +01:00
timedout
b2072baf59
perf: Strip unsigned over federation and generate it on the fly locally
2026-09-27 17:32:46 +01:00
Ginger
9fbabe2210
chore: Reformat with latest nightly
2026-09-01 12:55:05 -04:00
timedout
dbe4d0035a
style: Don't log warnings when receiving unrecognised PDUs
2026-08-30 21:16:07 +01:00
Renovate Bot and Ginger
746a2686e3
chore(deps): Update ruma digest to 83d80c8
...
Co-authored-by: Ginger <ginger@gingershaped.computer >
2026-08-25 13:53:39 +00:00
Erwan Leboucher
df95abf5ab
fix(federation): Queue PDUs during remote joins
2026-08-22 18:29:54 +00:00
timedout
2dc6051d67
fix(federation): Make transactions infallible
...
Previously, a transaction panicking in the handle() call would cause the
transaction to be indefinitely logged as "running" in the transaction
handler. This means subsequent transactions from the sending server
would be met with the "You're still sending me a txn!" 429 response,
forever, effectively causing defederation between the two servers, until
continuwuity is fully restarted.
I could just fix the known panics in the handle function and internal
calls, however there's so many subsystems that could reasonably panic
that it is just better to have a safer approach and ensure that the
handle call is infallible.
2026-08-15 16:10:39 +00:00
Ginger
ad182417da
fix: SEC26
...
Reviewed-By: timedout <git@nexy7574.co.uk >
Reviewed-By: Ginger <ginger@gingershaped.computer >
2026-08-11 17:56:29 -04:00
Logan Devine
480e975877
chore: clean up unused imports of ClientIp
2026-07-21 14:31:16 +00:00
timedout
789589ef37
chore: Remove redundant client IP extractions on individual routes
2026-07-17 12:57:48 +00:00