Skip to content

quic: fix crypto error classification - #66968

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
efekrskl:quic/fix-crypto-err-classification
Oct 30, 2026
Merged

nodejs-github-bot merged 2 commits into
nodejs:mainfrom
efekrskl:quic/fix-crypto-err-classification

Conversation

@efekrskl

@efekrskl efekrskl commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

QuicError::is_crypto_error() checked only whether the 0x100 bit was set, causing overlapping application codes such as HTTP/3 H3_MISSING_SETTINGS (0x10a) to be mislabeled as TLS alerts.

Require the transport namespace and the RFC-defined 0x100–0x1ff range before decoding TLS alerts. This follows RFC 9000 §20.1 and RFC 9001 §4.8.

Adds regression coverage, and some doc improvements.

AI assistance: Codex assisted with the source investigation, implementation, and test drafting. I reviewed the resulting changes and RFC references.

Signed-off-by: Efe Karasakal <hi@efe.dev>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/quic

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC transport implementation. labels Oct 23, 2026
Signed-off-by: Efe Karasakal <hi@efe.dev>
@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.58%. Comparing base (6511fb8) to head (722e37d).
⚠️ Report is 21 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #66968      +/-   ##
==========================================
- Coverage   90.59%   90.58%   -0.01%     
==========================================
  Files         797      797              
  Lines      278293   278295       +2     
  Branches    53520    53518       -2     
==========================================
- Hits       252112   252105       -7     
- Misses      16563    16567       +4     
- Partials     9618     9623       +5     
Files with missing lines Coverage Δ
lib/internal/quic/quic.js 100.00% <100.00%> (ø)

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

@pimterry pimterry 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 Oct 24, 2026
@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 Oct 24, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@pimterry pimterry added commit-queue PRs queued for automated landing through the Commit Queue. commit-queue-squash PRs the Commit Queue should land as one squashed commit. labels Oct 24, 2026
@nodejs-github-bot nodejs-github-bot added the lacks-second-approval Commit Queue PRs awaiting a second collaborator approval or completion of the required wait. label Oct 25, 2026
@nodejs-github-bot
nodejs-github-bot merged commit cfea992 into nodejs:main Oct 30, 2026
75 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in cfea992

@nodejs-github-bot nodejs-github-bot removed commit-queue PRs queued for automated landing through the Commit Queue. lacks-second-approval Commit Queue PRs awaiting a second collaborator approval or completion of the required wait. labels Oct 30, 2026
aduh95 pushed a commit that referenced this pull request Nov 11, 2026
Signed-off-by: Efe Karasakal <hi@efe.dev>
PR-URL: #66968
Reviewed-By: Tim Perry <pimterry@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-squash PRs the Commit Queue should land as one squashed commit. needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC transport implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants