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: react native fast crypto for notifications #11069

Merged
merged 58 commits into from
Sep 20, 2024

Conversation

Jonathansoufer
Copy link
Contributor

@Jonathansoufer Jonathansoufer commented Sep 5, 2024

Description

This PR fixes the major blocker for Notifications GOLIVE which was a performance problem when encrypting data on user Storage. Now we pass a native implementation of scrypt to the Profile Sync Controller and then it used instead of the nodeJS implementation.

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

Duration: 656003.3725629747ms

After

Screenshot 2024-09-05 at 17 45 12

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@Jonathansoufer Jonathansoufer requested review from a team as code owners September 5, 2024 16:47
@Jonathansoufer Jonathansoufer self-assigned this Sep 5, 2024
Copy link
Contributor

github-actions bot commented Sep 5, 2024

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@github-actions github-actions bot added the team-snaps-platform Snaps Platform team label Sep 5, 2024
Copy link

socket-security bot commented Sep 5, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@contentful/content-source-maps@0.11.2 None 0 109 kB contentful-ecosystem
npm/@metamask/json-rpc-engine@9.0.3 None 0 177 kB metamaskbot
npm/@metamask/network-controller@20.2.0 environment 0 432 kB metamaskbot
npm/@metamask/notification-services-controller@0.7.0 network 0 1.21 MB metamaskbot
npm/@metamask/profile-sync-controller@0.8.0 network 0 1.01 MB metamaskbot
npm/@metamask/snaps-sdk@6.5.0 network 0 1.31 MB metamaskbot
npm/@metamask/snaps-utils@8.1.1 network 0 1.29 MB metamaskbot
npm/@metamask/utils@9.2.1 None 0 695 kB metamaskbot
npm/contentful-resolve-response@1.9.0 None 0 20.3 kB whydah-gally
npm/contentful-sdk-core@8.3.1 None 0 90.4 kB contentful-ecosystem
npm/contentful@10.15.0 environment, eval, filesystem, network 0 5.41 MB contentful-ecosystem
npm/react-native-fast-crypto@2.2.0 None 0 1.28 MB swansontec
npm/rfc4648@1.5.3 None 0 19.6 kB swansontec
npm/type-fest@0.6.0 None 0 29.6 kB sindresorhus

🚮 Removed packages: npm/@contentful/content-source-maps@0.6.1, npm/@metamask/json-rpc-engine@9.0.2, npm/@metamask/network-controller@20.1.0, npm/@metamask/notification-services-controller@0.2.1, npm/@metamask/profile-sync-controller@0.2.1, npm/@metamask/snaps-sdk@6.2.1, npm/@metamask/snaps-utils@8.0.1, npm/@metamask/utils@9.1.0, npm/contentful-resolve-response@1.8.1, npm/contentful-sdk-core@8.1.2, npm/contentful@10.12.10, npm/type-fest@4.18.3

View full report↗︎

@Jonathansoufer Jonathansoufer added No QA Needed Apply this label when your PR does not need any QA effort. needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) team-notifications Notifications team labels Sep 5, 2024
@legobeat legobeat removed the No QA Needed Apply this label when your PR does not need any QA effort. label Sep 6, 2024
@legobeat legobeat added the Run Smoke E2E Triggers smoke e2e on Bitrise label Sep 6, 2024
Copy link
Contributor

github-actions bot commented Sep 6, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: b068a0d
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/1a457b81-6715-4d13-9f8c-2cd8ca75db0e

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@BjornGunnarsson BjornGunnarsson added the release-7.31.0 Issue or pull request that will be included in release 7.31.0 label Sep 6, 2024
@Jonathansoufer Jonathansoufer removed the Run Smoke E2E Triggers smoke e2e on Bitrise label Sep 6, 2024
Copy link

socket-security bot commented Sep 6, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Network access npm/contentful@10.15.0 🚫
Network access npm/contentful@10.15.0 🚫

View full report↗︎

Next steps

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/contentful@10.15.0

@Jonathansoufer Jonathansoufer added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 19, 2024
Copy link
Contributor

github-actions bot commented Sep 19, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 872be08
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0536d36b-977f-4d79-8ccb-501291b3845a

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@Jonathansoufer Jonathansoufer added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 20, 2024
Copy link
Contributor

github-actions bot commented Sep 20, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: f1fa3e6
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/1fe1b687-e09f-41b3-ba11-0def74e1f7be

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Copy link

@Jonathansoufer Jonathansoufer added this pull request to the merge queue Sep 20, 2024
Merged via the queue into main with commit 2b0d547 Sep 20, 2024
38 of 42 checks passed
@Jonathansoufer Jonathansoufer deleted the feat/react-native-fast-crypto-for-notifications branch September 20, 2024 10:52
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Sep 20, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
@metamaskbot metamaskbot added the release-7.33.0 Issue or pull request that will be included in release 7.33.0 label Sep 20, 2024
@BjornGunnarsson BjornGunnarsson added release-7.32.0 Issue or pull request that will be included in release 7.32.0 and removed release-7.31.0 Issue or pull request that will be included in release 7.31.0 release-7.33.0 Issue or pull request that will be included in release 7.33.0 labels Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.32.0 Issue or pull request that will be included in release 7.32.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-notifications Notifications team team-snaps-platform Snaps Platform team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

7 participants