Commit graph

10861 commits

Author SHA1 Message Date
Maximilian Hils
fca2111d4a pin awscli 2025-02-06 01:25:28 +01:00
Maximilian Hils
835930248b specify region twice 2025-02-06 00:56:56 +01:00
Maximilian Hils
362c06d6f8 newer awscli version 2025-02-06 00:47:53 +01:00
Maximilian Hils
10e63c9dba test different awscli version 2025-02-06 00:42:38 +01:00
Maximilian Hils
5a135df3b2 update CHANGELOG 2025-02-05 23:39:28 +01:00
Maximilian Hils
62693aff9a web: remove dns rebinding protection
this is not necessary anymore with token-based auth
2025-02-05 23:37:33 +01:00
Maximilian Hils
0bd573a599 web: add password-based authentication 2025-02-05 23:37:33 +01:00
Maximilian Hils
fa89055e19 web: add token-based authentication for the web ui API 2025-02-05 23:37:33 +01:00
Maximilian Hils
ea0dcb0bd8
Update bug report template to use form (#7535)
update bug report template to use form
2025-02-05 07:22:51 +01:00
Matteo Luppi
385800f07f
web: copy request/response data to clipboard (#7352)
* create ui component for copying content

* write function to copy viewcontentdata to clipboard

* add type string to url

* call the endpoint to fetch the full content

* update snapshots

* disable button after copying text

* update changelog

* remove disable on copy button

* [autofix.ci] apply automated fixes

* disable copy button while fetching

* [autofix.ci] apply automated fixes

* adjust isFetching and isCopied position

* hide copy button if there is no content

* update snapshot

* Delete web/src/templates/index.html

* adjust naming convention

* update test

* update snapshots

* nits

* add async/await

* [autofix.ci] apply automated fixes

* improve test coverage

* improve even more test coverage

* test coverage final improvement

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2025-02-03 23:37:40 +00:00
Farid Rener
032e51e399
Unescape escaped characters in curl and httpie args (#7520)
* Unescape escaped characters in curl and httpie args

Fixes: [#7517]

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-03 15:48:47 +01:00
dependabot[bot]
16660ca6e3
Bump the pytest group with 2 updates (#7525)
Updates the requirements on [hypothesis](https://github.com/HypothesisWorks/hypothesis) and [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.

Updates `hypothesis` to 6.124.9
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases)
- [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.104.2...hypothesis-python-6.124.9)

Updates `pytest-asyncio` to 0.25.3
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.23.6...v0.25.3)

---
updated-dependencies:
- dependency-name: hypothesis
  dependency-type: direct:production
  dependency-group: pytest
- dependency-name: pytest-asyncio
  dependency-type: direct:production
  dependency-group: pytest
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-01 23:26:06 +00:00
dependabot[bot]
77d1f278e1
Update ruff requirement from <=0.8.6,>=0.5.0 to >=0.5.0,<=0.9.4 (#7528)
* Update ruff requirement from <=0.8.6,>=0.5.0 to >=0.5.0,<=0.9.4

Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.5.0...0.9.4)

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

Signed-off-by: dependabot[bot] <support@github.com>

* [autofix.ci] apply automated fixes

* fixup

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2025-02-01 23:21:33 +00:00
dependabot[bot]
34a046a0f5
Bump pyinstaller-hooks-contrib from 2024.11 to 2025.1 in the pyinstaller group (#7526)
Bump pyinstaller-hooks-contrib in the pyinstaller group

Bumps the pyinstaller group with 1 update: [pyinstaller-hooks-contrib](https://github.com/pyinstaller/pyinstaller-hooks-contrib).


Updates `pyinstaller-hooks-contrib` from 2024.11 to 2025.1
- [Release notes](https://github.com/pyinstaller/pyinstaller-hooks-contrib/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller-hooks-contrib/compare/v2024.11...v2025.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 00:16:09 +01:00
dependabot[bot]
d068524e8a
Update pyopenssl requirement from <=24.3.0,>=22.1 to >=22.1,<=25.0.0 in the openssl group (#7527)
Update pyopenssl requirement in the openssl group

Updates the requirements on [pyopenssl](https://github.com/pyca/pyopenssl) to permit the latest version.

Updates `pyopenssl` to 25.0.0
- [Changelog](https://github.com/pyca/pyopenssl/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/pyopenssl/compare/22.1.0...25.0.0)

---
updated-dependencies:
- dependency-name: pyopenssl
  dependency-type: direct:production
  dependency-group: openssl
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 00:16:00 +01:00
dependabot[bot]
ca3b3ade53
Update hyperframe requirement from <=6.0.1,>=6.0 to >=6.0,<=6.1.0 (#7530)
Updates the requirements on [hyperframe](https://github.com/python-hyper/hyperframe) to permit the latest version.
- [Changelog](https://github.com/python-hyper/hyperframe/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/python-hyper/hyperframe/compare/v6.0.0...v6.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 00:15:26 +01:00
dependabot[bot]
8e7f219a12
Update tox requirement from <=4.23.2,>=4.15.1 to >=4.15.1,<=4.24.1 (#7531)
Updates the requirements on [tox](https://github.com/tox-dev/tox) to permit the latest version.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/4.15.1...4.24.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 00:15:06 +01:00
dependabot[bot]
608ae612a4
Bump the github-actions group with 3 updates (#7532)
Bumps the github-actions group with 3 updates: [mhils/workflows](https://github.com/mhils/workflows), [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) and [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `mhils/workflows` from 15 to 16
- [Release notes](https://github.com/mhils/workflows/releases)
- [Commits](0d7c124fff...34e9a0dabe)

Updates `docker/setup-qemu-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](49b3bc8e6b...53851d1459)

Updates `docker/build-push-action` from 6.10.0 to 6.13.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](48aba3b46d...ca877d9245)

---
updated-dependencies:
- dependency-name: mhils/workflows
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: docker/build-push-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>
2025-02-02 00:12:16 +01:00
Aditya
0013825c1d
fixes #7457: streamline filter expression case-sensitivity (#7483)
* make all filter expressions case-insensitive by default

* [autofix.ci] apply automated fixes

* add test cases.

* added dedicated test case for case sensitivity check

---------

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-29 20:06:36 +01:00
Maximilian Hils
6138d2a067
Next Layer: Don't wait for host header based on alpn (#7519)
* don't wait for host header based on alpn, fix #7516

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-28 17:34:17 +01:00
Sujal Singh
c5402a490a
Check flow.killable before killing prior knowledge h2 connections. (#7514)
* check for killable flow

* [autofix.ci] apply automated fixes

* add test

* changelog

* restructure test

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-27 14:59:27 +01:00
Sujal Singh
ca8df49519
Fix console freezing due to DNS queries with an empty question section. (#7497)
* fix console freeze

* coverage

* changelog
2025-01-27 11:17:26 +01:00
Esther Roth
ebf1f54c15
Add mitmweb tutorial videos to docs (#7509)
* add mitmweb tutorial videos to docs

* update changelog

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-26 17:04:13 +00:00
Maximilian Hils
562c4cda1c
docs: Add mitmweb user interface tutorial (#7507)
docs: add mitmweb tutorial
2025-01-26 17:36:42 +01:00
Maximilian Hils
b761cb46c4
Web: harden xsrf_token usage (#7491)
web: harden `xsrf_token` usage
2025-01-19 20:40:55 +05:30
Maximilian Hils
e78ab0ffd9
web: remove unnecessary template copying build step (#7490) 2025-01-17 18:09:45 +01:00
Maximilian Hils
99e79f7619
Use Python 3.13 for binaries (#7485)
* use Python 3.13 for binaries

* [autofix.ci] apply automated fixes

* bump minimum mitmproxy_rs version

* try to make mypy happy

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-16 21:15:31 +00:00
Maximilian Hils
2f4a5062b9
Build arm64 binaries (#7484)
* ci: unify job actions, pin more things

* ci: build linux arm64 binaries

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-16 21:37:30 +01:00
Manuel Meitinger
0e3b0992ee
windows: respect user console preference (#7482) 2025-01-16 15:58:00 +01:00
Manuel Meitinger
ffb40ae212
fix run.ps1 being in %PATH% (#7481) 2025-01-16 14:51:05 +01:00
Gaurav Jain
dfb2b273a2
Updates docs for DNS and HTTP/3 mode (#7474)
* Update docs

* fix typo

* fix capitalization

---------

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2025-01-13 12:04:08 +00:00
mitmproxy release bot
ee1ead776c reopen main for development 2025-01-12 12:44:35 +00:00
mitmproxy release bot
277bf97930 mitmproxy 11.1.0 2025-01-12 12:44:35 +00:00
Maximilian Hils
54829b58c1
dns resolver: make Hickory and getaddrinfo resolvers available using the same protocol (#7464)
* dns resolver: make Hickory and `getaddrinfo` resolvers available using the same protocol

* incorporate review feedback
2025-01-09 20:22:56 +05:30
Gaurav Jain
033732c63c
Prompt user before clearing screen (#7445)
* Prompt user before clearing screen

* [autofix.ci] apply automated fixes

* Update CHANGELOG.md

* [autofix.ci] apply automated fixes

* nit

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-09 09:44:23 +01:00
Jakub Wądołowski
6a39a1d78b
chore: Fix CHANGELOG.md formatting glitch (#7461) 2025-01-08 22:03:46 +01:00
Matteo Luppi
70e59c2d41
Remove check for status codes in the blocklist add-on (#7453)
* remove check status code

* fix tests

* update changelog

* Update changelog

Co-authored-by: lups2000 <100372313+lups2000@users.noreply.github.com>
Co-authored-by: AdityaPatadiya <patadiyaaditya0079@gmail.com>

---------

Co-authored-by: AdityaPatadiya <patadiyaaditya0079@gmail.com>
2025-01-08 10:54:43 +01:00
Jakub Wądołowski
784ad4be20
fix: Remove filter expression lowercasing in block_list addon (#7456)
* fix: Remove filter expression lowercasing in block_list addon

* chore: CHANGELOG update

* test: Add new test cases to verify URL case-sensitivity

* test: Add new test cases to cover case-sensitive filter expressions

* chore: Update test func name

* fix nits

---------

Co-authored-by: Maximilian Hils <github@maximilianhils.com>
2025-01-07 21:55:50 +00:00
Jakub Wądołowski
a14df6ba01
fix: Add missing HTTP status codes (#7455)
* fix: Add missing HTTP status codes

* chore: Update CHANGELOG.md

* chore: Update CHANGELOG.md
2025-01-07 21:18:55 +01:00
Maximilian Hils
a18b1e35f7
fix CHANGELOG.md 2025-01-06 18:40:53 +01:00
dependabot[bot]
421fb46040
Update ruamel-yaml requirement from <=0.18.7,>=0.16 to >=0.16,<=0.18.10 (#7449)
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>
2025-01-06 15:03:43 +00:00
dependabot[bot]
94836341d5
Update ruff requirement from <=0.8.4,>=0.5.0 to >=0.5.0,<=0.8.6 (#7448)
Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.5.0...0.8.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-06 15:01:54 +00:00
dependabot[bot]
9d34a1c6f8
Update hypothesis requirement from <=6.123.2,>=6.104.2 to >=6.104.2,<=6.123.4 in the pytest group (#7446)
Update hypothesis requirement in the pytest group

Updates the requirements on [hypothesis](https://github.com/HypothesisWorks/hypothesis) to permit the latest version.

Updates `hypothesis` to 6.123.4
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases)
- [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.104.2...hypothesis-python-6.123.4)

---
updated-dependencies:
- dependency-name: hypothesis
  dependency-type: direct:production
  dependency-group: pytest
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-06 16:01:32 +01:00
dependabot[bot]
416caf40ec
Bump the github-actions group with 3 updates (#7447)
Bumps the github-actions group with 3 updates: [mhils/workflows](https://github.com/mhils/workflows), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) and [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance).


Updates `mhils/workflows` from 12 to 15
- [Release notes](https://github.com/mhils/workflows/releases)
- [Commits](https://github.com/mhils/workflows/compare/v12...v15)

Updates `docker/setup-buildx-action` from 3.7.1 to 3.8.0
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](c47758b77c...6524bf65af)

Updates `actions/attest-build-provenance` from 1 to 2
- [Release notes](https://github.com/actions/attest-build-provenance/releases)
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md)
- [Commits](https://github.com/actions/attest-build-provenance/compare/v1...v2)

---
updated-dependencies:
- dependency-name: mhils/workflows
  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-minor
  dependency-group: github-actions
- dependency-name: actions/attest-build-provenance
  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>
2025-01-06 16:01:24 +01:00
Maximilian Hils
617806ca6b
try to fix dependabot 2025-01-06 15:37:36 +01:00
Maximilian Hils
9957abf106
fix use of asyncio.create_task (#7443) 2025-01-06 11:39:15 +01:00
Maximilian Hils
6e4cb235fd
require Python 3.12+ (#7440) 2025-01-06 09:02:51 +00:00
dependabot[bot]
fc9d7d219f
Update ruff requirement from <=0.8.1,>=0.5.0 to >=0.5.0,<=0.8.4 (#7431)
Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.5.0...0.8.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-02 07:21:27 +00:00
dependabot[bot]
d38d0b582d
Bump the pytest group across 1 directory with 2 updates (#7436)
Updates the requirements on [hypothesis](https://github.com/HypothesisWorks/hypothesis) and [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.

Updates `hypothesis` to 6.123.2
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases)
- [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.104.2...hypothesis-python-6.123.2)

Updates `pytest-asyncio` to 0.25.1
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.23.6...v0.25.1)

---
updated-dependencies:
- dependency-name: hypothesis
  dependency-type: direct:production
  dependency-group: pytest
- dependency-name: pytest-asyncio
  dependency-type: direct:production
  dependency-group: pytest
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-02 07:19:47 +00:00
dependabot[bot]
5b18234484
Bump pyinstaller-hooks-contrib from 2024.10 to 2024.11 in the pyinstaller group (#7429)
Bump pyinstaller-hooks-contrib in the pyinstaller group

Bumps the pyinstaller group with 1 update: [pyinstaller-hooks-contrib](https://github.com/pyinstaller/pyinstaller-hooks-contrib).


Updates `pyinstaller-hooks-contrib` from 2024.10 to 2024.11
- [Release notes](https://github.com/pyinstaller/pyinstaller-hooks-contrib/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller-hooks-contrib/compare/v2024.10...v2024.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-02 08:12:19 +01:00