docs(runtime-logs): implement runtime log management features

Добавлены новые возможности для работы с файловыми логами Docker-сервисов:
- Эндпоинты для получения списка логов и хвоста лог-файла.
- Очистка лог-файлов с возможностью выбора режима (truncate или delete) и запись в аудит очистки.
- Обновлена документация и конфигурация для поддержки новых функций.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-06-12 19:04:53 +07:00
co-authored by Cursor
parent 1c39c65fc5
commit 3f0dd6c234
25 changed files with 1235 additions and 66 deletions
+9 -7
View File
@@ -8,7 +8,7 @@
|------|----------|
| **Task ID** | `settings-ui-and-runtime-logs` |
| **Complexity** | **Level 4** |
| **Status** | **CREATIVE complete** → `/build` |
| **Status** | **BUILD Phase 2 complete** → Phase 3 |
| **Дата VAN** | 2026-06-12 |
| **Дата PLAN** | 2026-06-12 |
@@ -151,9 +151,9 @@ GET /v1/runtime-logs/cleanup-audit # cursor/limit, viewer+
| created_at | TIMESTAMPTZ | |
**Checklist Phase 1:**
- [ ] `npx @redocly/cli lint docs/openapi.yaml`
- [ ] `scripts/check-migrations-pair.sh`
- [ ] store interface + memory tests
- [x] `npx @redocly/cli lint docs/openapi.yaml`
- [x] миграции `000026` postgres + sqlite (пары up/down)
- [x] store interface + memory tests (`TestMemoryRuntimeLogCleanupAudit`)
---
@@ -180,8 +180,8 @@ GET /v1/runtime-logs/cleanup-audit # cursor/limit, viewer+
4. Return `200` + audit id + sizes
**Checklist Phase 2:**
- [ ] `go test ./internal/runtimelogs/... -race`
- [ ] path traversal tests (`../`, symlinks)
- [x] `go test ./internal/runtimelogs/... -count=1`
- [x] path traversal + symlink tests (`safe_test.go`)
---
@@ -341,7 +341,9 @@ graph TD
- [x] VAN
- [x] PLAN
- [x] CREATIVE (4 docs)
- [ ] BUILD Phase 1–7
- [x] BUILD Phase 1 (OpenAPI + migration + store)
- [x] BUILD Phase 2 (FS layer + config)
- [ ] BUILD Phase 3–7
- [ ] REFLECT
- [ ] ARCHIVE