morluto
c06a0b9ee8
feat(pcap): read tshark JSON packets through one envelope owner with an adjustable expansion bound ( #10788 )
...
* refactor(pcap): read tshark JSON packets through one envelope owner
PcapOutput and the packet-capture reader each decoded tshark -T json and checked the packet envelope. The capture reader let SyntaxError escape and accepted any shape until its field schema ran. src/pcap/TsharkJsonPackets.ts now owns the envelope (malformed JSON, the packet array, each packet's _source.layers) as typed failures, and the pcap byte and expansion budget. Both consumers map those failures to their existing error kinds. An architecture guard keeps _source.layers reads in the owner.
* fix(captures): keep producer output on a refused packet reply
parsePacketOutput threw AnalysisOutputError itself, so the provider's failure mapping returned it without the captured stdout and stderr, both for envelope refusals and for unordered or out-of-limit frames. It now returns a Result with the reason and cause, and the provider builds the AnalysisOutputError with capturedOutput.
* feat(captures): bound packet-capture JSON expansion by an adjustable setting
The capture path parsed TShark's selected-field JSON without the expansion
estimate the pcap reader charges. It now reads through readTsharkJsonPackets
under capture.packet_json_expansion_bytes (REA_CAPTURE_PACKET_JSON_EXPANSION_BYTES).
The estimate charges at most 130 bytes per code unit and the output is one
Node string, so no admissible output reaches 69,793,215,440 bytes; the default
and maximum are 128 GiB, so the budget refuses only when lowered. A refusal is
an adjustable_budget resource constraint naming the setting and keeps the
producer output; a malformed launch seed is refused before the capture is read.
2026-11-15 16:17:24 +08:00
..
2026-11-14 21:11:08 -05:00
2026-11-14 04:08:37 -05:00
2026-11-15 14:49:33 +08:00
2026-11-15 14:49:33 +08:00
2026-11-15 16:17:24 +08:00
2026-10-21 21:19:45 -07:00
2026-10-23 02:31:11 +08:00
2026-11-11 17:28:10 +08:00
2026-10-15 18:11:19 +00:00
2026-10-26 16:04:44 +08:00
2026-10-12 09:25:27 +08:00
2026-11-14 20:25:11 +08:00
2026-11-14 04:08:37 -05:00
2026-07-15 17:43:52 +08:00
2026-10-09 20:11:17 +08:00
2026-10-15 20:11:26 +08:00
2026-11-11 17:20:22 +08:00
2026-11-09 08:39:31 -05:00
2026-10-26 14:46:35 +08:00
2026-11-11 00:16:44 -05:00
2026-10-06 01:59:19 +08:00
2026-10-09 20:11:17 +08:00
2026-10-13 18:23:17 +08:00
2026-10-26 15:49:58 +08:00
2026-10-08 22:43:51 +08:00
2026-10-26 15:49:58 +08:00
2026-10-13 12:06:41 +08:00
2026-10-30 18:29:18 +08:00
2026-11-09 20:48:08 +08:00
2026-10-27 17:13:17 +00:00
2026-11-14 11:48:19 +08:00
2026-10-14 04:47:34 +08:00
2026-11-03 09:33:41 +08:00
2026-10-24 09:24:43 +00:00
2026-07-17 00:16:46 +00:00
2026-10-13 22:03:16 +08:00
2026-11-14 19:28:31 +08:00
2026-10-26 17:59:51 +08:00
2026-11-14 20:25:11 +08:00
2026-11-12 05:50:12 -08:00
2026-10-11 11:49:49 +08:00
2026-10-24 11:41:34 +08:00
2026-11-12 05:08:27 -05:00
2026-11-12 20:29:42 -08:00
2026-10-14 13:58:17 +08:00
2026-11-01 00:15:28 +08:00
2026-10-24 15:57:23 +00:00
2026-10-31 16:43:04 +08:00
2026-10-21 19:47:52 +08:00
2026-10-21 19:47:52 +08:00
2026-10-21 19:47:52 +08:00
2026-10-11 18:18:10 +08:00
2026-11-03 09:33:41 +08:00
2026-11-02 02:13:32 +08:00
2026-11-02 10:59:40 +08:00
2026-11-10 16:43:39 -05:00
2026-11-08 01:42:28 +08:00
2026-10-29 09:26:22 +08:00
2026-10-18 03:57:17 +08:00
2026-11-06 01:07:00 +08:00
2026-11-03 09:37:41 +08:00
2026-11-15 14:49:33 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:55:09 +08:00
2026-10-24 21:51:41 +08:00
2026-10-07 21:45:07 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:47:57 +08:00
2026-11-02 02:13:32 +08:00
2026-11-02 02:13:32 +08:00
2026-11-11 17:42:53 -05:00
2026-11-02 02:13:32 +08:00
2026-11-11 17:28:10 +08:00
2026-11-02 02:13:32 +08:00
2026-11-02 02:13:32 +08:00
2026-11-09 21:43:01 +08:00
2026-11-08 01:42:28 +08:00
2026-11-09 21:42:53 +08:00
2026-10-26 22:48:22 +08:00
2026-11-02 02:13:32 +08:00
2026-11-02 02:13:32 +08:00
2026-11-02 02:13:32 +08:00
2026-10-15 18:11:19 +00:00
2026-11-14 09:32:48 +01:00
2026-11-12 23:58:00 -08:00
2026-11-02 02:13:32 +08:00
2026-11-02 10:59:40 +08:00
2026-11-10 16:48:48 -05:00
2026-11-02 02:13:32 +08:00
2026-10-15 12:15:55 +08:00
2026-08-05 19:07:46 +08:00
2026-11-15 08:37:04 +08:00
2026-10-26 15:40:34 +08:00
2026-11-07 23:25:20 +08:00
2026-11-07 23:25:20 +08:00
2026-11-14 09:56:18 +01:00
2026-10-25 02:10:41 +08:00
2026-11-02 02:13:32 +08:00
2026-11-02 02:13:32 +08:00
2026-10-24 22:28:39 +08:00
2026-10-24 22:28:39 +08:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-11-14 04:08:37 -05:00
2026-11-14 04:08:37 -05:00
2026-10-24 22:28:39 +08:00
2026-10-24 22:28:39 +08:00
2026-10-24 22:28:39 +08:00
2026-11-14 15:20:31 -05:00
2026-11-11 00:16:44 -05:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-10-12 18:44:02 +08:00
2026-10-20 00:05:22 +08:00
2026-10-20 00:05:22 +08:00
2026-10-24 17:54:18 +08:00
2026-11-13 10:11:06 -05:00
2026-10-24 22:28:39 +08:00
2026-11-01 18:36:21 +08:00
2026-11-01 18:36:21 +08:00
2026-11-02 02:13:32 +08:00
2026-11-08 06:32:49 +00:00
2026-10-24 16:58:18 +08:00
2026-10-24 16:58:18 +08:00
2026-10-27 17:13:17 +00:00
2026-10-29 09:26:22 +08:00
2026-11-01 00:15:28 +08:00
2026-10-24 22:06:41 +08:00
2026-11-12 19:28:29 -05:00
2026-11-10 17:58:04 -05:00
2026-11-10 16:44:32 -05:00
2026-10-27 13:36:57 +08:00
2026-11-10 17:03:59 -05:00
2026-11-02 02:13:32 +08:00
2026-11-10 17:03:59 -05:00
2026-11-04 19:51:27 +08:00
2026-11-14 04:08:37 -05:00
2026-11-11 17:21:11 +08:00
2026-11-10 17:03:59 -05:00
2026-11-10 05:11:20 -05:00
2026-10-24 07:42:50 +08:00
2026-11-14 04:08:37 -05:00
2026-11-10 17:03:59 -05:00
2026-11-07 20:12:25 +00:00
2026-11-05 04:03:43 +08:00
2026-11-04 19:51:27 +08:00
2026-10-27 00:49:27 +08:00
2026-10-27 06:43:53 +08:00
2026-10-24 08:18:53 +08:00
2026-11-10 16:35:41 -05:00
2026-11-10 17:03:59 -05:00
2026-10-18 07:33:58 +08:00
2026-11-10 16:35:41 -05:00
2026-11-08 08:57:05 +08:00
2026-11-10 17:03:59 -05:00
2026-10-31 15:48:46 +08:00
2026-11-10 17:03:59 -05:00
2026-10-05 22:54:17 +08:00
2026-10-06 01:59:19 +08:00
2026-11-10 17:03:59 -05:00
2026-11-11 21:36:57 -05:00
2026-11-08 08:57:05 +08:00
2026-11-14 04:08:37 -05:00
2026-11-14 04:08:37 -05:00
2026-11-14 04:08:37 -05:00
2026-10-13 14:39:18 +08:00
2026-11-14 04:08:37 -05:00
2026-11-11 17:39:19 +08:00
2026-11-09 22:09:34 +08:00
2026-10-27 01:11:51 +08:00
2026-11-14 15:20:31 -05:00
2026-11-10 17:03:59 -05:00
2026-10-08 10:13:05 +00:00
2026-11-11 09:57:55 -05:00
2026-10-24 16:58:18 +08:00
2026-11-14 09:56:18 +01:00
2026-10-13 21:55:30 +08:00
2026-11-14 04:08:37 -05:00
2026-10-24 15:38:35 +08:00
2026-11-14 09:56:18 +01:00
2026-10-27 01:11:51 +08:00
2026-10-28 18:46:30 +08:00
2026-10-23 16:06:27 +08:00
2026-10-26 16:04:44 +08:00
2026-11-11 21:36:57 -05:00
2026-11-11 21:36:57 -05:00
2026-11-14 15:20:31 -05:00
2026-11-03 09:33:41 +08:00
2026-10-23 16:06:27 +08:00
2026-11-03 09:33:41 +08:00
2026-10-26 14:46:23 +08:00