Commit Graph
8403 Commits
Author SHA1 Message Date
Jade Ellis b375170fba fix: SEC25
Reviewed-By: timedout <git@nexy7574.co.uk>
2026-11-30 17:59:25 +00:00
Jade Ellis 347048c35f fix: SEC51
Reviewed-By: timedout <git@nexy7574.co.uk>
2026-11-30 17:59:25 +00:00
Jade Ellis 84082a6515 fix: SEC50
Reviewed-By: timedout <git@nexy7574.co.uk>
2026-11-30 17:59:25 +00:00
Jade Ellis 0af4c49657 fix: SEC48
Reviewed-By: timedout <git@nexy7574.co.uk>
2026-11-30 17:59:25 +00:00
timedout b0a829971d fix: SEC29
Reviewed-By: Jacob Taylor <jacob@explodie.org>
Reviewed-By: Jade Ellis <jade@ellis.link>
2026-11-30 17:59:22 +00:00
Jade Ellis c0ee45192a refactor: Use concrete UserPowerLevel type 2026-11-30 17:57:29 +00:00
Jade Ellis f97cfa12ac chore: Changelog fragment 2026-11-30 17:57:29 +00:00
Jade Ellis ff15197ad8 fix(state-res): Use infinite power level for v12 room creators
Representing v12 creators as Int::MAX allowed a non-creator explicitly
assigned Int::MAX to tie with a room creator during reverse topological
power sorting instead of ranking strictly below them.
2026-11-30 17:57:29 +00:00
Jade Ellis 3f8c855bfb fix(state-res): Order no-ancestor events before oldest mainline power level
Assigning depth 0 to the oldest mainline power-levels event collided
with the 0 sentinel for events with no mainline ancestor, breaking ties
by timestamp instead of sorting no-ancestor events strictly earlier as
required by the Matrix spec.
2026-11-30 17:57:29 +00:00
Renovate Bot 1d4ff06337 chore(deps): lock file maintenance 2026-11-30 17:21:55 +00:00
Renovate Bot 4e65c054f2 chore(deps): update rust-zerover-patch-updates 2026-11-30 17:21:48 +00:00
Renovate Bot 67caa12b26 chore(deps): update ruma digest to d6621e1 2026-11-30 17:21:41 +00:00
Renovate Bot 13f2d6cb76 chore(deps): update rust-non-major 2026-11-30 17:21:34 +00:00
nex bd270a3fee meta(ci): Stop building maxperf in build-nix workflow
Temporary mitigation for #2615
2026-11-30 16:12:36 +00:00
nex 0670bd9c21 meta(ci): Stop building maxperf in release-image workflow
Temporary mitigation for #2615
2026-11-30 16:11:17 +00:00
Renovate Bot da7068cd60 chore(deps): update github-actions-digest 2026-11-30 13:55:35 +00:00
Renovate Bot fc5970c177 chore(deps): update opentelemetry-instrumentation-tower digest to 0849586 2026-11-30 13:51:45 +00:00
Renovate Bot abe722182f chore(deps): update ruma digest to 6a7c905 2026-11-30 13:51:31 +00:00
Renovate Bot 47ea034e43 chore(deps): update rust crate built to 0.9 2026-11-30 13:51:25 +00:00
Renovate Bot a128c9a35b chore(deps): update dependency cargo-bins/cargo-binstall to v1.29.0 2026-11-30 13:49:47 +00:00
Renovate Bot cec9508d83 chore(deps): update node-patch-updates 2026-11-30 13:49:16 +00:00
Renovate Bot e902f5bf04 chore(deps): update rust crate nix to 0.32.0 2026-11-30 13:48:43 +00:00
Renovate Bot 40f5fdf1b3 chore(deps): update ghcr.io/renovatebot/renovate docker tag to v45 2026-11-30 05:04:26 +00:00
renovate 8144c948cb chore(Nix): Updated flake hashes 2026-11-28 17:44:02 +00:00
Renovate Bot a1c0045367 chore(deps): update rust to v1.100.1 2026-11-28 17:44:02 +00:00
alexia 1c05735db6 docs: act on some PR feedback
Signed-Off By: Alexia <git@cyrneko.eu>
2026-11-28 16:31:59 +00:00
alexia cded6d4c36 docs: document replacing appservice configuration
Signed-Off By: Alexia Starling <me@cyrneko.eu>
2026-11-28 16:31:59 +00:00
Julian Anderson 8ad4374274 ci(docs/preview): Post comment to PR for preview deployments
The if condition is designed to make a new comment only once per PR. It
could probably use some further selectivity to only do this for specific
changed files, but we can cross that bridge when we get to it.
2026-11-28 16:30:04 +00:00
Julian Anderson f0198d6254 docs(preview): Fix logo rendering in intro page 2026-11-28 16:30:04 +00:00
Julian Anderson b85a4ce194 docs(preview): Add banner for preview deployments 2026-11-28 16:30:04 +00:00
Jade Ellis 67332244b7 fix(state-res): Re-authenticate rejected events in iterative auth checks
The Matrix state resolution spec requires events rejected under
state-at-event checks to be re-authenticated during iterative auth
checks to avoid state divergence across servers; only rejected auth
events should be excluded.

