feat: complete lab 7 grade 3 security controls

This commit is contained in:
Dmitrii Grishko
2026-11-14 20:08:27 +03:00
parent 8986ba6bef
commit c5e3ac3aff
49 changed files with 1670 additions and 149 deletions
+23
View File
@@ -0,0 +1,23 @@
# Бизнес-API, проверка CA, logout и вложения по HTTPS
Предпосылки: подготовленный, разблокированный учебный стенд; Docker Compose, Python и локальный CA.
`make check`
Код завершения: 0.
```text
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
```
`make test test-security CA_FILE=secrets/tls/lab7-ca.crt`
Код завершения: 0.
```text
python3 tests/smoke.py --base-url "https://localhost:8443" --ca-file "secrets/tls/lab7-ca.crt"
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
python3 tests/security.py --base-url "https://localhost:8443" --ca-file "secrets/tls/lab7-ca.crt"
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
```