diff --git a/CHANGELOG.md b/CHANGELOG.md index 858ad61..17553f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +## 2026-10-27 (day, attended) — security updates batch 3: five security-fix steps; Homebox and Mealie fixtures follow the apps (felhom.eu R-1306) + +Pushed on the operator's yes at the batch-3 STOP. Each step: `box_walk.py --security` on scratch 9202 said `proven` +(the guarded Update, a 600 s soak), the seed read back after (bentopdf stores nothing: `seed: none`). + +| App | Step | Peak (anon, soak) | +|---|---|---| +| homebox | 0.26.2 → 0.27.1 | 31.8 % | +| mealie | v3.28.0 → v3.29.0 | 23.2 % | +| audiobookshelf | 2.37.1 → 2.37.2 (Node.js October 2026, CVE-2026-111497) | 9.6 % | +| bentopdf | v2.8.6 → v2.8.10 | 0.6 % | +| uptime-kuma | 2.5.5 → **2.5.7** (2.5.8 removes the TLS option of the TCP-port monitor — not a security step) | 26.3 % | + +- **Fixture `Homebox`** (`scripts/upgrade_fixtures_box28.py`): 0.26 folded locations and items into one + `/api/v1/entities` API (0.26.2's swagger: no `/v1/locations`). The seed tries `/api/v1/locations` and, on 404, + `/api/v1/entities`; the read-back lists entities. The first walk was `inconclusive` (C1: create location 404). +- **Fixture `Mealie`** (`scripts/upgrade_fixtures_box.py`): our template replaces the first-run admin's `MyPassword` + with the generated ADMIN_PASSWORD after the install, so the fixture signs in with that value (the walk's record of + generated values, else the app's own environment) and keeps `MyPassword` as the bench fallback. The first walk was + `inconclusive` (C1: 401). +- Not done today: immich (Node runtime only, the lowest item) — no step written. +- Evidence: felhom.eu `documentation/audits/security-app-updates-2026-10-27/walks//`. + ## 2026-10-27 (day, attended) — security updates batch 2: four security-fix steps + Bookstack's normal step (felhom.eu R-1306) Pushed on the operator's yes at the batch-2 STOP. Each security-fix step: `box_walk.py --security` on scratch 9202 (drill diff --git a/REPORT.md b/REPORT.md index b725a36..41193e6 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,12 +1,13 @@ -# REPORT — security updates batch 2: four security-fix steps + Bookstack (2026-10-27, attended) +# REPORT — security updates batch 3: five security-fix steps (2026-10-27, attended) -**Plain words first.** Four more apps with public security notices get a tested update step that boxes take tonight: -n8n, PrivateBin, Docmost, Grafana. Bookstack (a security release with no notice id) gets a normal tested step. Pushed on -the operator's yes at the batch STOP. PrivateBin, Docmost and Bookstack run on the test boxes, so those take it tonight. +**Plain words first.** Five more apps with public security notices get a tested update step: Homebox, Mealie, +Audiobookshelf, BentoPDF, Uptime Kuma. Pushed on the operator's yes at the batch STOP. BentoPDF runs on the test boxes, +so they take it tonight. With batches 1 and 2, today wrote 14 security-fix steps and two normal steps (Wishlist, +Bookstack); Immich was left for another day. -- Each step proven on scratch 9202 through the product's guarded Update, a 10-minute soak, the seed read back after. - Bookstack also proven on the bench. -- Homebox is not in this batch: its test fixture is stale for 0.26 (the walk could not seed, `inconclusive`). +- Each step proven on scratch 9202 through the product's guarded Update, a 10-minute soak, the seed read back after + (BentoPDF stores no data). Uptime Kuma stops at 2.5.7: 2.5.8 removes a monitor option. +- Two more stale fixtures fixed: Homebox 0.26's new entities API; Mealie's generated admin password. - Gates: `catalog_gates.py --fast` green for the five apps. Evidence: felhom.eu `documentation/audits/security-app-updates-2026-10-27/`. diff --git a/scripts/upgrade_fixtures_box.py b/scripts/upgrade_fixtures_box.py index 525a9c4..1f67136 100644 --- a/scripts/upgrade_fixtures_box.py +++ b/scripts/upgrade_fixtures_box.py @@ -1131,7 +1131,23 @@ class Mealie: token endpoint, create a recipe through the app's own API, and read the recipe back.""" sub = "recipes" - def _token(self, w, sub, pw="MyPassword"): + def _admin_pw(self, w): + """Our template replaces the first-run admin's `MyPassword` with the generated ADMIN_PASSWORD right after the + install (`.felhom.yml` after_install) — the value the household is shown. Read it the way the sabnzbd fixture + reads its key: the walk's own record of generated values, else the app's own environment. The bench runs no + after_install, so `MyPassword` stays the fallback (measured 2026-10-27: 9202 answered 401 to MyPassword).""" + p = (getattr(w, "GENERATED", {}).get("mealie") or {}).get("ADMIN_PASSWORD", "") + if not p and hasattr(w, "guest"): + p = w.guest("docker exec mealie printenv ADMIN_PASSWORD 2>/dev/null").strip() + return p + + def _token(self, w, sub, pw=None): + if pw is None: + for cand in [p for p in (self._admin_pw(w), "MyPassword") if p]: + tok, why = self._token(w, sub, cand) + if tok: + return tok, why + return None, why rc, code, body = w.app_curl( sub, "/api/auth/token", "-H", "Content-Type: application/x-www-form-urlencoded", data=f"username=changeme%40example.com&password={pw}", method="POST") diff --git a/scripts/upgrade_fixtures_box28.py b/scripts/upgrade_fixtures_box28.py index 07aa8af..4c7de1f 100644 --- a/scripts/upgrade_fixtures_box28.py +++ b/scripts/upgrade_fixtures_box28.py @@ -129,7 +129,7 @@ class GrampsWeb: # ── homebox — its own registration + item API ──────────────────────────────────────────────────── class Homebox: - sub = "homebox"; route = "its own /api/v1/users/register + /api/v1/locations" + sub = "homebox"; route = "its own /api/v1/users/register + /api/v1/locations (0.26+: /api/v1/entities)" def seed(self, w, sub, say): if not w.wait_app(sub, "/", want=("200", "302")): @@ -152,15 +152,18 @@ class Homebox: say(f" homebox: login -> {code} {out[:150]}") return None name = "drillloc" + secrets.token_hex(4) - rc, code, out = w.app_curl(sub, "/api/v1/locations", "-H", f"Authorization: {tokv}", - "-H", "Content-Type: application/json", - data=json.dumps({"name": name, "description": "drill"}), - method="POST") + # 0.26 folded locations and items into ONE /api/v1/entities API (measured on the bench 2026-10-27, 0.26.2's + # swagger: no /v1/locations, `repo.EntityCreate` needs only `name`); older versions keep /api/v1/locations. + for path in ("/api/v1/locations", "/api/v1/entities"): + rc, code, out = w.app_curl(sub, path, "-H", f"Authorization: {tokv}", "-H", "Content-Type: application/json", + data=json.dumps({"name": name, "description": "drill"}), method="POST") + if code != "404": + break if code not in ("200", "201"): - self.tried = f"POST /api/v1/locations -> {code} {out[:150]}" + self.tried = f"POST {path} -> {code} {out[:150]}" say(f" homebox: create location -> {code} {out[:150]}") return None - say(f" homebox: seeded location {name}") + say(f" homebox: seeded location {name} through {path}") return {"name": name, "tok": tokv, "u": u, "pw": pw} def verify(self, w, sub, t, say): @@ -172,6 +175,8 @@ class Homebox: except Exception: tokv = t["tok"] rc, code, out = w.app_curl(sub, "/api/v1/locations", "-H", f"Authorization: {tokv}") + if code == "404": # 0.26+: the entities list (locations and items in one) + rc, code, out = w.app_curl(sub, "/api/v1/entities?pageSize=500", "-H", f"Authorization: {tokv}") found = t["name"] in (out or "") absent = ("nope" + secrets.token_hex(6)) not in (out or "") if not absent: diff --git a/templates/audiobookshelf/.felhom.yml b/templates/audiobookshelf/.felhom.yml index 4f57381..2cd56fe 100644 --- a/templates/audiobookshelf/.felhom.yml +++ b/templates/audiobookshelf/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "audiobooks" slug: "audiobookshelf" # catalog_since: the date THIS repo last changed this app's pinned images. Any commit that # changes an image: line must set this to the same day (see CLAUDE.md). -catalog_since: "2026-09-30" +catalog_since: "2026-10-27" # --- Resource hints (displayed on deploy screen) --- resources: @@ -219,6 +219,7 @@ i18n: update_ladder: - {"from": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.35.1"}, "to": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.36.1"}, "digest": {"audiobookshelf": "sha256:3528a93b6442ffe54bd46771bbbab7c97084e1101071586d9dc2254f30bb4358"}, "verdict": "proven", "tested_at": "2026-09-21T18:44:43.824636+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/audiobookshelf/verdict.json", "memory_peak_pct": null, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "backfilled": "2026-09-23", "note": "backfilled from catalog commit 6525b8e; box walk only (harness v1, no memory watch); digest = what the registry served on 2026-09-23, not a measurement of the tested image"} - {"from": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.36.1"}, "to": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.37.1"}, "digest": {"audiobookshelf": "sha256:581d68b2a6fc7ebf58d81c878a9f387cbbc0d88ac9d37b298b9cee10168af85b"}, "verdict": "proven", "tested_at": "2026-09-30T12:03:23Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/F/apps/audiobookshelf/bench/evidence/MV-audiobookshelf/verdict.json", "box_evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/box/audiobookshelf/box-verdict-audiobookshelf.json", "memory_peak_pct": 10.5, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 14.0} + - {"from": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.37.1"}, "to": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.37.2"}, "digest": {"audiobookshelf": "sha256:b897c33f05972fb1bf484f7487bc878fa91ec8691335c1db6e2929c3a7658efa"}, "verdict": "security_fix", "tested_at": "2026-10-27T14:20:08Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/audiobookshelf/", "memory_peak_pct": 9.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nodejs.org/en/blog/vulnerability/october-2026-security-releases", "fixed_in": "2.37.2"}, "seed": "read_back", "memory_basis": "box_soak"} # --- Security watch (felhom.eu R-1303): where each image's security notices are published --- # One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10). diff --git a/templates/audiobookshelf/docker-compose.yml b/templates/audiobookshelf/docker-compose.yml index 9507ffd..9cc9996 100644 --- a/templates/audiobookshelf/docker-compose.yml +++ b/templates/audiobookshelf/docker-compose.yml @@ -17,7 +17,7 @@ services: audiobookshelf: - image: ghcr.io/advplyr/audiobookshelf:2.37.1 + image: ghcr.io/advplyr/audiobookshelf:2.37.2 container_name: audiobookshelf restart: unless-stopped # Runs as root (see note above). Restore an escalation boundary: block SUID-based privilege diff --git a/templates/audiobookshelf/steps/357e2920c1d33ed0.felhom.yml b/templates/audiobookshelf/steps/357e2920c1d33ed0.felhom.yml new file mode 100644 index 0000000..b29910c --- /dev/null +++ b/templates/audiobookshelf/steps/357e2920c1d33ed0.felhom.yml @@ -0,0 +1,214 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Audiobookshelf" +description: "Hangoskönyv és podcast kezelő szerver" +category: "media" +subdomain: "audiobooks" +slug: "audiobookshelf" +# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that +# changes an image: line must set this to the same day (see CLAUDE.md). +catalog_since: "2026-09-30" + +# --- Resource hints (displayed on deploy screen) --- +resources: + mem_request: "100M" + mem_limit: "512M" + pi_compatible: true + needs_hdd: true + +# --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) --- +backup: + userdata: + - path: media/audiobooks + class: optional # PENDING-VETO: spike chose excluded; ruled optional for consistency + # with komga/romm (curated, often personally ripped — precious). + # If Viktor rules excluded, flip THIS LINE ONLY before committing. + - path: media/podcasts + class: excluded # re-downloadable by definition + +# --- Deploy fields (first deployment only) --- +deploy_fields: + - env_var: DOMAIN + label: "Domain" + type: domain + description: "A szerver domain neve" + locked_after_deploy: true + + - env_var: SUBDOMAIN + label: "Aldomain" + type: subdomain + default: "audiobooks" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: HDD_PATH + label: "Hangoskönyv tár útvonal" + type: path + required: true + placeholder: "/mnt/felhom-drives/hdd_1" + description: "A külső merevlemez elérési útja" + locked_after_deploy: true + + +# --- The setup gate (controller >= 0.280.0, `09` §3 decision 46) --- +# The first visitor would create the admin. So a fresh install is closed to everyone but the household (a browser +# signed in to the dashboard) until the first setup is done; audiobookshelf's own status says so (`/status` isInit — upstream, measured on 9202 by the +# 2026-09-29 live proof). +setup_gate: true +# measured on 9202 2026-09-29: isInit false -> true after POST /init; the gate opened ~20 s later (audits/login-gate-2026-09-29/C). +setup_done_probe: + url: http://audiobookshelf:80/status + field: isInit + done: "true" + +# --- App info (info page content) --- +app_info: + tagline: "Hangoskönyv és podcast kezelő, lejátszó és szinkronizáló" + docs_url: "https://www.audiobookshelf.org/docs" + + use_cases: + - 'Hangoskönyvek és podcastok rendszerezése és lejátszása' + - 'Automatikus metaadat letöltés - borítók, leírások, fejezetek' + - 'Folytatás ott, ahol abbahagytad (szinkron eszközök között)' + - 'Podcast feliratkozás és automatikus letöltés' + - 'Dedikált mobil alkalmazások (Android, iOS)' + + first_steps: + - 'Nyisd meg az audiobooks.DOMAIN címet a böngészőben' + - 'Hozd létre az admin fiókot az első megnyitáskor' + - 'Add hozzá a könyvtárakat (/audiobooks és/vagy /podcasts)' + - 'Várd meg az automatikus szkennelést' + - 'Telepítsd az Audiobookshelf alkalmazást a telefonodra' + + prerequisites: + - 'Külső HDD szükséges a hangoskönyvek tárolásához' + - 'Hangoskönyvek mappákba rendezve (pl. Szerző/Könyv/)' + guide: + checked_version: "2.37.1" + sections: + - title: "Hangoskönyv feltöltése" + intro: "A könyveket a böngészőből is feltöltheted, nem kell a meghajtóhoz nyúlnod." + steps: + - "A felső sávban kattints az „Upload” (Feltöltés) ikonra." + - "Válaszd ki a „Library” (Könyvtár) és a „Folder” (Mappa) mezőben, hová kerüljön a könyv." + - "Kattints a „Choose a folder” (Mappa kiválasztása) gombra, és válaszd ki a könyv mappáját. Egy könyv egy mappa legyen." + - "Nézd át a címet és a szerzőt, majd kattints az „Upload” (Feltöltés) gombra." + - title: "Családtag hozzáadása" + intro: "Mindenki a saját fiókjával hallgat, így mindenkinek megvan, hol tart." + steps: + - "A felső sávban kattints a fogaskerékre („Settings”, Beállítások)." + - "A bal oldali menüben nyisd meg a „Users” (Felhasználók) oldalt, és kattints az „Add User” (Felhasználó hozzáadása) gombra." + - "Add meg a „Username” (Felhasználónév) és a „Password” (Jelszó) mezőt. Az „Account Type” (Fióktípus) maradjon „User” (Felhasználó)." + - "Kattints a „Submit” (Küldés) gombra, és add át a családtagnak a nevet és a jelszót." + - title: "Feliratkozás egy podcastra" + intro: "A podcast könyvtár magától letölti az új epizódokat." + steps: + - "Nyisd meg a podcast könyvtárat, és a bal oldali sávban kattints az „Add” (Hozzáadás) pontra." + - "Írd be a podcast nevét, és kattints a „Submit” (Küldés) gombra." + - "Válaszd ki a podcastot a találatok közül." + - "Kapcsold be az „Auto Download Episodes” (Epizódok automatikus letöltése) kapcsolót, és kattints a „Submit” gombra." + - title: "Rossz borító vagy cím javítása" + intro: "Ha egy könyv adatai hibásak, az Audiobookshelf megkeresi a helyeseket." + steps: + - "Nyisd meg a könyvet, és kattints a ceruza ikonra („Edit”, Szerkesztés)." + - "Válaszd a „Match” (Egyeztetés) lapot, és kattints a „Search” (Keresés) gombra." + - "Válaszd ki a helyes találatot, jelöld be, mit vegyen át, és kattints a „Submit” gombra." + faq: + - q: "Hol folytatom, ahol abbahagytam?" + a: "A „Home” (Kezdőlap) oldalon a „Continue Listening” (Hallgatás folytatása) sorban. A helyed a böngésző és a telefonos app között is szinkronban marad." + - q: "Hogyan kötöm be a telefonos appot?" + a: "Nyisd meg az Audiobookshelf appot, szerver címnek add meg az audiobooks.DOMAIN címet, majd a saját felhasználóneved és jelszavad." + - q: "Be tudom állítani, hogy elalvás előtt leálljon?" + a: "Igen: a lejátszó sávjában az ébresztőóra ikonra („Sleep timer”, Alvásidőzítő) kattintva megadhatod, mikor álljon le." + - q: "Átállíthatom magyarra?" + a: "Igen. A saját fiókod oldalán a „Language” (Nyelv) mezőben válaszd a „Magyar” nyelvet. Ez az útmutató az angol feliratokat mutatja." + - q: "Hová kerülnek a könyvek?" + a: "A meghajtód media/audiobooks, a podcastok a media/podcasts mappájába. A doboz mentéseit a vezérlőpulton, az „Adatok és mentés” fülön látod." + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: api + port: 80 + path: "/healthcheck" + expect: + status: 200 + +# --- English copy (localisation slice 5, R-560) -------------------------------------------- +# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing +# field shows the Hungarian one; a controller older than 0.257.0 ignores the block entirely. +i18n: + en: + description: 'An audiobook and podcast server' + app_info: + tagline: 'An audiobook and podcast library, player and sync' + use_cases: + - 'Sort and play your audiobooks and podcasts' + - 'Details arrive on their own - covers, descriptions, chapters' + - 'Carry on where you stopped (it syncs between devices)' + - 'Subscribe to a podcast and let it download itself' + - 'Apps of its own for phones (Android, iOS)' + first_steps: + - 'Open audiobooks.DOMAIN in your browser' + - 'Create the admin account the first time you open it' + - 'Add your libraries (/audiobooks and/or /podcasts)' + - 'Wait for the first scan to finish' + - 'Install the Audiobookshelf app on your phone' + prerequisites: + - 'An external hard drive is needed to keep the audiobooks on' + - 'Audiobooks sorted into folders (Author/Book/, for example)' + guide: + sections: + - title: "Upload an audiobook" + intro: "You can upload books from the browser too, without touching the drive." + steps: + - "In the top bar, select the „Upload” icon." + - "In „Library” and „Folder”, choose where the book goes." + - "Select „Choose a folder” and choose the book's folder. Keep one book in one folder." + - "Check the title and the author, then select „Upload”." + - title: "Add a family member" + intro: "Everyone listens with their own account, so everyone keeps their own place." + steps: + - "In the top bar, select the gear („Settings”)." + - "In the menu on the left, open the „Users” page and select „Add User”." + - "Fill in „Username” and „Password”. Leave „Account Type” on „User”." + - "Select „Submit”, and give the family member the name and the password." + - title: "Subscribe to a podcast" + intro: "The podcast library downloads new episodes by itself." + steps: + - "Open the podcast library, and in the bar on the left select „Add”." + - "Type the name of the podcast and select „Submit”." + - "Choose the podcast from the results." + - "Turn on „Auto Download Episodes” and select „Submit”." + - title: "Fix a wrong cover or title" + intro: "If the details of a book are wrong, Audiobookshelf finds the right ones." + steps: + - "Open the book and select the pencil icon („Edit”)." + - "Choose the „Match” tab and select „Search”." + - "Choose the right result, tick what it takes over, and select „Submit”." + faq: + - q: "Where do I carry on where I stopped?" + a: "On the „Home” page, in the „Continue Listening” row. Your place stays in sync between the browser and the phone app." + - q: "How do I connect the phone app?" + a: "Open the Audiobookshelf app, give audiobooks.DOMAIN as the server address, then your own username and password." + - q: "Can I make it stop before I fall asleep?" + a: "Yes: in the player bar, select the alarm clock icon („Sleep timer”) and set when it stops." + - q: "Can I switch it to Hungarian?" + a: "Yes. On your own account page, choose Hungarian in the „Language” field. This guide shows the English labels." + - q: "Where do the books go?" + a: "Into the media/audiobooks folder of your drive, and the podcasts into media/podcasts. You see the box's backups on the dashboard, on the „Data and backup” tab." + deploy_fields: + - env_var: DOMAIN + label: 'Domain' + description: 'The server domain name' + - env_var: SUBDOMAIN + label: 'Subdomain' + description: 'The subdomain this app answers on' + - env_var: HDD_PATH + label: 'Audiobook library path' + description: 'The path to the external hard drive' + placeholder: '/mnt/felhom-drives/hdd_1' diff --git a/templates/audiobookshelf/steps/357e2920c1d33ed0.yml b/templates/audiobookshelf/steps/357e2920c1d33ed0.yml new file mode 100644 index 0000000..9507ffd --- /dev/null +++ b/templates/audiobookshelf/steps/357e2920c1d33ed0.yml @@ -0,0 +1,65 @@ +# Audiobookshelf - Hangoskönyv és podcast kezelő szerver +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: None (file-based) +# RAM: ~100M (mem_limit: 512M) | Pi-compatible: Yes +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# USERDATA_PATH - Ügyfél-tartalom gyökér (/userdata) +# +# Storage layout (felhom userdata convention): +# Hangoskönyvek → ${USERDATA_PATH}/media/audiobooks (írható) +# Podcastok → ${USERDATA_PATH}/media/podcasts (írható) +# Run-identity: ROOT (fallback). user "1000:1000" was tried but the image creates its /metadata named +# volume as root at init and fails (`EACCES mkdir /metadata/logs`) when pinned to 1000. So it runs as +# root and relies on the setgid 2775 userdata dirs (files land group 1000 → FileBrowser can browse/read). +# (Verified live; see REPORT.) + +services: + audiobookshelf: + image: ghcr.io/advplyr/audiobookshelf:2.37.1 + container_name: audiobookshelf + restart: unless-stopped + # Runs as root (see note above). Restore an escalation boundary: block SUID-based privilege + # escalation. Full cap_drop is NOT applied — the image's root-init needs file-ownership caps to + # set up /metadata, and dropping them reproduces the EACCES failure we hit pinning user:1000. + security_opt: + - no-new-privileges:true + environment: + - TZ=Europe/Budapest + volumes: + - audiobookshelf_config:/config + - audiobookshelf_metadata:/metadata + - ${USERDATA_PATH}/media/audiobooks:/audiobooks + - ${USERDATA_PATH}/media/podcasts:/podcasts + networks: + - traefik-public + deploy: + resources: + limits: + memory: 512M + healthcheck: + test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:80/healthcheck"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.audiobookshelf.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + # R-753: this app reads the LEFTMOST X-Forwarded-For entry, which a stranger writes once traefik keeps the + # tunnel's chain — so its chain is removed here (it then reads traefik's X-Real-Ip or peer; never forgeable). + - "traefik.http.middlewares.audiobookshelf-xff.headers.customrequestheaders.X-Forwarded-For=" + - "traefik.http.routers.audiobookshelf.middlewares=audiobookshelf-xff" + - "traefik.http.routers.audiobookshelf.entrypoints=websecure" + - "traefik.http.routers.audiobookshelf.tls=true" + - "traefik.http.routers.audiobookshelf.tls.certresolver=letsencrypt" + - "traefik.http.services.audiobookshelf.loadbalancer.server.port=80" + +volumes: + audiobookshelf_config: + audiobookshelf_metadata: + +networks: + traefik-public: + external: true diff --git a/templates/bentopdf/.felhom.yml b/templates/bentopdf/.felhom.yml index 38a8903..a828c78 100644 --- a/templates/bentopdf/.felhom.yml +++ b/templates/bentopdf/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "pdf" slug: "bentopdf" # catalog_since: the date THIS repo last changed this app's pinned images. Any commit that # changes an image: line must set this to the same day (see CLAUDE.md). -catalog_since: "2026-07-12" +catalog_since: "2026-10-27" # --- Resource hints (displayed on deploy screen) --- resources: @@ -171,3 +171,9 @@ i18n: # One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10). upstream: ghcr.io/alam00000/bentopdf: "github:alam00000/bentopdf" + +# update_ladder — the test record: one tested step per line, oldest first (JSON flow mappings, +# `09-update-architecture.md` §6.4 part 4). WRITTEN BY scripts/upgrade-test.py, never by hand; +# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused. +update_ladder: + - {"from": {"bentopdf": "ghcr.io/alam00000/bentopdf:v2.8.6"}, "to": {"bentopdf": "ghcr.io/alam00000/bentopdf:v2.8.10"}, "digest": {"bentopdf": "sha256:039239902a01e58a5a0f52e29039fafa18ffc2a481bb8acd807599f1c6dde7ef"}, "verdict": "security_fix", "tested_at": "2026-10-27T14:22:11Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/bentopdf/", "memory_peak_pct": 0.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-cx8x-7rrr-r9x8"], "advisory": "https://github.com/alam00000/bentopdf/security/advisories/GHSA-cx8x-7rrr-r9x8", "fixed_in": "v2.8.7"}, "seed": "none", "memory_basis": "box_soak"} diff --git a/templates/bentopdf/docker-compose.yml b/templates/bentopdf/docker-compose.yml index daf3aa6..519604d 100644 --- a/templates/bentopdf/docker-compose.yml +++ b/templates/bentopdf/docker-compose.yml @@ -8,7 +8,7 @@ services: bentopdf: - image: ghcr.io/alam00000/bentopdf:v2.8.6 + image: ghcr.io/alam00000/bentopdf:v2.8.10 container_name: bentopdf restart: unless-stopped environment: diff --git a/templates/homebox/.felhom.yml b/templates/homebox/.felhom.yml index e257570..f249e6d 100644 --- a/templates/homebox/.felhom.yml +++ b/templates/homebox/.felhom.yml @@ -15,7 +15,7 @@ subdomain: "inventory" slug: "homebox" # catalog_since: the date THIS repo last changed this app's pinned images. Any commit that # changes an image: line must set this to the same day (see CLAUDE.md). -catalog_since: "2026-07-19" +catalog_since: "2026-10-27" # --- Resource hints (displayed on deploy screen) --- resources: @@ -205,3 +205,9 @@ i18n: # One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10). upstream: ghcr.io/sysadminsmedia/homebox: "github:sysadminsmedia/homebox" + +# update_ladder — the test record: one tested step per line, oldest first (JSON flow mappings, +# `09-update-architecture.md` §6.4 part 4). WRITTEN BY scripts/upgrade-test.py, never by hand; +# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused. +update_ladder: + - {"from": {"homebox": "ghcr.io/sysadminsmedia/homebox:0.26.2"}, "to": {"homebox": "ghcr.io/sysadminsmedia/homebox:0.27.1"}, "digest": {"homebox": "sha256:9d0b64776c694f018c0ca06faf52105a33ca376024f46bb58e6ab0e2b728bb61"}, "verdict": "security_fix", "tested_at": "2026-10-27T14:45:55Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/homebox/", "memory_peak_pct": 31.8, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-jm28-2xm3-m6m5", "GHSA-58m4-m8xj-v3j2", "GHSA-wxcf-4p4j-vhvg"], "advisory": "https://github.com/sysadminsmedia/homebox/security/advisories/GHSA-jm28-2xm3-m6m5", "fixed_in": "0.27.0"}, "seed": "read_back", "memory_basis": "box_soak"} diff --git a/templates/homebox/docker-compose.yml b/templates/homebox/docker-compose.yml index 849300d..9d442fc 100644 --- a/templates/homebox/docker-compose.yml +++ b/templates/homebox/docker-compose.yml @@ -11,7 +11,7 @@ services: homebox: - image: ghcr.io/sysadminsmedia/homebox:0.26.2 + image: ghcr.io/sysadminsmedia/homebox:0.27.1 container_name: homebox restart: unless-stopped environment: diff --git a/templates/mealie/.felhom.yml b/templates/mealie/.felhom.yml index 41db52d..314d0aa 100644 --- a/templates/mealie/.felhom.yml +++ b/templates/mealie/.felhom.yml @@ -15,7 +15,7 @@ subdomain: "recipes" slug: "mealie" # catalog_since: the date THIS repo last changed this app's pinned images. Any commit that # changes an image: line must set this to the same day (see CLAUDE.md). -catalog_since: "2026-09-25" +catalog_since: "2026-10-27" # --- Resource hints (displayed on deploy screen) --- resources: @@ -222,6 +222,7 @@ i18n: update_ladder: - {"from": {"mealie": "ghcr.io/mealie-recipes/mealie:v3.20.1"}, "to": {"mealie": "ghcr.io/mealie-recipes/mealie:v3.27.0"}, "digest": {"mealie": "sha256:ba24b88462380fb59a6c7d04c6d9e607e0b6b04e31306592181186bcdab1952b"}, "verdict": "proven", "tested_at": "2026-09-21T20:20:09.681676+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/mealie/verdict.json", "memory_peak_pct": null, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "backfilled": "2026-09-23", "note": "backfilled from catalog commit 008348b; box walk only (harness v1, no memory watch); digest = what the registry served on 2026-09-23, not a measurement of the tested image"} - {"from": {"mealie": "ghcr.io/mealie-recipes/mealie:v3.27.0"}, "to": {"mealie": "ghcr.io/mealie-recipes/mealie:v3.28.0"}, "digest": {"mealie": "sha256:8b02290f4d1806f02acac6f25f6d48a3c965612fda1f8e914d5af533276f8688"}, "verdict": "proven", "tested_at": "2026-09-24T21:16:19Z", "harness_version": 3, "evidence": "felhom.eu/documentation/audits/night-2026-09-25/E/apps/mealie/bench", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-25/E/apps/mealie/box", "memory_peak_pct": 23.1, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 24.8} + - {"from": {"mealie": "ghcr.io/mealie-recipes/mealie:v3.28.0"}, "to": {"mealie": "ghcr.io/mealie-recipes/mealie:v3.29.0"}, "digest": {"mealie": "sha256:78eb28b8776d0bad40c5e605c72b3f4f5976793e491558c7dcbdfc04c835d4bc"}, "verdict": "security_fix", "tested_at": "2026-10-27T14:44:30Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/mealie/", "memory_peak_pct": 23.2, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-99wf-32rc-2767"], "advisory": "https://github.com/mealie-recipes/mealie/security/advisories/GHSA-99wf-32rc-2767", "fixed_in": "v3.29.0"}, "seed": "read_back", "memory_basis": "box_soak"} # --- Security watch (felhom.eu R-1303): where each image's security notices are published --- # One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10). diff --git a/templates/mealie/docker-compose.yml b/templates/mealie/docker-compose.yml index 9b6a769..1c96b52 100644 --- a/templates/mealie/docker-compose.yml +++ b/templates/mealie/docker-compose.yml @@ -15,7 +15,7 @@ services: mealie: - image: ghcr.io/mealie-recipes/mealie:v3.28.0 + image: ghcr.io/mealie-recipes/mealie:v3.29.0 container_name: mealie restart: unless-stopped environment: diff --git a/templates/mealie/steps/a54b0fc61c1df5e3.felhom.yml b/templates/mealie/steps/a54b0fc61c1df5e3.felhom.yml new file mode 100644 index 0000000..b84985e --- /dev/null +++ b/templates/mealie/steps/a54b0fc61c1df5e3.felhom.yml @@ -0,0 +1,217 @@ +# ============================================================================= +# .felhom.yml — App metadata for felhom-controller +# ============================================================================= +# Place alongside docker-compose.yml in each stack directory: +# /opt/docker/stacks/mealie/.felhom.yml +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Mealie" +description: "Receptkezelő és étkezéstervező" +category: "productivity" +subdomain: "recipes" + +# --- Asset slug --- +slug: "mealie" +# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that +# changes an image: line must set this to the same day (see CLAUDE.md). +catalog_since: "2026-09-25" + +# --- Resource hints (displayed on deploy screen) --- +resources: + mem_request: "300M" + mem_limit: "1000M" + pi_compatible: true + needs_hdd: false + +# --- Deploy fields --- +deploy_fields: + - env_var: DOMAIN + label: "Domain" + type: domain + description: "A szerver domain neve" + locked_after_deploy: true + + - env_var: SUBDOMAIN + label: "Aldomain" + type: subdomain + default: "recipes" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + # `09` §3 decision 45: Mealie starts with changeme@example.com / MyPassword. The box replaces that password with + # this generated one right after the install (after_install below); the app page shows it as the first password. + - env_var: ADMIN_PASSWORD + label: "Admin jelszó (changeme@example.com)" + type: password + generate: "password:24" + description: "Az első bejelentkezéshez: changeme@example.com és ez a jelszó. Utána a profilodban módosítható." + locked_after_deploy: true + +# --- App info (info page content) --- +app_info: + tagline: 'Receptkezelő és étkezés tervező a családnak' + default_creds: 'changeme@example.com / MyPassword' + docs_url: 'https://docs.mealie.io/' + + use_cases: + - 'Receptek gyűjtése és rendszerezése kategóriák és címkék szerint' + - 'Receptek importálása weboldalakról automatikusan' + - 'Heti étkezés tervezés és bevásárlólista generálás' + - 'Receptek megosztása családtagokkal és barátokkal' + - 'Többnyelvű felület - magyar is elérhető' + + first_steps: + - 'Nyisd meg a recipes.DOMAIN címet a böngészőben' + - 'Jelentkezz be: changeme@example.com és a Beállítások oldalon látható első jelszó' + - 'Változtasd meg az email címet a sajátodra' + - 'Importáld az első receptet egy weboldal URL beillesztésével' + - 'Próbáld ki az étkezés tervezőt' + - 'Ha valaki ötször rossz jelszót ad meg, a Mealie 1-2 órára lezárja a fiókot, és közben a jó jelszó sem működik - ilyenkor várj, utána újra be tudsz lépni' + guide: + checked_version: "v3.28.0" + sections: + - title: "Recept beírása kézzel" + intro: "Ha egy recept nincs fent a neten, például a nagymamáé, kézzel is felviheted." + steps: + - "Kattints a „Létrehozás” gombra, és válaszd a „Recept kézi létrehozása” lehetőséget." + - "Írd be a „Recept neve” mezőt, és kattints a „Létrehozás” gombra." + - "Töltsd ki a „Hozzávalók” és az „Elkészítés” részt." + - "Kattints a „Mentés” gombra." + - title: "Bevásárlólista egy receptből" + intro: "A recept hozzávalóit egy kattintással a bevásárlólistára teheted." + steps: + - "Nyisd meg a „Bevásárlólisták” oldalt, kattints a „Létrehozás” gombra, és az „Új lista” mezőben adj nevet a listának." + - "Nyisd meg a receptet, és a menüjében válaszd a „Hozzáadás listához” pontot." + - "Válaszd ki a listát, majd kattints a „Hozzáadás listához” gombra." + - "A boltban a telefonon nyisd meg a listát, és pipáld ki, ami már a kosárban van." + - title: "A heti menü bevásárlólistája" + intro: "Ha már megtervezted a hetet, a teljes bevásárlást egyszerre összeállíthatod." + steps: + - "Nyisd meg a „Menütervező” oldalt." + - "A menüben válaszd az „Összes hozzáadása a listához” pontot, és válaszd ki a listát." + - "Csak egy napot is hozzáadhatsz: a nap menüjében válaszd a „Nap hozzáadása a listához” pontot." + - title: "Családtag meghívása" + intro: "A családtag meghívó linkkel regisztrál, és utána ugyanazokat a recepteket és listákat látja." + steps: + - "A bal oldali menü alján, a „Beállítások” alatt nyisd meg a „Felhasználói beállítások” oldalt." + - "Kattints a „Meghívó link beszerzése” gombra." + - "A „Meghívó link” mező mellett kattints a „Másolás” gombra, és küldd el a linket a családtagnak." + - "A linken saját névvel és jelszóval regisztrál. Meghívó nélkül senki nem tud regisztrálni, ezt a doboz így állította be." + faq: + - q: "Miért angol a felület?" + a: "A Mealie a böngésződ nyelvét követi. Másik nyelvhez a bal oldali menü alján, a „Beállítások” alatt kattints a „Nyelv” pontra." + - q: "Egy weboldalról nem jött át a recept. Mit tegyek?" + a: "Nem minden weboldalt tud beolvasni a Mealie. Ilyenkor írd be a receptet kézzel, ahogy fent leírtuk." + - q: "Egy családtag elfelejtette a jelszavát. Mit tegyek?" + a: "Az „Admin beállítások” oldalon nyisd meg a „Felhasználók” részt, majd a családtagot. Kattints a „Jelszó visszaállítási link létrehozása” gombra, és add át neki a linket." + - q: "Van telefonos app?" + a: "Külön app nem kell: a Mealie a telefon böngészőjében is jól használható, és kiteheted a kezdőképernyőre, mint egy appot." + - q: "Hol látom, hogy készül-e mentés?" + a: "A vezérlőpulton, a Mealie „Adatok és mentés” fülén." + +# --- After a fresh install (controller >= 0.279.0, decision 45) --- +# Mealie's OWN user repository sets the seeded user's password (what its scripts/change_password.py does, without the +# prompts). Measured on 9202 2026-09-29: afterwards MyPassword answers 401 at /api/auth/token, the new one 200. +after_install: + service: mealie + env: [ADMIN_PASSWORD] + # The password is the LAST ARGUMENT (sys.argv[1]), never pasted into the code: a quote in it cannot break or change + # the program (security review 2026-09-29). + command: ["python3", "-c", "import sys\nfrom mealie.core.security.security import hash_password\nfrom mealie.db.db_setup import session_context\nfrom mealie.repos.repository_factory import AllRepositories\nwith session_context() as s:\n r = AllRepositories(s, group_id=None, household_id=None)\n u = r.users.get_one('changeme@example.com', 'email')\n r.users.update_password(u.id, hash_password(sys.argv[1]))\n print('FELHOM_AFTER_INSTALL_OK')\n", "${ADMIN_PASSWORD}"] + success: "FELHOM_AFTER_INSTALL_OK" + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: tcp + port: 9000 + +# --- App-email mapping (apps → in-controller shim → hub → Resend) --- +# When app-email is on (global toggle + this app's per-app toggle), the controller injects +# host = the on-box shim, port = 2525, From = mealie@felhom.eu. Mealie has NO accept-invalid- +# cert option, so it talks PLAINTEXT (SMTP_AUTH_STRATEGY=NONE) to the shim on 2525 — the +# spike-validated mode (SPIKE-smtp-app-relay-2026-06-28 §7). SMTP_USER/SMTP_PASSWORD stay +# unset (no auth needed; the shim holds no Resend key). +smtp_mapping: + host_var: SMTP_HOST + port_var: SMTP_PORT + security_var: SMTP_AUTH_STRATEGY + security_value: "NONE" + from_var: SMTP_FROM_EMAIL + from_name_var: SMTP_FROM_NAME + from_local: mealie + +# --- English copy (localisation slice 5, R-560) -------------------------------------------- +# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing +# field shows the Hungarian one; a controller older than 0.257.0 ignores the block entirely. +i18n: + en: + description: 'A recipe manager and meal planner' + app_info: + tagline: 'A recipe manager and meal planner for the household' + default_creds: 'changeme@example.com / MyPassword' + use_cases: + - 'Collect recipes and sort them by category and tag' + - 'Import a recipe from a web page on its own' + - 'Plan the week''s meals and get a shopping list out of it' + - 'Share recipes with family and friends' + - 'A multilingual interface - English and Hungarian among them' + first_steps: + - 'Open recipes.DOMAIN in your browser' + - 'Sign in: changeme@example.com and the first password shown on the settings page' + - 'Change the e-mail address to your own' + - 'Import your first recipe by pasting a web page address' + - 'Try the meal planner' + - 'If someone enters a wrong password five times, Mealie locks the account for 1-2 hours and even the right password does not work meanwhile - wait, then you can sign in again' + guide: + sections: + - title: "Type in a recipe by hand" + intro: "If a recipe is not on the web, for example your grandmother's, you can enter it by hand." + steps: + - "Select „Create”, and choose „Create a recipe manually”." + - "Fill in „Recipe Name” and select „Create”." + - "Fill in the „Ingredients” and „Instructions” parts." + - "Select „Save”." + - title: "A shopping list from a recipe" + intro: "You can put a recipe's ingredients on the shopping list in one go." + steps: + - "Open the „Shopping Lists” page, select „Create”, and name the list in „New List”." + - "Open the recipe, and in its menu choose „Add to List”." + - "Choose the list, then select „Add to List”." + - "In the shop, open the list on your phone and tick what is already in the basket." + - title: "The shopping list for the week's menu" + intro: "Once you have planned the week, you can put the whole shopping together in one go." + steps: + - "Open the „Meal Planner” page." + - "In the menu, choose „Add All to List”, and choose the list." + - "You can add a single day too: in the day's menu, choose „Add Day to List”." + - title: "Invite a family member" + intro: "A family member registers with an invite link, and then sees the same recipes and lists." + steps: + - "At the bottom of the menu on the left, under „Settings”, open the „User Settings” page." + - "Select „Get Invite Link”." + - "Next to the „Invite Link” field, select „Copy”, and send the link to the family member." + - "They register through the link with their own name and password. Nobody can register without an invite; the box set it up that way." + faq: + - q: "Why is the interface in English?" + a: "Mealie follows your browser's language. For another language, at the bottom of the menu on the left, under „Settings”, select „Language”." + - q: "A recipe did not come over from a web page. What do I do?" + a: "Mealie cannot read every web page. In that case, type the recipe in by hand, as described above." + - q: "A family member forgot their password. What do I do?" + a: "On the „Admin Settings” page, open the „Users” part, then the family member. Select „Generate Password Reset Link”, and give them the link." + - q: "Is there a phone app?" + a: "You do not need a separate app: Mealie works well in the phone's browser, and you can put it on the home screen like an app." + - q: "Where do I see whether backups are made?" + a: "On the dashboard, on Mealie's „Data and backup” tab." + deploy_fields: + - env_var: DOMAIN + label: 'Domain' + description: 'The server domain name' + - env_var: SUBDOMAIN + label: 'Subdomain' + description: 'The subdomain this app answers on' + - env_var: ADMIN_PASSWORD + label: 'Admin password (changeme@example.com)' + description: 'For the first sign-in: changeme@example.com and this password. Change it in your profile afterwards.' diff --git a/templates/mealie/steps/a54b0fc61c1df5e3.yml b/templates/mealie/steps/a54b0fc61c1df5e3.yml new file mode 100644 index 0000000..9b6a769 --- /dev/null +++ b/templates/mealie/steps/a54b0fc61c1df5e3.yml @@ -0,0 +1,74 @@ +# Mealie - Recipe Manager & Meal Planner +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: None (SQLite, built-in) +# RAM: ~200MB (mem_limit: 1000M) | Pi-compatible: Yes (arm64 only) +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# +# Storage layout: +# Recipe data/images → mealie_data (named volume, NVMe — moderate size) +# +# First-time setup: +# Default login: changeme@example.com / MyPassword +# Change immediately after first login! + +services: + mealie: + image: ghcr.io/mealie-recipes/mealie:v3.28.0 + container_name: mealie + restart: unless-stopped + environment: + - ALLOW_SIGNUP=false + # R-747 (decided by CC unattended 2026-10-01, `09` §3 decision 57 — operator may reverse): mealie locks the ACCOUNT + # after 5 wrong logins for SECURITY_USER_LOCKOUT_TIME hours (default 24), and its login names (admin, + # changeme@example.com) are public — a stranger could lock the household out for a day. 1 hour (the unit's + # minimum) keeps the guard; mealie's hourly job lifts it, so a lock lasts 1-2 h (measured on 9202: 120 min). + - SECURITY_USER_LOCKOUT_TIME=1 + - PUID=1000 + - PGID=1000 + - TZ=Europe/Budapest + - MAX_WORKERS=1 + - WEB_CONCURRENCY=1 + - BASE_URL=https://${SUBDOMAIN}.${DOMAIN} + # App-email (managed relay). Injected by the controller only when app-email is on + # (global + per-app); empty SMTP_HOST = Mealie mail stays disabled. Mealie has no + # accept-invalid-cert option, so the relay uses plaintext (NONE) to the on-box shim — + # the spike-validated mode. See .felhom.yml smtp_mapping. + - SMTP_HOST=${SMTP_HOST:-} + - SMTP_PORT=${SMTP_PORT:-25} + - SMTP_AUTH_STRATEGY=${SMTP_AUTH_STRATEGY:-NONE} + - SMTP_FROM_NAME=${SMTP_FROM_NAME:-} + - SMTP_FROM_EMAIL=${SMTP_FROM_EMAIL:-} + volumes: + - mealie_data:/app/data/ + networks: + - traefik-public + deploy: + resources: + limits: + memory: 1000M + healthcheck: + test: ["CMD-SHELL", "python3 -c \"import socket; s=socket.create_connection(('127.0.0.1',9000),2); s.close()\""] + interval: 30s + timeout: 5s + retries: 3 + start_period: 60s + labels: + - "traefik.enable=true" + - "traefik.http.routers.mealie.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + # R-753: this app reads the LEFTMOST X-Forwarded-For entry, which a stranger writes once traefik keeps the + # tunnel's chain — so its chain is removed here (it then reads traefik's X-Real-Ip or peer; never forgeable). + - "traefik.http.middlewares.mealie-xff.headers.customrequestheaders.X-Forwarded-For=" + - "traefik.http.routers.mealie.middlewares=mealie-xff" + - "traefik.http.routers.mealie.entrypoints=websecure" + - "traefik.http.routers.mealie.tls=true" + - "traefik.http.routers.mealie.tls.certresolver=letsencrypt" + - "traefik.http.services.mealie.loadbalancer.server.port=9000" + +volumes: + mealie_data: + +networks: + traefik-public: + external: true diff --git a/templates/uptime-kuma/.felhom.yml b/templates/uptime-kuma/.felhom.yml index 00e6b5c..669f77b 100644 --- a/templates/uptime-kuma/.felhom.yml +++ b/templates/uptime-kuma/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "status" slug: "uptime-kuma" # catalog_since: the date THIS repo last changed this app's pinned images. Any commit that # changes an image: line must set this to the same day (see CLAUDE.md). -catalog_since: "2026-09-30" +catalog_since: "2026-10-27" # --- Resource hints (displayed on deploy screen) --- resources: @@ -182,6 +182,7 @@ i18n: # gated by scripts/check-test-record.py. An image: move without a proven entry here is refused. update_ladder: - {"from": {"uptime-kuma": "louislam/uptime-kuma:2.4.0"}, "to": {"uptime-kuma": "louislam/uptime-kuma:2.5.5"}, "digest": {"uptime-kuma": "sha256:c74379ac4509ce2d2c2633f509e67003ee2e45b6e995c5e43fc101f45a0e1fbe"}, "verdict": "proven", "tested_at": "2026-09-30T16:50:40Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/uptime-kuma/bench/evidence/MV-uptime-kuma/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/uptime-kuma/step.txt", "memory_peak_pct": 43.3, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 49.7} + - {"from": {"uptime-kuma": "louislam/uptime-kuma:2.5.5"}, "to": {"uptime-kuma": "louislam/uptime-kuma:2.5.7"}, "digest": {"uptime-kuma": "sha256:4b95dbe7ac5343b768f8e04e3035ccd59997872b1a35ab9b0f082d2cc279070e"}, "verdict": "security_fix", "tested_at": "2026-10-27T14:24:47Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/uptime-kuma/", "memory_peak_pct": 26.3, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nodejs.org/en/blog/vulnerability/october-2026-security-releases", "fixed_in": "2.5.7"}, "seed": "read_back", "memory_basis": "box_soak"} # --- Security watch (felhom.eu R-1303): where each image's security notices are published --- # One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10). diff --git a/templates/uptime-kuma/docker-compose.yml b/templates/uptime-kuma/docker-compose.yml index b076b51..8487243 100644 --- a/templates/uptime-kuma/docker-compose.yml +++ b/templates/uptime-kuma/docker-compose.yml @@ -9,7 +9,7 @@ services: uptime-kuma: - image: louislam/uptime-kuma:2.5.5 + image: louislam/uptime-kuma:2.5.7 container_name: uptime-kuma restart: unless-stopped environment: diff --git a/templates/uptime-kuma/steps/023d7514039fca24.felhom.yml b/templates/uptime-kuma/steps/023d7514039fca24.felhom.yml new file mode 100644 index 0000000..9df1907 --- /dev/null +++ b/templates/uptime-kuma/steps/023d7514039fca24.felhom.yml @@ -0,0 +1,178 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Uptime Kuma" +description: "Szolgáltatás és weboldal monitoring" +category: "dashboard" +subdomain: "status" +slug: "uptime-kuma" +# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that +# changes an image: line must set this to the same day (see CLAUDE.md). +catalog_since: "2026-09-30" + +# --- Resource hints (displayed on deploy screen) --- +resources: + mem_request: "150M" + mem_limit: "384M" + pi_compatible: true + needs_hdd: false + +# --- Deploy fields (first deployment only) --- +deploy_fields: + - env_var: DOMAIN + label: "Domain" + type: domain + description: "A szerver domain neve" + locked_after_deploy: true + + - env_var: SUBDOMAIN + label: "Aldomain" + type: subdomain + default: "status" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + +# --- The setup gate (controller >= 0.280.0, `09` §3 decision 46) --- +# The first visitor would create the admin. So a fresh install is closed to everyone but the household (a browser +# signed in to the dashboard) until the first setup is done. uptime-kuma says it only over socket.io, so the household presses "Done, I set it up" +# on the app page. +setup_gate: true + +# --- App info (info page content) --- +app_info: + tagline: "Szolgáltatás monitoring - értesítés ha valami nem működik" + docs_url: "https://github.com/louislam/uptime-kuma/wiki" + + use_cases: + - 'Weboldalak és szolgáltatások elérhetőségének figyelése' + - 'HTTP, TCP, DNS, ping és egyéb protokollok támogatása' + - 'Értesítések emailben, Telegramon, Discord-on, stb.' + - 'Nyilvános státusz oldal a felhasználóknak' + - 'Szép grafikonok a rendelkezésre állásról' + + first_steps: + - 'Nyisd meg a status.DOMAIN címet a böngészőben' + - 'Hozd létre az admin fiókot az első megnyitáskor' + - 'Add hozzá az első monitort (pl. a saját weboldalad)' + - 'Állíts be értesítéseket (email, Telegram, stb.)' + - 'Opcionálisan: hozz létre egy nyilvános státusz oldalt' + guide: + checked_version: "2.5.5" + sections: + - title: "Karbantartás bejelentése" + intro: "Ha szándékosan kikapcsolsz valamit, a karbantartás idejére nem kapsz riasztást." + steps: + - "A jobb felső sarokban nyisd meg a profilod menüjét, és kattints a „Karbantartás” pontra." + - "Kattints a „Karbantartás ütemezése” gombra, és töltsd ki a „Cím” mezőt, például: router csere." + - "Az „Érintett monitorok” mezőben válaszd ki, mit kapcsolsz ki." + - "A „Stratégia” mezőben válaszd az „Egyetlen karbantartási ablak” lehetőséget, add meg a kezdést és a véget, majd kattints a „Mentés” gombra." + - title: "Kevesebb téves riasztás" + intro: "Egy új monitor már az első sikertelen próbánál riaszt, ezt lazíthatod." + steps: + - "Nyisd meg a monitort a bal oldali listában, és kattints a „Szerkesztés” gombra." + - "Az „Újrapróbálkozás” mezőbe írj 2-t vagy 3-at." + - "Kattints a „Mentés” gombra. A monitor ezután „Függőben” állapotba kerül, és csak akkor riaszt, ha az újrapróbálkozások is sikertelenek." + - title: "Monitorok csoportba rendezése" + intro: "Sok monitornál a csoport és a címke segít eligazodni." + steps: + - "Kattints az „Új monitor hozzáadása” gombra, és a „Monitor típusa” mezőben válaszd a „Csoport” lehetőséget, például: Otthon." + - "A többi monitornál a „Szerkesztés” oldalon a „Monitor csoport” mezőben válaszd ki ezt a csoportot." + - "A „Címkék” résznél színes címkét is adhatsz egy monitornak, például: család." + - "Ha a csoport egy tagja leáll, maga a csoport is leállást mutat." + - title: "A fiókod védelme" + intro: "A kétfaktoros hitelesítéssel a jelszó mellett a telefonod is kell a belépéshez." + steps: + - "A profilod menüjében kattints a „Beállítások” pontra, majd a „Biztonság” lapra." + - "Kattints a „2FA beállítások” gombra, írd be a „Jelenlegi jelszó” mezőbe a jelszavad, és kattints a „2FA engedélyezése” gombra." + - "Olvasd be a QR-kódot a telefonod hitelesítő appjával, írd be a hatjegyű kódot, és kattints a „Token ellenőrzése” gombra." + - "Ha a kód jó, kattints a „Mentés” gombra." + faq: + - q: "Szól az Uptime Kuma, ha maga a doboz áll le?" + a: "Nem tud: az Uptime Kuma a dobozon fut, ezért ha a doboz vagy az otthoni internet leáll, vele együtt áll le. Más eszközöket és weboldalakat figyel." + - q: "Hogyan állítok le egy monitort egy időre?" + a: "Nyisd meg a monitort, kattints a „Szünet” gombra, és erősítsd meg. Ha újra figyelnéd, kattints a „Folytatás” gombra." + - q: "Kikapcsolhatom a bejelentkezést?" + a: "Ne tedd. A „Biztonság” lapon a „Hitelesítés tiltása” után bárki, aki ismeri a status.DOMAIN címet, belép és mindent átírhat." + - q: "Meddig őrzi az előzményeket?" + a: "Alapból 365 napig. A „Beállítások” „Vizsgálatok előzményei” lapján ezt rövidebbre is veheted, ha kevesebb helyet használnál." + - q: "Miért angol egy-egy felirat?" + a: "Az Uptime Kuma a böngésződ nyelvét követi, és ahol nincs magyar fordítás, angolul ír. A nyelvet a „Beállítások” „Megjelenés” lapján a „Nyelv” mezőben válthatod." + + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: http + port: 3001 + +# --- English copy (localisation slice 5, R-560) -------------------------------------------- +# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing +# field shows the Hungarian one; a controller older than 0.257.0 ignores the block entirely. +i18n: + en: + description: 'Watch your services and websites' + app_info: + tagline: 'Service monitoring - it tells you when something stops working' + use_cases: + - 'Watch whether your websites and services answer' + - 'HTTP, TCP, DNS, ping and other checks' + - 'Alerts by e-mail, Telegram, Discord and more' + - 'A public status page for the people who use them' + - 'Clear graphs of how much of the time things were up' + first_steps: + - 'Open status.DOMAIN in your browser' + - 'Create the admin account the first time you open it' + - 'Add your first monitor (your own website, for example)' + - 'Set up alerts (e-mail, Telegram and so on)' + - 'Optional: build a public status page' + guide: + sections: + - title: "Announce maintenance" + intro: "When you switch something off on purpose, you get no alerts during the maintenance." + steps: + - "In the top right corner, open your profile menu and select „Maintenance”." + - "Select „Schedule Maintenance” and fill in its „Title”, for example: new router." + - "In „Affected Monitors”, choose what you are switching off." + - "In „Strategy”, choose „Single Maintenance Window”, set the start and the end, then select „Save”." + - title: "Fewer false alerts" + intro: "A new monitor alerts at the first failed check, and you can relax that." + steps: + - "Open the monitor in the list on the left and select „Edit”." + - "In „Retries”, type 2 or 3." + - "Select „Save”. The monitor then goes to „Pending” first and alerts only if the retries fail too." + - title: "Sort monitors into groups" + intro: "With many monitors, groups and tags help you find your way." + steps: + - "Select „Add New Monitor” and in „Monitor Type” choose „Group”, for example: Home." + - "For the other monitors, on the „Edit” page choose this group in „Monitor Group”." + - "In the „Tags” part you can also give a monitor a coloured tag, for example: family." + - "If one member of the group goes down, the group itself shows as down." + - title: "Protect your account" + intro: "With two factor authentication you need your phone as well as your password to sign in." + steps: + - "In your profile menu select „Settings”, then the „Security” page." + - "Select „2FA Settings”, type your password into „Current Password” and select „Enable 2FA”." + - "Scan the QR code with the authenticator app on your phone, type the six-digit code and select „Verify Token”." + - "If the code is right, select „Save”." + faq: + - q: "Does Uptime Kuma tell me when the box itself goes down?" + a: "It cannot: Uptime Kuma runs on the box, so when the box or the home internet goes down, it goes down too. It watches other devices and websites." + - q: "How do I stop a monitor for a while?" + a: "Open the monitor, select „Pause” and confirm. To watch it again, select „Resume”." + - q: "Can I switch off the sign-in?" + a: "Do not. After „Disable Auth” on the „Security” page, anyone who knows the status.DOMAIN address gets in and can change everything." + - q: "How long does it keep the history?" + a: "365 days by default. On the „Monitor History” page of „Settings” you can make it shorter to use less space." + - q: "Why is some text in English?" + a: "Uptime Kuma follows your browser's language and shows English where a translation is missing. You can change it in „Language” on the „Appearance” page of „Settings”." + deploy_fields: + - env_var: DOMAIN + label: 'Domain' + description: 'The server domain name' + - env_var: SUBDOMAIN + label: 'Subdomain' + description: 'The subdomain this app answers on' diff --git a/templates/uptime-kuma/steps/023d7514039fca24.yml b/templates/uptime-kuma/steps/023d7514039fca24.yml new file mode 100644 index 0000000..b076b51 --- /dev/null +++ b/templates/uptime-kuma/steps/023d7514039fca24.yml @@ -0,0 +1,57 @@ +# Uptime Kuma - Szolgáltatás és weboldal monitoring +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: None (file-based) +# RAM: ~50M (mem_limit: 384M) | Pi-compatible: Yes +# 256M -> 384M (R-994, 2026-10-17: the 2026-10-13 sizing run measured a peak of 227 MB = 89 % of the old 256M; the new limit keeps it at or under ~70 %). +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) + +services: + uptime-kuma: + image: louislam/uptime-kuma:2.5.5 + container_name: uptime-kuma + restart: unless-stopped + environment: + - TZ=Europe/Budapest + # R-613 (measured 2026-09-23): without this, 2.x parks at its SETUP-DATABASE wizard on first boot + # — the main server never starts, and the probe's any-answer check calls it healthy. With it the + # database choice is made (SQLite in /app/data) and the real server starts: /api/entry-page + # answers entryPage, /metrics 401. An install that already chose keeps its data/db-config.json. + - UPTIME_KUMA_DB_TYPE=sqlite + volumes: + - uptime_kuma_data:/app/data + networks: + - traefik-public + deploy: + resources: + limits: + memory: 384M + # uptime-kuma:2 ships its healthcheck as a compiled binary at /app/extra/healthcheck (WORKDIR /app); + # the old override pointed at a v1-era /app/extra/healthcheck.mjs that does NOT exist in v2, so the + # container stayed permanently "unhealthy" → Traefik withheld the route → the URL 404'd although the + # app was running (F5). Use the correct binary and the image's own timing (180s first-boot window). + healthcheck: + test: ["CMD", "extra/healthcheck"] + interval: 30s + timeout: 30s + retries: 5 + start_period: 180s + labels: + - "traefik.enable=true" + - "traefik.http.routers.uptime-kuma.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + # R-753: this app reads the LEFTMOST X-Forwarded-For entry, which a stranger writes once traefik keeps the + # tunnel's chain — so its chain is removed here (it then reads traefik's X-Real-Ip or peer; never forgeable). + - "traefik.http.middlewares.uptime-kuma-xff.headers.customrequestheaders.X-Forwarded-For=" + - "traefik.http.routers.uptime-kuma.middlewares=uptime-kuma-xff" + - "traefik.http.routers.uptime-kuma.entrypoints=websecure" + - "traefik.http.routers.uptime-kuma.tls=true" + - "traefik.http.routers.uptime-kuma.tls.certresolver=letsencrypt" + - "traefik.http.services.uptime-kuma.loadbalancer.server.port=3001" + +volumes: + uptime_kuma_data: + +networks: + traefik-public: + external: true