feat: implement MSC4140 delayed events - #555
Draft
neovimbtw wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Closes #178.
This adds persistent support for MSC4140 cancellable delayed events:
/versionsadvertisement;The default limits are 100 pending events per user and a maximum delay of 24 hours.
This is a draft because MSC4140 changed after the Ruma revision currently pinned by Tuwunel. The implementation supports both endpoint generations exposed by that revision, but maintainer direction is needed on updating Ruma for the latest authenticated action endpoint. Finalised-record retention/action idempotency and integration with every ordinary event-send policy/rate-limit check also remain to be resolved.
Complement has no existing MSC4140 coverage to update. Focused Rust tests cover request parsing and sender-private unsigned-data filtering.
Validated with:
cargo fmt --all -- --checkcargo check --workspace --all-targetscargo clippy -p tuwunel_core -p tuwunel_service -p tuwunel_api --all-targets -- -D warningscargo test -p tuwunel_api delayed_eventscargo test -p tuwunel_core remove_transaction_id_strips_all_sender_private_idsChecklist
cargo fmtand satisfies clippy and rustc lints; any allowed lint is justified by an obvious reason or a comment.src/core/config/mod.rsdoc comments and the regeneratedtuwunel-example.tomlis committed.docs/.