mitmproxy / mitmproxy/mitmproxy
Add more commands to start applications with mitmproxy preconfigured
Open
Nobody has claimed this yet.
area/addons
help wanted
kind/feature
kind/ux
- Dominant language
- Python
- Stars
- 45.1k
- Forks
- 4.7k
- Avg merge
- 21h 12m
- Merged PRs (30d)
- 16
Description
Many mitmproxy users only want to proxy one specific application. We already have a browser.start command to boot up a Chrome instance, it would be very useful to have similar wrappers for other browsers and applications:
- Firefox
- Edge
- Safari
- Docker Containers
- Android Devices
Implementation Steps
- Take one of the targets above and figure out how to start it with a proxy server preconfigured.
- Extend the browser addon with a custom command that invokes the application.
- Add a test in https://github.com/mitmproxy/mitmproxy/blob/main/test/mitmproxy/addons/test_browser.py. These tests aren't particularly useful as we want to mock the actual application, but we require 100% test coverage for all builtin addons.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading mitmproxy/addons/browser.py and the existing browser.start command, then inspect test/mitmproxy/addons/test_browser.py. Choose one listed target, determine how it starts with a proxy configured, add a browser-addon command that invokes it, and mock the application in tests so the addon remains fully covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100