Skip to content

chore: Enable key caching of keyring controller #13675

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

Merged
merged 11 commits into from
Feb 28, 2025
Merged

Conversation

tommasini
Copy link
Contributor

@tommasini tommasini commented Feb 22, 2025

Description

This PR enables the caching of the key, feature provided by the keyring controller.

Related issues

Fixes:

Manual testing steps

  1. Import via SRP
  2. Import via private key

Screenshots/Recordings

Before

After

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.

@tommasini tommasini added the team-mobile-platform Mobile Platform team label Feb 22, 2025
Copy link
Contributor

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.

@tommasini tommasini added the Run Smoke E2E Requires smoke E2E testing label Feb 22, 2025
Copy link
Contributor

github-actions bot commented Feb 22, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 12fc46f
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/1b082f60-1b64-4cd0-8a1f-a2b8981e878f

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

@tommasini tommasini added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 22, 2025
@tommasini tommasini marked this pull request as ready for review February 22, 2025 01:28
@tommasini tommasini requested review from a team as code owners February 22, 2025 01:28
@tommasini tommasini added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 24, 2025
Copy link
Contributor

https://bitrise.io/ Bitrise

🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄

Commit hash: 8675071
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b3e09f56-9d96-485a-a786-8a75fa12a1bb

Note

  • This comment will auto-update when build completes
  • 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

@mikesposito
Copy link
Member

Can we change the type that WithKeyEncryptor is extending, from GenericEncryptor to ExportableKeyEncryptor?

@tommasini tommasini added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 25, 2025
Copy link
Contributor

https://bitrise.io/ Bitrise

🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄

Commit hash: b43d25e
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/17494756-f20e-44fe-95d0-9f4fecd67aab

Note

  • This comment will auto-update when build completes
  • 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

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.21%. Comparing base (256bc97) to head (b43d25e).
Report is 25 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13675      +/-   ##
==========================================
+ Coverage   62.91%   63.21%   +0.30%     
==========================================
  Files        2035     2075      +40     
  Lines       44539    45102     +563     
  Branches     6050     6199     +149     
==========================================
+ Hits        28020    28513     +493     
- Misses      14685    14710      +25     
- Partials     1834     1879      +45     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tommasini tommasini added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Feb 25, 2025
Copy link
Member

@mikesposito mikesposito left a comment

Choose a reason for hiding this comment

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

Looks good!
I opened a PR on core to make ExportableKeyEncryptor generic and remove those ts-expect-error: MetaMask/core#5395

@tommasini tommasini added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 26, 2025
Copy link
Contributor

github-actions bot commented Feb 26, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 91fda0e
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/9e8ddc14-2e9d-4afc-8a81-f370aff7b6f8

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

@tommasini tommasini added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 27, 2025
Copy link
Contributor

github-actions bot commented Feb 27, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 0126052
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/736f5f52-f2e7-4d4f-9fcc-4e6d4e66e5b2

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

@tommasini tommasini added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Feb 27, 2025
Copy link
Contributor

github-actions bot commented Feb 27, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 2017f1f
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/d1b0e19b-67e6-4531-a95c-e8623913830b

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

Copy link

@github-project-automation github-project-automation bot moved this from Needs dev review to Review finalised - Ready to be merged in PR review queue Feb 28, 2025
@tommasini tommasini added this pull request to the merge queue Feb 28, 2025
Merged via the queue into main with commit aa31249 Feb 28, 2025
39 checks passed
@tommasini tommasini deleted the chore/enable-key-caching branch February 28, 2025 00:29
@github-project-automation github-project-automation bot moved this from Review finalised - Ready to be merged to Merged, Closed or Archived in PR review queue Feb 28, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Feb 28, 2025
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Feb 28, 2025
@metamaskbot metamaskbot added the release-7.43.0 Issue or pull request that will be included in release 7.43.0 label Feb 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.43.0 Issue or pull request that will be included in release 7.43.0 Run Smoke E2E Requires smoke E2E testing team-mobile-platform Mobile Platform team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants