nodejs / nodejs/node

tls: add support for Encrypted Client Hello (ECH) — tracking (OpenSSL 4.0 / master)

Đang mở
#64,280 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

feature request tls
Ngôn ngữ chính
JavaScript
Star
122k
Fork
37.3k
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
283

Mô tả

What is the problem this feature will solve?

Node.js has no support for Encrypted Client Hello (ECH). The node:tls module (and everything built on it, including undici/fetch) always sends the SNI in plaintext, so applications cannot make TLS connections with an encrypted ClientHello the way modern browsers (Firefox, Chrome) already do.

There was a previous tracking issue for this, #31618 ("tls: Encrypted Client Hello (ECH)"), but it was auto-closed by the stale bot in Oct 2022 due to inactivity — not because it was implemented. At that time the feature was explicitly blocked on OpenSSL, per the maintainers:

"ESNI is still in draft ... can't be supported by Node.js until OpenSSL supports it."

Status of the upstream dependency

ECH is now standardized as RFC 9849 (March 2026), and OpenSSL's ECH tracking issue openssl/openssl#7482 was closed as completed on 2026-03-04 (merge openssl/openssl#30086). Per the closing comment:

"ECH support for this RFC will be in OpenSSL 4.0 and is already in the master branch."

So the important nuance: ECH is in OpenSSL master, targeting the 4.0 release — it is not in the 3.5 line that Node currently bundles. This request is therefore not immediately actionable; it is a tracking issue for when Node bundles an OpenSSL that includes ECH (4.0+). Filing it now so the requirement is captured, since the old #31618 is stale-closed.

What is the feature you are proposing to solve the problem?

Once Node bundles an OpenSSL with ECH (4.0+), expose that ECH API through node:tls. Concretely:

  • A tls.connect() option to supply the config material, e.g. echConfigList (a Buffer containing the server's ECHConfigList), mirroring OpenSSL's SSL_ech_set1_echconfig() / SSL_CTX_ech_set1_echconfig().
  • A way to surface the ECH outcome after the handshake (accepted / rejected / retry-config), e.g. via SSL_ech_get1_status(), so callers can distinguish real ECH from GREASE.
  • Optionally, resolver integration so the ECHConfigList from a HTTPS/SVCB DNS RR can be used (browsers fetch it from DNS). Could start with a caller-supplied config and add DNS integration later.

Consumers like undici/fetch would then inherit ECH support.

What alternatives have you considered?
  • Shelling out to an ECH-enabled curl build — requires a custom curl build and loses the native API.
  • A native N-API addon calling SSL_ech_* — Node's bundled OpenSSL (3.5.x) doesn't include ECH, so this needs a rebuilt Node against OpenSSL 4.0/master.
  • Driving a headless browser — far too heavy and doesn't measure a clean protocol-level request.

None of these are a substitute for first-class support in node:tls.

Related

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Issue không nêu tên tệp nguồn Node.js hoặc bài kiểm thử nào; hãy bắt đầu với API node:tls tls.connect và các API ECH của OpenSSL 4.0 khi dependency đi kèm đã khả dụng. Công việc được xem là hoàn tất khi Node cung cấp cấu hình ECH do bên gọi cung cấp và kết quả handshake đã thống nhất, với việc tích hợp DNS được xử lý theo phạm vi cuối cùng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, nodejs
Lĩnh vực
networking, security
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.