44122e2728
test / integration-docker (pull_request) Successful in 20s
lint / lint (push) Successful in 1m1s
test / unit (pull_request) Failing after 1m46s
test / integration-firecracker (pull_request) Successful in 3m22s
test / coverage (pull_request) Has been skipped
test / publish-infra (pull_request) Has been skipped
tracker-policy-pr / check-pr (pull_request) Failing after 10m4s
Two complementary fixes for the egress gateway OOM: 1. gateway_init: auto-restart any daemon that dies unexpectedly. The supervisor already had restart_daemon()/request_restart() logic; this wires it into tick() so an OOM-killed mitmdump is respawned without operator intervention. Implements the "eventual" failure policy described in the original module docstring. 2. egress_addon: cap response body bytes passed to the DLP inbound scan at EGRESS_INBOUND_SCAN_LIMIT_BYTES (default 1 MiB). mitmproxy buffers the full response before the hook fires; capping at scan time limits the additional amplification from decoded text and regex strings. Bodies over the limit emit an egress_scan_truncated log event. Set to 0 to disable the cap. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>