feat: complete lab 7 grade 4 security controls and report

This commit is contained in:
Dmitrii Grishko
2026-11-15 21:58:27 +03:00
parent c5e3ac3aff
commit c69d735692
52 changed files with 1124 additions and 129 deletions
+21 -21
View File
@@ -27,7 +27,7 @@ PASS: persistence preserved confirmed data and existing session. Hook scope need
```text
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "https://localhost:8443" --ca-file "secrets/tls/lab7-ca.crt"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 125, "failed_attempts": 2, "first_recovery_seconds": 1.538}
{"observed_instances_before": 2, "successful_writes": 124, "failed_attempts": 1, "first_recovery_seconds": 1.454}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
```
@@ -36,14 +36,14 @@ PASS: failover preserved confirmed data and existing session. Hook scope needs o
Код завершения: 0.
```text
Container highload-lab7-s3-1 Waiting
Container highload-lab7-db-1 Waiting
Container highload-lab7-s3-1 Waiting
Container highload-lab7-redis-1 Waiting
Container highload-lab7-s3-1 Healthy
Container highload-lab7-s3-bootstrap-1 Starting
Container highload-lab7-db-1 Healthy
Container highload-lab7-migrate-1 Starting
Container highload-lab7-redis-1 Healthy
Container highload-lab7-db-1 Healthy
Container highload-lab7-s3-bootstrap-1 Starting
Container highload-lab7-migrate-1 Starting
Container highload-lab7-s3-bootstrap-1 Started
Container highload-lab7-s3-bootstrap-1 Waiting
Container highload-lab7-migrate-1 Started
@@ -77,7 +77,7 @@ PASS: failover preserved confirmed data and existing session. Hook scope needs o
```text
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "https://localhost:8443" --ca-file "secrets/tls/lab7-ca.crt"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 125, "failed_attempts": 2, "first_recovery_seconds": 1.658}
{"observed_instances_before": 2, "successful_writes": 122, "failed_attempts": 2, "first_recovery_seconds": 1.58}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
```
@@ -86,12 +86,12 @@ PASS: failover preserved confirmed data and existing session. Hook scope needs o
Код завершения: 0.
```text
Container highload-lab7-db-1 Waiting
Container highload-lab7-s3-1 Waiting
Container highload-lab7-redis-1 Waiting
Container highload-lab7-redis-1 Healthy
Container highload-lab7-s3-1 Waiting
Container highload-lab7-db-1 Waiting
Container highload-lab7-s3-1 Healthy
Container highload-lab7-s3-bootstrap-1 Starting
Container highload-lab7-redis-1 Healthy
Container highload-lab7-db-1 Healthy
Container highload-lab7-migrate-1 Starting
Container highload-lab7-s3-bootstrap-1 Started
@@ -115,18 +115,18 @@ PASS: failover preserved confirmed data and existing session. Hook scope needs o
Состояния контейнеров (restart):
```text
/highload-lab7-api-1 2026-11-14T16:56:19.970448431Z
/highload-lab7-api-2 2026-11-14T16:56:20.135569481Z
/highload-lab7-broker-1 2026-11-14T16:50:40.248667479Z
/highload-lab7-db-1 2026-11-14T16:50:39.231870058Z
/highload-lab7-redis-1 2026-11-14T16:50:39.21876659Z
/highload-lab7-s3-1 2026-11-14T16:50:39.377104743Z
/highload-lab7-api-1 2026-11-14T16:57:33.129069552Z
/highload-lab7-api-2 2026-11-14T16:57:33.110951095Z
/highload-lab7-broker-1 2026-11-14T16:57:25.694563006Z
/highload-lab7-db-1 2026-11-14T16:57:26.301816228Z
/highload-lab7-redis-1 2026-11-14T16:57:24.787203563Z
/highload-lab7-s3-1 2026-11-14T16:57:24.914493761Z
/highload-lab7-api-1 2026-11-14T17:24:55.651185572Z
/highload-lab7-api-2 2026-11-14T17:24:55.819757058Z
/highload-lab7-broker-1 2026-11-14T17:23:53.398757712Z
/highload-lab7-db-1 2026-11-14T17:23:50.651938319Z
/highload-lab7-redis-1 2026-11-14T17:23:50.615434358Z
/highload-lab7-s3-1 2026-11-14T17:23:50.777141988Z
/highload-lab7-api-1 2026-11-14T17:26:42.238931046Z
/highload-lab7-api-2 2026-11-14T17:26:42.256578225Z
/highload-lab7-broker-1 2026-11-14T17:26:34.665663438Z
/highload-lab7-db-1 2026-11-14T17:26:33.677826831Z
/highload-lab7-redis-1 2026-11-14T17:26:33.695777808Z
/highload-lab7-s3-1 2026-11-14T17:26:33.780920926Z
```
Состояния контейнеров (failover):