lab7: Argon2id из env (замер bench/argon2_bench.py), лимит неудачных входов в Valkey (429 + Retry-After), cap_drop ALL и no-new-privileges, X-Instance-Id = случайный alias

This commit is contained in:
Alexey Bodanyuk
2026-11-27 16:57:24 +03:00
parent 876f610847
commit 05df1695fe
16 changed files with 431 additions and 50 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ def test_replay_after_the_serving_replica_is_stopped(api, pair):
key = uuid.uuid4().hex
first = api.post_message(alice, chat, {"text": "до остановки"}, key=key)
served_by = first.headers["x-instance-id"]
replica = next(r for r in running_replicas() if r["hostname"] == served_by)
replica = next(r for r in running_replicas() if r["instance"] == served_by)
with replica_stopped(replica):
for _ in range(5):
again = Api().post_message(alice, chat, {"text": "до остановки"}, key=key)