You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`OPENSANDBOX_EGRESS_MITMPROXY_SCRIPT`| No |Additional user mitm addon script path (`-s`); loaded after the system addon| Empty |
47
47
|`OPENSANDBOX_EGRESS_MITMPROXY_IGNORE_HOSTS`| No | Host/IP regex list for TLS pass-through (`;` separated) | Empty |
48
48
|`OPENSANDBOX_EGRESS_MITMPROXY_CONFDIR`| No | mitm config and CA directory (passed as `--set confdir=`, also used as `HOME`) | Default directory under `/var/lib/mitmproxy`|
49
49
|`OPENSANDBOX_EGRESS_MITMPROXY_UPSTREAM_TRUST_DIR`| No | Trust directory for upstream TLS verification (OpenSSL style) |`/etc/ssl/certs`|
The bundled system addon at `/var/egress/mitmscripts/system.py` is shipped in the egress image and loaded automatically whenever transparent mode is enabled. It stays wire-transparent (no headers added or altered) and currently provides:
68
+
69
+
- Forces streaming (`flow.response.stream = True`) for SSE (`text/event-stream`) and chunked responses, so each chunk is forwarded immediately instead of being buffered up to the `stream_large_bodies=1m` threshold (critical for LLM streaming UX).
70
+
71
+
The system addon is always loaded and cannot be disabled via configuration. To override its behavior, supply a user addon via `OPENSANDBOX_EGRESS_MITMPROXY_SCRIPT`; user addons are loaded after the system addon and may observe or override its hooks.
72
+
73
+
### 3) Add a User Addon Alongside the System Addon
0 commit comments