Skip to content

Commit 7639306

Browse files
gmrclaude
andcommitted
Security hardening and cleanup from full code review
- Remove pickle deserialization support (RCE vector) - Validate message_type before formatting into schema registry URI - Remove env var dump from Sentry exception reports - Enforce TLS cert verification for non-default SSL protocols - Fix stop_consumer not awaiting async shutdown() coroutine - Fix reject() RuntimeError when no_ack=True during shutdown - Fix STATE_PROCESSING collision with STATE_ACTIVE (0x04 -> 0x09) - Fix GarbageCollectorMixin not reading settings from positional args - Add UV_CONFIG_FILE=/dev/null to CI workflow - Remove S301 ruff suppression (no longer needed without pickle) - Delete stale files: .travis.yml, .codeclimate.yml, README.rst, requires/, init.d/ - Fix redundant import in tests/mocks.py Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d22b034 commit 7639306

15 files changed

Lines changed: 45 additions & 375 deletions

File tree

.codeclimate.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/testing.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,24 @@ jobs:
2727

2828
- name: Install dependencies
2929
run: uv sync --all-groups
30+
env:
31+
UV_CONFIG_FILE: /dev/null
3032

3133
- name: Create build directory
3234
run: mkdir -p build
3335

3436
- name: Lint Check
3537
run: uv run pre-commit run --all-files
38+
env:
39+
UV_CONFIG_FILE: /dev/null
3640

3741
- name: Run tests
3842
run: |
3943
uv run coverage run
4044
uv run coverage report
4145
uv run coverage xml
46+
env:
47+
UV_CONFIG_FILE: /dev/null
4248

4349
- name: Upload Coverage
4450
uses: codecov/codecov-action@v5

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

README.rst

Lines changed: 0 additions & 208 deletions
This file was deleted.

init.d/rejected

Lines changed: 0 additions & 66 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ isort = { split-on-trailing-comma = false }
130130
max-complexity = 15
131131

132132
[tool.ruff.lint.per-file-ignores]
133-
"*.py" = ["S101", "S301"]
133+
"*.py" = ["S101"]
134134
"rejected/consumer.py" = ["B904", "BLE001", "C901", "S506"]
135135
"rejected/process.py" = ["C901"]
136136
"examples.py" = ["S311"]

0 commit comments

Comments
 (0)