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>
This commit is contained in:
2026-12-02 03:01:20 +03:00
co-authored by Claude Opus 5.5
parent ea3f791364
commit 4f2f940a07
53 changed files with 10062 additions and 101 deletions
+5 -1
View File
@@ -298,7 +298,11 @@ ASCII `bytes`, шаблон W3C версии `00`, `tracestate` до 512 сим
обход каталогов, а не порядок байтов: сверка не сливает
отсортированные потоки, а собирает множество ключей. Префикс —
только `<namespace>/attachments/` (repo): политика уборщика другие
префиксы запрещает;
префиксы запрещает. Ключ worker (change `track1-worker-compromise`,
решение 5): `open` — только под `<namespace>/staging/`, `put` — только
под `<namespace>/attachments/`; чтение своего же результата, HEAD, список
и удаление — `AccessDenied` (`ObjectStorageUnavailable`), новый вызов в
коде worker — сначала политика `bootstrap.sh` и таблица учений;
- счётчики клиента (design change `track2-reconcile-cost`, решение 8):
попытки вызовов по операциям — в `_call` до вызова, в том числе
неудачные (`OPERATION_NAMES`: `list`, `head`, `get`, `delete`, `put`),