forked from mtusi2026/mtusi2026lab7
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:
@@ -190,7 +190,10 @@ pass» (`published`, `unconfirmed`, `recovered`, `republished`, `published_backl
|
||||
`error_code`, `reason`), `warning` «Refused job replay» (`refusal`), «Finished replay
|
||||
pass». Модуль `attachment_cleanup_service`: «Finished staging cleanup pass»
|
||||
(`removed_ready`, `removed_failed`, `skipped`, `interrupted_by`, `duration_ms`), `warning`
|
||||
«Staging key is not own». Итог сверки — ещё `listed_staging`.
|
||||
«Staging key is not own», с change `track1-worker-compromise` — `error` «Attachment result does
|
||||
not match its source» (`attachment_id`, `object_key`, `reason` — `missing`, `size`, `checksum`):
|
||||
исходник остаётся, запись — каждый проход, пока не сошлось; SHA-256 в ней нет. Итог сверки — ещё
|
||||
`listed_staging`.
|
||||
|
||||
## Чего в логах быть не должно
|
||||
|
||||
|
||||
Reference in New Issue
Block a user