Skip to content

v2.4.3

Choose a tag to compare

@ngjaying ngjaying released this 16 Nov 10:10
· 12 commits to master-2.4 since this release

Full Changelog: v2.4.2...v2.4.3

⚠️ Breaking Changes

  • Secure-by-default listeners (#4244): RPC, REST management API, HTTP-push ingestion (httpServerIp), Prometheus (basic.prometheusIp), and pprof listeners now bind to 127.0.0.1 instead of 0.0.0.0 by default. Remote management, container port forwarding, and Kubernetes service access require explicitly configuring a reachable bind address. Added basic.disableRpc to disable RPC and CLI service when unneeded.

New Features

  • Streaming LEAD analytic function with WHEN ... UNTIL ... lookahead and current_row(expr) for origin-row access by @ngjaying in #4122
  • Cumulative analytic function acc_distinct_collect and array index function array_positions by @Yisaer in #4163
  • Named sink actions: support optional name property on sink action definitions to easily identify destinations in metrics, logs, and topologies (e.g. distinguishing multiple MQTT or REST sinks) by @ngjaying in #4235

Security Hardening

  • Default listeners to loopback (127.0.0.1) and add basic.disableRpc switch by @ngjaying in #4244
  • Block SSRF in gRPC executor, WebSocket client, and msgpack executor by enforcing basic.enablePrivateNet on egress dialers by @ngjaying in #4143
  • Image sink: contain file writes strictly within configured output directory to prevent path traversal via generated filenames by @ngjaying in #4246
  • TDengine sink: safely encode stream field and tag values as SQL literals and validate table/column identifiers by @ngjaying in #4245
  • Harden HTTPS download transport verification by @ngjaying in #4210
  • Scan source and PR commits with Gitleaks and sanitize test credential examples by @ngjaying in #4209 and #4208

Bug Fixes

  • SQL: make SQL source, sink, and lookup cancelable with rule context, and bound lookup connection wait time to 10s to prevent blocking rule and table lifecycle operations by @ngjaying in #4221
  • Sink: wrap InfluxDB v1 sink write failures as retryable IOErr, enabling sink caching (enableCache) and in-order resend during database outages by @sheyanjie-qq in #4201
  • JOIN: determine left and right sides strictly from FROM (left) and JOIN (right) instead of ON clause predicate mention order by @SahilRajputdotexe in #4189
  • Graph: preserve stream columns in graph rules by planning with wildcard column pruning by @NopeCharon in #4213
  • Cache: resume resend ticker immediately upon restoring cache entries on restart, and exclude runtime tracer contexts from gob serialization to prevent disk spill errors by @ngjaying in #4186 and #4187
  • MQTT: fix MQTT v5 client reconnect resubscription by ensuring SUBSCRIBE packets always include topic filters by @fl0-m in #4185
  • Rule: serialize stop checks under rule lock to avoid nil-pointer panic during topology auto-exit and explicit stop races by @ngjaying in #4167
  • Schedule Rules: prevent scheduled rules outside active time window from running briefly on creation/update by @ngjaying in #4204, and quiet repeated scheduled stop logs from INFO to DEBUG by @ngjaying in #4215
  • Service: refresh executors upon service update or deletion to ensure updated endpoints take effect on rule start/restart by @NopeCharon in #4217
  • Startup: retry transient database write errors during startup init.json import up to 3 times before deferring initialization marker by @ngjaying in #4151
  • REST Sink: drain unread HTTP response bodies before closing connections when debugResp=false to enable HTTP/1.1 connection reuse by @ngjaying in #4212
  • Conf: honor companion JSON schema property types during environment variable configuration overrides to prevent numeric-like strings from decoding as integers by @Dream95 in #4160
  • Planner: resolve unqualified references to preceding direct SELECT field aliases in schema-less streams by @ngjaying in #4137
  • Log: avoid oversized rule parse errors by reporting input byte size and SHA-256 fingerprint instead of full SQL/JSON dumps by @ngjaying in #4134
  • Logger: honor disabled console logging (consoleLog: false and fileLog: false) by discarding output instead of writing to stderr by @ngjaying in #4197
  • XSQL: guard against nil dereference panic during empty join lookup when projection discards source fields by @Hanabi9248 in #4136
  • Functions & Casting:
    • Array / Set: handle array elements properly in set functions (set_union, set_intersection, set_difference) by @NUAAwqy in #4240
    • Array: use deep equality comparison in array functions (array_position, array_contains, etc.) to prevent panics when comparing nested slices by @NUAAwqy in #4207
    • Array: keep array_remove input slice unchanged by @NUAAwqy in #4223
    • Object: keep nested keys in object_pick by @NUAAwqy in #4238
    • String & Math: reject negative pad lengths in lpad/rpad by @NUAAwqy in #4206, reject empty string in chr by @NUAAwqy in #4233, validate mod second argument by @NUAAwqy in #4232, validate dec2hex argument by @NUAAwqy in #4229, and accept int64 in repeat and sequence by @NUAAwqy in #4225
    • Time & Date: fix fractional seconds precision (fsp) handling in now() and cur_time() by @NUAAwqy in #4227
    • Cast: reject unterminated quoted time formats with explicit errors instead of panicking on trailing quotes, and preserve literal apostrophes in doubled quotes by @zjncs in #4124

Performance

  • Window: dirty-only state snapshots in incremental aggregation operators, cutting per-row checkpoint serialization overhead by @ngjaying in #4193
  • Sink: defer sink property template evaluation to once per batch in slice mode with batching sinks by @ngjaying in #4148
  • Project: pre-size slice tuple sink content with row field capacity to eliminate incremental slice reallocations by @ngjaying in #4149

Dependencies and Chores

  • Bump go-jose/v4 to 4.0.5 in #4231
  • Bump github.com/klauspost/compress in #4205
  • Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp in #4152
  • Test: fix flaky TestRule race condition in server tests by @ngjaying in #4175
  • Test: synchronize source test result collection by @ngjaying in #4241
  • Test: stabilize OpenTelemetry trace lookup FVT rate limiting window by @ngjaying in #4191
  • Test: pin timezone in internal/xsql/valuer_test.go comparison tests by @NopeCharon in #4220
  • CI: use Python 3.12 for documentation deployment in #4236