Prefetch rejection status concurrently once per unique event ID to
avoid repeated sequential lookups inside the loop.
2026-11-28 16:27:26 +00:00
Erwan Leboucher 51a9ddb27b fix(state-res): Skip rejected events in iterative auth checks 2026-11-28 16:27:26 +00:00
Jade Ellis 0d7fb27d0b style: Formatting 2026-11-28 16:26:44 +00:00
timedout dc7daefe5a chore: Release v26.11.0-rc.1 2026-11-27 18:45:40 +00:00
Jade Ellis eb9e09d53b style: Clippy 2026-11-27 18:41:46 +00:00
Jade Ellis ef24867786 fix: Serialize OAuth session mutations per device
Concurrent token refreshes or API requests clearing the previous refresh
token could overwrite userdeviceid_oauthsessioninfo with stale session
state or leave orphaned entries in refreshtoken_refreshtokeninfo.

Guard session mutations with a per-device MutexMap and re-read session
info under the lock when clearing the previous refresh token.
2026-11-27 18:41:45 +00:00
Jade Ellis 6412a650a5 fix: Overwrite previous access token on non-retry refreshes
Previously, set_token skipped saving the replaced access token whenever
a previous token entry already existed. If a client refreshed again with
its current refresh token before making a valid API request (such as
after going idle until expiry), a dropped response would leave the
server holding an older access token and cause a hard logout.

Let callers explicitly specify whether to clear, replace, or preserve
the previous access token.
2026-11-27 18:41:45 +00:00
Jade Ellis 25464134d8 fix: Remove previous tokens from database
Prevent some panics, accidental soft-logouts instead of hard ones, and
prevents stale tokens revoking sessions.
2026-11-27 18:41:45 +00:00
Jade Ellis 7bdfea0704 fix: Clear temporary scopes before building refresh response scope
Temporary scopes are dropped on token refresh, so the returned scope
list should not advertise them.
2026-11-27 18:41:45 +00:00
Ginger 47828dd8c2 chore: News fragment 2026-11-27 18:41:44 +00:00
Ginger 208a625163 fix: Return the correct scope list when refreshing an OAuth access token 2026-11-27 18:41:44 +00:00
Ginger f579859f22 fix: Make OAuth access token refreshing idempotent 2026-11-27 18:41:44 +00:00
Jade Ellis 6b0eebc553 refactor: Pass notary query map by value
Both callers own the request body, so passing the map by value avoids
cloning every server name and query criteria entry.
2026-11-27 18:13:31 +00:00
Jade Ellis 6708912984 fix: Add missing parenthesis in notary error message 2026-11-27 18:13:30 +00:00
Jade Ellis 7eb8c408a2 fix: Enforce notary query criteria per requested key
Candidate filtering previously checked unrequested old keys and tracked
all response keys as satisfied even when criteria failed. Passing the
lowest requested minimum_valid_until_ts to origin_request also avoids
rejecting valid historical queries.
2026-11-27 18:13:30 +00:00
Jade Ellis b4b0c836aa fix: Keep lowest expiry timestamp for discovered old keys
The comparison was inverted when extracting discover_old_signing_keys.
2026-11-27 18:13:30 +00:00
Jade Ellis b7a1e09447 feat: Cache server keys when fetched from origin 2026-11-27 18:13:30 +00:00
Ginger 01a0954310 refactor: Clarify variable name a bit 2026-11-27 18:13:30 +00:00
Ginger 3194987fa6 refactor: Move semaphore logic out of acquire_keys_as_notary 2026-11-27 18:13:29 +00:00
Ginger a31cbce31e refactor: Clean up acquire_keys_as_notary 2026-11-27 18:13:29 +00:00