Skip to content

feat: add virtual-clients feature flag and confirmable app messages - #1963

Merged
kkohbrok merged 27 commits into
mainfrom
konrad/vc_confirmable_messages
May 21, 2026
Merged

kkohbrok merged 27 commits into
mainfrom
konrad/vc_confirmable_messages

Conversation

@kkohbrok

@kkohbrok kkohbrok commented Feb 13, 2026 •

Copy link
Copy Markdown
Member

This PR is the first in a number of PRs towards implementing the virtual clients draft.

This PR adds the virtual-clients-draft feature flag. Guarded by that flag, it adds a two-stage mechanism that allows sending an application message and deleting the corresponding message secret in two separate steps.

This PR also generally enables clients to decrypt their own application messages by introducing a new DualUseRatchet in addition to the sender and decryption ratchets. The DualUseRatchet stores additional metadata to properly maintain the retention window for missed messages. In particular, ratchet secrets used for encryption shouldn't influence the retention of secrets for decryption of missed messages.

@kkohbrok
kkohbrok marked this pull request as ready for review February 16, 2026 13:05
@kkohbrok
kkohbrok requested a review from a team as a code owner February 16, 2026 13:05

@franziskuskiefer franziskuskiefer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Generally lgtm. A couple first comments.

Comment thread openmls/src/tree/sender_ratchet.rs Resolved
Comment thread openmls/src/group/mls_group/errors.rs Resolved
Comment thread openmls/src/framing/private_message.rs Resolved
@franziskuskiefer franziskuskiefer added the waiting-on-author Status: This is awaiting some action from the author. label Mar 24, 2026
@github-actions github-actions Bot added size/l and removed size/m labels May 4, 2026
@kkohbrok
kkohbrok requested a review from franziskuskiefer May 4, 2026 06:59
@kkohbrok kkohbrok removed the waiting-on-author Status: This is awaiting some action from the author. label May 4, 2026
Comment thread openmls/src/framing/private_message.rs Resolved
Comment thread openmls/src/tree/sender_ratchet.rs Resolved
@github-actions github-actions Bot removed the size/l label May 8, 2026

@keks keks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass. The one about filters really is just a nitpick.

Comment thread openmls/src/tree/dual_use_ratchet.rs Resolved
Comment thread openmls/src/tree/dual_use_ratchet.rs Resolved
@kkohbrok
kkohbrok requested a review from keks May 12, 2026 09:45

@raphaelrobert raphaelrobert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good in general. I have some questions regarding the API & breaking changes.

Comment thread openmls/src/group/mls_group/errors.rs Resolved
@kkohbrok
kkohbrok requested a review from raphaelrobert May 18, 2026 14:42
raphaelrobert
raphaelrobert previously approved these changes May 18, 2026

@raphaelrobert raphaelrobert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the change!

Comment thread openmls/src/tree/dual_use_ratchet.rs Resolved
Comment thread openmls/src/framing/errors.rs Resolved
Comment thread openmls/src/group/mls_group/errors.rs Resolved
@kkohbrok

Copy link
Copy Markdown
Member Author

Thanks for all the feedback! I hope I got everything. If there are no more objections, I'd like to merge this soon s.t. I can get on with the follow-up PRs.

@kkohbrok
kkohbrok merged commit addb828 into main May 21, 2026
86 of 166 checks passed
@kkohbrok
kkohbrok deleted the konrad/vc_confirmable_messages branch May 21, 2026 07:38
lekevicius added a commit to silent-app/openmls that referenced this pull request Jun 6, 2026
* upstream/main: (23 commits)
  Also publish getters on PrivateMessageIn (openmls#2048)
  Expose public information of PrivateMessage and PublicMessage through getters (openmls#2042)
  Virtual clients: Allow processing of own commits (openmls#2017)
  feat: Implement Safe AAD capabilities from extensions doc (openmls#2037)
  Add methods to access nodes in RatchetTree and RatchetTreeIn (openmls#2036)
  allow creating an `AddProposal` from a `KeyPackage` (openmls#2035)
  feat: add virtual-clients feature flag and confirmable app messages (openmls#1963)
  make the CI leaner (openmls#2029)
  Migrate to web-time. (openmls#2016)
  chore(deps): bump the cargo-dependencies group across 1 directory with 13 updates (openmls#2014)
  chore(deps): bump codecov/codecov-action from 5 to 6 (openmls#1985)
  chore(deps): bump rustls-webpki from 0.103.12 to 0.103.13 (openmls#2011)
  Fix backward incompatible changes (openmls#1990)
  Don't explicitly include `openmls_sqlite_storage` in `extensions-draft-08` feature (openmls#2012)
  dependabot: group PRs
  feat: Allow proposing a self update that includes a new signer (openmls#2010)
  chore(deps): bump actix-http from 3.12.0 to 3.12.1 (openmls#2007)
  fix: replace `rand` with `rand_core` (openmls#2000)
  chore: remove debug asserts (openmls#2001)
  chore: fix warnings and clippy for not-enabled features (openmls#1992)
  ...

# Conflicts:
#	basic_credential/src/lib.rs
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.

5 participants