Skip to content

eCapture v2.12.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Nov 12:34
· 2 commits to master since this release
369f10f

Breaking Changes / Migration

Upgrade capture commands and receivers together. eCapture now routes runtime logs and captured events through a repeatable --output flag. Files and outgoing TCP connections carry Protobuf v2 JSON Lines. WebSocket subscribers receive binary v2 records. The legacy flags below have been removed without aliases. #1094

v2.11.0 configuration v2.12.0 migration
--eventaddr, --logaddr / -l Repeat --output once per destination. With no flag, logs and events go to stdout. Explicit destinations replace that default. Use stdout or stderr for labeled text, and a path, file:///PATH, or tcp://HOST:PORT for JSON Lines.
--ecaptureq ws://HOST:PORT/PATH Use --stream-listen ws://HOST:PORT/PATH. Clients connect to eCapture and must negotiate the ecapture.v2 subprotocol. Existing v1 clients need a v2 decoder.
Outgoing ws:// or wss:// event/log destinations Migrate the receiver to JSON Lines over TCP, or have it subscribe to --stream-listen.
--listen HOST:PORT Use --config-listen HOST:PORT for HTTP configuration updates. Both the HTTP and WebSocket listeners are disabled by default.
--eventroratesize, --eventroratetime Remove these flags from startup scripts. File rotation has no CLI replacement.
-m keylog or -m pcapng with an implicit filename or redirected stdout Specify a local --keylogfile PATH or --pcapfile PATH for the corresponding mode. Keep it separate from any --output file.

For tls (OpenSSL/BoringSSL), gotls, and gnutls, the default --model text --text-source pcapng writes decoded messages and runtime logs to the selected outputs. In this mode, --pcapfile and --keylogfile can optionally save the packets and secrets used for decryption. In keylog and pcapng modes, an --output file receives only runtime logs.

# Keep decoded text on the terminal and also save structured records.
sudo ecapture tls --model text --text-source pcapng --output stdout --output capture.jsonl

# Save packets and TLS secrets for Wireshark, with runtime logs in a separate file.
sudo ecapture tls --model pcapng --pcapfile capture.pcapng --output runtime.jsonl

What's Changed

  • *: replace legacy output flags with Protobuf v2 streams by @cfc4n in #1094
  • *: publish collector runtime metadata to stream clients by @cfc4n in #1095
  • output: move subscription service to internal stream package by @cfc4n in #1096
  • cli: clarify capture options and command help by @cfc4n in #1097

Full Changelog: v2.11.0...v2.12.0