feat: complete lab 7 grade 3 security controls
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
# Истечение сессии на стенде с коротким TTL
|
||||
|
||||
Предпосылки: подготовленный, разблокированный учебный стенд; Docker Compose, Python и локальный CA.
|
||||
|
||||
`sleep 60`
|
||||
|
||||
Код завершения: 0.
|
||||
|
||||
```text
|
||||
|
||||
```
|
||||
|
||||
`env SESSION_TTL_SECONDS=5 docker compose up -d --no-deps api`
|
||||
|
||||
Код завершения: 0.
|
||||
|
||||
```text
|
||||
Container highload-lab7-api-1 Recreate
|
||||
Container highload-lab7-api-2 Recreate
|
||||
Container highload-lab7-api-1 Recreated
|
||||
Container highload-lab7-api-2 Recreated
|
||||
Container highload-lab7-api-1 Starting
|
||||
Container highload-lab7-api-1 Started
|
||||
Container highload-lab7-api-2 Starting
|
||||
Container highload-lab7-api-2 Started
|
||||
```
|
||||
|
||||
`./scripts/wait_ingress.sh`
|
||||
|
||||
Код завершения: 0.
|
||||
|
||||
```text
|
||||
|
||||
```
|
||||
|
||||
`python3 scripts/check_session_expiry.py --ca-file secrets/tls/lab7-ca.crt`
|
||||
|
||||
Код завершения: 0.
|
||||
|
||||
```text
|
||||
PASS: valid session accepted before expiry and rejected after expiry
|
||||
```
|
||||
|
||||
`docker compose up -d --no-deps api`
|
||||
|
||||
Код завершения: 0.
|
||||
|
||||
```text
|
||||
Container highload-lab7-api-1 Recreate
|
||||
Container highload-lab7-api-2 Recreate
|
||||
Container highload-lab7-api-2 Recreated
|
||||
Container highload-lab7-api-1 Recreated
|
||||
Container highload-lab7-api-1 Starting
|
||||
Container highload-lab7-api-1 Started
|
||||
Container highload-lab7-api-2 Starting
|
||||
Container highload-lab7-api-2 Started
|
||||
```
|
||||
|
||||
`./scripts/wait_ingress.sh`
|
||||
|
||||
Код завершения: 0.
|
||||
|
||||
```text
|
||||
|
||||
```
|
||||
|
||||
Итог: все команды завершились успешно.
|
||||
Reference in New Issue
Block a user