3x-ui/internal/web/runtime
MHSanaei 5a1ea42785
fix(node): bound what a node's answers can cost the master
Node responses are untrusted input on the master, and a few shapes still
cost it without bound under the 64 MiB body cap:
- a success=false message became an error (logged, stored as lastError)
  in full; it is now cut to the 8 KiB the non-200 diagnostic already uses;
- each "{}" of a reported list decodes into a whole struct, so lists are
  now decoded entry by entry with per-endpoint caps (1024 descendants,
  65536 inbounds and host groups, 1M client-IP rows), and the GUID-keyed
  trees and maps are capped at 1M values;
- a TLS handshake the node never answers kept a socket and goroutines
  alive forever, since the transport keeps dialing for its pool after the
  request gives up; node transports now give up after 10 s.
2026-10-31 09:19:51 +00:00
..
local.go feat(amneziawg): add opt-in Linux kernel datapath (#6877) 2026-10-25 13:24:50 +01:00
local_amneziawg_datapath_test.go feat(amneziawg): add opt-in Linux kernel datapath (#6877) 2026-10-25 13:24:50 +01:00
local_api.go perf(runtime): pool the local xray gRPC connection (#6916) 2026-10-24 19:30:09 +02:00
local_api_test.go perf(runtime): pool the local xray gRPC connection (#6916) 2026-10-24 19:30:09 +02:00
local_tuic_test.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
manager.go fix(node): release a deleted node's metric series and HTTP client 2026-09-15 20:39:32 +02:00
manager_convergence_test.go fix(runtime): refresh cached node remotes on identity change (#5614) 2026-06-28 15:01:18 +02:00
reconcile_skip_test.go fix(nodes): let a master's push and reconcile converge node inbounds 2026-10-05 12:17:59 +02:00
remote.go fix(node): bound what a node's answers can cost the master 2026-10-31 09:19:51 +00:00
remote_decode.go fix(node): bound what a node's answers can cost the master 2026-10-31 09:19:51 +00:00
remote_envelope_test.go feat(amneziawg): add opt-in Linux kernel datapath (#6877) 2026-10-25 13:24:50 +01:00
remote_mtls_test.go feat(node): node hardening — mTLS, hashed+zstd reconcile transport, per-node net metrics (#5382) 2026-06-16 12:19:33 +02:00
remote_reset_test.go fix(runtime): reset node inbound traffic by node-side id (#6717) 2026-10-03 00:59:11 +02:00
remote_test.go fix(node): bound what a node's answers can cost the master 2026-10-31 09:19:51 +00:00
runtime.go fix(node): fully delete clients on nodes instead of only detaching them 2026-07-05 20:28:26 +02:00
tls_client.go fix(node): bound what a node's answers can cost the master 2026-10-31 09:19:51 +00:00
tls_client_invalidate_test.go fix(node): release a deleted node's metric series and HTTP client 2026-09-15 20:39:32 +02:00
tls_client_property_test.go Test-quality audit: fix 2 prod bugs, strengthen weak tests, add mutation/fuzz/CI tooling (#5345) 2026-06-15 15:17:03 +02:00
tls_client_test.go fix(node): bound what a node's answers can cost the master 2026-10-31 09:19:51 +00:00
tls_client_wire_test.go fix(nodes): apply a rotated master mTLS certificate without restarting the panel (#6194) 2026-08-15 16:03:42 +02:00