- 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>
- restore a verified row by fact: three variants give ready, otherwise
failed with a known code instead of ready without content
- check trigger functions are not SECURITY DEFINER and pin search_path
- record the working stand comparison, the permanent drill lock file and
the remaining SeaweedFS details
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
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>
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>
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>
Close handshakes and logins that started before a revocation or a
password change, converge after a failure in any phase, survive a closed
terminal, lock parallel commands and make the drill detect a dead load.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Hand pip-audit a marker-free requirements file built from the uv.lock
export so every lock entry is audited regardless of the operator
platform, and fail when a lock entry is missing from the pip-audit
output; fetch PyPI digests on daemon threads so an interrupted scan
exits at once; reshoot the vulnerable-lock control and name the fix
versions in the remaining triage records.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
make scan runs pinned Trivy (by digest, no Docker socket, images as
docker save archives, network none, read-only) over every compose image
and the app image (also secrets in layers) and pinned pip-audit over the
uv.lock groups; every CRITICAL/HIGH image finding, secret and pip-audit
finding needs a triage record (verdict, reason, control, review date)
in infra/scan/triage.toml, otherwise a non-zero exit. Fixable findings
are updated within the patch line after a 7-day quarantine: PostgreSQL
and RabbitMQ rebuilds, Valkey 9.1.4, HAProxy 3.4.7, Loki 3.7.10, Python
3.12.15, certifi, dnspython, black, filelock, virtualenv.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Recheck processes with a privilege sign in hardening-check and fail only
when the same process (PID and start time) keeps the sign in every scan,
so the transient runc process of any docker exec no longer gives a false
FAIL; run the root-write probe after the process probes. Name the second
Loki retention error form, fix the exit-code wording in the threat model
and record the live Loki retention probe in the evidence.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
- 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>
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>
bao_check now compares cert auth roles and policies in OpenBao with
the repository and tries every foreign identity against every role
and without a role name; API and migrations exit with code 2 on
invalid settings; stop-at-start runs its attempts next to the stand's
OpenBao again; openbao-outage checks the exit code, the record and
the restart; run_docker restarts only services started before seed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenBao 2.7.3 (raft, TLS 1.3 with client certificates) holds the
PostgreSQL role passwords, the Valkey password and the S3 keys; each
process logs in with its own mTLS identity, reads only its paths and
renews its token in the background. Operator init, unseal, configure
and seed go through infra/openbao/bao.py and make bao_*; checks are
make bao_check and driver.py openbao-outage.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>