Rendevous compliance issues #2592

Open
Jade wants to merge 9 commits from jade/rendevous-channel-fixes into main
Owner

Well, one of these is a whole-server compliance issue, but better to overshoot than undershoot. Also includes a couple minor bugfixes. Review commit-by-commit.

Well, one of these is a whole-server compliance issue, but better to overshoot than undershoot. Also includes a couple minor bugfixes. Review commit-by-commit.
Jade added 11 commits 2026-11-23 18:19:01 +00:00
Yay free Complement passes I think
I dislike that we need to do this, but it's needed for compliance
Wall clocks can move around more than we'd like.
Unauthenticated routes were over-ratelimited, which
could cause issues.
docs(rendezvous): Fix unstable endpoint paths in route doc comments
Some checks failed
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 3s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Check changed files (pull_request) Successful in 5s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m0s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 9m23s
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 9s
b32d204d73
Jade changed title from Rondevous compliance issues to Rendevous compliance issues 2026-11-23 18:34:17 +00:00
Jade force-pushed jade/rendevous-channel-fixes from b32d204d73
Some checks failed
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 3s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Check changed files (pull_request) Successful in 5s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m0s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 9m23s
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 9s
to 42c375ce7d
Some checks failed
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 9s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m46s
Checks / Prek / Check changed files (pull_request) Successful in 8s
Update flake hashes / update-flake-hashes (pull_request) Successful in 2m7s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 2m15s
2026-11-23 19:14:49 +00:00
Compare
Owner

I am now running this

I am now running this
Aranjedeath added this to the 27.1.0 milestone 2026-11-29 15:57:04 +00:00
nex requested changes 2026-12-02 20:34:28 +00:00
@ -196,2 +193,2 @@
.ruma_route(&client::get_rendezvous_session_route)
.ruma_route(&client::delete_rendezvous_session_route)
.merge(
Router::new()
Owner

nit: I think this should be done in a separate block or function for clarity

nit: I think this should be done in a separate block or function for clarity
@ -198,0 +201,4 @@
async |mut response: axum::response::Response| {
response.headers_mut().insert(
http::header::CACHE_CONTROL,
http::HeaderValue::from_static("no-store"),
Owner

Shouldn't this be no-cache too to prevent temporary caches in addition to preventing disk caches

Shouldn't this be no-cache too to prevent temporary caches in addition to preventing disk caches
Lines 121-132
@ -116,3 +120,13 @@
// Deserialize the body
let body = R::try_from_http_request(request, &borrowed_path)
.map_err(|e| err!(Request(BadJson(debug_warn!("{e}")))))?;
let body_is_empty = body.is_empty();
let body = R::try_from_http_request(request, &borrowed_path).map_err(|e| match e {
| FromHttpRequestError::Deserialization(DeserializationError::Json(ref json_err))
if body_is_empty || json_err.is_syntax() || json_err.is_eof() =>
err!(Request(NotJson(debug_warn!("{e}")))),
| FromHttpRequestError::Deserialization(DeserializationError::Utf8(_)) =>
err!(Request(NotJson(debug_warn!("{e}")))),
| FromHttpRequestError::Deserialization(
DeserializationError::Ident(_) | DeserializationError::Query(_),
) => err!(Request(InvalidParam(debug_warn!("{e}")))),
| _ => err!(Request(BadJson(debug_warn!("{e}")))),
})?;
Owner

What does this like, do? It's very dense so I can't really read it in the diff viewer

What does this like, do? It's very dense so I can't really read it in the diff viewer
Author
Owner

It means that for specific errors, we return NOT_JSON or whatever the specific error is instead of BAD_JSON. Who on earth knows why they're separate error codes Synapse, but this is easier than fighting to change the spec

It means that for specific errors, we return NOT_JSON or whatever the specific error is instead of BAD_JSON. Who on earth knows why they're separate error codes ~~Synapse~~, but this is easier than fighting to change the spec
Some checks failed
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 9s
Required
Details
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m46s
Required
Details
Checks / Prek / Check changed files (pull_request) Successful in 8s
Required
Details
Update flake hashes / update-flake-hashes (pull_request) Successful in 2m7s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 2m15s
Required
Details
This pull request has changes requested by an official reviewer.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'jade/rendevous-channel-fixes:jade/rendevous-channel-fixes'
git switch 'jade/rendevous-channel-fixes'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity!2592
No description provided.