Files
honk/changes/feat-ech-complete.md
M0re Co1ors 2906442929 feat(ech): harden ECH validation, discovery, GREASE and subscription import (#568)
* feat(config): validate ECH config lists and share-link queries

* feat(outbound): harden ECH validation, discovery and Chrome GREASE

* feat(subscription,native-api): import Clash and sing-box ECH and tighten offline capture

* docs(ech): document ECH validation, subscription import and changelog
2026-11-29 16:27:39 +08:00

1.6 KiB

Changed

  • Validate inline ech_config and file-backed ech_config_path Base64 and RFC 9849 ECHConfigList wire syntax fail-closed (up to 65,537 decoded bytes) at node admission, file load, registry preflight, and QUIC client initialization; plaintext nodes outside QUIC, AnyTLS, and REALITY reject active ECH fields, QUIC and AnyTLS nodes with tls: false share TLS preflight and native offline-dependency validation with ordinary non-REALITY TCP TLS, and offline validation authorizes active ech_config_path entries only when actually used (excluding REALITY and inline-overridden paths).
  • Preserve literal + in share-link ECH query parameters (ech_config, echconfig, ech), trim stored static values, accept static Base64 ECHConfigList values in ech=<base64>, and enforce ech_config > echconfig > ech precedence while rejecting empty values and conflicts with ech=0/false. Breaking: unrecognized share-link ech=... values (such as ech=https://... or ech=name+https://...) are now rejected fail-closed instead of being silently treated as disabled.
  • Import Clash ech-opts (enable, config, query-server-name) and sing-box tls.ech (enabled, single ECH CONFIGS PEM config) in subscriptions, skipping malformed or unsupported ECH entries individually without rejecting healthy siblings.
  • Ignore and negatively cache (5 minutes) malformed DNS HTTPS RR ech payloads during discovery, align QUIC ECH discovery with uses_ech_discovery() and tls_server_name(), and keep Chrome (utls) ECH GREASE enabled when a valid ECHConfigList offers no supported parameters.