Commit Graph

10582 Commits

Author SHA1 Message Date
Maximilian Hils 65039660a2
Improve docstring for `Server.address` (#6352) 2023-09-05 13:40:55 +00:00
dependabot[bot] c06da9cfa1
Bump pyinstaller from 5.13.0 to 5.13.2 (#6347)
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 5.13.0 to 5.13.2.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/v5.13.2/doc/CHANGES.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.13.0...v5.13.2)

---
updated-dependencies:
- dependency-name: pyinstaller
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 15:33:03 +02:00
dependabot[bot] 4f1403224d
Bump the github-actions group with 2 updates (#6349)
Bumps the github-actions group with 2 updates: [install-pinned/black](https://github.com/install-pinned/black) and [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action).


Updates `install-pinned/black` from 97252d99da3d792eedae55ff50e64df8bd162447 to ba55a508f931f1ee71ee049edba55c3382567656
- [Release notes](https://github.com/install-pinned/black/releases)
- [Commits](97252d99da...ba55a508f9)

Updates `docker/setup-buildx-action` from 2.9.1 to 2.10.0
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](4c0219f9ac...885d1462b8)

---
updated-dependencies:
- dependency-name: install-pinned/black
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 15:32:54 +02:00
Maximilian Hils 7aa41a8467
typing_extensions: use semver for version bounds (#6307)
refs #6306
2023-08-09 08:34:26 +00:00
Maximilian Hils ad3694de76 build installer in release workflow 2023-08-04 12:13:51 +02:00
mitmproxy release bot 4725e1e12c reopen main for development 2023-08-04 09:37:11 +00:00
mitmproxy release bot 553f4501b2 mitmproxy 10.0.0 2023-08-04 09:37:11 +00:00
Maximilian Hils b331ac2520 ensure that we trigger the tag workflow 2023-08-04 11:23:44 +02:00
Maximilian Hils 5f24e70130
fix HAR version comparison in tests (#6298)
the tests will otherwise break once we bump the version
2023-08-04 09:00:27 +00:00
Maximilian Hils 1a368e8dd2
docs: document reverse proxy schemes (#6296) 2023-08-03 16:09:07 +00:00
Maximilian Hils 9a5d27bd64
update mypy (#6297) 2023-08-03 18:07:56 +02:00
Maximilian Hils 890983bd02 update CHANGELOG.md 2023-08-03 15:50:25 +02:00
Maximilian Hils 2c32e1e586
improve how we log tracebacks (#6295)
instead of formatting the traceback on site, we not pass the exception info to the logging machinery. this allows addons to hook in and for example report to sentry.
2023-08-02 21:53:43 +00:00
dependabot[bot] 3dd5193b0f
Bump the github-actions group with 3 updates (#6294)
Bumps the github-actions group with 3 updates: [install-pinned/black](https://github.com/install-pinned/black), [autofix-ci/action](https://github.com/autofix-ci/action) and [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action).


Updates `install-pinned/black` from c045c39e0ae31872523b1a8eaad8acd3d7ed7652 to 97252d99da3d792eedae55ff50e64df8bd162447
- [Release notes](https://github.com/install-pinned/black/releases)
- [Commits](c045c39e0a...97252d99da)

Updates `autofix-ci/action` from 8bc06253bec489732e5f9c52884c7cace15c0160 to 8caa572fd27b0019a65e4c695447089c8d3138b9
- [Release notes](https://github.com/autofix-ci/action/releases)
- [Commits](8bc06253be...8caa572fd2)

Updates `docker/setup-buildx-action` from 2.8.0 to 2.9.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](16c0bc4a6e...4c0219f9ac)

---
updated-dependencies:
- dependency-name: install-pinned/black
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: autofix-ci/action
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 23:07:35 +00:00
dependabot[bot] b77925306b
Update wheel requirement from <0.41,>=0.36.2 to >=0.36.2,<0.42 (#6293)
Updates the requirements on [wheel](https://github.com/pypa/wheel) to permit the latest version.
- [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst)
- [Commits](https://github.com/pypa/wheel/compare/0.36.2...0.41.0)

---
updated-dependencies:
- dependency-name: wheel
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 23:05:03 +00:00
Maximilian Hils 167d02ae7e
Update dependabot.yml 2023-08-02 01:01:46 +02:00
Maximilian Hils f5ff62d36e
make log truncation configurable (#6288)
provide addons with the means to disable log truncation. we're in a pretty hot path here, so we'll keep this as a constant instead of a full-blown mitmproxy option.
2023-08-01 12:14:02 +02:00
Maximilian Hils 47aaec4f74
Improve raw QUIC dumping (#6287)
* improve raw QUIC dumping

* tests++
2023-08-01 12:13:48 +02:00
Arnaud Durand d3af57f13b
Enable unsafe legacy SSL renegotiation (#6281)
* Enable unsafe legacy renegotiation

* Update CHANGELOG

* Fix missing proxy_server_context argument in test

* use pyopenssl's OP_LEGACY_SERVER_CONNECT

---------

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2023-07-29 16:39:25 +00:00
Stanley Good eacbb25e93
ReadHAR addon (#6283)
* moved readhar to addons and adjusted tests

* fixed tests for read_har function

* Add har export addon (#6252)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>

* fixed path issues

* added back contrib/import_har

* [autofix.ci] apply automated fixes

* fixed windows error hopefully

* [autofix.ci] apply automated fixes

* fixed ubuntu 3.10 isoformat error

* [autofix.ci] apply automated fixes

* fixed Path import

* [autofix.ci] apply automated fixes

* need to fix ubuntu 3.10 isoformat

* [autofix.ci] apply automated fixes

* replaced Z with +00:00 before isoformatting

* fixed tox lint

* moved readhar to addons and adjusted tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2023-07-29 18:32:23 +02:00
Stanley Good cb1c824255
Add har export addon (#6252)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2023-07-27 19:37:06 +00:00
Nikita Sobolev cd4c13a21c
Remove incorrect usage of `typing.AnyStr` (#6271)
* Remove incorrect usage of `typing.AnyStr`

Hi! While working on python/mypy#15732 our tools detected a misuse of AnyStr TypeVar (which is quite common). The proper way here is to use `@overload`s :)

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-21 10:25:29 +02:00
Maximilian Hils b14f9611f2
fix #6267 (#6270) 2023-07-20 10:45:43 +00:00
Feynman Liang fe177ed421
Fix grammar in _index.md (#6266) 2023-07-19 17:12:34 +02:00
Stanley Good d4ec24d85d
HAR import: request content handling (#6250)
* added handling for request content

* fixed small error in getting request content, and added test HAR file that contains a request with post data

* changed postdata.har to HAR file from reqbin

* Deterministic file_to_flows (#6257)

* made file_to_flows deterministic

* [autofix.ci] apply automated fixes

* made dummy values easier to understand

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* changed postdata.har to include only one entry

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-16 14:59:48 +02:00
Stanley Good 1c8c4ab935
Deterministic file_to_flows (#6257)
* made file_to_flows deterministic

* [autofix.ci] apply automated fixes

* made dummy values easier to understand

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-16 11:52:18 +00:00
Stanley Good 9c99777e42
http version for flow is now based on HAR file (#6248)
* http version for flow is now based on HAR file

* [autofix.ci] apply automated fixes

* http_version is now always added as correct representation, and test files are updated with correct http_version values

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-15 09:56:09 +02:00
Stanley Good c34c86dd90
add HAR import tests (#6231)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2023-07-11 17:17:44 +02:00
Maximilian Hils 1cb0cb1afd release ci: upload binaries to r2 2023-07-02 22:19:58 +02:00
Maximilian Hils 934b92a0ee
recommend port+2 instead of port+1 to avoid clashes with mitmweb (#6221)
fix #5891
2023-07-02 12:59:55 +00:00
Maximilian Hils a1b78133b5
client replay: use correct SNI (#6222) 2023-07-02 12:58:08 +00:00
Pradyot Ranjan cb131b606f
Refactored use of server-replay-nopop to server-reply-pop (#6123)
* server-replay-nopop -> server-replay-pop

Co-authored-by: Pradyot Ranjan <99216956+prady0t@users.noreply.github.com>

* server-replay-pop -> server-replay-reuse

---------

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2023-07-02 11:32:18 +00:00
Semnodime fd01a0aa95
Update http-reply-from-proxy.py (#6117)
* Update http-reply-from-proxy.py

Fix #6115

* Update CHANGELOG.md

Add one line to unreleased mitmproxy next

* Update CHANGELOG.md

Correct reference to PR

---------

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2023-07-02 12:55:33 +02:00
dependabot[bot] 0186145035
Bump docker/setup-buildx-action (#6220)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from a946f06b5ddbde456d0115dc585e8dc3c7a0c3e0 to 16c0bc4a6e6ada2cfd8afd41d22d95379cf7c32a.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](a946f06b5d...16c0bc4a6e)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-02 00:07:01 +00:00
dependabot[bot] 314693f91b
Bump docker/setup-qemu-action from 2.1.0 to 2.2.0 (#6219)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](e81a89b173...2b82ce82d5)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-02 02:01:47 +02:00
dependabot[bot] 2da503e043
Bump install-pinned/black (#6218)
Bumps [install-pinned/black](https://github.com/install-pinned/black) from 91bfc65283b1e8e9abac5d9e2a092c03c2ffddb8 to c045c39e0ae31872523b1a8eaad8acd3d7ed7652.
- [Release notes](https://github.com/install-pinned/black/releases)
- [Commits](91bfc65283...c045c39e0a)

---
updated-dependencies:
- dependency-name: install-pinned/black
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-02 02:01:35 +02:00
dependabot[bot] c28b206897
Bump pyinstaller from 5.12.0 to 5.13.0 (#6217)
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 5.12.0 to 5.13.0.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.12.0...v5.13.0)

---
updated-dependencies:
- dependency-name: pyinstaller
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-02 00:27:27 +02:00
dependabot[bot] 005c6c55d0
Update pyparsing requirement from <3.1,>=2.4.2 to >=2.4.2,<3.2 (#6216)
Updates the requirements on [pyparsing](https://github.com/pyparsing/pyparsing) to permit the latest version.
- [Release notes](https://github.com/pyparsing/pyparsing/releases)
- [Changelog](https://github.com/pyparsing/pyparsing/blob/master/CHANGES)
- [Commits](https://github.com/pyparsing/pyparsing/compare/pyparsing_2.4.2...3.1.0)

---
updated-dependencies:
- dependency-name: pyparsing
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-02 00:27:07 +02:00
Stanley Good 47021baaa1
first draft of read har. (#6190)
* first draft of read har.

* [autofix.ci] apply automated fixes

* Fixed using max's suggestions

* [autofix.ci] apply automated fixes

* updated to snake_case

* [autofix.ci] apply automated fixes

* Made max's changes.

* [autofix.ci] apply automated fixes

* gets server address from har file now

* [autofix.ci] apply automated fixes

* added support for if serverIPAdress wasnt found

* [autofix.ci] apply automated fixes

* editted docstring and changed peername and sockname values

* fix nits

* removed unused variable, should pass tox

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2023-06-30 08:12:55 +02:00
Maximilian Hils 06ba039e4f
udp: listen on both ipv4 and ipv6 by default (#6206)
* udp: listen on both ipv4 and ipv6 by default

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-06-27 08:02:23 +00:00
Maximilian Hils ff0155b1f7
temporarily disable half-broken HTTP/3 modes (#6203)
those will come back after shipping a reverse-proxy MVP
2023-06-27 07:57:03 +00:00
Maximilian Hils 038512bada
Always include either SNI or target IP address as SAN (#6202)
* always include either SNI or target IP address as SAN

this unbreaks reverse proxy setups that are directly addressed by IP.

* [autofix.ci] apply automated fixes

* fix test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-06-26 02:35:50 +02:00
Maximilian Hils e40a109019
do not format contrib/ with black (#6208) 2023-06-25 23:26:21 +00:00
Maximilian Hils 36bac0da79
docs: add HTTP/3 to protocols page (#6207) 2023-06-25 23:09:58 +00:00
Maximilian Hils d587353ba0
mitigate impact of missing sockaddr for UDP, refs #6204 (#6205) 2023-06-25 23:03:15 +00:00
Maximilian Hils 82b3d00f01 web: add version column to flow table 2023-06-25 22:29:38 +02:00
Maximilian Hils dc99a65a6c un-prettify autogenerated PEG grammars 2023-06-25 22:29:38 +02:00
Maximilian Hils e71a7661b2
do not crash on invalid quic headers (#6200)
refs #6199
2023-06-25 20:28:55 +00:00
Tero Saaristo ac3af2afdb
grpc: enable decompressing zstd responses (#6188) 2023-06-24 10:59:58 +02:00
Maximilian Hils 421e1764b4
update pyinstaller to fix ci (#6189) 2023-06-23 21:56:56 +00:00