Files
mtusi2026lab2/evidence/limits-violations.txt
T
ArtyomandClaude Opus 5.5 f5fea5c59c Record levels 3 and 4 again after the lab 2 carry over
The carry over of the lab 2 fixes changed the request pipeline, logout,
the worker shutdown budget and the stop hooks, so every level 3 and 4
record is taken again on b1c80ee: checks, own tests, smoke, stack,
storage, failover of both replicas, persistence, hooks, the lab 2 stack
tests, limits and the injected violations, lb-check, three detection
runs, failover-each and both rolling updates under k6.

All of them pass: 243 own tests, 12 stack tests, no failed request under
k6 in failover-each and in both rolling updates.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
2026-10-30 02:53:12 +03:00

21 lines
921 B
Plaintext

date: 2026-10-29T23:45:39Z commit: b1c80ee
# намеренные нарушения политики во временном override (не в репозитории):
# services:
# api:
# ports: ["8081:8080"]
# secrets: [database_url, cache_url, cursor_secret, postgres_password]
# valkey:
# container_name: lab3-valkey
# k6:
# deploy:
# resources:
# limits: {cpus: "0", memory: "0"}
$ COMPOSE_FILE=compose.yaml:violations.yaml python3 scripts/limits.py; echo exit=$? # строки FAIL/PASS
FAIL: api: secrets ['cache_url', 'cursor_secret', 'database_url', 'postgres_password'], policy ['cache_url', 'cursor_secret', 'database_url']
FAIL: api: publishes ['0.0.0.0:8081'] in bypass of the balancer
FAIL: api: publishes ['0.0.0.0:8081'] beyond loopback
FAIL: k6: no CPU or memory limit
FAIL: valkey: container_name prevents scaling
FAIL: 5 violation(s)
exit=1