Commit Graph
18 Commits
Author SHA1 Message Date
ricoromaandClaude Opus 5.5 c305d4a4ed test: make the staging outage check independent of earlier mismatched rows
Skeleton contracts / contracts (push) Failing after 27s
Application / application (push) Successful in 13m33s
test_staging_cleanup_survives_outage relied on an empty cleaner queue,
which the storage-consistency delta of track1-worker-compromise
(decision 7) no longer provides: ready rows whose original does not
match stay staging candidates on every pass, candidates go by
(updated_at, id), and an S3 outage stops the pass at the first one.
Age the test row by a day so it is the oldest candidate and drop the
drain step; the scenario checks are unchanged.

Record the red and green runs and the full failure_checks run in the
track1 evidence, the per-pass re-read of mismatched originals in
KNOWN_ISSUES and the report, and the decision in QUESTIONS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 07:11:03 +03:00
ricoromaandClaude Opus 5.5 0d84af0a6a fix: close cheap known issues before final measurements
Skeleton contracts / contracts (push) Failing after 34s
Application / application (push) Failing after 12m13s
- reject inf/nan in every float setting; service.version 1.7.0
- close API storage clients within one 0.5 s window on shutdown
- SeaweedFS admin identity via -s3.config, no access key id in log
- RabbitMQ CLI distribution listener on loopback only
- fix timing-dependent checks: test_issue_not_after,
  test_hung_worker_lease_fencing, reconcile-cycle, reconcile-signal

User decision 2026-12-02: fix the cheap known issues; two scenarios
added to main specs directly, without an OpenSpec change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 22:13:22 +03:00
ricoromaandClaude Opus 5.5 4f2f940a07 feat: confine a compromised worker and drill its compromise end to end
- narrow the worker S3 user to staging reads and attachments writes
- add database rules the worker role cannot bypass: no return to pending,
  variant keys of its own attachment, known error codes only
- let the cleaner remove a ready source only after its own SHA-256 check
- add make jobs_audit [REPAIR=1] to name and requeue damaged jobs
- add make worker_compromise: isolated before/after stands, one operation
  table, response windows, job safety, controls and committed hypotheses

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 03:01:20 +03:00
ricoromaandClaude Opus 5.5 fa8f9a89d9 fix: refuse to work with a lost CA database and defer Ctrl+C until it is written
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:10:52 +03:00
ricoromaandClaude Opus 5.5 452c5953b8 fix: address rotation-revocation narrow verify findings
Name restarting both the LB and the replicas when the LB has no ready
replica, state the measured 25 s bound of the LB metrics port, narrow the
missing files of a held identity to its certificate, and cover refusals
and signals during CRL issue with fast tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:45:36 +03:00
ricoromaandClaude Opus 5.5 10973231a0 fix: address rotation-revocation control verify findings
Keep the hold mark of an identity whose revocation has started whatever
signal ends pki.sh, refuse every rotation command while the files of a
held identity are missing, bound the handshake of the LB metrics port,
name sessions of another password until verify ends, and run Makefile
prerequisites in order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:19:42 +03:00
ricoromaandClaude Opus 5.5 d4a882ddd6 fix: address rotation-revocation re-verify findings
Name only the repeat of rotate_secret while sessions of the previous
PostgreSQL password may stay open, compare KV version time with the
container start when the load record is gone, refuse run_docker and
rolling_update next to a running rotation, defer SIGQUIT, and name the
remaining windows and cases in the trust matrix and threat model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:40:25 +03:00
ricoromaandClaude Opus 5.5 fe30334ee7 fix: address vulnerability-scan verify findings
Verify every uv.lock export hash against the PyPI file digests of its
release (pip-audit only requires hashes), fail on skipped dependencies
and on a root operator UID, export the dev group with all extras, state
the script and make exit codes like the other checks, bound Python
updates by pyproject.toml in the spec, name the fix versions in triage
records, cover the GSSENC path with a keytab control, and record the
RabbitMQ CLI listener false FAIL of hardening_check in KNOWN_ISSUES.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:40:06 +03:00
ricoromaandClaude Opus 5.5 273d7ce1d8 fix: address container-hardening verify findings
Loki gets a /tmp tmpfs for its retention marks (the compactor failed on
the read-only root), hardening_check reads each container's log since
start for write errors, the fast test covers override mounts and the
driver and bench overrides, s3-bootstrap /data is narrowed to its user,
spec wording and docs are corrected, Tempo's exit 137 on stop is recorded
as a known issue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 06:30:11 +03:00
ricoromaandClaude Opus 5.5 157b878289 feat: drop capabilities, run read-only and non-root in every container, mTLS for the S3 gRPC gateway
Every service of the stand gets the x-hardening anchor (cap_drop ALL,
no-new-privileges, read-only root) with an empty exception table, tmpfs
with size limits, pids limits by measurement and non-root users for
PostgreSQL, Valkey, RabbitMQ and SeaweedFS. The S3 gateway gRPC accepts
only mTLS with the stand CA. make hardening_check checks inspect data,
processes and listeners against the compose model; a fast test keeps the
override files from removing restrictions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 05:23:13 +03:00
ricoromaandClaude Opus 5.5 eaa5bca796 fix: address telemetry-backends-tls verify findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:34:03 +03:00
ricoromaandClaude Opus 5.5 1722fb0c35 feat: put telemetry backends, LB metrics and Grafana behind mTLS gateways
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:20:27 +03:00
ricoromaandClaude Opus 5.5 97b6dc25f0 fix: address telemetry-mtls verify findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:45:12 +03:00
ricoromaandClaude Opus 5.5 9fd58cdda2 fix: address messaging-telemetry-mtls verify findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:37:14 +03:00
ricoromaandClaude Opus 5.5 8236027e92 feat: require mTLS with certificate login for RabbitMQ and split relay and worker rights
Broker accepts only TLS 1.3 with a client certificate checked against the
stand CRL; login is EXTERNAL by certificate DNS SAN, broker passwords are
gone. Relay may declare its queue and publish, worker may only consume.
Definitions and TLS material checks come from infra/rabbitmq/start.sh;
temporary stands, CI, bench and the fault hook use the same mTLS identities.
Adds make broker_mtls_check [REPORT=1] and drops the rollback broker compose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:34:47 +03:00
ricoromaandClaude Opus 5.5 d5eaeb3183 feat: separate PostgreSQL roles and Valkey ACL per service
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:10:09 +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 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