Skip to content

crypto: reject duplicate ML-KEM JWK key_ops#62905

Open
panva wants to merge 1 commit intonodejs:mainfrom
panva:check-kem-key_ops
Open

crypto: reject duplicate ML-KEM JWK key_ops#62905
panva wants to merge 1 commit intonodejs:mainfrom
panva:check-kem-key_ops

Conversation

@panva
Copy link
Copy Markdown
Member

@panva panva commented Apr 23, 2026

I missed this in #62706. Web Cryptography JWK import must reject duplicate entries in the JWK's key_ops.

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
@panva panva added confirmed-bug Issues with confirmed bugs. crypto Issues and PRs related to the crypto subsystem. experimental Issues and PRs related to experimental features. webcrypto labels Apr 23, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Apr 23, 2026
@panva panva requested a review from ChALkeR April 23, 2026 07:18
@panva panva added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 23, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.62%. Comparing base (acb1bd7) to head (ca2bb43).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62905      +/-   ##
==========================================
- Coverage   91.43%   89.62%   -1.82%     
==========================================
  Files         356      706     +350     
  Lines      150580   219201   +68621     
  Branches    23602    41989   +18387     
==========================================
+ Hits       137686   196449   +58763     
- Misses      12625    14629    +2004     
- Partials      269     8123    +7854     
Files with missing lines Coverage Δ
lib/internal/crypto/util.js 95.53% <100.00%> (+2.85%) ⬆️

... and 472 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.

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

Labels

confirmed-bug Issues with confirmed bugs. crypto Issues and PRs related to the crypto subsystem. experimental Issues and PRs related to experimental features. needs-ci PRs that need a full CI run. request-ci Add this label to start a Jenkins CI on a PR. webcrypto

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants