Commit Graph
84 Commits
Author SHA1 Message Date
ricoromaandClaude Opus 5.5 9f01fcce4b docs: name the storage-tls code commit in its evidence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 21:18:05 +03:00
ricoromaandClaude Opus 5.5 8bca5543fd feat: require TLS to PostgreSQL, Valkey and S3
Storage servers accept only TLS 1.3 (pg_hba hostssl / hostnossl reject,
Valkey port 0, S3 gateway HTTPS only) with stand identities postgres,
valkey and s3. Clients trust only the stand CA from [client_tls] ca_file
and check the host name; no switch to disable verification. Processes
exit with code 2 without a CA or with an IP storage address. Temporary
stands, CI and bench/ run on TLS storages; make storage_tls_check adds
negative checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 21:17:49 +03:00
ricoromaandClaude Opus 5.5 25f5d981c0 docs: propose storage-tls
TLS to PostgreSQL (verify-full), Valkey and S3 for all clients and
stands; database roles and Valkey ACL split off as storage-roles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:47:45 +03:00
ricoromaandClaude Opus 5.5 c8ff10b949 docs: archive auth-hardening and sync its specs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:54:52 +03:00
ricoromaandClaude Opus 5.5 7e4bdc7ff4 docs: name the verify fix commits in auth-hardening evidence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:42:46 +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 3f4771c9d9 fix: address auth-hardening verify findings
Drop the body-limit rule from HAProxy (user decision 2026-11-18): the
replica middleware answers 400 with X-Instance-Id, tests require the
header again. Widen the failure_checks selection in the trust matrix,
name 13fdd18 in the evidence header, document Valkey LRU eviction of
login counters and the allowlist as trusted X-Forwarded-For senders,
check waited_ms of KDF budget rejections in the queue scenario.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:31:57 +03:00
ricoromaandClaude Opus 5.5 4d117f0297 docs: record the decision to drop the LB body-limit rule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:10:54 +03:00
ricoromaandClaude Opus 5.5 c0971cffe6 docs: move the full bench_login label to the last step of the lab
User decision 2026-11-17: the 35-minute baseline2 label and its H1-H4
verdicts are taken with the other long measurements on a quiet host.
Apply auth-hardening closes without them; tasks 9.4 and 11.3 keep the
moved part as a note, PLAN.md lists it in the last step (decision 10).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 18:38:52 +03:00
ricoromaandClaude Opus 5.5 3a98a0e702 fix: record replica death and OOM in the login bench profile
The first baseline attempt on 13fdd18 lost CPU and peak memory of the
"before" variant: its replicas died inside the window and the profile
did not notice. Poll memory.peak during the window, inspect replicas
after it (OOMKilled, exit code, time of death), add oom / replica_died
marks and base H4 on them. The attempt is kept out of git and recorded
in QUESTIONS.md; the label is retaken as baseline2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 18:29:14 +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 5573973670 docs: record the 400 decision for oversized JSON bodies
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 16:44:45 +03:00
ricoromaandClaude Opus 5.5 cf0f6256d3 wip: apply auth-hardening (interrupted by session end)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 16:22:11 +03:00
ricoromaandClaude Opus 5.5 f014f7bc0d docs: propose auth-hardening
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:44:18 +03:00
ricoromaandClaude Opus 5.5 56ccb79451 docs: archive https-tooling and sync its specs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 12:14:10 +03:00
ricoromaandClaude Opus 5.5 6c912678c0 docs: name the ingress tickets commit in https-tooling evidence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 12:07:17 +03:00
ricoromaandClaude Opus 5.5 b56157b109 fix: disable TLS 1.3 session tickets on the HAProxy ingress
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 12:06:55 +03:00
ricoromaandClaude Opus 5.5 465d7383aa docs: name the fix commit in https-tooling evidence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:40:45 +03:00
ricoromaandClaude Opus 5.5 74e8e8fec2 fix: address https-tooling verify findings
Disable TLS 1.3 session tickets on the API so an aborted upload body
frees its slot at once; k6 trusts only the run CA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:40:25 +03:00
ricoromaandClaude Opus 5.5 d82da0a8f6 docs: name the code commit in https-tooling evidence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:09:04 +03:00
ricoromaandClaude Opus 5.5 b2ca2ae5d9 feat: run isolated tests, fault stand, CI and bench over HTTPS and mTLS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:08:47 +03:00
ricoromaandClaude Opus 5.5 51d84b6d76 docs: propose https-tooling
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 06:13:35 +03:00
ricoromaandClaude Opus 5.5 899ff889e2 docs: archive pki-ingress-mtls and sync its specs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 04:57:16 +03:00
ricoromaandClaude Opus 5.5 99b8d1b8d4 fix: address verify remarks for pki-ingress-mtls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 04:49:45 +03:00
ricoromaandClaude Opus 5.5 2649eb24b4 wip: fix verify remarks for pki-ingress-mtls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:58:12 +03:00
ricoromaandClaude Opus 5.5 50cb54f0a1 feat: implement pki-ingress-mtls
Local CA script, HTTPS ingress on :8443, mandatory mTLS LB -> API
with an identity allowlist, separate health listener, random
X-Instance-Id alias; tests, hooks and driver over HTTPS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:38:32 +03:00
ricoromaandClaude Opus 5.5 fef97b39ae wip: apply pki-ingress-mtls groups 6-7, start docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:09:30 +03:00
ricoromaandClaude Opus 5.5 4759f71dec wip: apply pki-ingress-mtls groups 3-5, start group 6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 06:49:52 +03:00
ricoromaandClaude Opus 5.5 5c514b09e8 wip: apply pki-ingress-mtls groups 1-4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 06:42:44 +03:00
ricoromaandClaude Opus 5.5 44fe7110a2 docs: propose pki-ingress-mtls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 06:24:35 +03:00
ricoromaandClaude Opus 5.5 8669a5847b chore: split https tooling out of pki-ingress-mtls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 05:57:12 +03:00
ricoromaandClaude Opus 5.5 f8f66ddd0b chore: plan lab 7 and point bench before-commits at the lab 7 port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 04:13:37 +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
Mikhail Verkovykh 20afc2c790 Подготовить skeleton лабораторной 7 по мессенджеру 2026-09-10 18:01:36 +03:00