Skip to content

feat: signal own pending commits in processing - #2084

Merged
raphaelrobert merged 4 commits into
mainfrom
raphael/own-pending-commit
Jun 30, 2026
Merged

raphaelrobert merged 4 commits into
mainfrom
raphael/own-pending-commit

Conversation

@raphaelrobert

Copy link
Copy Markdown
Member

Fixes #2077.

Our own Commit messages can be interpreted as a signal to merge a pending commit when processing messages. We now no longer return an error, but instead return OwnPendingCommit if the incoming Commit matches the pending commit.

Caveats:

  1. We don't fully verify the content of the incoming Commit, we only verify the signature and the validity of the confirmation tag. The reason is that it is not trivial to verify the rest, because we don't hold the wire format of the Commit as part of the local pending Commit. The risk is minimal though: an attacker would have to have access to the signing key, craft a malformed Commit with a valid confirmation tag and could then create a group split where the own client would merge the pending Commit but other members would reject the malformed Commit.
  2. This only works for public messages, a Commit in a private message still cannot be decrypted. This creats a slight asymmetry in the API.

@raphaelrobert
raphaelrobert requested a review from a team as a code owner June 30, 2026 09:47
@raphaelrobert
raphaelrobert merged commit 841b1a4 into main Jun 30, 2026
41 checks passed
@raphaelrobert
raphaelrobert deleted the raphael/own-pending-commit branch June 30, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug] RFC incompliance: Self-generated commits should be possible to decode

3 participants