Skip to content

Commit 471f776

Browse files
abhinavsinghpre-commit-ci[bot]dependabot[bot]sowmya-jaxlsowmyasudhasingh
authored
v2.4.0rc7 (#1010)
* Fix README instructions for embedded mode * Expose sleep_loop * [SshTunnel] WIP (#992) [SshTunnel] WIP * [Middleware] Capability in the core to allow custom client connection classes (#993) * Move all TCP server related flags within `tcp_server.py` and also move the encryption functionality within TCP base server * Templatize `BaseTcpServerHandler` which now expects a client connection object bound to `TcpClientConnection`. This will allow for custom `HttpClientConnection` object in future to be used by `HttpProtocolHandler` * Pass necessary flags to allow self-signed certificates * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix https integration tests * Affected by #994 * Fix docs Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * [Middleware] `HttpClientConnection` preparation (#995) * Turn usual suspects to warnings, not error * Add `HttpClientConnection` skeleton * Fix doc build * Update references in http tests * Make `work` core agnostic to work object construction by adding an abstract static method to `Work` interface called `create` * Make mypy happy * Fix tests broken due to change in how work objects are now constructed * Doc ko bhi happy karo * Bail out early for non-HTTP but HTTP looking protocols (#972) * Add support in `Url` to parse all types of schemes * . * Guard handler against http looking protocol but not web or proxy requests * Fix condition for web server protocol detection * doc happy * Update flags and type check imports only * npm: bump eslint-plugin-import from 2.25.3 to 2.25.4 in /dashboard (#1005) Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.25.3 to 2.25.4. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.25.3...v2.25.4) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:development 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> * npm: bump ws from 8.4.0 to 8.4.2 in /dashboard (#1007) Bumps [ws](https://github.com/websockets/ws) from 8.4.0 to 8.4.2. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@8.4.0...8.4.2) --- updated-dependencies: - dependency-name: ws dependency-type: direct:development 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> * Fix broken `--local-executor` logic for windows ever since it was made default (#1008) Co-authored-by: sowmyasudhasingh <sowmyasudhasingh@gmail.com> * [Windows] `--threaded` mode integration tests works locally but fails on GHA (#1009) * Enable remote threadless and threaded integration test for windows * Run only threaded on windows * Use powershell for execution of integration script on Windows * Update test_integration.py * Update test_integration.py Co-authored-by: sowmyasudhasingh <sowmyasudhasingh@gmail.com> Co-authored-by: Abhinav Singh <126065+abhinavsingh@users.noreply.github.com> * Restrict request handling to `DEFAULT_ALLOWED_URL_SCHEMES` (#1002) * Raise `HttpProtocolException` if request line scheme do not match `DEFAULT_ALLOWED_URL_SCHEMES` * ignore WPS329 * Fix tests * Pin to 4.3.2 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Test coverage for exception handling * type ignore Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * [Doc] Threadless Remote vs Local Execution Mode (#1011) * [Coverage] For newly added components (#1014) * Add newly added code cov * Fix spelling * [Devtools] Build as part of GHA workflow (#1015) * Fix devtools build * Build devtools as part of GHA workflows * [isort] Lib modules (#1016) * isort `proxy.py` main class * isort init and main * isort common * pre-commit fix * isort dashboard and testing * isort plugins * isort core * Only sort top level http py files * isort http exception and websocket * Remove proxy auth plugin from proxy package exports and force discover `PLUGIN_PROXY_AUTH` flags * isort parser and web server * no setattr * isort all * Enable pre-commit isort hook * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sowmya Sudha Singh <83529764+sowmya-jaxl@users.noreply.github.com> Co-authored-by: sowmyasudhasingh <sowmyasudhasingh@gmail.com>
2 parents 177689c + 54e74a9 commit 471f776

File tree

145 files changed

+1378
-868
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+1378
-868
lines changed

.github/workflows/test-library.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,11 @@ jobs:
703703
cd dashboard
704704
npm run build
705705
cd ..
706+
- name: Build Devtools
707+
run: |
708+
cd dashboard
709+
npm run devtools
710+
cd ..
706711
707712
developer:
708713
runs-on: ${{ matrix.os }}-latest

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ proxy.py.iml
1616
.vscode/*
1717
!.vscode/settings.json
1818

19+
*.dot
1920
*.pyc
2021
*.egg-info
2122
*.csr
@@ -31,4 +32,5 @@ htmlcov
3132
dist
3233
build
3334

35+
pyreverse.png
3436
profile.svg

.pre-commit-config.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ repos:
77
args:
88
- --py36-plus
99

10-
# - repo: https://github.com/timothycrosley/isort.git
11-
# rev: 5.10.0
12-
# hooks:
13-
# - id: isort
14-
# args:
15-
# - --honor-noqa
10+
- repo: https://github.com/timothycrosley/isort.git
11+
rev: 5.10.0
12+
hooks:
13+
- id: isort
14+
args:
15+
- --honor-noqa
1616

1717
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
1818
rev: v1.1.7
@@ -24,8 +24,7 @@ repos:
2424
helper/proxy\.pac|
2525
Makefile|
2626
proxy/common/pki\.py|
27-
README\.md|
28-
.+\.(plist|pbxproj)
27+
README\.md
2928
$
3029
3130
- repo: https://github.com/pre-commit/pre-commit-hooks.git
@@ -36,7 +35,6 @@ repos:
3635
exclude: |
3736
(?x)
3837
^
39-
\.github/workflows/codeql-analysis\.yml|
4038
dashboard/src/core/plugins/inspect_traffic\.json
4139
$
4240
- id: check-merge-conflict

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ sign-https-certificates:
5757
python -m proxy.common.pki sign_csr \
5858
--csr-path $(HTTPS_CSR_FILE_PATH) \
5959
--crt-path $(HTTPS_SIGNED_CERT_FILE_PATH) \
60-
--hostname example.com \
60+
--hostname localhost \
6161
--private-key-path $(CA_KEY_FILE_PATH) \
6262
--public-key-path $(CA_CERT_FILE_PATH)
6363

@@ -169,11 +169,17 @@ lib-speedscope:
169169
--open-file-limit 65536 \
170170
--log-file /dev/null
171171

172+
lib-pyreverse:
173+
rm -f proxy.proxy.Proxy.dot pyreverse.png
174+
pyreverse -ASmy -c proxy.proxy.Proxy proxy
175+
dot -Tpng proxy.proxy.Proxy.dot > pyreverse.png
176+
open pyreverse.png
177+
172178
devtools:
173-
pushd dashboard && npm run devtools && popd
179+
pushd dashboard && npm install && npm run devtools && popd
174180

175181
dashboard:
176-
pushd dashboard && npm run build && popd
182+
pushd dashboard && npm install && npm run build && popd
177183

178184
dashboard-clean:
179185
if [[ -d dashboard/public ]]; then rm -rf dashboard/public; fi

0 commit comments

Comments
 (0)