Repository navigation
feat: external invite + ExternalCommitPolicy component + external_committer_permissions - #334
Merged
Merged
Conversation
Contributor
ApprovabilityVerdict: Needs human review This PR introduces new protocol buffer definitions for a significant new feature (external invite / QR-code group joining) involving security-sensitive concepts like encryption keys and authorization policies. While purely schema definitions owned by the author, new security-related protocol designs benefit from human review. You can customize Macroscope's approvability policy. Learn more. |
tylerhawkes
force-pushed
the
feature/external-invite
branch
6 times, most recently
from
May 21, 2026 23:09
c79fdde to
da732ea
Compare
1 of 3 tasks
tylerhawkes
force-pushed
the
feature/generic-appdata-intent
branch
from
May 26, 2026 19:59
7b8260c to
de79332
Compare
…mitter_permissions - Add ExternalInvitePayload + EncryptedGroupInfoBlob messages (external_invite.proto). Blob carries plaintext epoch + group_state_hash for service-side ordering / fork detection. - Add EXTERNAL_COMMIT_POLICY component proto (external_commit_policy.proto): ExternalCommitPolicyV1 carries allow_external_commit + expires_at_ns + expire_in_ns. Toggleable via AppDataUpdate(EXTERNAL_COMMIT_POLICY). - Add external_committer_permissions: ComponentPermissions field to ComponentMetadata. Sibling of the existing permissions field; governs MLS External Commits per-component. Absent = all-Deny. Together these provide the two-layer authorization for the QR-invite flow: EXTERNAL_COMMIT_POLICY is the runtime-toggleable master switch with time-window controls, and each component declares per-action capabilities for external committers in its own ComponentMetadata.external_committer_permissions block.
tylerhawkes
force-pushed
the
feature/external-invite
branch
from
May 26, 2026 20:06
da732ea to
2bef315
Compare
insipx
approved these changes
May 26, 2026
|
🎉 This PR is included in version 3.92.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
tylerhawkes
added a commit
that referenced
this pull request
Jun 9, 2026
…fresh_pointers, AAD + effective expiry, admitted_via tag Follow-up to #334, mirroring the revised XIP-82 (xmtp/XIPs#140). See the PR body for the full breakdown. Also extends the local-only AppDataUpdateData.V1 intent with repeated additional_updates so writes whose invariants couple components atomically (XIP-82 enable atomicity: policy + GROUP_MEMBERSHIP grant) can land in one commit.
tylerhawkes
added a commit
that referenced
this pull request
Jun 9, 2026
…fresh_pointers, AAD + effective expiry, admitted_via tag Follow-up to #334, mirroring the revised XIP-82 (xmtp/XIPs#140). See the PR body for the full breakdown. Also extends the local-only AppDataUpdateData.V1 intent with repeated additional_updates so writes whose invariants couple components atomically (XIP-82 enable atomicity: policy + GROUP_MEMBERSHIP grant) can land in one commit.
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.
Summary
QR-invite wire format + new EXTERNAL_COMMIT_POLICY well-known component + per-component external-committer policy block, all in
xmtp.mls.message_contents. Sits on top of #333 (the generic AppData intent proto).Three additions:
ExternalInvitePayload+EncryptedGroupInfoBlob(external_invite.proto) — wire format for QR-code / link-based joining via MLS External Commits. Blob carries plaintextepoch(uint64) andgroup_state_hash(bytes) so the external invite-storage service can do monotonic ordering and fork detection without seeing plaintext GroupInfo.ExternalCommitPolicyV1+ExternalCommitPolicyEntry(external_commit_policy.proto) — new well-known component carrying:allow_external_commit: bool— defense-in-depth master switchexpires_at_ns: uint64— wall-clock auto-disable for time-bounded invite campaignsexpire_in_ns: uint64— max staleness of the GroupInfo referenced by an external commitexternal_committer_permissions: ComponentPermissionsfield added toComponentMetadata— sibling of the existingpermissionsblock. Governs per-component what external committers may do. Absent = all-Deny.Together these form the two-layer authorization model for the QR-invite flow: a runtime-toggleable master switch + per-component declarative external-committer capabilities. See libxmtp PR #3666 for the consuming code.
Test plan
424fdd061d41bdd7e81185735329de414dfd8e4c.🤖 Generated with Claude Code
Note
Add external invite,
ExternalCommitPolicy, andexternal_committer_permissionsprotobuf definitionsexternal_invite.protodefiningExternalInvitePayloadV1(service pointer, external group ID, symmetric key) andEncryptedGroupInfoBlobV1(nonce, ciphertext, epoch, state hash, expiry) with versioned envelope wrappers for both.external_commit_policy.protodefiningExternalCommitPolicyV1with fields for allow/deny, expiry, and symmetric key, plus a versionedExternalCommitPolicyEntryenvelope.external_committer_permissions(field 3) toComponentMetadataincomponent_permissions.proto, scoped to MLS External Commits, while clarifying that the existingpermissionsfield applies only to regular member-issued commits.Macroscope summarized 2bef315.