Archive grade 4 verification and record SQLAlchemy failure evidence
This commit is contained in:
@@ -1,20 +1,26 @@
|
||||
date: 2026-10-30T02:46:59Z commit: e049c26
|
||||
# намеренные нарушения политики во временном 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
|
||||
date: 2026-11-05T19:19:26.962774+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
$ docker compose --profile bench config --format json (declared)
|
||||
service cpus/mem ports secrets volumes networks ro
|
||||
-------- ---------- ------------------------------- ------------------------------------------------------ ---------- ---------------------- -----
|
||||
api -/512MiB 127.0.0.1:23998 cache_url,cursor_secret,database_url,postgres_password - backend(internal) false
|
||||
k6 2/512MiB - - - edge false
|
||||
lb 1/128MiB 127.0.0.1:18083,127.0.0.1:23083 - - backend(internal),edge true
|
||||
migrate 0.5/256MiB - database_url - backend(internal) false
|
||||
postgres 2/1024MiB - postgres_password pgdata backend(internal) false
|
||||
valkey 0.5/128MiB - valkey.conf valkeydata backend(internal) false
|
||||
|
||||
$ docker inspect (running containers: hostname = X-Instance-Id, applied limits)
|
||||
service hostname cpus memory published
|
||||
-------- ------------ ---- ------- ---------------------------------------------------
|
||||
api 5bbf259ff136 1 512MiB
|
||||
api 7cfd91ddf780 1 512MiB
|
||||
lb 4f83577b3411 1 128MiB 127.0.0.1:18083->8080/tcp,127.0.0.1:23083->8404/tcp
|
||||
postgres f225c6cd77bb 2 1024MiB
|
||||
valkey 5e3ed0a9a35a 0.5 128MiB
|
||||
|
||||
FAIL: api: no CPU or memory limit
|
||||
FAIL: api: container_name prevents scaling
|
||||
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: api: publishes ['127.0.0.1:23998'] in bypass of the balancer
|
||||
FAIL: api: root filesystem is writable
|
||||
FAIL: 5 violation(s)
|
||||
exit=1
|
||||
|
||||
Reference in New Issue
Block a user