Repository navigation
feat(browser): accept mitmproxy 12.3.1 for native capture decode - #8088
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The PR appears safe to merge, with the previous stale-example finding addressed and no new blocking issue found. SummaryUpdates the native mitmproxy decoder and Linux verification download to
Reviews (3) · Last reviewed commit: "test(web): regenerate published HAR exam..." · Reviewed by Greptile |
Bump the offline adapter profile, provider identity, Linux verification archive, and docs so callers can use mitmproxy 12.3.1 instead of the 12.2.3 pin that blocks patched Brotli/cryptography. Keep SaveHar null postData admission for both producer versions. Fixes morluto#8078
325266a to
d4a6075
Compare
|
Hey @gyanu2507, thanks for this! The addition looks good. What's left: it has merge conflicts with main in |
Keep accepting mitmproxy 12.3.1 for SaveHar null postData alongside the upstream bracketed-IPv6 producer adaptation.
|
@morluto Merged current main and resolved the conflicts in Upstream's bracketed-IPv6 producer adaptation is kept; mitmproxy 12.3.1 stays accepted for the SaveHar null |
Main now admits HAR producers through HAR_PRODUCER_PROFILES, so 12.3.1 joins 12.2.3 there. Its native profile download regression, retried workflow download, notices and tool description move to the 12.3.1 archive and digest. Both new bridge test groups are kept. Co-Authored-By: gensokyo-dev <[email protected]>
The HAR limitation now names both admitted mitmproxy profiles, which changes the decoded capture's Evidence ID and both views' parent and view digests. Update the published API surface and environment manifest examples to the identities reproduced from their fixture bytes. Co-Authored-By: gensokyo-dev <[email protected]>
|
I verified the pin and brought this up to date with main:
On the merged result: 29 bridge tests, 94 HAR and download tests and 35 analysis-view MCP tests pass, and lint, typecheck and docs checks are clean. |
gensokyo-dev
left a comment
There was a problem hiding this comment.
Verified: tag v12.3.1 resolves to 51c1d6b2, the official linux-x86_64 tarball hashes to f7b4237f…, and mitmproxy/io and addons/savehar are unchanged between 12.2.3 and 12.3.1. After merging main and regenerating the published example identities, 29 bridge tests, 94 HAR and download tests and 35 analysis-view MCP tests pass, with lint, typecheck and docs checks clean. Thanks.
Summary
Thanks @ristoxy for pinning down the dependency trap in #8078 and for already checking that 12.2.3 and 12.3.1 share the same tnetstring/compat path and produce identical decode output.
This PR moves the offline native mitmproxy adapter from the exact
12.2.3profile to12.3.1, so bring-your-own mitmdump can take the Brotli/cryptography fixes that 12.2.3's upper bounds refuse.Fixes #8078
Problem and expected behavior
bridge/mitmproxy/capture.pyrejected every mitmproxy version other than 12.2.3. That forces a toolchain whose dependency ceiling still includes known-vulnerable Brotli and cryptography ranges. Expected: the adapter accepts 12.3.1, reports that version in its decoder identity, and keeps the same native decode behavior.Change and scope
PROFILEandMITMPROXY_CAPTURE_PROVIDER_IDENTITY.versionto12.3.1.postData.text: nulladmission for both12.2.3and12.3.1so older HARs still validate.Not included: accepting a version range at runtime, changing decode logic, or installing mitmproxy for callers.
Follow the contribution scope.
Maintainer scope decision: not applicable (existing offline decoder profile bump; no new execution or mutation authority).
Contract and boundary impact
bridge/mitmproxy/capture.py) and its provider identity; CLI/MCP consumers reuse the same decode path.docs/public/product-catalog.json), package, or installation impact: identity version change only; catalogs remain CI-generated.Expected effects (check known effects; use documentation-only on its own).
Evidence and regression coverage
bridge/mitmproxy/test_capture.pyprofile gate (accept 12.3.1 identity, reject 12.2.3 runtime);HarCapture.test.tsSaveHar null-text cases for both producer versions.PROFILE = "12.2.3"; issue [Feature] Accept mitmproxy 12.3.x in the native mitmproxy capture adapter #8078 reports byte-identical decode under both versions when only PROFILE is swapped.verify:web:network-capturesagainst a real mitmdump 12.3.1 binary was not run on this macOS host (adapter requires Linux). Archive SHA-256 was computed locally from the official download.Boundary regressions: historical capture decoder profile/identity; SaveHar producer quirk admission.
For evidence-bearing changes:
Validation performed
python3 -m unittest bridge.mitmproxy.test_capture -v— 24 passed, including new profile gate tests.npm run test:local -- src/browser/history/HarCapture.test.ts(Node 24.22.2) — 104 passed.shasum -a 256 mitmproxy-12.3.1-linux-x86_64.tar.gz—f7b4237f5702f6cd21357fe6e4680a7e905f8f9b816b872230d018ea696c34d5.npm run verify:web:network-captureswith mitmdump 12.3.1 — not run here (non-Linux host).Compatibility, safety, and release
Author readiness
Human owner: @gyanu2507
Before merge
type(scope): outcome.