From eb7ae1323ffeb8049dfa3c2889e51bbd204c9c45 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Mon, 16 Feb 2026 08:48:08 +0100 Subject: [PATCH] Update CONTEXT.md for v0.4.6 session Co-Authored-By: Claude Opus 4.6 --- CONTEXT.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/CONTEXT.md b/CONTEXT.md index 28fa615..2428227 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -7,7 +7,7 @@ > > Ask Claude Code: "Please update CONTEXT.md with what we did today" -Last updated: 2026-02-16 (session 12) +Last updated: 2026-02-16 (session 13) --- @@ -22,7 +22,7 @@ Last updated: 2026-02-16 (session 12) ## Current project state ### felhom-controller (this repo) -- **Version:** v0.4.5 +- **Version:** v0.4.6 - **Phase 1:** ✅ COMPLETE — Stack Manager + Deploy Flow - **Phase 2:** ✅ COMPLETE — Monitoring & Health (scheduler, CPU/temp, healthchecks.io pings) - **Phase 3:** ✅ COMPLETE — Backups (DB dumps, restic integration, manual trigger, **dedicated backup page**) @@ -30,7 +30,16 @@ Last updated: 2026-02-16 (session 12) - **Running on:** demo-felhom (N100 mini PC) at 192.168.0.162:8080 - **All Phase 1-3 features working:** deploy, start/stop/restart/update, logs, health-aware states, auth, monitoring, backups, backup detail page -### What was just completed (2026-02-16 session 12) +### What was just completed (2026-02-16 session 13) +- **v0.4.6 — MariaDB Validation Fix + Dashboard & Protected Stack UX:** + - **Bugfix: MariaDB dump validation false positive** — MariaDB 11.4+ prepends `/*M!999999\- enable the sandbox mode */` before the dump header comment. `ValidateDump()` now scans the first 10 lines for the expected header pattern instead of just checking line 1. Accepts `-- MariaDB dump`, `-- MySQL dump`, `-- mysqldump` for MariaDB and `-- PostgreSQL database dump` for PostgreSQL. + - **Dashboard shows deployed apps only** — `dashboardHandler()` filters to deployed + protected stacks only. Non-deployed apps remain on the Alkalmazások page. Section heading changed to "Telepített alkalmazások". `TotalCount` stat card still shows all 52 apps. + - **Protected stack restart button** — Protected stacks (traefik, cloudflared, felhom-controller, filebrowser) now show an "Újraindítás" restart button when operational, on both dashboard (compact ↻) and Alkalmazások page (full button). "Védett" / "Védett rendszerkomponens" badge still shown. + - **API protection guard** — Centralized guard in `actionStack()` blocks all actions except `restart` on protected stacks (HTTP 403). Defense-in-depth: `StopStack()` and `DeleteStack()` retain their own guards. + - **FileBrowser `.felhom.yml`** — `install_filebrowser()` in `docker-setup.sh` now creates `.felhom.yml` with `subdomain: files` metadata, so the controller shows the `files.DOMAIN ↗` URL link. Manually created on demo node. + - **Controller version:** v0.4.6 — deployed and verified on demo-felhom.eu + +### What was previously completed (2026-02-16 session 12) - **v0.4.5 — Dedicated Backup Page ("Biztonsági mentés"):** - **New `/backups` page** with full backup system visibility — 5 sections: 1. **Status overview cards**: Local backup status (green/gray), remote placeholder (gray), DB count, repo size