Commit Graph

10437 Commits

Author SHA1 Message Date
Maximilian Hils 0dea0812dd wip 2023-11-12 22:43:36 +01:00
Maximilian Hils 288d5b1227 isolate further 2023-11-12 21:33:42 +01:00
Maximilian Hils 56c34b3976 try to find crash root cause 2023-11-12 21:25:09 +01:00
Daniel Karandikar 746537e051
Add option to return various status codes rather than killing during server replay (#6465)
#### Description

Designed to satisfy the requirements of
https://github.com/mitmproxy/mitmproxy/issues/3489

Add `server_replay_404_extra` which behaves similarly to the kill flag,
but returns 404 responses rather than killing

#### Checklist

 - [x] I have updated tests where applicable.
 - [x] I have added an entry to the CHANGELOG.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-08 11:12:44 +01:00
ReK2 0c91733df8
examples/contrib: link to security plugin 2023-11-06 22:56:24 +01:00
lain3d 667a098002
Fix case that causes corrupt har files to be written (#6459)
#### Description

* Update savehar addon to fix creating corrupt har files caused by empty
response content

#### Checklist

 - [x] I have updated tests where applicable.
 - [x] I have added an entry to the CHANGELOG.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-06 07:31:28 -08:00
Stanley Good a43847de18
Merge pull request #6458 from pogzyb/main
Handle "path" KeyError in the savehar addon
2023-11-05 09:52:53 -08:00
autofix-ci[bot] 506c0e1013
[autofix.ci] apply automated fixes 2023-11-04 15:16:32 +00:00
pogzyb 2a571a8c09
Update CHANGELOG.md 2023-11-04 11:13:09 -04:00
pogzyb ad4ac04d2f
Update savehar.py
Use `.get` when retrieving "path" from the `attrs` cookie dict. This avoids the occasional `KeyError`.
2023-11-04 11:07:01 -04:00
Maximilian Hils d6986d43cd
Update release/README.md 2023-11-04 12:29:59 +01:00
mitmproxy release bot 4df31b6f9e reopen main for development 2023-11-04 11:02:01 +00:00
mitmproxy release bot 23bb301498 mitmproxy 10.1.3 2023-11-04 11:02:01 +00:00
Maximilian Hils e6f8f088d9
Strip double slash from websocket URL, fix #6452 (#6454)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-04 11:00:22 +00:00
Maximilian Hils 4f361e4263
Rename: osproxy -> local redirector (#6453)
refs #6332
2023-11-04 10:52:18 +00:00
mitmproxy release bot db8a3c6ed7 reopen main for development 2023-11-03 11:57:58 +00:00
mitmproxy release bot 4c07dc8488 mitmproxy 10.1.2 2023-11-03 11:57:58 +00:00
Maximilian Hils 3470473e4b
build macOS app bundle (#6447) 2023-11-03 11:21:55 +00:00
dependabot[bot] 3b585c155b
Update zstandard requirement from <0.22,>=0.11 to >=0.11,<0.23 (#6437)
Updates the requirements on [zstandard](https://github.com/indygreg/python-zstandard) to permit the latest version.
- [Release notes](https://github.com/indygreg/python-zstandard/releases)
- [Changelog](https://github.com/indygreg/python-zstandard/blob/main/docs/news.rst)
- [Commits](https://github.com/indygreg/python-zstandard/compare/0.11.0...0.22.0)

---
updated-dependencies:
- dependency-name: zstandard
  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-11-02 10:52:45 +01:00
dependabot[bot] 22d52f56e2
Update ruamel-yaml requirement from <0.18,>=0.16 to >=0.16,<0.19 (#6438)
Updates the requirements on [ruamel-yaml]() to permit the latest version.

---
updated-dependencies:
- dependency-name: ruamel-yaml
  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-11-02 10:52:35 +01:00
dependabot[bot] 0b17e5214c
Update pyopenssl requirement from <23.3,>=22.1 to >=22.1,<23.4 (#6439)
Updates the requirements on [pyopenssl](https://github.com/pyca/pyopenssl) to permit the latest version.
- [Changelog](https://github.com/pyca/pyopenssl/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/pyopenssl/compare/22.1.0...23.3.0)

---
updated-dependencies:
- dependency-name: pyopenssl
  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-11-02 10:52:28 +01:00
dependabot[bot] 7f826ccf20
Update pytest-timeout requirement from <2.2,>=1.3.3 to >=1.3.3,<2.3 (#6440)
Updates the requirements on [pytest-timeout](https://github.com/pytest-dev/pytest-timeout) to permit the latest version.
- [Commits](https://github.com/pytest-dev/pytest-timeout/compare/1.3.3...2.2.0)

---
updated-dependencies:
- dependency-name: pytest-timeout
  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-11-02 10:52:23 +01:00
dependabot[bot] ac2a12e3cb
Bump pyinstaller from 6.0.0 to 6.1.0 (#6441)
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 6.0.0 to 6.1.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/v6.0.0...v6.1.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-11-02 10:52:12 +01:00
Maximilian Hils 5135a0d639
enable merge queues 2023-11-02 09:37:47 +01:00
dependabot[bot] dbfb6b2ae7
Bump the github-actions group with 3 updates (#6436)
Bumps the github-actions group with 3 updates: [install-pinned/ruff](https://github.com/install-pinned/ruff), [autofix-ci/action](https://github.com/autofix-ci/action) and [actions/setup-node](https://github.com/actions/setup-node).


Updates `install-pinned/ruff` from f3fd6b89f77ff37a32e69cd2da72e0fc6e21f837 to 8876fcad1732d3dc660068908bbf5cdeeaa9d264
- [Release notes](https://github.com/install-pinned/ruff/releases)
- [Commits](f3fd6b89f7...8876fcad17)

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

Updates `actions/setup-node` from 3 to 4
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: install-pinned/ruff
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: autofix-ci/action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
  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-11-01 23:46:23 +01:00
Maximilian Hils c637032af8
Declare Support for Python 3.12 (#6434) 2023-10-31 17:57:21 +00:00
Maximilian Hils f55ee1d44f
Migrate to ruff (#6433) 2023-10-31 16:03:53 +01:00
Maximilian Hils 7f18545f3c
fix connection reuse with proxyauth (#6432) 2023-10-31 13:17:28 +00:00
outlaws-bai 640bb5377e
fix #6426 - Optimize LDAP Proxy Auth (#6428)
* fix #6426
https://github.com/mitmproxy/mitmproxy/issues/6426

* Revert "fix #6426"

This reverts commit 822b05b522.

* fix # 6426 Optimize LDAP Proxy Auth

* [autofix.ci] apply automated fixes

* update CHANGELOG.md

---------

Co-authored-by: jincong.bai <jincong.bai@zatech.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-31 12:52:21 +00:00
Grégoire Paris 98d84f77ce
Spell "error" properly (#6418) 2023-10-26 16:58:20 +02:00
Teddy Xinyuan Chen 9f8b2e2a66
Fix path() docstring per #6345 (#6412)
* Fix path() docstring per #6345

* Update changelog

* Fix line too long linter error

* [autofix.ci] apply automated fixes

* nits: wording

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2023-10-19 21:27:22 +00:00
Dave T e98cf20b28
Make mitmweb use relative paths to connect to its resources. (#6411)
* Use relative paths in index.html

* Allow relative paths in websocket.tsx

* [autofix.ci] apply automated fixes

* Replace more root-relative URLs with relative URLs

* Add test for root relative URLs in index.html

* [autofix.ci] apply automated fixes

* Update changelog

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-19 14:10:26 -07:00
Mike Maxim c3d2a9dac4
fix certificates generated by dummy_cert on clients that require AuthorityKeyIdentifier (#6410)
* fix certificates generated by dummy_cert on clients that require AuthorityKeyIdentifier

* add changelog item
2023-10-18 19:32:47 +00:00
Maximilian Hils bacbaadb01
fix nonblocking.py example (#6399)
this previously caused an error on import (https://twitter.com/digininja/status/1711355339637973146), which we want to avoid.
2023-10-09 13:12:10 +00:00
dependabot[bot] 69f8cef5a4
Bump pyinstaller from 5.13.2 to 6.0.0 (#6391)
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 5.13.2 to 6.0.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.13.2...v6.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 01:36:58 +02:00
dependabot[bot] 5cfbb8b661
Bump the github-actions group with 4 updates (#6393)
Bumps the github-actions group with 4 updates: [actions/checkout](https://github.com/actions/checkout), [install-pinned/black](https://github.com/install-pinned/black), [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) and [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action).


Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

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

Updates `docker/setup-qemu-action` from 2.2.0 to 3.0.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](2b82ce82d5...68827325e0)

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

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: install-pinned/black
  dependency-type: direct:production
  dependency-group: github-actions
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  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-10-02 01:36:44 +02:00
dependabot[bot] 590cba76fd
Update brotli requirement from <1.1,>=1.0 to >=1.0,<1.2 (#6392)
Updates the requirements on [brotli](https://github.com/google/brotli) to permit the latest version.
- [Release notes](https://github.com/google/brotli/releases)
- [Changelog](https://github.com/google/brotli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/brotli/compare/v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: brotli
  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-10-01 22:34:40 +00:00
dependabot[bot] 3214581060
Update flask requirement from <2.4,>=1.1.1 to >=1.1.1,<3.1 (#6390)
Updates the requirements on [flask](https://github.com/pallets/flask) to permit the latest version.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/flask/compare/1.1.1...3.0.0)

---
updated-dependencies:
- dependency-name: flask
  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-10-01 22:26:28 +00:00
Maximilian Hils 2667ed44f5 add DNS-over-HTTPS contentview 2023-09-30 03:08:46 +02:00
Maximilian Hils d2136b66a0 add raw hex stream contentview 2023-09-30 03:08:46 +02:00
mitmproxy release bot 04c660b975 reopen main for development 2023-09-27 11:29:18 +00:00
mitmproxy release bot b6ddf40f33 mitmproxy 10.1.1 2023-09-27 11:29:18 +00:00
Maximilian Hils e6e354cf38
web: don't crash when opening options (#6386) 2023-09-27 11:07:01 +00:00
Maximilian Hils c851a055c3
fix certificate generation for punycode domains, fix #6381 (#6382) 2023-09-24 17:55:21 +00:00
mitmproxy release bot 95fe3f9929 reopen main for development 2023-09-24 15:12:43 +00:00
mitmproxy release bot 6ddcd9cb2a mitmproxy 10.1.0 2023-09-24 15:12:43 +00:00
Maximilian Hils e42edb474a update CHANGELOG 2023-09-24 17:01:28 +02:00
Maximilian Hils 9cad41cb9d bump mitmproxy_rs dependency, update CHANGELOG.md 2023-09-24 16:30:52 +02:00
Stanley Good bdcd3e3192
add save HAR addon (#6368)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2023-09-24 13:51:22 +00:00
Maximilian Hils afb308bc8a
docs: improve hooks overview (#6376) 2023-09-21 19:27:14 +00:00