Repository navigation
feat: Implement Safe AAD capabilities from extensions doc - #2037
Conversation
keks
left a comment
There was a problem hiding this comment.
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.
kkohbrok
left a comment
There was a problem hiding this comment.
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
|
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. |
* 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
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.