Commit Graph
6 Commits
Author SHA1 Message Date
ricoromaandClaude Opus 5.5 c40fbef36a feat: rotate and revoke credentials on the running stand
Add operator commands for leaf and secret rotation, identity revocation
and CRL renewal without rebuilding images, and a drill under load.
A rejected PostgreSQL role password is now 503 instead of 500.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 06:46:55 +03:00
ricoromaandClaude Opus 5.5 8a09f51fbf fix: address openbao-tooling verify findings
- secrets summary: per-life gap between logins (OpenBao outages
  excluded) catches a renewal thread that died after the first login;
  delta and rule updated, fast tests on synthetic logs
- record the apply deviation (operator materials read by the leak scan)
  and switch the leak scan to patterns
- test_secret_new_version checks N -> N+1, sealed-by-operator test
  unseals right after the waiting record
- driver: operator dir refusal exits with code 2
- fast test for Operator.wait_active, check counts 158 -> 164

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:31:52 +03:00
ricoromaandClaude Opus 5.5 6353889349 feat: run a per-run OpenBao for failure checks, bench, CI and driver stands
Every stand with its own storages now brings up its own OpenBao and acts
as its operator: materials live in the run's temporary directory and are
removed on any outcome; the working stand's OpenBao is never touched.

- make failure_checks: own OpenBao, 20 s / 60 s token roles, six new
  OpenBao fault checks, hook actions and the secrets log summary
- bao.py rewrite and waiting for the active node after unseal
- bench/: OpenBao in every fresh stand, "before" variants get secrets
  via ${...} references, passport stand.secrets and limits.openbao
- CI job: BAO_ADDRESS, run OpenBao operator, override with openbao,
  cleaner and migrate pairs, test_ci_override.py
- driver: shared temporary stand for freeze-lb and reconcile-signal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:21:57 +03:00
ricoromaandClaude Opus 5.5 fa5ba51d6a fix: delete login counters that drop to zero
A reserve returned after a KDF budget rejection or 503 left a zero key
in Valkey until the end of the window, so a flood with new usernames
created keys past the address limit and could evict real counters.
SETTLE_SCRIPT and LocalLoginLimiter now delete a counter at zero.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:42:25 +03:00
ricoromaandClaude Opus 5.5 13fdd187c6 feat: harden authentication (Argon2id by measurement, login limits, body limit)
Apply auth-hardening up to the bench_login label: Argon2id parameters
from [auth] chosen by driver.py argon2-params (m=64 MiB, t=2, p=1),
rehash on login, per-process KDF budget with 429, shared login failure
limit in Valkey with a local fallback, X-Forwarded-For from HAProxy,
64 KiB body limit (400) in LB and middleware, bench login profile,
tests, threat model and trust matrix rows. Hypotheses H1-H4 are
committed here before the baseline label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:52:48 +03:00
ricoromaandClaude Opus 5.5 089d78609d chore: port lab 6 solution into the lab 7 skeleton
Source: mtusi2026lab6-safronov, solution/bvt2301-safronov, 6c6a065.
Files follow AGENTS.md, "Переход в следующую лабу". Contracts, public
tests, README, REPORT and evidence of lab 6 are not carried over; infra
and scripts of the lab 7 skeleton stay as they are.
Makefile is the lab 6 one with the lab 7 skeleton part restored
(HTTPS BASE_URL on 8443, test-security); .gitignore and .dockerignore
are taken from lab 6 because both skeletons have the same files;
.env.example is the lab 6 one without changes.
The compose project, image and CI prefix are renamed to lab7, and
references to the previous lab now name lab6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 03:59:04 +03:00