36 lines
1.7 KiB
Python
36 lines
1.7 KiB
Python
"""Collect evidence for the level-4 criteria on the rehearsal stack."""
|
|
from collect_grade3 import main
|
|
|
|
CA = "secrets/tls/lab7-ingress-ca.crt"
|
|
CHECKS = {
|
|
"grade4-mtls": ("Проверка ролей RabbitMQ и Collector", [
|
|
["python3", "scripts/check_grade4_broker.py"],
|
|
["python3", "scripts/check_grade3_tls.py"],
|
|
["python3", "scripts/check_grade3_signals.py"],
|
|
]),
|
|
"grade4-login": ("Rehash в PostgreSQL и бюджет защиты входа", [
|
|
["docker", "compose", "--profile", "test", "build", "backend-tests"],
|
|
["sleep", "60"], ["python3", "scripts/check_grade4_login.py"],
|
|
]),
|
|
"grade4-lifecycle": ("Ротация секрета и leaf, отзыв, expiry и seal", [
|
|
["python3", "scripts/check_grade4_lifecycle.py"],
|
|
]),
|
|
"grade4-hardening": ("Права контейнеров, лимиты и эксплуатационные границы", [
|
|
["python3", "scripts/check_grade3_runtime.py"],
|
|
]),
|
|
"grade4-audit": ("Сетевой аудит, ACL и отсутствие контрольного секрета в телеметрии", [
|
|
["python3", "scripts/check_grade3_tls.py"],
|
|
["python3", "scripts/check_grade4_broker.py"],
|
|
["./scripts/check_dependency_roles.sh"],
|
|
["python3", "scripts/check_bao_roles.py"],
|
|
["sleep", "60"], ["python3", "scripts/check_grade3_http.py", "--ca-file", CA],
|
|
["python3", "scripts/check_grade4_telemetry.py"],
|
|
]),
|
|
"grade4-scan": ("Сканирование зависимостей и образов", [
|
|
["./scripts/scan_grade4.sh"],
|
|
]),
|
|
}
|
|
|
|
if __name__ == "__main__":
|
|
main(CHECKS)
|