Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set the correct external sender key when creating MLS conversation #2735

Conversation

MohamadJaara
Copy link
Member

@MohamadJaara MohamadJaara commented May 2, 2024


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

when creating a new conversation, we need to set the server public key matching the default cipher suite

Solutions

select the matching signature from cipher suite

Needs releases with:

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Notes (Optional)

Specify here any other facts that you think are important for this issue.

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

override fun fromDTO(publicKeys: MLSPublicKeysDTO) = with(publicKeys) {
removal?.entries?.mapNotNull {
when (it.key) {
ED25519 -> MLSPublicKey(Ed25519Key(it.value.decodeBase64Bytes()), KeyType.REMOVAL)
Copy link
Member Author

Choose a reason for hiding this comment

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

this mapper will always return a list containing one item or null, so it was removed with choosing the correct signature from the map

Copy link
Contributor

github-actions bot commented May 2, 2024

Test Results

2 989 tests   2 882 ✔️  2m 45s ⏱️
   517 suites     107 💤
   517 files           0

Results for commit 8094880.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented May 2, 2024

Datadog Report

All test runs b932e27 🔗

2 Total Test Services: 0 Failed, 2 Passed

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Wall Time Test Service View
kalium-ios 0 0 0 2741 123 7m 34.09s Link
kalium-jvm 0 0 0 2882 107 9m 4.05s Link

Copy link
Contributor

@mchenani mchenani left a comment

Choose a reason for hiding this comment

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

LGTM, added couple of comments.

@MohamadJaara MohamadJaara marked this pull request as draft May 3, 2024 07:23
…ly' into feat/set-the-correct-public-key-when-creating-MLS-conversation

# Conflicts:
#	logic/src/commonMain/kotlin/com/wire/kalium/logic/data/client/MLSClientProvider.kt
#	logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt
Signed-off-by: MohamadJaara <[email protected]>
…ly' into feat/set-the-correct-public-key-when-creating-MLS-conversation

# Conflicts:
#	gradle/libs.versions.toml
@MohamadJaara MohamadJaara marked this pull request as ready for review May 6, 2024 20:47
…ly' into feat/set-the-correct-public-key-when-creating-MLS-conversation
@MohamadJaara MohamadJaara requested a review from borichellow May 6, 2024 22:31
@MohamadJaara MohamadJaara changed the base branch from release/android-cycle-4.6 to fix/fetch-MLS-config-when-not-avilable-locally May 6, 2024 22:36
Copy link
Member

@vitorhugods vitorhugods left a comment

Choose a reason for hiding this comment

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

Tiny nitpick

…ickeys/MLSPublicKeysMapper.kt

Co-authored-by: Vitor Hugo Schwaab <[email protected]>
Base automatically changed from fix/fetch-MLS-config-when-not-avilable-locally to release/android-cycle-4.6 May 7, 2024 09:04
…le-4.6' into feat/set-the-correct-public-key-when-creating-MLS-conversation

# Conflicts:
#	cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/CoreCryptoCentral.kt
@MohamadJaara MohamadJaara enabled auto-merge (squash) May 7, 2024 09:08
@MohamadJaara MohamadJaara disabled auto-merge May 7, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants