diff --git a/CHANGELOG.md b/CHANGELOG.md index 4670fee..71a3508 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## 2026-10-28 (day, attended) — HTTP2Shell lane batch 2: Karakeep and Tandoor security-fix steps; the drill mover handles a shared image (felhom.eu R-1332) + +Pushed on the operator's yes at the batch-2 STOP. Same method as batch 1 (runtime read from the image; box walk +`--security` on 9202, soak 600 s, the seeded data read back; no bench fixture exists for these apps). +- **karakeep 0.33.2 → 0.34.1** (Node.js 24.18.1 → 24.22.1): `proven`, Update 93 s, peak 29.6 % anon. +- **tandoor 2.6.15 → 2.7.2** (Node.js 24.18.1 → 24.22.1): `proven`, Update 116 s, peak 62.9 % anon. +- **`scripts/box_walk.py`: the drill mover (`move_images`) moves two services that share one image.** Dawarich's app + and its sidekiq worker both run `freikin/dawarich`; the first replace moved both lines and the second then stopped the + walk („FROM ref not found"). Now each FROM moves once; one FROM asked to go to two TOs is refused. New + `scripts/test_box_walk_drill_move.py` (5 checks; red on the old logic: the shared-image and two-targets checks fail). + ## 2026-10-28 (day, attended) — HTTP2Shell lane batch 1: Ghost, MeTube, Zipline security-fix steps; the Papra fixture sends an Origin (felhom.eu R-1332) Pushed on the operator's yes at the batch-1 STOP. Each runtime was READ FROM THE IMAGE (felhom.eu diff --git a/REPORT.md b/REPORT.md index 48167e7..54abe1e 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,16 +1,14 @@ -# REPORT — 2026-10-28: HTTP2Shell lane batch 1 — Ghost, MeTube, Zipline security-fix steps (CVE-2026-111497) +# REPORT — 2026-10-28: HTTP2Shell lane batch 2 — Karakeep and Tandoor security-fix steps (CVE-2026-111497) -**What changed.** Three security-fix steps in the same main version: ghost 6.73.0-alpine (Node.js 22.23.4), metube -2026.10.27 (Python Brotli 1.2.1), zipline 4.8.2 (Node.js 24.22.1). Each fixed runtime was read from the image. The Papra -box fixture sends an `Origin` header (Papra refuses a POST without one). Pushed on the operator's yes. +**What changed.** Two security-fix steps in the same main version: karakeep 0.34.1 and tandoor 2.7.2 (both Node.js +24.22.1, read from the image). The box walk's drill mover now moves two services that share one image (Dawarich). +Pushed on the operator's yes. (Batch 1 — ghost, metube, zipline — is `abf3db3`.) -**Proof.** Box walk `--security` on 9202 for each: `proven` — the guarded Update, healthy, TO on all four observables, -no undo, no hold, a clean 600 s soak, the seeded account read back (felhom.eu -`documentation/audits/runtime-fixes-2026-10-28/walks//`). No bench fixture exists for these apps. +**Proof.** Box walk `--security` on 9202: both `proven` — the guarded Update, healthy, TO on all four observables, no +undo, no hold, a clean 600 s soak, the seeded data read back (felhom.eu +`documentation/audits/runtime-fixes-2026-10-28/walks//`). No bench fixture exists for these apps. The mover fix: +`scripts/test_box_walk_drill_move.py` red on the old logic, green now. -**Not in it.** Adventurelog (read `unhealthy` right after its Update; re-walked) and Papra (fixture could not seed; -fixed here, re-walked). - -**Gates.** `catalog_gates.py --fast ghost metube zipline`: all OK. +**Gates.** `catalog_gates.py --fast karakeep tandoor`: all OK. Findings go to felhom.eu `OPEN-ITEMS.md` (R-391). diff --git a/scripts/box_walk.py b/scripts/box_walk.py index 0277bb0..1404f75 100644 --- a/scripts/box_walk.py +++ b/scripts/box_walk.py @@ -397,6 +397,22 @@ def drill_bump(app, frm, to, service_hint=None): return _drill_bump(app, frm, to, service_hint) +def move_images(s, froms, tos): + """Move each `image: FROM` line of a compose text to its TO. Returns (text, None), or (the text unchanged, the FROM + that cannot move). Two services that share one image (dawarich + dawarich-sidekiq) list the same pair twice and move + together; one FROM asked to go to two different TOs is refused. Pinned by test_box_walk_drill_move.py.""" + pairs = {} + for f1, t1 in zip(froms, tos): + if pairs.setdefault(f1, t1) != t1: + return s, f1 + out = s + for f1, t1 in pairs.items(): + if f"image: {f1}" not in out: + return s, f1 + out = out.replace(f"image: {f1}", f"image: {t1}") + return out, None + + def _drill_bump(app, frm, to, service_hint=None): """Commit the edge to the DRILL repo. catalog_since set by hand (the drill repo has no gates). @@ -413,11 +429,10 @@ def _drill_bump(app, frm, to, service_hint=None): if len(froms) != len(tos): say(f" [5] from/to lists differ in length: {froms} vs {tos}") return None - for f1, t1 in zip(froms, tos): - if f"image: {f1}" not in s: - say(f" [5] FROM ref not found in compose: {f1}") - return None - s = s.replace(f"image: {f1}", f"image: {t1}") + s, missing = move_images(s, froms, tos) + if missing: + say(f" [5] FROM ref not found in compose: {missing}") + return None open(comp, "w").write(s) f = open(fy).read() today = datetime.now().strftime("%Y-%m-%d") diff --git a/scripts/test_box_walk_drill_move.py b/scripts/test_box_walk_drill_move.py new file mode 100644 index 0000000..1f23223 --- /dev/null +++ b/scripts/test_box_walk_drill_move.py @@ -0,0 +1,53 @@ +#!/usr/bin/env python3 +"""The drill mover moves every service that carries the app's own image, also when two services share one image +(dawarich + dawarich-sidekiq on freikin/dawarich — the 2026-10-28 walk stopped with „FROM ref not found"). +Run: python3 scripts/test_box_walk_drill_move.py""" +import os +import sys +import unittest + +sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) +import box_walk as w # noqa: E402 + +TWO = """services: + dawarich: + image: freikin/dawarich:1.15.3 + dawarich-sidekiq: + image: freikin/dawarich:1.15.3 + dawarich-db: + image: postgis/postgis:17-3.5-alpine +""" + + +class DrillMove(unittest.TestCase): + def test_shared_image_moves_both_services(self): + out, missing = w.move_images(TWO, ["freikin/dawarich:1.15.3", "freikin/dawarich:1.15.3"], + ["freikin/dawarich:1.19.0", "freikin/dawarich:1.19.0"]) + self.assertIsNone(missing) + self.assertEqual(out.count("image: freikin/dawarich:1.19.0"), 2) + self.assertNotIn("1.15.3", out) + self.assertIn("image: postgis/postgis:17-3.5-alpine", out) # the engine sidecar stays + + def test_two_images_move_each(self): + s = "a:\n image: x/back:v1\nb:\n image: x/front:v1\n" + out, missing = w.move_images(s, ["x/back:v1", "x/front:v1"], ["x/back:v2", "x/front:v2"]) + self.assertIsNone(missing) + self.assertEqual(out, "a:\n image: x/back:v2\nb:\n image: x/front:v2\n") + + def test_missing_from_is_refused(self): + out, missing = w.move_images(TWO, ["freikin/dawarich:1.14.0"], ["freikin/dawarich:1.19.0"]) + self.assertEqual(missing, "freikin/dawarich:1.14.0") + self.assertEqual(out, TWO) + + def test_one_image_two_targets_is_refused(self): + out, missing = w.move_images(TWO, ["freikin/dawarich:1.15.3", "freikin/dawarich:1.15.3"], + ["freikin/dawarich:1.19.0", "freikin/dawarich:1.18.0"]) + self.assertEqual(missing, "freikin/dawarich:1.15.3") + self.assertEqual(out, TWO) + + def test_mover_uses_move_images(self): + self.assertIn("move_images(s, froms, tos)", open(w.__file__).read(), "_drill_bump no longer calls move_images") + + +if __name__ == "__main__": + unittest.main() diff --git a/templates/karakeep/.felhom.yml b/templates/karakeep/.felhom.yml index f70dca1..58e0f9b 100644 --- a/templates/karakeep/.felhom.yml +++ b/templates/karakeep/.felhom.yml @@ -15,7 +15,7 @@ subdomain: "bookmarks" slug: "karakeep" # 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-10-01" +catalog_since: "2026-10-28" # --- Resource hints (displayed on deploy screen) --- resources: @@ -214,6 +214,7 @@ i18n: # gated by scripts/check-test-record.py. An image: move without a proven entry here is refused. update_ladder: - {"from": {"karakeep": "ghcr.io/karakeep-app/karakeep:0.33.1", "karakeep-chrome": "ghcr.io/karakeep-app/karakeep-chrome:151.0.7922.47-r1", "karakeep-meilisearch": "getmeili/meilisearch:v1.41.0"}, "to": {"karakeep": "ghcr.io/karakeep-app/karakeep:0.33.2", "karakeep-chrome": "ghcr.io/karakeep-app/karakeep-chrome:151.0.7922.47-r1", "karakeep-meilisearch": "getmeili/meilisearch:v1.41.0"}, "digest": {"karakeep": "sha256:b069e4307dec06ea06d16989c6861c30a1ff208568be44ed5fb5d422cd3e950c", "karakeep-chrome": "sha256:5b19bbb160e9ff60681a3abd97e1c4ec9f64212301410de658c3900ab7ef31e7", "karakeep-meilisearch": "sha256:860fa4baed04ae1c235de870edab0c8006227546dea1bbb6411fbfc5e27cf1db"}, "verdict": "proven", "tested_at": "2026-10-01T15:36:10Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/new-apps-2026-10-01/bench/karakeep/evidence/MV-karakeep/verdict.json", "box_evidence": "felhom.eu/documentation/audits/new-apps-2026-10-01/box/karakeep/step.txt", "memory_peak_pct": 51.4, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 55.4} + - {"from": {"karakeep": "ghcr.io/karakeep-app/karakeep:0.33.2", "karakeep-chrome": "ghcr.io/karakeep-app/karakeep-chrome:151.0.7922.47-r1", "karakeep-meilisearch": "getmeili/meilisearch:v1.41.0"}, "to": {"karakeep": "ghcr.io/karakeep-app/karakeep:0.34.1", "karakeep-chrome": "ghcr.io/karakeep-app/karakeep-chrome:151.0.7922.47-r1", "karakeep-meilisearch": "getmeili/meilisearch:v1.41.0"}, "digest": {"karakeep": "sha256:69ae5315c618b7c14c1af3e34c6e211acdb231793af424ecd1cab0b70691d987", "karakeep-chrome": "sha256:5b19bbb160e9ff60681a3abd97e1c4ec9f64212301410de658c3900ab7ef31e7", "karakeep-meilisearch": "sha256:860fa4baed04ae1c235de870edab0c8006227546dea1bbb6411fbfc5e27cf1db"}, "verdict": "security_fix", "tested_at": "2026-10-28T08:26:56Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/runtime-fixes-2026-10-28/walks/karakeep", "memory_peak_pct": 29.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nvd.nist.gov/vuln/detail/CVE-2026-111497", "fixed_in": "0.34.1"}, "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/karakeep/docker-compose.yml b/templates/karakeep/docker-compose.yml index 219d57e..271c20e 100644 --- a/templates/karakeep/docker-compose.yml +++ b/templates/karakeep/docker-compose.yml @@ -18,7 +18,7 @@ services: karakeep: - image: ghcr.io/karakeep-app/karakeep:0.33.2 + image: ghcr.io/karakeep-app/karakeep:0.34.1 container_name: karakeep restart: unless-stopped environment: diff --git a/templates/karakeep/steps/95a548d7b50319e0.felhom.yml b/templates/karakeep/steps/95a548d7b50319e0.felhom.yml new file mode 100644 index 0000000..1ae0279 --- /dev/null +++ b/templates/karakeep/steps/95a548d7b50319e0.felhom.yml @@ -0,0 +1,210 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= +# Karakeep (formerly Hoarder) — ghcr.io/karakeep-app/karakeep. Onboarding record: onboarding/karakeep.md. +# First admin: CLASS 4 — the first account that signs up becomes the admin. So: the setup gate (decision 46) keeps a +# fresh install closed to everyone but the household until it says „Kész, beállítottam"; then the box closes sign-up +# twice (decision 47): the app's own switch (after_setup → DISABLE_SIGNUPS, which would refuse the FIRST account too, so +# never at install) and a block of the sign-up routes. + +# --- Display info (shown on dashboard) --- +display_name: "Karakeep" +description: "Könyvjelzők, cikkek, jegyzetek és képek egy helyen, kereshetően" +category: "productivity" +subdomain: "bookmarks" +slug: "karakeep" +# 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-10-01" + +# --- Resource hints (displayed on deploy screen) --- +resources: + mem_request: "700M" + mem_limit: "2816M" # karakeep 1536M + karakeep-chrome 768M + karakeep-meilisearch 512M = 2816M + pi_compatible: false + needs_hdd: false + +# --- Deploy wizard 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: "bookmarks" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: NEXTAUTH_SECRET + label: "Munkamenet-kulcs" + type: secret + generate: "hex:32" + locked_after_deploy: true + + - env_var: MEILI_MASTER_KEY + label: "Keresőindex-kulcs" + type: secret + generate: "hex:32" + locked_after_deploy: true + + - env_var: OPENAI_API_KEY + label: "OpenAI API-kulcs (nem kötelező)" + type: secret_input + required: false + description: "Üresen hagyva az automatikus AI-címkézés ki van kapcsolva, és semmi nem megy ki a szerveredről. Ha megadod, minden új könyvjelző szövege az OpenAI-hoz kerül címkézésre." + +setup_gate: true +signup_block: "PathRegexp(`(?i)^/+(signup|api/trpc/[^?]*users\\.create)`)" +after_setup: + env: + SIGNUP_CLOSED: "true" + +# --- App-email (password reset) through the box's mail relay; plaintext :2526 (see the compose comment) --- +smtp_mapping: + tls_mode: plaintext + host_var: SMTP_HOST + port_var: SMTP_PORT + from_var: SMTP_FROM + from_local: karakeep + +# --- Customer-facing info --- +app_info: + tagline: "Könyvjelzők, cikkek és jegyzetek mentése - kereshető saját archívum" + add_people: "A családtagodat te hozod létre: Beállítások, Admin, Felhasználók, Új felhasználó." + docs_url: "https://docs.karakeep.app/" + use_cases: + - 'Weboldalak mentése: a Karakeep letölti és elteszi a tartalmukat, akkor is, ha az oldal később eltűnik' + - 'Jegyzetek, képek és PDF-ek egy helyen, teljes szöveges kereséssel' + - 'Böngészőbővítmény és telefonos alkalmazás a gyors mentéshez' + - 'AI-címkézés csak akkor, ha te megadsz hozzá egy OpenAI-kulcsot - alapból ki van kapcsolva' + first_steps: + - 'Nyisd meg a bookmarks.DOMAIN címet, és hozd létre a fiókodat (az első fiók lesz az admin)' + - 'Kattints a „Kész, beállítottam" gombra az alkalmazás oldalán - ezután más már nem regisztrálhat' + - 'Telepítsd a böngészőbővítményt vagy a telefonos alkalmazást, és add meg: https://bookmarks.DOMAIN és egy API-kulcsot (Beállítások, API-kulcsok)' + - 'Mentsd el az első könyvjelződet' + - 'Jó tudni: a Karakeep hivatalos telefonos alkalmazása összeomláskor hibajelentést küld a készítőinek (a Sentry nevű szolgáltatáson keresztül)' + guide: + checked_version: "0.33.2" + sections: + - title: "Fiók a családtagnak" + intro: "Minden családtagnak saját fiókja és saját könyvjelzői lesznek." + steps: + - "Kattints jobb felül a profilképedre, és válaszd az „Admin Settings” (admin beállítások) pontot." + - "Nyisd meg a „Users List” (felhasználók) oldalt, és kattints a „Create User” (új felhasználó) gombra." + - "Töltsd ki a „Name”, „Email”, „Password” és „Confirm Password” mezőt (név, e-mail, jelszó kétszer)." + - "Kattints a „Create” (létrehozás) gombra, és add át a családtagnak az e-mail címet és a jelszót." + - title: "Listák" + intro: "A listákba témánként gyűjtheted a könyvjelzőket, például receptek vagy nyaralás." + steps: + - "A bal oldali menüben a listák mellett kattints a + jelre." + - "Írd be a lista nevét, és kattints a „Create” gombra." + - "Egy könyvjelző menüjében válaszd a „Manage Lists” (listák kezelése) pontot, és válaszd ki a listát." + - title: "Közös lista a családdal" + intro: "Egy listát megoszthatsz egy családtaggal, és mindketten látjátok, ami rajta van." + steps: + - "A lista menüjében válaszd a „Manage Collaborators” (közreműködők kezelése) pontot." + - "Az „Add Collaborator” (közreműködő hozzáadása) résznél írd be a családtag e-mail címét." + - "Válaszd ki, mit tehet: „Viewer” (csak nézi) vagy „Editor” (hozzá is ad), és kattints a hozzáadás gombra." + - "A családtag az „All Lists” (összes lista) oldalon, a „Pending Invitations” (függő meghívások) résznél fogadja el az „Accept” gombbal." + - title: "Hírforrás követése" + intro: "Egy kedvenc oldal új cikkei maguktól bekerülnek a Karakeepbe." + steps: + - "A profilképed alatt nyisd meg a „User Settings” (felhasználói beállítások) oldalt." + - "Válaszd az „RSS Subscriptions” (RSS-feliratkozások) pontot, és kattints az „Add a Subscription” gombra." + - "Add meg a forrás nevét és RSS-címét, majd mentsd el." + faq: + - q: "Átállíthatom magyarra?" + a: "Igen: a „User Settings” oldalon az „Interface Language” (felület nyelve) mezőben. A választást a böngésződ jegyzi meg." + - q: "Miért nem kapnak a könyvjelzőim automatikus címkét?" + a: "Az AI-címkézéshez OpenAI-kulcs kell, amelyet telepítéskor adhattál meg. Kulcs nélkül ki van kapcsolva, és a könyvjelzőid szövege nem megy az OpenAI-hoz. Címkét kézzel is adhatsz a könyvjelzőnek." + - q: "Mi a különbség a „Favorite” és az „Archive” között?" + a: "A kedvencnek jelölt könyvjelző a „Favourites” listában is megjelenik. Az archivált eltűnik a kezdőoldalról, de az „Archive” oldalon megmarad." + - q: "Mi az az okos lista?" + a: "A „Smart List” (okos lista) egy keresés alapján magától gyűjti a könyvjelzőket. Új listánál a „List Type” (lista típusa) mezőben választhatod." + - q: "Hol vannak a mentett oldalak?" + a: "A dobozon, a Karakeep saját tárhelyén. Hogy mi kerül mentésbe, azt a vezérlőpulton az alkalmazás „Adatok és mentés” fülén látod." + +# --- Controller health probe (dials what the compose healthcheck dials) --- +healthcheck: + checks: + - type: api + port: 3000 + path: "/api/health" + expect: + status: 200 + +i18n: + en: + description: 'Bookmarks, articles, notes and images in one place, searchable' + app_info: + tagline: 'Save bookmarks, articles and notes - your own searchable archive' + add_people: "You create your family member's account: Settings, Admin, Users, New user." + use_cases: + - 'Save web pages: Karakeep downloads and keeps their content, even if the page disappears later' + - 'Notes, images and PDFs in one place, with full-text search' + - 'A browser extension and a phone app for quick saving' + - 'AI tagging only if you give it an OpenAI key - off by default' + first_steps: + - 'Open bookmarks.DOMAIN and create your account (the first account becomes the admin)' + - 'Press "Done, I set it up" on the app page - after that nobody else can sign up' + - 'Install the browser extension or the phone app and enter: https://bookmarks.DOMAIN and an API key (Settings, API keys)' + - 'Save your first bookmark' + - 'Good to know: the official Karakeep phone app sends crash reports to its makers (through a service called Sentry)' + guide: + sections: + - title: "An account for a family member" + intro: "Every family member gets an account and bookmarks of their own." + steps: + - "Select your profile picture at the top right, and choose „Admin Settings”." + - "Open the „Users List” page, and select the „Create User” button." + - "Fill in „Name”, „Email”, „Password” and „Confirm Password”." + - "Select „Create”, and give the family member the e-mail address and the password." + - title: "Lists" + intro: "Lists gather bookmarks by topic, for example recipes or a holiday." + steps: + - "In the menu on the left, select the + next to the lists." + - "Type the list's name, and select „Create”." + - "In a bookmark's menu, choose „Manage Lists”, and pick the list." + - title: "A list shared with the family" + intro: "You can share a list with a family member, and you both see what is on it." + steps: + - "In the list's menu, choose „Manage Collaborators”." + - "Under „Add Collaborator”, type the family member's e-mail address." + - "Choose what they may do: „Viewer” (only looks) or „Editor” (adds too), and select the add button." + - "The family member accepts it on the „All Lists” page, under „Pending Invitations”, with „Accept”." + - title: "Follow a news source" + intro: "New articles from a favourite site come into Karakeep by themselves." + steps: + - "Under your profile picture, open the „User Settings” page." + - "Choose „RSS Subscriptions”, and select „Add a Subscription”." + - "Enter the source's name and its RSS address, then save it." + faq: + - q: "Can I switch it to Hungarian?" + a: "Yes: on the „User Settings” page, in „Interface Language”. Your browser remembers the choice." + - q: "Why do my bookmarks get no automatic tags?" + a: "AI tagging needs an OpenAI key, which you could give at install. Without a key it is off, and the text of your bookmarks does not go to OpenAI. You can also tag a bookmark by hand." + - q: "What is the difference between „Favorite” and „Archive”?" + a: "A bookmark marked as a favourite also shows in the „Favourites” list. An archived one leaves the home page, but stays on the „Archive” page." + - q: "What is a smart list?" + a: "A „Smart List” gathers bookmarks by itself, from a search. For a new list, choose it in „List Type”." + - q: "Where are the saved pages?" + a: "On the box, in Karakeep's own storage. What goes into the backup is shown on the dashboard, on the app'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: NEXTAUTH_SECRET + label: 'Session key' + - env_var: MEILI_MASTER_KEY + label: 'Search index key' + - env_var: OPENAI_API_KEY + label: 'OpenAI API key (optional)' + description: 'Left empty, automatic AI tagging is off and nothing leaves your server. If you enter one, the text of every new bookmark goes to OpenAI for tagging.' diff --git a/templates/karakeep/steps/95a548d7b50319e0.yml b/templates/karakeep/steps/95a548d7b50319e0.yml new file mode 100644 index 0000000..219d57e --- /dev/null +++ b/templates/karakeep/steps/95a548d7b50319e0.yml @@ -0,0 +1,127 @@ +# Karakeep - Könyvjelzők, cikkek és jegyzetek mentése (a korábbi Hoarder) +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: SQLite (in the data volume) + Meilisearch (search index) + a headless Chrome (the crawler) +# RAM: ~700M (mem_limit: 2816M total — web 1536M + chrome 768M + meilisearch 512M) | Pi-compatible: No (Chrome + Meilisearch) +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# NEXTAUTH_SECRET - Munkamenet-aláíró kulcs (generált) +# MEILI_MASTER_KEY - A keresőindex kulcsa (generált; csak a belső hálón használt) +# OPENAI_API_KEY - NEM KÖTELEZŐ. Üresen az AI-címkézés KI van kapcsolva (Karakeep: `isConfigured = !!OPENAI_API_KEY || +# !!OLLAMA_BASE_URL`). Ha a háztartás megadja, a könyvjelzők szövege az OpenAI-hoz kerül. +# SIGNUP_CLOSED - after_setup (decision 47): the box sets it when the household's first account exists. Karakeep's +# DISABLE_SIGNUPS also refuses the FIRST account, so the default here must stay OPEN. +# +# Mirrors upstream's docker/docker-compose.yml (web + karakeep-chrome + meilisearch v1.41.0, MEILI_NO_ANALYTICS), +# pinned, with the new-release check off (it would call api.github.com) and the crawler's own defaults kept: it fetches +# every bookmarked page — that IS the product — and an ad-block list at start (CRAWLER_ENABLE_ADBLOCKER). + +services: + karakeep: + image: ghcr.io/karakeep-app/karakeep:0.33.2 + container_name: karakeep + restart: unless-stopped + environment: + - TZ=Europe/Budapest + - DATA_DIR=/data + - NEXTAUTH_URL=https://${SUBDOMAIN}.${DOMAIN} + - NEXTAUTH_SECRET=${NEXTAUTH_SECRET} + - MEILI_ADDR=http://karakeep-meilisearch:7700 + - MEILI_MASTER_KEY=${MEILI_MASTER_KEY} + - BROWSER_WEB_URL=http://karakeep-chrome:9222 + - DISABLE_NEW_RELEASE_CHECK=true + - DISABLE_SIGNUPS=${SIGNUP_CLOSED:-false} + - OPENAI_API_KEY=${OPENAI_API_KEY:-} + # App-email (smtp_mapping, tls_mode plaintext → the shim's :2526, which advertises no STARTTLS: Karakeep's mailer + # has no switch to accept the shim's self-signed certificate). Empty SMTP_HOST = mail OFF; measured 2026-10-01 that a + # fresh install with these EMPTY boots and signs up (checklist 7.1). + - SMTP_HOST=${SMTP_HOST:-} + - SMTP_PORT=${SMTP_PORT:-587} + - SMTP_FROM=${SMTP_FROM:-} + volumes: + - karakeep_data:/data + networks: + - traefik-public + - karakeep-internal + depends_on: + karakeep-meilisearch: + condition: service_healthy + # 1536M (measured 2026-10-01): the web container also runs the crawler workers. Bench 10-minute watch: 79 % of 768M, + # 51 % of 1024M; on the box, real pages crawled (a Wikipedia article among them) took it to 822 MiB = 80.3 % of 1024M. + # So the household's ordinary act — saving a heavy page — needs room; the burst is re-measured at 1536M (record 5.2). + deploy: + resources: + limits: + memory: 1536M + healthcheck: + test: ["CMD-SHELL", "wget -q -O - http://127.0.0.1:3000/api/health || curl -fsS http://127.0.0.1:3000/api/health"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 60s + labels: + - "traefik.enable=true" + - "traefik.http.routers.karakeep.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.karakeep.entrypoints=websecure" + - "traefik.http.routers.karakeep.tls=true" + - "traefik.http.routers.karakeep.tls.certresolver=letsencrypt" + - "traefik.http.services.karakeep.loadbalancer.server.port=3000" + + karakeep-chrome: + image: ghcr.io/karakeep-app/karakeep-chrome:151.0.7922.47-r1 + container_name: karakeep-chrome + restart: unless-stopped + init: true + command: + - --disable-gpu + - --disable-dev-shm-usage + - --hide-scrollbars + - --disable-blink-features=AutomationControlled + - --window-size=1440,900 + networks: + - karakeep-internal + deploy: + resources: + limits: + memory: 768M + # The image has no wget/curl/node (inspected one tool per run, 2026-10-01) but has bash: ask Chrome's own DevTools + # endpoint (socat on 9222 → headless-shell on 9223) for its version over a raw HTTP/1.1 request (HTTP/1.0 got no + # answer — measured 2026-10-01 on the bench). + healthcheck: + test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/9222 && printf 'GET /json/version HTTP/1.1\\r\\nHost: 127.0.0.1\\r\\nConnection: close\\r\\n\\r\\n' >&3 && grep -q Browser <&3"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 20s + + karakeep-meilisearch: + image: getmeili/meilisearch:v1.41.0 + container_name: karakeep-meilisearch + restart: unless-stopped + environment: + - TZ=Europe/Budapest + - MEILI_NO_ANALYTICS=true + - MEILI_MASTER_KEY=${MEILI_MASTER_KEY} + volumes: + - karakeep_meili:/meili_data + networks: + - karakeep-internal + deploy: + resources: + limits: + memory: 512M + healthcheck: + test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:7700/health || wget -q -O - http://127.0.0.1:7700/health"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 20s + +volumes: + karakeep_data: + karakeep_meili: + +networks: + traefik-public: + external: true + karakeep-internal: diff --git a/templates/tandoor/.felhom.yml b/templates/tandoor/.felhom.yml index e83c447..cdf35b1 100644 --- a/templates/tandoor/.felhom.yml +++ b/templates/tandoor/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "recipes" slug: "tandoor" # 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-27" +catalog_since: "2026-10-28" # --- Resource hints (displayed on deploy screen) --- resources: @@ -196,6 +196,7 @@ i18n: update_ladder: - {"from": {"tandoor": "ghcr.io/tandoorrecipes/recipes:2.6.13", "tandoor-postgres": "postgres:16-alpine"}, "to": {"tandoor": "ghcr.io/tandoorrecipes/recipes:2.6.15", "tandoor-postgres": "postgres:16-alpine"}, "digest": {"tandoor": "sha256:2e759dd1478a2ed119ee474e28522079fb1cfa50b3fd25cba89f6b9a67abad72", "tandoor-postgres": "sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea"}, "verdict": "proven", "tested_at": "2026-09-22T08:52:42.724401+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/tandoor/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 c3807c7; 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": {"tandoor": "ghcr.io/tandoorrecipes/recipes:2.6.15", "tandoor-postgres": "postgres:16-alpine"}, "to": {"tandoor": "ghcr.io/tandoorrecipes/recipes:2.6.15", "tandoor-postgres": "postgres:17-alpine"}, "digest": {"tandoor": "sha256:2e759dd1478a2ed119ee474e28522079fb1cfa50b3fd25cba89f6b9a67abad72", "tandoor-postgres": "sha256:b0f9560a2de083e2cc7382e75f808c7381a32852a7ec49117deedb300e552b24"}, "verdict": "proven", "tested_at": "2026-09-27T10:07:25Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/version-travel-2026-09-26/B/apps/tandoor/bench/evidence/MV-tandoor/verdict.json", "box_evidence": "felhom.eu/documentation/audits/version-travel-2026-09-26/B/apps/tandoor/box/box-verdict-tandoor.json", "memory_peak_pct": 78.7, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 97.8, "engine_conversion": {"service": "tandoor-postgres", "engine": "postgres", "from": 16, "to": 17}} + - {"from": {"tandoor": "ghcr.io/tandoorrecipes/recipes:2.6.15", "tandoor-postgres": "postgres:17-alpine"}, "to": {"tandoor": "ghcr.io/tandoorrecipes/recipes:2.7.2", "tandoor-postgres": "postgres:17-alpine"}, "digest": {"tandoor": "sha256:1b6d43c3c0f5d2888aa564d9daf29883212b79ad496f59f3c684c099eb1a57b9", "tandoor-postgres": "sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b"}, "verdict": "security_fix", "tested_at": "2026-10-28T08:42:49Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/runtime-fixes-2026-10-28/walks/tandoor", "memory_peak_pct": 62.9, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nvd.nist.gov/vuln/detail/CVE-2026-111497", "fixed_in": "2.7.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/tandoor/docker-compose.yml b/templates/tandoor/docker-compose.yml index e7f4fe6..06b8dfc 100644 --- a/templates/tandoor/docker-compose.yml +++ b/templates/tandoor/docker-compose.yml @@ -11,7 +11,7 @@ services: tandoor: - image: ghcr.io/tandoorrecipes/recipes:2.6.15 + image: ghcr.io/tandoorrecipes/recipes:2.7.2 container_name: tandoor restart: unless-stopped depends_on: diff --git a/templates/tandoor/steps/21e25e2e747300da.felhom.yml b/templates/tandoor/steps/21e25e2e747300da.felhom.yml new file mode 100644 index 0000000..2e042d3 --- /dev/null +++ b/templates/tandoor/steps/21e25e2e747300da.felhom.yml @@ -0,0 +1,191 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Tandoor Recipes" +description: "Receptkezelő és étkezés tervező" +category: "home" +subdomain: "recipes" +slug: "tandoor" +# 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-27" + +# --- Resource hints (displayed on deploy screen) --- +resources: + mem_request: "900M" + mem_limit: "1536M" + 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: "recipes" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: SECRET_KEY + label: "Titkosítási kulcs" + type: secret + generate: "hex:32" + locked_after_deploy: true + + - env_var: DB_PASSWORD + label: "Adatbázis jelszó" + type: secret + generate: "password:24" + locked_after_deploy: true + +# --- The setup gate (controller >= 0.281.0, `09` §3 decisions 46-47) --- +# The first visitor would create the admin; a fresh install is closed to everyone but the household until the first setup is done. +setup_gate: true + +# --- App info (info page content) --- +app_info: + tagline: "Receptkezelő és étkezés tervező a családnak" + docs_url: "https://docs.tandoor.dev/" + + use_cases: + - 'Receptek gyűjtése és rendszerezése egy helyen' + - 'Receptek importálása weboldalakról egy kattintással' + - 'Heti étkezés tervezés és bevásárlólista generálás' + - 'Több felhasználó - a család együtt tervezhet' + - 'Receptek megosztása linkkel családtagokkal, barátokkal' + + first_steps: + - 'Nyisd meg a recipes.DOMAIN címet a böngészőben' + - 'Hozd létre az admin fiókot' + - 'Importáld az első receptet egy weboldalról (Bookmarklet)' + - 'Próbáld ki az étkezés tervezőt' + - 'Hívd meg a családtagokat' + guide: + checked_version: "2.6.15" + sections: + - title: "Bevásárlólista egy receptből" + intro: "Egy recept hozzávalóit néhány kattintással a bevásárlólistára teheted." + steps: + - "Nyisd meg a receptet, és kattints a jobb felső sarokban a három pontra." + - "Válaszd a „Hozzáadás a bevásárlólistához” pontot, és az „Adag” mezőben add meg, hány adagot főzöl." + - "Kattints a „Hozzáadás a bevásárlólistához” gombra." + - "Vásárláskor nyisd meg a menüben a „Bevásárlás” oldalt, és pipáld ki, amit már megvettél." + - title: "Adag átszámolása és nyomtatás" + intro: "A Tandoor a hozzávalók mennyiségét az adagszámhoz igazítja." + steps: + - "A recept oldalán kattints az adagszámra („Adag”)." + - "Írd be, hány adagot főzöl, és kattints a „Mentés” gombra. A hozzávalók mennyisége ehhez igazodik." + - "Nyomtatáshoz a három pont menüben válaszd a „Nyomtatás” pontot: az átszámolt adaggal nyomtat." + - title: "Recept megosztása" + intro: "Egy receptet linkkel olyannak is megmutathatsz, akinek nincs fiókja." + steps: + - "Nyisd meg a receptet, kattints a három pontra, és válaszd a „Megosztás” pontot." + - "A „Link” mező melletti gombbal másold ki a linket." + - "Küldd el a linket, például üzenetben. Aki megkapja, bejelentkezés nélkül látja ezt az egy receptet." + - title: "Recept keresése" + intro: "Ha már sok recepted van, kereséssel és szűrőkkel hamar megtalálod, amit akarsz." + steps: + - "Nyisd meg a menüben a „Keresés” oldalt." + - "Írd be a recept nevének egy részét." + - "Szűkítéshez kattints a „Szűrő hozzáadása” mezőbe, és válassz például kulcsszó szerinti szűrőt." + faq: + - q: "Miért angol néhány felirat?" + a: "A Tandoor a böngésződ nyelvét követi, és a magyar fordítása még nem teljes. Ahol nincs fordítás, ott angol felirat jelenik meg." + - q: "Látják a családtagok a receptjeimet?" + a: "Igen, a közös térben mindenki látja a recepteket. Ha egyet csak magadnak szánsz, szerkesztéskor jelöld be a „Privát recept” jelölőt." + - q: "Közös a bevásárlólista?" + a: "Akik ugyanabba a háztartásba (Household) tartoznak, azok közösen látják a menütervet és a bevásárlólistát. Egy tagot a tér beállításaiban, a tagok listáján sorolhatsz háztartásba." + - q: "Van telefonos app?" + a: "Külön app nincs, de a Tandoort a telefonod böngészőjéből a kezdőképernyőre teheted. Így appként indul, és a nemrég megnyitott recepteket net nélkül is mutatja." + - q: "Hol látom, hogy a receptjeim el vannak mentve?" + a: "A receptek és a képek a dobozon vannak. A mentésük állapotát a vezérlőpulton, az alkalmazás „Adatok és mentés” fülén látod." + + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: http + # 80, not 8080: the probe dials the container from INSIDE the compose + # network, so this is the port the process LISTENS on. tandoor's own compose healthcheck + # dials 127.0.0.1:80 (R-618). + port: 80 + path: "/accounts/login/" + +# --- 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' + use_cases: + - 'Keep all your recipes in one place' + - 'Import a recipe from a web page with one click' + - 'Plan the week''s meals and get a shopping list out of it' + - 'Several people - the household can plan together' + - 'Share a recipe by link with family and friends' + first_steps: + - 'Open recipes.DOMAIN in your browser' + - 'Create the admin account' + - 'Import your first recipe from a web page (Bookmarklet)' + - 'Try the meal planner' + - 'Invite the household' + guide: + sections: + - title: "A shopping list from a recipe" + intro: "You can put a recipe's ingredients on the shopping list in a few clicks." + steps: + - "Open the recipe and select the three dots in the top right corner." + - "Choose „Add to Shopping”, and in „Servings” enter how many servings you cook." + - "Select the „Add to Shopping” button." + - "When you shop, open the „Shopping” page in the menu and tick off what you have bought." + - title: "Scale the servings and print" + intro: "Tandoor adjusts the ingredient amounts to the number of servings." + steps: + - "On the recipe page, select the number of servings („Servings”)." + - "Enter how many servings you cook and select „Save”. The ingredient amounts follow." + - "To print, choose „Print” in the three-dot menu: it prints with the scaled servings." + - title: "Share a recipe" + intro: "With a link you can show a recipe even to someone who has no account." + steps: + - "Open the recipe, select the three dots and choose „Share”." + - "Copy the link with the button next to the „Link” field." + - "Send the link, for example in a message. Whoever gets it sees this one recipe without signing in." + - title: "Find a recipe" + intro: "Once you have many recipes, search and filters find the one you want quickly." + steps: + - "Open the „Search” page in the menu." + - "Type part of the recipe's name." + - "To narrow it down, select the „Add Filter” box and choose, for example, a filter by keyword." + faq: + - q: "Why are some labels in English?" + a: "Tandoor follows your browser's language, and its Hungarian translation is not complete yet. Where there is no translation, the English label shows." + - q: "Can my family see my recipes?" + a: "Yes, everyone in the shared space sees the recipes. If one is only for you, tick „Private Recipe” when you edit it." + - q: "Is the shopping list shared?" + a: "People in the same household (Household) see the meal plan and the shopping list together. You put a member into a household in the space settings, in the list of members." + - q: "Is there a phone app?" + a: "There is no separate app, but you can put Tandoor on your home screen from your phone's browser. It then starts like an app and shows recently opened recipes even without internet." + - q: "Where do I see that my recipes are saved?" + a: "The recipes and the pictures are on the box. The dashboard shows the state of their backup on the app'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: DB_PASSWORD + label: 'Database password' + - env_var: SECRET_KEY + label: 'Encryption key' diff --git a/templates/tandoor/steps/21e25e2e747300da.yml b/templates/tandoor/steps/21e25e2e747300da.yml new file mode 100644 index 0000000..e7f4fe6 --- /dev/null +++ b/templates/tandoor/steps/21e25e2e747300da.yml @@ -0,0 +1,90 @@ +# Tandoor Recipes - Receptkezelő és étkezés tervező +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: postgres +# RAM: ~150M (mem_limit: 1536M total — tandoor 1280M + postgres 256M; the 512M here was stale) +# tandoor 1024M -> 1280M (R-994, 2026-10-17: the 2026-10-13 sizing run measured a peak of 827 MB = 81 % of the old 1024M; the new limit keeps it at or under ~70 %). | Pi-compatible: Yes +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# SECRET_KEY - Titkosítási kulcs (auto-generated) +# DB_PASSWORD - Adatbázis jelszó (auto-generated) + +services: + tandoor: + image: ghcr.io/tandoorrecipes/recipes:2.6.15 + container_name: tandoor + restart: unless-stopped + depends_on: + tandoor-postgres: + condition: service_healthy + environment: + - SECRET_KEY=${SECRET_KEY} + # A tandoor 2.x Django-ja ALLOWED_HOSTS nélkül MINDEN kérésre 400-at ad + # (a healthcheck-re is), a konténer így soha nem lesz healthy. + - ALLOWED_HOSTS=${SUBDOMAIN}.${DOMAIN},127.0.0.1,localhost + - DB_ENGINE=django.db.backends.postgresql + - POSTGRES_HOST=tandoor-postgres + - POSTGRES_PORT=5432 + - POSTGRES_USER=tandoor + - POSTGRES_PASSWORD=${DB_PASSWORD} + - POSTGRES_DB=tandoor + - TZ=Europe/Budapest + volumes: + - tandoor_static:/opt/recipes/staticfiles + - tandoor_media:/opt/recipes/mediafiles + networks: + - traefik-public + - tandoor-internal + deploy: + resources: + limits: + memory: 1280M + healthcheck: + test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:80/accounts/login/"] + interval: 30s + timeout: 5s + retries: 3 + # A tandoor (django-vite + migrációk) lassan bindol: 30s alatt még + # "Connection refused" jött, és a próbák elfogytak, mielőtt elindult. + start_period: 240s + labels: + - "traefik.enable=true" + - "traefik.http.routers.tandoor.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.tandoor.entrypoints=websecure" + - "traefik.http.routers.tandoor.tls=true" + - "traefik.http.routers.tandoor.tls.certresolver=letsencrypt" + - "traefik.http.services.tandoor.loadbalancer.server.port=80" + + tandoor-postgres: + image: postgres:17-alpine + container_name: tandoor-postgres + restart: unless-stopped + environment: + - POSTGRES_USER=tandoor + - POSTGRES_PASSWORD=${DB_PASSWORD} + - POSTGRES_DB=tandoor + - TZ=Europe/Budapest + volumes: + - tandoor_postgres_data:/var/lib/postgresql/data + networks: + - tandoor-internal + deploy: + resources: + limits: + memory: 256M + healthcheck: + test: ["CMD-SHELL", "pg_isready -U tandoor -d tandoor"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 20s + +volumes: + tandoor_media: + tandoor_postgres_data: + tandoor_static: + +networks: + traefik-public: + external: true + tandoor-internal: