← Back to Pull requests

tls: disable TLS renegotiation by default, with a warning if enabled #67618

Merged
pimterry merged 18 files (354 lines) on Nov 23, 2026 08:55 UTC
View on GitHub
pimterry pimterry commented on Nov 19, 2026 14:27 UTC
Author

The next step in the deprecation process for renegotation, as outlined in #67532: disable renegotiation by default in v27. For now this will be available on an opt-in basis only, with warnings when used. This disables a rarely used feature with security risks. The following step (v28 or later) will be to remove it completely.

One case here does not warn: enabling renegotiation for a client explicitly, and then using it just to accept server-initiated renegotiations. This will be retained for legacy server support scenarios. Initiating renegotiation from the client side still emits a warning.

Notable change:

TLS renegotiation is now disabled by default (DEP0213). Users who need this must now enable it explicitly with the allowRenegotiation: true option. This should be treated as a temporary fix, as renegotiation will be removed completely in a future major release.

Diff: 354 lines (+257 / -97) across 18 files Reviewer: panva Review duration: 5427m
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.90) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.90 · 354 lines diff across 18 files
0.90
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.55 · 5 substantive comment(s)
0.55
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
72%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.351
Sensitive Paths sensitive_paths
0.090
Mass File Touch mass_file_touch
0.080
Real PR Conversation Timeline
9 items
nodejs-github-bot nodejs-github-bot commented on Nov 19, 2026 14:27 UTC
Bot

Review requested:

  • @nodejs/crypto

  • @nodejs/net

  • @nodejs/userland-migrations
  • panva panva approved these changes on Nov 19, 2026 14:29 UTC
    Approved Reviewer

    Approved these changes.

    codecov[bot] codecov[bot] commented on Nov 19, 2026 16:02 UTC
    Bot

    Codecov Report


    :x: Patch coverage is 97.56098% with 1 line in your changes missing coverage. Please review.
    :white_check_mark: Project coverage is 90.71%. Comparing base (d9e18d5) to head (d8a6f1f).
    :warning: Report is 136 commits behind head on main.

    | Files with missing lines | Patch % | Lines |
    |---|---|---|
    | lib/internal/tls/wrap.js | 91.66% | 1 Missing :warning: |

    <details><summary>Additional details and impacted files</summary>

    @@            Coverage Diff             @@
    ##             main   #67618      +/-   ##
    ==========================================
    - Coverage   90.72%   90.71%   -0.02%     
    ==========================================
      Files         801      801              
      Lines      280809   280807       -2     
      Branches    54212    54204       -8     
    ==========================================
    - Hits       254776   254730      -46     
    - Misses      16209    16253      +44     
      Partials     9824     9824              
    

    | Files with missing lines | Coverage Δ | |
    |---|---|---|
    | lib/internal/tls/common.js | 97.63% <100.00%> (+0.05%) | :arrow_up: |
    | lib/tls.js | 94.11% <100.00%> (+0.25%) | :arrow_up: |
    | lib/internal/tls/wrap.js | 95.78% <91.66%> (-0.02%) | :arrow_down: |

    ... and 31 files with indirect coverage changes
    </details>
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    jasnell jasnell approved these changes on Nov 22, 2026 20:30 UTC
    Approved Reviewer

    Approved these changes.

    github-actions[bot] github-actions[bot] commented on Nov 23, 2026 08:48 UTC
    Bot

    The https://github.com/nodejs/node/labels/notable-change label has been added by @pimterry.

    Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the _Other Notable Changes_ section.

    nodejs-github-bot nodejs-github-bot commented on Nov 23, 2026 08:55 UTC
    Bot

    Landed in 1ad01d3f39d2a760b19233ef112d3e25929f98de

    Reviewers
    Assignees
    pimterry pimterry
    Labels
    risk: low confidence: 72.1% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 89.8% (HIGH) · Higher = larger blast radius
    89.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 72.1% · Lower = rushed or shallow review
    72.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 25.1% · Safe to merge
    25.1%
    Repository