feat(fiddler): inspect native SAZ captures
Inspect bounded recorded raw HTTP/XML SAZ archives and page retained capture Evidence. Preserve exact stored bytes and provenance, validate ZIP/XML integrity, and require an enforceable decoder memory bound. Verified 356 real recorded sessions against independent byte and metadata oracles, public CLI/MCP parity, retained pages, and related interface checks. Current Fiddler Everywhere GUI and non-Linux producer workflows remain unverified. Co-authored-by: zahhak <1792039+zahhak@users.noreply.github.com> Co-authored-by: N0zoM1z0 <161784452+N0zoM1z0@users.noreply.github.com>
This commit is contained in:
co-authored by
zahhak
N0zoM1z0
parent
f254f5ac2b
commit
a2d8b94dd5
@@ -4,9 +4,9 @@ import {
|
||||
captureMemoryFailure,
|
||||
} from "./CaptureFailures.js";
|
||||
import {
|
||||
HAR_CAPTURE_HEAP_ENFORCED,
|
||||
HAR_CAPTURE_HEAP_LIMITS,
|
||||
HAR_CAPTURE_PROCESS_MEMORY_LIMIT_BYTES,
|
||||
NODE_CAPTURE_HEAP_ENFORCED,
|
||||
NODE_CAPTURE_HEAP_LIMITS,
|
||||
NODE_CAPTURE_PROCESS_MEMORY_LIMIT_BYTES,
|
||||
} from "./CaptureRelease.js";
|
||||
import { projectAnalysisError } from "../../domain/analysisErrorProjection.js";
|
||||
import type { HistoricalCaptureFormatAdapter } from "./HistoricalCaptureFormatAdapter.js";
|
||||
@@ -208,10 +208,11 @@ export class HistoricalCaptureDecoder {
|
||||
format: input.format,
|
||||
runtime_attribution: "unknown",
|
||||
limitations: [
|
||||
...(adapter.limitations ?? []),
|
||||
"This is retained producer evidence, without live browser transaction IDs, scenario provenance, execution attribution or deployment authenticity. Recorded URLs are never fetched.",
|
||||
"Every record is decoded before selection; no partial success is returned on malformed input or a resource limit.",
|
||||
"Known authentication headers/cookies and explicitly marked literal values are excluded. Unknown extension names do not establish sensitivity.",
|
||||
`A 32 MiB input, 96 MiB reply and 64-level nesting budget bound complete evidence. ${harMemoryLimitation()}; native decoding uses a 768 MiB Linux address-space limit. Each owned command has a 30-second deadline with independent cleanup.`,
|
||||
`A 32 MiB input, 96 MiB reply and 64-level nesting budget bound complete evidence. ${nodeMemoryLimitation()}; mitmproxy decoding uses a 768 MiB Linux address-space limit. Each owned command has a 30-second deadline with independent cleanup.`,
|
||||
],
|
||||
});
|
||||
} catch (cause: unknown) {
|
||||
@@ -251,13 +252,13 @@ export class HistoricalCaptureDecoder {
|
||||
}
|
||||
}
|
||||
|
||||
/** The HAR decoder runs on this executable; only Node.js enforces its V8 heap flags. */
|
||||
const harMemoryLimitation = (): string => {
|
||||
if (HAR_CAPTURE_HEAP_ENFORCED)
|
||||
return `HAR uses a ${String(HAR_CAPTURE_HEAP_LIMITS.oldGenerationMiB)} MiB Node old-generation heap`;
|
||||
return HAR_CAPTURE_PROCESS_MEMORY_LIMIT_BYTES === null
|
||||
? "HAR runs on Bun, which does not enforce REA's V8 heap flags"
|
||||
: `HAR runs on Bun, which does not enforce REA's V8 heap flags, under a ${String(HAR_CAPTURE_PROCESS_MEMORY_LIMIT_BYTES)}-byte Windows Job Object commit limit`;
|
||||
/** The Node capture decoder runs on this executable; only Node.js enforces its V8 heap flags. */
|
||||
const nodeMemoryLimitation = (): string => {
|
||||
if (NODE_CAPTURE_HEAP_ENFORCED)
|
||||
return `HAR/SAZ use a ${String(NODE_CAPTURE_HEAP_LIMITS.oldGenerationMiB)} MiB Node old-generation heap`;
|
||||
return NODE_CAPTURE_PROCESS_MEMORY_LIMIT_BYTES === null
|
||||
? "HAR/SAZ run on Bun, which does not enforce REA's V8 heap flags"
|
||||
: `HAR/SAZ run on Bun, which does not enforce REA's V8 heap flags, under a ${String(NODE_CAPTURE_PROCESS_MEMORY_LIMIT_BYTES)}-byte Windows Job Object commit limit`;
|
||||
};
|
||||
|
||||
const replyFailureReason = (cause: unknown): string => {
|
||||
|
||||
Reference in New Issue
Block a user