forked from mtusi2026/mtusi2026lab7
feat: scan images and uv.lock for vulnerabilities with a triage file and patch-line updates
make scan runs pinned Trivy (by digest, no Docker socket, images as docker save archives, network none, read-only) over every compose image and the app image (also secrets in layers) and pinned pip-audit over the uv.lock groups; every CRITICAL/HIGH image finding, secret and pip-audit finding needs a triage record (verdict, reason, control, review date) in infra/scan/triage.toml, otherwise a non-zero exit. Fixable findings are updated within the patch line after a 7-day quarantine: PostgreSQL and RabbitMQ rebuilds, Valkey 9.1.4, HAProxy 3.4.7, Loki 3.7.10, Python 3.12.15, certifi, dnspython, black, filelock, virtualenv. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -83,6 +83,11 @@ dev = [
|
||||
"pytest>=9.1.1,<10",
|
||||
"httpx>=0.28.1,<1",
|
||||
"jsonschema>=4.26.0,<5",
|
||||
# make scan (change vulnerability-scan, design, решение 2): аудит uv.lock.
|
||||
# Точная версия, а не uvx: uv.lock закрепляет и зависимости сканера с
|
||||
# хэшами; запуск — uv run --frozen pip-audit. Обновление — решением,
|
||||
# с выдержкой 7 суток
|
||||
"pip-audit==2.10.1",
|
||||
]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
|
||||
Reference in New Issue
Block a user