forked from mtusi2026/mtusi2026lab7
feat: complete lab 7 grade 3 security controls
This commit is contained in:
@@ -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.
|
||||
```
|
||||
Reference in New Issue
Block a user