peppa/openspec/changes/archive/2026-11-24-pep-254-access-hub-journal-integrity/tasks.md
peppa-bot a5e4d49a97
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 32с
peppa/test test: success за 1359с
peppa-ci / ci (pull_request) Successful in 24m32s
PEP-254: архив изменения, требования в openspec/specs/access-hub
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:31:11 +00:00

17 lines
1.8 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 Схема и миграция 0030: `connections.dek_enc`; `connection_log.kind`, `parent_id`, `project_key`, `duration_ms`, `prev_hash`, `hash`
- [x] 1.2 crypto.ts: `newDataKey`, `sealWithKey`/`openWithKey`; connections.ts: `sealConnectionSecret`/`openConnectionSecret`, `upgradeConnectionKeys`
- [x] 1.3 secrets-audit: `encryptedColumns` — `dek_enc` (+ старые `secret_enc`), `reencryptAll` сначала переводит старые
## 2. Журнал
- [x] 2.1 `core/connection-journal.ts`: хэш, `appendJournal` (синхронная транзакция), `verifyJournalRows`, `verifyConnectionJournal`, `exportConnectionJournal`, построение цепочки для старых строк
- [x] 2.2 Шлюз и проверка ключа: вызов до запроса, итог после; лимит считает только вызовы; `connectionJournal` подклеивает итог, «начато, итога нет»
- [x] 2.3 `connectionJournalTick`: проверка, контрольная точка (событие + канал), сообщения о нарушении; вачдог; `peppa db migrate` зовёт перевод ключей и цепочки
## 3. Веб
- [x] 3.1 `GET /api/connections/journal?format=jsonl|csv`, кнопки выгрузки и инструкция; «начато, итога нет» в журнале; переводы ru/kk/en
## 4. Тесты и завершение
- [x] 4.1 Тест `access-hub-journal.test.ts`: подделка, пересчёт после точки, выгрузка, сообщения, envelope, ротация, перевод старых
- [x] 4.2 Прогон access-hub тестов, lint, typecheck; память; archive; PR