Skip to content

crypto: refactor subtle methods to use synchronous import - #59771

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
panva:import-key
Sep 7, 2025
Merged

nodejs-github-bot merged 1 commit into
nodejs:mainfrom
panva:import-key

Conversation

@panva

@panva panva commented Sep 5, 2025

Copy link
Copy Markdown
Member

Refs: #59699

This changes encapsulateKey, decapsulateKey, deriveKey, and unwrapKey to not use the whole SubtleCrypto.prototype.importKey machinery but instead just its synchronous internal bits.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto

@nodejs-github-bot nodejs-github-bot added crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run. labels Sep 5, 2025
@panva panva added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Sep 5, 2025
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Sep 5, 2025
@nodejs-github-bot

nodejs-github-bot commented Sep 5, 2025 •

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Sep 5, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.95%. Comparing base (6428e2e) to head (9d47ace).
⚠️ Report is 111 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #59771    +/-   ##
========================================
  Coverage   89.95%   89.95%            
========================================
  Files         667      667            
  Lines      196813   197076   +263     
  Branches    38425    38480    +55     
========================================
+ Hits       177038   177288   +250     
+ Misses      12200    12193     -7     
- Partials     7575     7595    +20     
Files with missing lines Coverage Δ
lib/internal/crypto/webcrypto.js 96.27% <100.00%> (+0.02%) ⬆️

... and 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@panva panva added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 5, 2025
@jasnell jasnell added the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 7, 2025
@panva panva removed the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 7, 2025
@panva

ghost commented Sep 7, 2025

Copy link
Copy Markdown
Member Author

@jasnell we need two approvals for CQ to work after 48 hours

@jasnell

ghost commented Sep 7, 2025

Copy link
Copy Markdown
Member

Yes, I know. Adding it is ok, it'll just sit there and wait until the minimum number of approvals are received or one week passes.

@jasnell jasnell added the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 7, 2025
@panva

ghost commented Sep 7, 2025

Copy link
Copy Markdown
Member Author

TIL :D

@nodejs-github-bot nodejs-github-bot added commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. and removed commit-queue PRs queued for automated landing through the Commit Queue. labels Sep 7, 2025
@nodejs-github-bot

ghost commented Sep 7, 2025

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/59771
✔  Done loading data for nodejs/node/pull/59771
----------------------------------- PR info ------------------------------------
Title      crypto: refactor subtle methods to use synchronous import (#59771)
Author     Filip Skokan <panva.ip@gmail.com> (@panva)
Branch     panva:import-key -> nodejs:main
Labels     crypto, author ready, needs-ci
Commits    1
 - crypto: refactor subtle methods to use synchronous import
Committers 1
 - Filip Skokan <panva.ip@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/59771
Refs: https://github.com/nodejs/node/issues/59699
Reviewed-By: James M Snell <jasnell@gmail.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/59771
Refs: https://github.com/nodejs/node/issues/59699
Reviewed-By: James M Snell <jasnell@gmail.com>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Fri, 05 Sep 2025 15:17:00 GMT
   ✔  Approvals: 1
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/59771#pullrequestreview-3189793288
   ✘  This PR needs to wait 119 more hours to land (or 0 hours if there is one more approval)
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2025-09-05T15:30:02Z: https://ci.nodejs.org/job/node-test-pull-request/69077/
- Querying data for job/node-test-pull-request/69077/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/17530351955

@panva

ghost commented Sep 7, 2025

Copy link
Copy Markdown
Member Author

Ha!

@panva panva removed the commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. label Sep 7, 2025
@jasnell

ghost commented Sep 7, 2025

Copy link
Copy Markdown
Member

Sigh... that's frustrating lol ... I do believe that there was a time when it actually waited but... ah well

@panva panva added the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 7, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 7, 2025
@nodejs-github-bot
nodejs-github-bot merged commit d6221f6 into nodejs:main Sep 7, 2025
@nodejs-github-bot

ghost commented Sep 7, 2025

Copy link
Copy Markdown
Collaborator

Landed in d6221f6

@panva
panva deleted the import-key branch September 7, 2025 23:16
@richardlau richardlau added the backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. label Sep 19, 2025
@richardlau

ghost commented Sep 19, 2025

Copy link
Copy Markdown
Member

This doesn't land cleanly on v22.x-staging so a manual backport will be necessary if this is to be released there.

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

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants