Skip to content

MSC4386: Automatically sharing secrets after device verification#4386

Open
uhoreg wants to merge 2 commits intomatrix-org:mainfrom
uhoreg:sharing_secrets_after_verification
Open

MSC4386: Automatically sharing secrets after device verification#4386
uhoreg wants to merge 2 commits intomatrix-org:mainfrom
uhoreg:sharing_secrets_after_verification

Conversation

@uhoreg
Copy link
Copy Markdown
Member

@uhoreg uhoreg commented Dec 8, 2025

Rendered

Disclosure: I am a member of the Element crypto team, and of the Spec Core Team. This proposal is written as a member of the Element crypto team.

@uhoreg uhoreg changed the title MSCxxxx: Automatically sharing secrets after device verification MSC4386: Automatically sharing secrets after device verification Dec 8, 2025
@uhoreg uhoreg added e2e proposal A matrix spec change proposal client-server Client-Server API kind:feature MSC for not-core and not-maintenance stuff needs-implementation This MSC does not have a qualifying implementation for the SCT to review. The MSC cannot enter FCP. proposal-in-review labels Dec 8, 2025
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.

Implementation requirements:

  • Sending client
  • Receiving client (ideally different from the sending one)

"m.cross_signing.self_signing",
"m.cross_signing.user_signing"
],
"requested": ["org.example.custom"]
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.

Wouldn't DEVICEB already know that DEVICEA cannot provide this secret based on the earlier verification request?

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, it if wanted to, DEVICEB could tailor its response based on what it saw from DEVICEA's event.


## Potential issues

None?
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.

When using in-room verification, I think, you could theoretically run into the 64KiB event size limit? Secrets stored in account data won't be subject to this limit. Even if they were, you could exceed it because multiple secrets are combined in a single m.key.verification.secrets event.

This is probably not a practical problem because secrets should normally be relatively small. So I'm not sure if we really need to do anything. Maybe a dedicated error code at most?

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.

We don't share secrets with other users, and in-room verification is only used for verifying other users.

But yes, we should be aware of event sizes. It shouldn't be a problem for now because we only have a small number of secrets, and each secret is small, but maybe in the future. I'll add a comment..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client-server Client-Server API e2e kind:feature MSC for not-core and not-maintenance stuff needs-implementation This MSC does not have a qualifying implementation for the SCT to review. The MSC cannot enter FCP. proposal A matrix spec change proposal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants