peppa/openspec/changes/archive/2026-11-14-pep-19-54-secrets/tasks.md
Асель 9149c75840 PEP-19/54: project secrets for agents, secrets audit and two-key PEPPA_SECRET rotation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:19:57 +05:00

21 lines
1.4 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.

# Tasks: PEP-19 + PEP-54
## 1. Хранилище (PEP-54)
- [x] 1.1 Схема `project_secrets` + миграция
- [x] 1.2 `core/secrets.ts`: валидация, set/delete/list, env для раннера, маскировка, журнал
- [x] 1.3 Раннер: `secrets.env` 0600 → `launch.sh` читает и удаляет, `secrets_issued`
- [x] 1.4 Маскировка: `TerminalFeed` и `recordStep`
- [x] 1.5 MCP `list_secrets` (агент и PM)
- [x] 1.6 Веб «⋯ Настройки проекта → Секреты», `template/RULES.md`
## 2. Ротация и ревизия (PEP-19)
- [x] 2.1 `crypto.ts`: `PEPPA_SECRET_PREVIOUS`, `hashTokenCandidates`, `encryptedWith`; oauth через оба хэша
- [x] 2.2 `core/secrets-audit.ts`: отчёт, `reencryptAll`, отметка ротации, отзыв клиента, инструкции
- [x] 2.3 CLI `peppa secrets audit|reencrypt|new-key|rotated|revoke-client`
- [x] 2.4 Веб `/secrets` (суперадмин), пункт меню, «Помощь»
## 3. Проверка
- [x] 3.1 e2e: секреты (валидация, доступ, шифрование, выдача в сессию мок-агента, маскировка, list_secrets)
- [x] 3.2 e2e: двухключевой переход, reencrypt, отчёт, отметка ротации, отзыв клиента
- [x] 3.3 typecheck, `pnpm run ci`