mitmproxy / mitmproxy/mitmproxy

Add more commands to start applications with mitmproxy preconfigured

Open
#5,247 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Take one of the targets above and figure out how to start it with a proxy server preconfigured.
  2. Extend the browser addon with a custom command that invokes the application.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.