Files
mtusi2026lab4/openspec/changes/archive/2026-10-30-tighten-lab4-attachment-boundaries/tasks.md
T
ArtyomandClaude Opus 5.5 adca7c6edc Archive the attachment boundaries change
Upload checks the token before the declared size, a slow but steady
transfer outlives the request timeout while a stalled one is still cut,
the API and the reconciler hold separate minimal S3 keys, and the
one-off services run as non-root with an init process. On the stand a
3 MiB upload at 256 KiB/s took 12.1 s at the replica and got 201, a
3 MiB download at 192 KiB/s took 12.8 s and matched the SHA-256, the
API key is denied a bucket listing, and docker stop ends a hanging
reconciler pass in 0.13 s with exit code 143. student-test (345),
test-faults (19), persistence, failover and the lab 4 scenarios pass.
The requirements are synced into lab4-attachments, lab4-upload-resilience
and lab4-object-storage.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
2026-10-30 08:53:53 +03:00

19 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1. Платформа
- [x] 1.1 Конвейер: guard раньше проверки объявленного `Content-Length`
- [x] 1.2 Конвейер: дедлайн с минимальной скоростью передачи для `receive`/`send` приложения; `MIN_TRANSFER_RATE_BYTES` в `TransportSettings`, `main.py`, `compose.yaml`, `.env.example`
- [x] 1.3 Проверка группы: `make lint`; API-тесты: upload без токена с `Content-Length` больше лимита → `401`; медленный идущий upload и скачивание дольше таймаута → `201`/`200`; тело ползёт медленнее порога → `503`
## 2. Стенд
- [x] 2.1 `infra/s3/api-policy.json` без multipart, `GetBucketLocation` и `ListBucket`; `infra/s3/reconciler-policy.json`; `init.sh` создаёт обоих пользователей; `cli.sh` — alias `reconciler`
- [x] 2.2 `scripts/secrets.sh`: ключ сверки; `compose.yaml`: secrets сверки у `reconciler`, `s3-init`, `s3-cli`; `user` у `x-s3-client`; `init: true` у `migrate` и `reconciler`
- [x] 2.3 `scripts/limits.py`: политика секретов; `scripts/s3-check.sh`: запрет листинга ключом API, права ключа сверки; `scripts/reconcile_track.py`: наполнение под ключом API
- [x] 2.4 CI: uid одноразовых сервисов
- [x] 2.5 Проверка группы: стенд из чистого состояния, `make test`, `make s3-check`, `make limits`, `make reconcile`, `docker stop` прохода сверки
## 3. Стенд: тесты
- [x] 3.1 Тесты стенда: медленный upload и медленное скачивание 3 MiB через LB, upload без токена с большим `Content-Length` → `401`
- [x] 3.2 Проверка группы: `make student-test`, `make test-faults`, `make test-persistence ACTION_SCRIPT=scripts/restart.sh`, `make test-failover ACTION_SCRIPT=scripts/stop-one.sh`, `make check`