Skip to content

feat: Implement Safe AAD capabilities from extensions doc - #2037

Merged
kkohbrok merged 7 commits into
mainfrom
konrad/safe_aad
May 28, 2026
Merged

kkohbrok merged 7 commits into
mainfrom
konrad/safe_aad

Conversation

@kkohbrok

Copy link
Copy Markdown
Member

This PR implements the Safe AAD functionality as defined in the extensions draft: https://datatracker.ietf.org/doc/draft-ietf-mls-extensions/09/

This PR should be reviewable commit-by-commit.

@kkohbrok
kkohbrok marked this pull request as ready for review May 27, 2026 09:02
@kkohbrok
kkohbrok requested a review from a team as a code owner May 27, 2026 09:02

@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.

I think this generally looks good. I have one remark, but I don't think this is blocking anything.

I was a little surprised by the interaction between the old and new aad fields, and that setting the safe aad does not overwrite the plain aad, but that there is a way to "import" the safe aad from the plain aad.

I guess this is related to the general question about whether we should be setting the aad for the next message on the group instead of passing it into the message creation. My impression is that this shouldn't really be state on the MlsGroup, but I don't think this PR is the place to change how that works. Maybe we can discuss it next week.

Comment thread openmls/src/framing/validation.rs Resolved
Comment thread openmls/src/group/mls_group/mod.rs Resolved

@kkohbrok kkohbrok left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, appending non-safe aad behind safe aad isn't great, but it's how I read the spec. If you want some proprietary aad, you should probably just define your own component for that. I've filed an issue in the spec repo: mlswg/mls-extensions#95

Comment thread openmls/src/framing/validation.rs Resolved
Comment thread openmls/src/group/mls_group/mod.rs Resolved
@kkohbrok
kkohbrok requested a review from keks May 27, 2026 17:35

@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.

Thanks for the comments!

Comment thread openmls/src/framing/validation.rs Resolved
Comment thread openmls/src/group/mls_group/mod.rs Resolved
@kkohbrok
kkohbrok enabled auto-merge (squash) May 28, 2026 13:44
@kkohbrok
kkohbrok merged commit d62f696 into main May 28, 2026
37 checks passed
@kkohbrok
kkohbrok deleted the konrad/safe_aad branch May 28, 2026 14:39
@kkohbrok

Copy link
Copy Markdown
Member Author

Thanks for the review again! Let's revisit AADs again when the draft is final and/or when we eventually switch to a builder-provided AAD API for OpenMLS.

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.

2 participants