Files
nas-tools/specs/sprint-07-operations-hardening.md
T
Gan, Jimmy 8faba05b5b
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Failing after 2m3s
Deploy Dashboard (Main) / Backend Tests (push) Successful in 3m7s
Deploy Dashboard (Main) / Frontend Tests (push) Successful in 6s
Deploy Dashboard (Main) / Deploy to Production (push) Has been cancelled
Deploy Dashboard (Main) / Build Main Image (push) Has been cancelled
Deploy Dashboard (Dev) / Backend Tests (push) Successful in 1m18s
Deploy Dashboard (Dev) / Frontend Tests (push) Successful in 51s
Deploy Dashboard (Dev) / Build Dev Image (push) Successful in 1m42s
Deploy Dashboard (Dev) / Deploy to Dev (push) Successful in 58s
feat: S07 operations hardening and OpenConnector integration
2026-07-11 04:42:05 +08:00

34 lines
1.6 KiB
Markdown

# Sprint 07 — Operations Hardening
**Status:** Completed ✅
**Goal:** Fix critical gaps in system backups, log rotation, container resource management, and health monitoring.
---
## S07.1 — Implement audit log rotation [Completed ✅]
- **Files:** `dashboard/backend/main.py`
- **Action:** Replaced `logging.FileHandler` with `logging.handlers.RotatingFileHandler` (10MB limit, 5 backup files).
- **Verification:** Standard requests function properly; Python syntax checked and tests passed.
## S07.2 — Fix database backups (Add OPC & remove dead paths) [Completed ✅]
- **Files:** `backup.sh`
- **Action:**
1. Added `OPC DB` dump using pg_dump.
2. Added `/volume1/docker/nas-dashboard/rbac.json` and `audit.log` config paths to the configs backup block.
3. Removed the deprecated `/volume1/docker/openclaw/data` path.
- **Verification:** Shell script verified for syntax.
## S07.3 — Enhance health check endpoint [Completed ✅]
- **Files:** `dashboard/backend/main.py`
- **Action:** Enhanced `/api/health` to dynamically query database pool availability, docker ping status, and disk space usage. Returns HTTP 503 if any critical service is down.
- **Verification:** Integration test suite verified that endpoint changes compile and execute cleanly.
## S07.4 — Set Docker container resource limits [Completed ✅]
- **Files:** `dashboard/docker-compose.yml`, `claude-dev/docker-compose.yml`
- **Action:** Added container memory limits and CPU limits (`mem_limit` and `cpus` service-level directives).
- **Verification:** Compose YAML structures verified via linter and schema checker.