From 7b0071e92bce10fe1cabccbdcf4a78ab64bd0a0c Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Tue, 27 Oct 2026 15:38:22 +0100 Subject: [PATCH] Security updates batch 2 (felhom.eu R-1306): security_fix steps n8n 2.44.7, privatebin 2.1.0, docmost 0.97.0, grafana 13.2.4 + bookstack 26.09.2 normal step On the operator's yes at the batch-2 STOP (2026-10-27). Each step proven on scratch 9202 by box_walk.py --security (bookstack: bench 9401 + box). Evidence: felhom.eu documentation/audits/security-app-updates-2026-10-27/. --- CHANGELOG.md | 17 ++ REPORT.md | 18 +- templates/bookstack/.felhom.yml | 3 +- templates/bookstack/docker-compose.yml | 2 +- .../steps/b0574d943276d5b3.felhom.yml | 218 ++++++++++++++++++ .../bookstack/steps/b0574d943276d5b3.yml | 94 ++++++++ templates/docmost/.felhom.yml | 3 +- templates/docmost/docker-compose.yml | 2 +- .../docmost/steps/01ae17194c827ab5.felhom.yml | 198 ++++++++++++++++ templates/docmost/steps/01ae17194c827ab5.yml | 115 +++++++++ templates/grafana/.felhom.yml | 3 +- templates/grafana/docker-compose.yml | 2 +- .../grafana/steps/63fab8627e9b70ed.felhom.yml | 184 +++++++++++++++ templates/grafana/steps/63fab8627e9b70ed.yml | 47 ++++ templates/n8n/.felhom.yml | 3 +- templates/n8n/docker-compose.yml | 2 +- .../n8n/steps/9083c23d189f5b92.felhom.yml | 187 +++++++++++++++ templates/n8n/steps/9083c23d189f5b92.yml | 50 ++++ templates/privatebin/.felhom.yml | 3 +- templates/privatebin/docker-compose.yml | 2 +- .../steps/92922b000a9b6091.felhom.yml | 170 ++++++++++++++ .../privatebin/steps/92922b000a9b6091.yml | 44 ++++ 22 files changed, 1347 insertions(+), 20 deletions(-) create mode 100644 templates/bookstack/steps/b0574d943276d5b3.felhom.yml create mode 100644 templates/bookstack/steps/b0574d943276d5b3.yml create mode 100644 templates/docmost/steps/01ae17194c827ab5.felhom.yml create mode 100644 templates/docmost/steps/01ae17194c827ab5.yml create mode 100644 templates/grafana/steps/63fab8627e9b70ed.felhom.yml create mode 100644 templates/grafana/steps/63fab8627e9b70ed.yml create mode 100644 templates/n8n/steps/9083c23d189f5b92.felhom.yml create mode 100644 templates/n8n/steps/9083c23d189f5b92.yml create mode 100644 templates/privatebin/steps/92922b000a9b6091.felhom.yml create mode 100644 templates/privatebin/steps/92922b000a9b6091.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 76352d7..858ad61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +## 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 +catalog, the guarded Update, a 600 s soak) said `proven`, and the seed read back after the update. + +| App | Step | Peak (anon, soak) | +|---|---|---| +| n8n | 2.42.1 → 2.44.7 | 32.3 % | +| privatebin | 2.0.6 → 2.1.0 | 25.8 % | +| docmost | 0.96.0 → 0.97.0 (Node.js October 2026, CVE-2026-111497) | 54.1 % | +| grafana | 13.2.3 → 13.2.4 (CVE-2026-15577) | 30.3 % | + +- **bookstack 26.09.1 → 26.09.2 — a NORMAL step** (bench 9401 + box 9202, both `proven`, seed read back): a security + release (two authorisation leaks between signed-in users) with no CVE/GHSA id. +- Not in this batch: homebox (its fixture's `/api/v1/locations` is gone in 0.26 — the walk was `inconclusive` at C1). +- Evidence: felhom.eu `documentation/audits/security-app-updates-2026-10-27/walks//`, `bench/bookstack/`. + ## 2026-10-27 (day, attended) — security updates batch 1: five security-fix steps + Wishlist's normal step (felhom.eu R-1306) The first live use of the security-fix lane (`09` §3 decision 255, D39 = B) — pushed on the operator's yes at the batch diff --git a/REPORT.md b/REPORT.md index f0dae4a..b725a36 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,14 +1,12 @@ -# REPORT — security updates batch 1: five security-fix steps + Wishlist (2026-10-27, attended) +# REPORT — security updates batch 2: four security-fix steps + Bookstack (2026-10-27, attended) -**Plain words first.** Five apps with public security notices get a tested update step that the boxes take tonight: -Rallly, RomM, code-server, Outline, Vikunja. Wishlist (a critical account takeover with no notice id) gets a normal -tested step. All six were pushed on the operator's yes at the batch STOP. The first live use of the security-fix lane. +**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. -- Each step was proven on scratch 9202 through the product's guarded Update, with a 10-minute soak and the seed read - back after (code-server has no seed route; its files stay on its volume). Wishlist was also proven on the bench. -- Two test fixtures were stale and are fixed (Rallly 4.15's code-only sign-in and space setup; Jellyfin 10.11's - wizard order and empty public user list). One gate read a step's settings copy as compose; fixed with a decoy. -- The walk's negative control first: a TO image that exits at once came back `failed`, and the box undid it. -- Gates: `catalog_gates.py --fast` green for the six apps; the privileges decoys green. +- 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`). +- Gates: `catalog_gates.py --fast` green for the five apps. Evidence: felhom.eu `documentation/audits/security-app-updates-2026-10-27/`. diff --git a/templates/bookstack/.felhom.yml b/templates/bookstack/.felhom.yml index 976e4fe..0b837c2 100644 --- a/templates/bookstack/.felhom.yml +++ b/templates/bookstack/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "wiki" slug: "bookstack" # 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: @@ -223,6 +223,7 @@ i18n: update_ladder: - {"from": {"bookstack": "lscr.io/linuxserver/bookstack:26.05.2", "bookstack-db": "mariadb:12.3"}, "to": {"bookstack": "lscr.io/linuxserver/bookstack:26.05.5", "bookstack-db": "mariadb:12.3"}, "digest": {"bookstack": "sha256:189c796273469115cf810e53f450e15b93184018e4728cd65fcaef8aa93584bc", "bookstack-db": "sha256:805c8e104bd563d5bfa24fadd3f31cd419ea859cb5277f32b5dbf2db714f9ed1"}, "verdict": "proven", "tested_at": "2026-09-21T18:25:39.453490+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/bookstack/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 ac4828f; 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": {"bookstack": "lscr.io/linuxserver/bookstack:26.05.5", "bookstack-db": "mariadb:12.3"}, "to": {"bookstack": "lscr.io/linuxserver/bookstack:26.09.1", "bookstack-db": "mariadb:12.3"}, "digest": {"bookstack": "sha256:99cd1f5707c1911afad213adec5c9739763b76f843d1477142231834ecdcb6f7", "bookstack-db": "sha256:805c8e104bd563d5bfa24fadd3f31cd419ea859cb5277f32b5dbf2db714f9ed1"}, "verdict": "proven", "tested_at": "2026-09-30T11:09:02Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/F/apps/bookstack/bench/evidence/MV-bookstack/verdict.json", "box_evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/box/bookstack/box-verdict-bookstack.json", "memory_peak_pct": 43.7, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 58.3} + - {"from": {"bookstack": "lscr.io/linuxserver/bookstack:26.09.1", "bookstack-db": "mariadb:12.3"}, "to": {"bookstack": "lscr.io/linuxserver/bookstack:26.09.2", "bookstack-db": "mariadb:12.3"}, "digest": {"bookstack": "sha256:2fdeeb1a2028ce7cb1274696237e32b9f849e16b6d77314d08c78356a6016fca", "bookstack-db": "sha256:d46e102fa8b9b72bfcdeb56f9dd538742092119dc8b11f31fe662605cd234cd9"}, "verdict": "proven", "tested_at": "2026-10-27T13:38:17Z", "harness_version": 5, "evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/bench/bookstack/evidence/MV-bookstack/", "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/bookstack/", "memory_peak_pct": 43.4, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 69.4} # --- 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/bookstack/docker-compose.yml b/templates/bookstack/docker-compose.yml index 67089fd..e3e78ae 100644 --- a/templates/bookstack/docker-compose.yml +++ b/templates/bookstack/docker-compose.yml @@ -10,7 +10,7 @@ services: bookstack: - image: lscr.io/linuxserver/bookstack:26.09.1 + image: lscr.io/linuxserver/bookstack:26.09.2 container_name: bookstack restart: unless-stopped depends_on: diff --git a/templates/bookstack/steps/b0574d943276d5b3.felhom.yml b/templates/bookstack/steps/b0574d943276d5b3.felhom.yml new file mode 100644 index 0000000..0809bf7 --- /dev/null +++ b/templates/bookstack/steps/b0574d943276d5b3.felhom.yml @@ -0,0 +1,218 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "BookStack" +description: "Egyszerű, könyv-szerű wiki és dokumentáció platform" +category: "productivity" +subdomain: "wiki" +slug: "bookstack" +# 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: "200M" + mem_limit: "768M" # the sum of the compose limits (512+256) — R-758; was "512M" + 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: "wiki" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: APP_KEY + label: "Alkalmazás kulcs" + type: secret + generate: "base64key:32" + locked_after_deploy: true + # R-127: Laravel's APP_KEY encrypts each user's two-factor secret (app/Access/Mfa/MfaValue.php encrypt()). + # Regenerating it locks out every member who turned two-factor on, so a restore RECOVERS it and refuses rather + # than make a new one. + data_key: true + + - env_var: DB_PASSWORD + label: "Adatbázis jelszó" + type: secret + generate: "password:24" + locked_after_deploy: true + + # `09` §3 decision 45: BookStack starts with admin@admin.com / password. 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ó (admin@admin.com)" + type: password + generate: "password:24" + description: "Az első bejelentkezéshez: admin@admin.com és ez a jelszó. Utána a profilodban módosítható." + locked_after_deploy: true + +# --- App info (info page content) --- +app_info: + tagline: "Egyszerű wiki platform - polcok, könyvek, fejezetek és oldalak" + default_creds: "admin@admin.com / password" + docs_url: "https://www.bookstackapp.com/docs/" + + use_cases: + - 'Családi tudásbázis - receptek, kézikönyvek, szabályok' + - 'Projekt dokumentáció strukturált formában' + - 'Könyv > Fejezet > Oldal hierarchia az áttekinthetőségért' + - 'Teljes szöveges keresés és címkék' + - 'WYSIWYG és Markdown szerkesztő' + + first_steps: + - 'Nyisd meg a wiki.DOMAIN címet a böngészőben' + - 'Jelentkezz be: admin@admin.com és a Beállítások oldalon látható első jelszó' + - 'Változtasd meg az admin email címét a sajátodra' + - 'Hozd létre az első polcot és könyvet' + - 'Kezdj el írni!' + guide: + checked_version: "26.09.1" + sections: + - title: "Családtag felvétele" + intro: "Mindenki a saját fiókjával lép be, így látszik, ki mit írt." + steps: + - "A felső sávban kattints a „Settings” (Beállítások), majd a „Users” (Felhasználók) pontra." + - "Kattints az „Add New User” (Új felhasználó) gombra, és add meg a „Name” (Név) és az „Email” mezőt." + - "A „User Roles” (Szerepkörök) résznél jelöld be az „Editor” (Szerkesztő) szerepet, vagy a „Viewer” (Olvasó) szerepet, ha csak olvasna." + - "Kapcsold ki a „Send user invite email” (meghívó e-mail) kapcsolót, és adj meg neki jelszót." + - "Kattints a „Save” (Mentés) gombra, és add át a családtagnak az e-mail címet és a jelszót." + - title: "Oldal írása képpel" + intro: "Egy receptet vagy egy használati útmutatót képpel együtt is leírhatsz." + steps: + - "Nyisd meg a könyvet, és kattints a „New Page” (Új oldal) pontra." + - "Írd be a címet és a szöveget." + - "A szerkesztő eszköztárán kattints az „Insert image” (Kép beszúrása) gombra, majd az „Upload Image” (Kép feltöltése) gombra." + - "Válaszd ki a képet, és kattints a „Select Image” (Kép kiválasztása) gombra." + - "Kattints a „Save Page” (Oldal mentése) gombra." + - title: "Címkék és keresés" + intro: "A címkékkel a különböző könyvekben lévő oldalakat is egyben megtalálod." + steps: + - "Szerkesztés közben a jobb oldali sávban nyisd meg a „Page Tags” (Oldal címkéi) részt." + - "A „Tag Name” (Címke neve) mezőbe írj egy szót, például: recept." + - "Kattints a „Save Page” gombra." + - "Később a felső kereső mezőbe írt szóval vagy egy címkére kattintva megtalálod az oldalt." + - title: "Oldal nyomtatása vagy mentése" + intro: "Egy oldalt vagy egy egész könyvet PDF fájlként is letölthetsz." + steps: + - "Nyisd meg az oldalt vagy a könyvet." + - "A jobb oldali sávban kattints az „Export” (Exportálás) pontra." + - "Válaszd a „PDF File” (PDF fájl) lehetőséget, és mentsd el vagy nyomtasd ki." + faq: + - q: "Átállíthatom magyarra?" + a: "Igen. Jobb felül a neved alatt nyisd meg a „My Account” (Fiókom) oldalt, a „Preferred Language” (Nyelv) mezőben válaszd a „Magyar” nyelvet, és mentsd. Ez az útmutató az angol feliratokat mutatja." + - q: "Mi a polc, a könyv, a fejezet és az oldal?" + a: "Az oldal a tényleges szöveg, a fejezet oldalakat fog össze, a könyv fejezeteket és oldalakat. A polc több könyvet tart együtt, például Konyha vagy Ház." + - q: "Megnézhetem egy oldal régebbi változatát?" + a: "Igen. Az oldal jobb oldali sávjában a „Revisions” (Változatok) pont mutatja, ki mikor mit módosított." + - q: "Egy családtag elfelejtette a jelszavát. Mit tegyek?" + a: "Rendszergazdaként a „Users” oldalon nyisd meg a családtagot, adj meg neki új jelszót, és kattints a „Save” gombra." + - q: "Hol vannak a feltöltött képek?" + a: "A dobozon, a BookStack saját tárhelyén. A doboz mentéseit a vezérlőpulton, az „Adatok és mentés” fülön látod." + + +# --- After a fresh install (controller >= 0.279.0, decision 45) --- +# BookStack's OWN artisan command updates the initial admin in place. Measured on 9202 2026-09-28: afterwards +# admin@admin.com / password no longer logs in, the generated password does. +after_install: + service: bookstack + env: [ADMIN_PASSWORD] + command: ["php", "/app/www/artisan", "bookstack:create-admin", "--email=admin@admin.com", "--name=Admin", "--password=${ADMIN_PASSWORD}", "--initial"] + success: "The default admin user has been updated" + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: http + port: 80 + +# --- 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 simple, book-shaped wiki and documentation platform' + app_info: + tagline: 'A simple wiki platform - shelves, books, chapters and pages' + default_creds: 'admin@admin.com / password' + use_cases: + - 'A family knowledge base - recipes, manuals, house rules' + - 'Project documentation with a structure you can follow' + - 'Book > Chapter > Page, so a large set stays readable' + - 'Full text search and tags' + - 'A visual editor and a Markdown editor' + first_steps: + - 'Open wiki.DOMAIN in your browser' + - 'Sign in: admin@admin.com and the first password shown on the settings page' + - 'Change the admin e-mail address to your own' + - 'Create your first shelf and book' + - 'Start writing' + guide: + sections: + - title: "Add a family member" + intro: "Everyone signs in with their own account, so you can see who wrote what." + steps: + - "In the top bar, select „Settings”, then „Users”." + - "Select „Add New User”, and fill in „Name” and „Email”." + - "Under „User Roles”, tick „Editor”, or „Viewer” if they only read." + - "Turn off „Send user invite email” and give them a password." + - "Select „Save”, and give the family member the e-mail address and the password." + - title: "Write a page with a picture" + intro: "You can write down a recipe or a manual together with a picture." + steps: + - "Open the book and select „New Page”." + - "Type the title and the text." + - "In the editor's toolbar, select „Insert image”, then „Upload Image”." + - "Choose the picture and select „Select Image”." + - "Select „Save Page”." + - title: "Tags and search" + intro: "With tags you find pages from different books in one place." + steps: + - "While editing, open „Page Tags” in the bar on the right." + - "In „Tag Name”, type a word, for example: recipe." + - "Select „Save Page”." + - "Later you find the page with that word in the search box at the top, or by selecting a tag." + - title: "Print or save a page" + intro: "You can download a page, or a whole book, as a PDF file." + steps: + - "Open the page or the book." + - "In the bar on the right, select „Export”." + - "Choose „PDF File”, and save it or print it." + faq: + - q: "Can I switch it to Hungarian?" + a: "Yes. Under your name at the top right, open „My Account”, choose Hungarian in the „Preferred Language” field, and save. This guide shows the English labels." + - q: "What are a shelf, a book, a chapter and a page?" + a: "The page is the actual text, a chapter holds pages, and a book holds chapters and pages. A shelf keeps several books together, for example Kitchen or House." + - q: "Can I see an older version of a page?" + a: "Yes. In the bar on the right of the page, „Revisions” shows who changed what and when." + - q: "A family member forgot their password. What do I do?" + a: "As an administrator, open the family member on the „Users” page, give them a new password, and select „Save”." + - q: "Where are the uploaded pictures?" + a: "On the box, in BookStack's own storage. 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: DB_PASSWORD + label: 'Database password' + - env_var: APP_KEY + label: 'Application key' + - env_var: ADMIN_PASSWORD + label: 'Admin password (admin@admin.com)' + description: 'For the first sign-in: admin@admin.com and this password. Change it in your profile afterwards.' diff --git a/templates/bookstack/steps/b0574d943276d5b3.yml b/templates/bookstack/steps/b0574d943276d5b3.yml new file mode 100644 index 0000000..67089fd --- /dev/null +++ b/templates/bookstack/steps/b0574d943276d5b3.yml @@ -0,0 +1,94 @@ +# BookStack - Egyszerű, könyv-szerű wiki és dokumentáció platform +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: mariadb +# RAM: ~150M (mem_limit: 512M) | Pi-compatible: Yes +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# DB_PASSWORD - Adatbázis jelszó (auto-generated) +# APP_KEY - Laravel application key (auto-generated) + +services: + bookstack: + image: lscr.io/linuxserver/bookstack:26.09.1 + container_name: bookstack + restart: unless-stopped + depends_on: + bookstack-db: + condition: service_healthy + environment: + - TZ=Europe/Budapest + - PUID=1000 + - PGID=1000 + - DB_HOST=bookstack-db + - DB_PORT=3306 + - DB_USERNAME=bookstack + - DB_PASSWORD=${DB_PASSWORD} + - DB_DATABASE=bookstack + - APP_KEY=${APP_KEY} + # R-753 (controller >= 0.286.0): trust the docker networks as proxies, so Laravel walks X-Forwarded-For from the + # RIGHT and keys its login throttle on each VISITOR (tunnel: the real address; LAN: the LAN client). Measured on + # 9202: without it a stranger's 5 wrong tries throttled the household too; with it only the stranger. + - APP_PROXIES=172.16.0.0/12 + - APP_URL=https://${SUBDOMAIN}.${DOMAIN} + volumes: + - bookstack_config:/config + networks: + - traefik-public + - bookstack-internal + deploy: + resources: + limits: + memory: 512M + healthcheck: + test: ["CMD", "curl", "-f", "http://127.0.0.1:80"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.bookstack.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.bookstack.entrypoints=websecure" + - "traefik.http.routers.bookstack.tls=true" + - "traefik.http.routers.bookstack.tls.certresolver=letsencrypt" + - "traefik.http.services.bookstack.loadbalancer.server.port=80" + + bookstack-db: + image: mariadb:12.3 + container_name: bookstack-db + restart: unless-stopped + environment: + - MYSQL_ROOT_PASSWORD=${DB_PASSWORD} + - MYSQL_DATABASE=bookstack + - MYSQL_USER=bookstack + - MYSQL_PASSWORD=${DB_PASSWORD} + - TZ=Europe/Budapest + # MARIADB_AUTO_UPGRADE: on a MAJOR engine move the engine converts its own datadir (~7 s on a + # small DB, backs its system tables up first). Operator ruling 2026-09-13 on + # felhom.eu/documentation/audits/SPIKE-r459-mariadb-upgrade-2026-09-06.md. Inert until a + # major moves — and none may, until Slice 4 (R-448) ships: see CLAUDE.md, engine-major rule. + - MARIADB_AUTO_UPGRADE=1 + volumes: + - bookstack_db_data:/var/lib/mysql + networks: + - bookstack-internal + deploy: + resources: + limits: + memory: 256M + healthcheck: + test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 20s + +volumes: + bookstack_config: + bookstack_db_data: + +networks: + traefik-public: + external: true + bookstack-internal: diff --git a/templates/docmost/.felhom.yml b/templates/docmost/.felhom.yml index 354ce3c..4f86990 100644 --- a/templates/docmost/.felhom.yml +++ b/templates/docmost/.felhom.yml @@ -15,7 +15,7 @@ subdomain: "docs" slug: "docmost" # 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: @@ -203,6 +203,7 @@ i18n: update_ladder: - {"from": {"docmost": "docmost/docmost:0.95.0", "docmost-postgres": "postgres:16-alpine", "docmost-redis": "redis:7-alpine"}, "to": {"docmost": "docmost/docmost:0.96.0", "docmost-postgres": "postgres:16-alpine", "docmost-redis": "redis:7-alpine"}, "digest": {"docmost": "sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a", "docmost-postgres": "sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea", "docmost-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"}, "verdict": "proven", "tested_at": "2026-09-21T18:21:18.018992+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/docmost/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 6d8cd87; 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": {"docmost": "docmost/docmost:0.96.0", "docmost-postgres": "postgres:16-alpine", "docmost-redis": "redis:7-alpine"}, "to": {"docmost": "docmost/docmost:0.96.0", "docmost-postgres": "postgres:18-alpine", "docmost-redis": "redis:7-alpine"}, "digest": {"docmost": "sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a", "docmost-postgres": "sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873", "docmost-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"}, "verdict": "proven", "tested_at": "2026-09-25T12:01:05Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/night-2026-09-26/C/bench-run2/evidence/MV-docmost/verdict.json", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-26/D/box-verdict-docmost.json", "memory_peak_pct": 80.4, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": true}, "memory_basis": "anon", "memory_cgroup_peak_pct": 89.9, "engine_conversion": {"service": "docmost-postgres", "engine": "postgres", "from": 16, "to": 18}} + - {"from": {"docmost": "docmost/docmost:0.96.0", "docmost-postgres": "postgres:18-alpine", "docmost-redis": "redis:7-alpine"}, "to": {"docmost": "docmost/docmost:0.97.0", "docmost-postgres": "postgres:18-alpine", "docmost-redis": "redis:7-alpine"}, "digest": {"docmost": "sha256:40c454d74ffdd9ecb15833e4d96f3a630d59aad862a1869381ae6ee086454419", "docmost-postgres": "sha256:10a5c69a83035ab5239f5620d708520e8b28f5aa1f2b20143e6024532edadfb5", "docmost-redis": "sha256:6ba19c50b56777f5c11c58eff8ddb69d0d5f27ba131cffb63f180ccfd43c66af"}, "verdict": "security_fix", "tested_at": "2026-10-27T14:00:23Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/docmost/", "memory_peak_pct": 54.1, "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": "0.97.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/docmost/docker-compose.yml b/templates/docmost/docker-compose.yml index 35803bf..09053df 100644 --- a/templates/docmost/docker-compose.yml +++ b/templates/docmost/docker-compose.yml @@ -16,7 +16,7 @@ services: docmost: - image: docmost/docmost:0.96.0 + image: docmost/docmost:0.97.0 container_name: docmost restart: unless-stopped depends_on: diff --git a/templates/docmost/steps/01ae17194c827ab5.felhom.yml b/templates/docmost/steps/01ae17194c827ab5.felhom.yml new file mode 100644 index 0000000..2d5ddd8 --- /dev/null +++ b/templates/docmost/steps/01ae17194c827ab5.felhom.yml @@ -0,0 +1,198 @@ +# ============================================================================= +# .felhom.yml — App metadata for felhom-controller +# ============================================================================= +# Place alongside docker-compose.yml in each stack directory: +# /opt/docker/stacks/docmost/.felhom.yml +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Docmost" +description: "Modern wiki és dokumentáció platform (Notion-szerű)" +category: "productivity" +subdomain: "docs" + +# --- Asset slug --- +slug: "docmost" +# 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: "450M" + mem_limit: "1152M" + pi_compatible: false + 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: "docs" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: APP_SECRET + label: "Alkalmazás 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: 'Modern wiki és dokumentáció platform Notion-szerű szerkesztővel' + docs_url: 'https://docmost.com/docs/' + + use_cases: + - 'Csapat tudásbázis és belső dokumentáció' + - 'Notion-szerű blokk szerkesztő valós idejű együttműködéssel' + - 'Terek és oldalak hierarchikus szervezése' + - 'Képek, táblázatok és kód blokkok beágyazása' + - 'Keresés a teljes dokumentációban' + + first_steps: + - 'Nyisd meg a docs.DOMAIN címet a böngészőben' + - 'Az első regisztrált felhasználó automatikusan admin lesz' + - 'Hozd létre az első teret (Space) a dokumentumoknak' + - 'Kezdj el írni a Notion-szerű szerkesztőben' + + prerequisites: + - 'x86 processzor szükséges' + - 'Legalább 896 MB szabad RAM (Docmost + PostgreSQL + Redis)' + guide: + checked_version: "0.96.0" + sections: + - title: "Családtag meghívása" + intro: "Mindenki saját fiókkal ír és olvas, így látszik, ki mit módosított." + steps: + - "Kattints jobb fent a profilképedre, és válaszd a „Workspace settings” (Munkaterület beállításai) pontot." + - "Nyisd meg a „Members” (Tagok) oldalt, és kattints az „Invite members” (Tagok meghívása) gombra." + - "Az „Invite by email” mezőbe írd be az e-mail-címét, a „Select role” mezőben válassz szerepet, és kattints a „Send invitation” (Meghívó küldése) gombra." + - "A Docmost itt nem küld e-mailt: a „Pending” (Függőben) lapon a meghívó menüjében válaszd a „Copy link” (Link másolása) pontot, és küldd el neki a linket." + - title: "Oldal megosztása fiók nélkül" + intro: "Egy oldalt olyannak is megmutathatsz, akinek nincs fiókja, például a nagyszülőknek." + steps: + - "Nyisd meg az oldalt, és kattints jobb fent a „Share” (Megosztás) gombra." + - "Kapcsold be a „Share to web” (Megosztás a weben) kapcsolót." + - "Másold ki a megjelenő linket, és küldd el. Aki megkapja, olvashatja az oldalt, de nem szerkesztheti." + - "Ha már nem kell, ugyanitt kapcsold ki a megosztást." + - title: "Meglévő jegyzetek behozása" + intro: "A máshol megírt jegyzeteidet nem kell újragépelned." + steps: + - "A bal oldali sávban nyisd meg a tér menüjét („Space menu”), és válaszd az „Import pages” (Oldalak importálása) pontot." + - "Válaszd a formátumot: Markdown, HTML vagy a Notionból exportált ZIP fájl." + - "Válaszd ki a fájlt, és ne zárd be a lapot, amíg a Docmost jelzi, hogy kész." + - title: "Oldal mentése a gépedre" + intro: "Egy oldalt fájlba is kimenthetsz vagy kinyomtathatsz." + steps: + - "Az oldal jobb felső sarkában nyisd meg az oldal menüjét („Page actions”)." + - "Válaszd az „Export” pontot, a „Format” (Formátum) mezőben a Markdown vagy a HTML formátumot, majd kattints az „Export” gombra." + - "Nyomtatáshoz vagy PDF-hez ugyanebben a menüben válaszd a „Print PDF” pontot." + faq: + - q: "Miért nem kapott e-mailt a meghívott?" + a: "A Docmost ezen a dobozon nem küld e-mailt, ezért a meghívó linkjét neked kell elküldened. Ugyanezért az elfelejtett jelszóhoz sem érkezik levél." + - q: "Mekkora fájlt csatolhatok egy oldalhoz?" + a: "Legfeljebb 50 MB-osat. Ezt a határt a doboz állította be." + - q: "Hogyan találok meg egy régi oldalt?" + a: "A bal oldali sávban kattints a „Search” (Keresés) pontra, és írd be, amit keresel. A Docmost az oldalak szövegében is keres." + - q: "Ki látja az oldalaimat?" + a: "A munkaterület tagjai, akiknek hozzáférésük van az adott térhez. Fiók nélkül csak az látja az oldalt, akinek elküldöd a „Share to web” linkjét." + - q: "Mentődnek az oldalaim?" + a: "Az oldalak és a csatolt fájlok a dobozon vannak. A mentés á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 + port: 3000 + +# --- 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 modern wiki and documentation platform (Notion-like)' + app_info: + tagline: 'A modern wiki and documentation platform with a Notion-like editor' + use_cases: + - 'A knowledge base and internal documentation for a team' + - 'A Notion-like block editor several people can use at once' + - 'Spaces and pages, arranged in a tree' + - 'Embed images, tables and code blocks' + - 'Search across all of it' + first_steps: + - 'Open docs.DOMAIN in your browser' + - 'The first person to sign up becomes the admin' + - 'Create your first Space for the documents' + - 'Start writing in the Notion-like editor' + prerequisites: + - 'An x86 processor is needed' + - 'At least 896 MB of free RAM (Docmost + PostgreSQL + Redis)' + guide: + sections: + - title: "Invite a family member" + intro: "Everyone writes and reads with their own account, so you can see who changed what." + steps: + - "Select your profile picture at the top right and choose „Workspace settings”." + - "Open the „Members” page and select „Invite members”." + - "Type their e-mail address in „Invite by email”, choose a role in „Select role”, and select „Send invitation”." + - "Docmost sends no e-mail here: on the „Pending” tab, choose „Copy link” in the invitation's menu, and send them the link." + - title: "Share a page without an account" + intro: "You can show a page to someone who has no account, for example the grandparents." + steps: + - "Open the page and select „Share” at the top right." + - "Turn on the „Share to web” switch." + - "Copy the link that appears and send it. Whoever gets it can read the page, but cannot edit it." + - "When it is no longer needed, turn sharing off in the same place." + - title: "Bring in your existing notes" + intro: "You do not have to retype the notes you wrote elsewhere." + steps: + - "In the left sidebar, open the space's menu („Space menu”) and choose „Import pages”." + - "Choose the format: Markdown, HTML, or a ZIP file exported from Notion." + - "Choose the file, and keep the tab open until Docmost says it is done." + - title: "Save a page to your computer" + intro: "You can also save a page to a file or print it." + steps: + - "At the top right of the page, open the page menu („Page actions”)." + - "Choose „Export”, pick Markdown or HTML in „Format”, then select „Export”." + - "To print or to make a PDF, choose „Print PDF” in the same menu." + faq: + - q: "Why did the invited person get no e-mail?" + a: "Docmost sends no e-mail on this box, so you send the invitation link yourself. For the same reason, no mail arrives for a forgotten password either." + - q: "How large a file can I attach to a page?" + a: "Up to 50 MB. The box set this limit." + - q: "How do I find an old page?" + a: "In the left sidebar, select „Search” and type what you are looking for. Docmost also searches the text of the pages." + - q: "Who sees my pages?" + a: "The members of the workspace who have access to that space. Without an account, only the people you send the „Share to web” link to see the page." + - q: "Are my pages backed up?" + a: "The pages and the attached files are on the box. You see the backup status 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: DB_PASSWORD + label: 'Database password' + - env_var: APP_SECRET + label: 'Application encryption key' diff --git a/templates/docmost/steps/01ae17194c827ab5.yml b/templates/docmost/steps/01ae17194c827ab5.yml new file mode 100644 index 0000000..35803bf --- /dev/null +++ b/templates/docmost/steps/01ae17194c827ab5.yml @@ -0,0 +1,115 @@ +# Docmost - Modern Wiki / Documentation (Notion-like) +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: PostgreSQL + Redis +# RAM: ~200MB (mem_limit: 1152M total — docmost 768M + postgres 256M + redis 128M) | Pi-compatible: No (heavy) +# docmost 384M -> 512M (2026-09-25, `09` §3 decision 39): its own memory reached 91% of 384M under the harness's +# light load; Node sizes its heap from the limit (431 MB at 512M), 0 kills / 0 restarts in both 10-minute watches. +# docmost 512M -> 768M (R-994, 2026-10-17: the 2026-10-13 sizing run measured a peak of 475 MB = 93 % of the old 512M; the new limit keeps it at or under ~70 %). +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# APP_SECRET - Random secret for session signing (auto-generated) +# DB_PASSWORD - PostgreSQL password (auto-generated) +# +# First-time setup: +# First registered user becomes admin. + +services: + docmost: + image: docmost/docmost:0.96.0 + container_name: docmost + restart: unless-stopped + depends_on: + docmost-postgres: + condition: service_healthy + docmost-redis: + condition: service_healthy + environment: + - APP_SECRET=${APP_SECRET} + - DATABASE_URL=postgresql://docmost:${DB_PASSWORD}@docmost-postgres:5432/docmost + - REDIS_URL=redis://docmost-redis:6379 + - APP_URL=https://${SUBDOMAIN}.${DOMAIN} + - STORAGE_DRIVER=local + - FILE_UPLOAD_SIZE_LIMIT=50mb + - TZ=Europe/Budapest + volumes: + - docmost_storage:/app/data/storage + networks: + - traefik-public + - docmost-internal + deploy: + resources: + limits: + memory: 768M + healthcheck: + test: ["CMD", "node", "-e", "const http = require('http'); http.get('http://127.0.0.1:3000/', (r) => { process.exit(r.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.docmost.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.docmost-xff.headers.customrequestheaders.X-Forwarded-For=" + - "traefik.http.routers.docmost.middlewares=docmost-xff" + - "traefik.http.routers.docmost.entrypoints=websecure" + - "traefik.http.routers.docmost.tls=true" + - "traefik.http.routers.docmost.tls.certresolver=letsencrypt" + - "traefik.http.services.docmost.loadbalancer.server.port=3000" + + docmost-postgres: + image: postgres:18-alpine + container_name: docmost-postgres + restart: unless-stopped + environment: + - POSTGRES_USER=docmost + - POSTGRES_PASSWORD=${DB_PASSWORD} + - POSTGRES_DB=docmost + - TZ=Europe/Budapest + volumes: + - docmost_postgres_data:/var/lib/postgresql + networks: + - docmost-internal + deploy: + resources: + limits: + memory: 256M + healthcheck: + test: ["CMD-SHELL", "pg_isready -U docmost -d docmost"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 20s + + docmost-redis: + image: redis:7-alpine + container_name: docmost-redis + restart: unless-stopped + command: redis-server --appendonly no + environment: + - TZ=Europe/Budapest + volumes: + - docmost_redis_data:/data + networks: + - docmost-internal + deploy: + resources: + limits: + memory: 128M + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 10s + timeout: 5s + retries: 3 + +volumes: + docmost_storage: + docmost_postgres_data: + docmost_redis_data: + +networks: + traefik-public: + external: true + docmost-internal: diff --git a/templates/grafana/.felhom.yml b/templates/grafana/.felhom.yml index 7f63204..9566065 100644 --- a/templates/grafana/.felhom.yml +++ b/templates/grafana/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "grafana" slug: "grafana" # 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: @@ -189,6 +189,7 @@ i18n: update_ladder: - {"from": {"grafana": "grafana/grafana:13.1.0"}, "to": {"grafana": "grafana/grafana:13.2.2"}, "digest": {"grafana": "sha256:ac461fb352abc50da10a51c7d02462e9c05488f11f53f14b3ad79a8145f638a0"}, "verdict": "proven", "tested_at": "2026-09-21T19:02:25.646053+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/grafana/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 068f445; 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": {"grafana": "grafana/grafana:13.2.2"}, "to": {"grafana": "grafana/grafana:13.2.3"}, "digest": {"grafana": "sha256:b28bae15e219c998fb0e0424ed724930cc61b1f61fb404d47c862f9a23f9e572"}, "verdict": "proven", "tested_at": "2026-09-30T12:17:45Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/F/apps/grafana/bench/evidence/MV-grafana/verdict.json", "box_evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/box/grafana/box-verdict-grafana.json", "memory_peak_pct": 47.1, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 100.0} + - {"from": {"grafana": "grafana/grafana:13.2.3"}, "to": {"grafana": "grafana/grafana:13.2.4"}, "digest": {"grafana": "sha256:dbbc38ea21103cefb50396340cd88afec779c7e070b0a7bf5a75b4ce46651d3f"}, "verdict": "security_fix", "tested_at": "2026-10-27T14:01:18Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/grafana/", "memory_peak_pct": 30.3, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-15577"], "advisory": "https://grafana.com/security/security-advisories/cve-2026-15577/", "fixed_in": "13.2.4"}, "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/grafana/docker-compose.yml b/templates/grafana/docker-compose.yml index bdcbdc0..13731b7 100644 --- a/templates/grafana/docker-compose.yml +++ b/templates/grafana/docker-compose.yml @@ -10,7 +10,7 @@ services: grafana: - image: grafana/grafana:13.2.3 + image: grafana/grafana:13.2.4 container_name: grafana restart: unless-stopped environment: diff --git a/templates/grafana/steps/63fab8627e9b70ed.felhom.yml b/templates/grafana/steps/63fab8627e9b70ed.felhom.yml new file mode 100644 index 0000000..1f45980 --- /dev/null +++ b/templates/grafana/steps/63fab8627e9b70ed.felhom.yml @@ -0,0 +1,184 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Grafana" +description: "Professzionális monitoring és vizualizációs platform" +category: "dashboard" +subdomain: "grafana" +slug: "grafana" +# 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: "250M" + mem_limit: "768M" + 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: "grafana" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: GF_SECURITY_ADMIN_PASSWORD + label: "Admin jelszó" + type: password + generate: "password:16" + description: "Első bejelentkezéshez. Utána a webes felületen módosítható." + locked_after_deploy: false + +# --- App info (info page content) --- +app_info: + tagline: "Vizualizációs platform - dashboardok, grafikonok, alertek" + docs_url: "https://grafana.com/docs/grafana/latest/" + + use_cases: + - 'Rendszer metrikák vizualizálása (CPU, RAM, hálózat, lemez)' + - 'Egyedi dashboardok létrehozása különböző adatforrásokból' + - 'Alertek és értesítések küszöbértékek alapján' + - 'Prometheus, InfluxDB és sok más adatforrás támogatás' + - 'Szép, megosztható dashboardok' + + first_steps: + - 'Nyisd meg a grafana.DOMAIN címet a böngészőben' + - 'Jelentkezz be az admin fiókkal' + - 'Add hozzá az adatforrásokat (Connections > Data Sources)' + - 'Importálj egy dashboard sablont vagy hozz létre sajátot' + + prerequisites: + - 'Adatforrás szükséges (pl. Prometheus - külön telepítendő)' + guide: + checked_version: "13.2.3" + sections: + - title: "Saját jelszó beállítása" + intro: "A telepítéskor generált jelszót érdemes a sajátodra cserélni." + steps: + - "Kattints jobb felül a profilképedre, és válaszd a „Change password” (Jelszó módosítása) pontot." + - "Az „Old password” (régi jelszó) mezőbe írd a generált jelszót: a vezérlőpulton, a Grafana „Beállítások” fülén látod." + - "Írd be az új jelszót a „New password” (új jelszó) és a „Confirm password” (jelszó megerősítése) mezőbe." + - "Kattints a „Change Password” gombra." + - title: "Családtag felvétele" + intro: "Mindenki a saját fiókjával nézheti az irányítópultokat." + steps: + - "A bal oldali menüben nyisd meg az „Administration” (Adminisztráció) részt, azon belül a „Users and access” (felhasználók és hozzáférés) pontot." + - "Válaszd a „Users” (Felhasználók) pontot, és kattints a „New user” (új felhasználó) gombra." + - "Töltsd ki a „Name” (név), a „Username” (felhasználónév) és a „Password” (jelszó) mezőt." + - "Kattints a „Create user” (felhasználó létrehozása) gombra, és add meg a családtagnak a nevet és a jelszót." + - title: "Magyar nyelv és téma" + intro: "A nyelvet és a színeket mindenki a saját fiókjában választja meg." + steps: + - "Kattints jobb felül a profilképedre, és válaszd a „Profile” (Profil) pontot." + - "A „Language” (Nyelv) mezőben válaszd a „Magyar” nyelvet, majd kattints a „Save preferences” (beállítások mentése) gombra." + - "Világos vagy sötét színekhez a profilkép menüjében válaszd a „Change theme” (téma módosítása) pontot." + - title: "Irányítópult a tévén" + intro: "Egy irányítópult egész képernyőn, menük nélkül is futhat, például egy tévén." + steps: + - "A tévé böngészőjében lépj be egy családtag fiókjával, és nyisd meg az irányítópultot." + - "A profilkép menüjében válaszd az „Enable kiosk mode” (kioszk mód) pontot: a menük eltűnnek." + - "A kioszk módból az ESC gombbal lépsz ki." + faq: + - q: "Megváltoztattam a jelszót. Melyik az érvényes?" + a: "Amit a Grafanában beállítottál. A generált jelszó csak az első belépéshez kellett." + - q: "A családtag csak nézni tud. Miért?" + a: "Az új felhasználó a Grafanában néző szerepkört kap. Szerkesztéshez nyisd meg őt a „Users” listában, és a „Change role” (szerepkör módosítása) gombbal adj neki szerkesztő szerepkört." + - q: "Honnan jönnek az adatok?" + a: "A Grafana csak megjelenít: az adatokat egy adatforrás adja, amelyet a „Connections” (Kapcsolatok) menüben adsz hozzá. A doboz adatforrást nem telepít." + - q: "Kapok e-mailt egy riasztásról?" + a: "Nem: a doboz nem állít be levélküldést a Grafanának, ezért e-mailes riasztás nem megy ki." + - q: "Hol vannak az irányítópultjaim?" + a: "A Grafana saját adattárában, a dobozon. A mentésüket az „Adatok és mentés” fülön látod." + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: api + port: 3000 + path: "/api/health" + 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: 'A professional monitoring and visualisation platform' + app_info: + tagline: 'A visualisation platform - dashboards, graphs and alerts' + use_cases: + - 'See system numbers as graphs (CPU, RAM, network, disk)' + - 'Build your own dashboards from several data sources' + - 'Alerts and notifications when a number crosses a line you set' + - 'Prometheus, InfluxDB and many more data sources' + - 'Dashboards that look good and can be shared' + first_steps: + - 'Open grafana.DOMAIN in your browser' + - 'Sign in with the admin account' + - 'Add your data sources (Connections > Data Sources)' + - 'Import a dashboard template, or build your own' + prerequisites: + - 'A data source is needed (Prometheus, for example - installed separately)' + guide: + sections: + - title: "Set your own password" + intro: "It is worth replacing the password made at install time with your own." + steps: + - "Select your profile picture at the top right and choose „Change password”." + - "In „Old password”, type the generated password: you see it on the dashboard, on Grafana's „Settings” tab." + - "Type the new password into „New password” and „Confirm password”." + - "Select „Change Password”." + - title: "Add a family member" + intro: "Everyone can look at the dashboards with their own account." + steps: + - "In the menu on the left, open „Administration”, and in it „Users and access”." + - "Choose „Users”, and select „New user”." + - "Fill in „Name”, „Username” and „Password”." + - "Select „Create user”, and give the family member the name and the password." + - title: "Hungarian and the theme" + intro: "Everyone chooses the language and the colours in their own account." + steps: + - "Select your profile picture at the top right and choose „Profile”." + - "In „Language”, choose Hungarian (the list shows it under its own name), then select „Save preferences”." + - "For light or dark colours, choose „Change theme” in the profile picture's menu." + - title: "A dashboard on the TV" + intro: "A dashboard can run on the whole screen with no menus, for example on a TV." + steps: + - "In the TV's browser, sign in with a family member's account and open the dashboard." + - "In the profile picture's menu, choose „Enable kiosk mode”: the menus go away." + - "Press ESC to leave kiosk mode." + faq: + - q: "I changed the password. Which one is valid?" + a: "The one you set in Grafana. The generated password was only for the first sign-in." + - q: "A family member can only look. Why?" + a: "A new user gets the viewer role in Grafana. To let them edit, open them in the „Users” list and give them the editor role with „Change role”." + - q: "Where does the data come from?" + a: "Grafana only shows data: a data source provides it, and you add that in the „Connections” menu. The box installs no data source." + - q: "Do I get an e-mail about an alert?" + a: "No: the box does not set up mail sending for Grafana, so no alert goes out by e-mail." + - q: "Where are my dashboards?" + a: "In Grafana's own data store, on the box. You see their backup 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: GF_SECURITY_ADMIN_PASSWORD + label: 'Admin password' + description: 'For the first sign-in. You can change it in the app afterwards.' diff --git a/templates/grafana/steps/63fab8627e9b70ed.yml b/templates/grafana/steps/63fab8627e9b70ed.yml new file mode 100644 index 0000000..bdcbdc0 --- /dev/null +++ b/templates/grafana/steps/63fab8627e9b70ed.yml @@ -0,0 +1,47 @@ +# Grafana - Professzionális monitoring és vizualizációs platform +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: None (file-based) +# RAM: ~100M (mem_limit: 768M) | Pi-compatible: Yes +# 512M -> 768M (R-994, 2026-10-17: the 2026-10-13 sizing run measured a peak of 435 MB = 85 % of the old 512M; the new limit keeps it at or under ~70 %). +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# GF_SECURITY_ADMIN_PASSWORD- Admin jelszó (auto-generated) + +services: + grafana: + image: grafana/grafana:13.2.3 + container_name: grafana + restart: unless-stopped + environment: + - TZ=Europe/Budapest + - GF_SERVER_ROOT_URL=https://${SUBDOMAIN}.${DOMAIN} + - GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:?the admin password is required (R-708)} + volumes: + - grafana_data:/var/lib/grafana + networks: + - traefik-public + deploy: + resources: + limits: + memory: 768M + healthcheck: + test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:3000/api/health"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.grafana.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.grafana.entrypoints=websecure" + - "traefik.http.routers.grafana.tls=true" + - "traefik.http.routers.grafana.tls.certresolver=letsencrypt" + - "traefik.http.services.grafana.loadbalancer.server.port=3000" + +volumes: + grafana_data: + +networks: + traefik-public: + external: true diff --git a/templates/n8n/.felhom.yml b/templates/n8n/.felhom.yml index ae36edc..0b3a822 100644 --- a/templates/n8n/.felhom.yml +++ b/templates/n8n/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "auto" slug: "n8n" # 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: @@ -194,6 +194,7 @@ update_ladder: - {"from": {"n8n": "n8nio/n8n:2.40.5"}, "to": {"n8n": "n8nio/n8n:2.41.1"}, "digest": {"n8n": "sha256:52f147bba97908fe58e616738f2f0485696ac7b5670a1baf169ccf1ff3173de7"}, "verdict": "proven", "tested_at": "2026-09-23T19:49:44Z", "harness_version": 3, "evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/n8n/bench/evidence/MV-n8n/verdict.json", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/n8n/verdict.json", "memory_peak_pct": 22.7, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 46.8} - {"from": {"n8n": "n8nio/n8n:2.41.1"}, "to": {"n8n": "n8nio/n8n:2.41.2"}, "digest": {"n8n": "sha256:1419c3c665b02531dd43d815ef62f573aa9b1307962162a08a349dc8a452e8bf"}, "verdict": "proven", "tested_at": "2026-09-24T21:45:14Z", "harness_version": 3, "evidence": "felhom.eu/documentation/audits/night-2026-09-25/E/apps/n8n/bench", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-25/E/apps/n8n/box", "memory_peak_pct": 22.4, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 55.9} - {"from": {"n8n": "n8nio/n8n:2.41.2"}, "to": {"n8n": "n8nio/n8n:2.42.1"}, "digest": {"n8n": "sha256:e7634e62f766044dc770460db8defdcd84034eb6d767dd6a1101d49fe98f814f"}, "verdict": "proven", "tested_at": "2026-09-30T12:05:01Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/F/apps/n8n/bench/evidence/MV-n8n/verdict.json", "box_evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/box/n8n/box-verdict-n8n.json", "memory_peak_pct": 23.0, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 45.3} + - {"from": {"n8n": "n8nio/n8n:2.42.1"}, "to": {"n8n": "n8nio/n8n:2.44.7"}, "digest": {"n8n": "sha256:942bc274709f27f99f7c6024a785d8e8f75ac06838cabcba448abb8d9127ec7b"}, "verdict": "security_fix", "tested_at": "2026-10-27T13:56:23Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/n8n/", "memory_peak_pct": 32.3, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-m7gv-mpg5-7c9v", "GHSA-mp7q-23hg-35cf", "GHSA-wvjj-qg37-pv73", "GHSA-pcr3-v5vr-qppf"], "advisory": "https://github.com/n8n-io/n8n/security/advisories/GHSA-wvjj-qg37-pv73", "fixed_in": "2.43.5"}, "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/n8n/docker-compose.yml b/templates/n8n/docker-compose.yml index fe7d2ed..1097cd8 100644 --- a/templates/n8n/docker-compose.yml +++ b/templates/n8n/docker-compose.yml @@ -9,7 +9,7 @@ services: n8n: - image: n8nio/n8n:2.42.1 + image: n8nio/n8n:2.44.7 container_name: n8n restart: unless-stopped environment: diff --git a/templates/n8n/steps/9083c23d189f5b92.felhom.yml b/templates/n8n/steps/9083c23d189f5b92.felhom.yml new file mode 100644 index 0000000..dbca4f1 --- /dev/null +++ b/templates/n8n/steps/9083c23d189f5b92.felhom.yml @@ -0,0 +1,187 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "n8n" +description: "Workflow automatizálás vizuális szerkesztővel" +category: "productivity" +subdomain: "auto" +slug: "n8n" +# 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: "512M" + mem_limit: "1536M" + pi_compatible: false + 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: "auto" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: N8N_ENCRYPTION_KEY + label: "Titkosítási kulcs" + type: secret + generate: "hex:16" + locked_after_deploy: true + # R-127: encrypts every saved credential in n8n's database (packages/core cipher). Regenerating it makes every + # stored credential unreadable, so a restore RECOVERS it and refuses rather than make a new one. + data_key: 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; n8n's own settings say so (measured on 9202 2026-09-29: +# showSetupOnFirstLoad true -> false once the owner exists). +setup_gate: true +# measured on 9202 2026-09-29: showSetupOnFirstLoad true -> false after the owner setup (audits/login-gate-2026-09-29/C). +setup_done_probe: + url: http://n8n:5678/rest/settings + field: data.userManagement.showSetupOnFirstLoad + done: "false" + +# --- App info (info page content) --- +app_info: + tagline: "Vizuális workflow automatizálás - Zapier/IFTTT alternatíva" + docs_url: "https://docs.n8n.io/" + + use_cases: + - 'Alkalmazások összekapcsolása vizuális workflow szerkesztővel' + - 'Automatizálás: email, Telegram, webhook, fájl feldolgozás' + - '400+ integráció (Google, Slack, Notion, GitHub, stb.)' + - 'Időzített feladatok (cron) és webhook triggerek' + - 'AI munkafolyamatok LLM integrációval' + + first_steps: + - 'Nyisd meg az auto.DOMAIN címet a böngészőben' + - 'Hozd létre az admin fiókot' + - 'Próbálj ki egy sablon workflow-t a Template galériából' + - 'Hozd létre az első saját munkafolyamatot' + + prerequisites: + - 'x86 processzor szükséges' + guide: + checked_version: "2.42.1" + sections: + - title: "Első időzített munkafolyamat" + intro: "Egy munkafolyamat egy indítóval kezdődik, utána jönnek a lépések, amelyeket elvégez." + steps: + - "Kattints a „Create workflow” (új munkafolyamat) gombra." + - "Kattints az „Add first step…” (első lépés) mezőre, és válaszd az „On a schedule” (időzítve) lehetőséget." + - "A „Trigger Interval” (gyakoriság) mezőben állítsd be, milyen gyakran fusson." + - "Add hozzá a következő lépést a plusz jellel, majd próbáld ki az „Execute workflow” (futtatás) gombbal." + - "Ha jól működik, kattints a „Publish” (közzététel) gombra. Az időzítés csak ezután fut magától." + - title: "Futások ellenőrzése" + intro: "Az n8n minden futást megjegyez, így utólag is látod, mi történt." + steps: + - "A bal oldali menüben nyisd meg az „Executions” (futások) oldalt." + - "Minden futás mellett látod az állapotát: „Success” (sikeres) vagy „Error” (hiba)." + - "Kattints egy hibás futásra: megnyílik a munkafolyamat, és látod, melyik lépés akadt el." + - title: "Családtag meghívása" + intro: "Mindenki a saját fiókjával dolgozik, és a saját munkafolyamatait látja." + steps: + - "A bal oldali menüben nyisd meg a „Settings” (beállítások), majd a „Users” (felhasználók) oldalt." + - "Kattints az „Invite” (meghívás) gombra, és írd be a családtag e-mail-címét." + - "Kattints a „Create invite link” (meghívó link) gombra: a link a vágólapra kerül." + - "Küldd el neki a linket. Ezen állít be magának nevet és jelszót." + faq: + - q: "Miért nem fut magától a munkafolyamat?" + a: "Magától csak a közzétett munkafolyamat fut. Nézd meg, hogy a fejlécben „Published” (közzétéve) áll-e; ha nem, kattints a „Publish” gombra." + - q: "Hogyan kapcsolok ki egy munkafolyamatot?" + a: "Nyisd meg, és a „Publish” gomb melletti menüben válaszd az „Unpublish” (visszavonás) pontot. A munkafolyamat megmarad, csak nem indul el magától." + - q: "Milyen címet adjak meg egy webhooknak?" + a: "A webhook lépésben a „Production URL” (éles cím) a közzétett munkafolyamathoz tartozik, és az auto.DOMAIN címen érhető el. A „Test URL” (tesztcím) a szerkesztőben való kipróbáláshoz kell." + - q: "Egy családtag elfelejtette a jelszavát. Mit tegyek?" + a: "A „Users” oldalon a neve melletti menüben válaszd a „Copy Password Reset Link” (jelszó-visszaállító link) pontot, és küldd el neki a linket." + - q: "Biztonságban vannak a mentett belépési adatok?" + a: "Az n8n a szolgáltatásokhoz mentett belépési adatokat titkosítva tárolja, a kulcsot a doboz telepítéskor készítette. Azt, hogy mi kerül mentésbe, a vezérlőpulton, az n8n „Adatok és mentés” fülén látod." + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: api + port: 5678 + path: "/healthz" + 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: 'Workflow automation with a visual editor' + app_info: + tagline: 'Visual workflow automation - a Zapier/IFTTT alternative' + use_cases: + - 'Wire apps together in a visual workflow editor' + - 'Automate e-mail, Telegram, webhooks and file handling' + - '400+ integrations (Google, Slack, Notion, GitHub and more)' + - 'Scheduled jobs (cron) and webhook triggers' + - 'AI workflows with an LLM in them' + first_steps: + - 'Open auto.DOMAIN in your browser' + - 'Create the admin account' + - 'Try a ready-made workflow from the Template gallery' + - 'Build your first workflow of your own' + prerequisites: + - 'An x86 processor is needed' + guide: + sections: + - title: "Your first scheduled workflow" + intro: "A workflow starts with a trigger, followed by the steps it carries out." + steps: + - "Select „Create workflow”." + - "Select „Add first step…” and choose „On a schedule”." + - "In „Trigger Interval”, set how often it runs." + - "Add the next step with the plus sign, then try it with „Execute workflow”." + - "When it works, select „Publish”. The schedule only runs by itself after that." + - title: "Check the runs" + intro: "n8n remembers every run, so you can see afterwards what happened." + steps: + - "In the menu on the left, open the „Executions” page." + - "Next to every run you see its status: „Success” or „Error”." + - "Select a failed run: the workflow opens, and you see which step got stuck." + - title: "Invite a family member" + intro: "Everyone works with their own account and sees their own workflows." + steps: + - "In the menu on the left, open „Settings”, then the „Users” page." + - "Select „Invite” and type the family member's e-mail address." + - "Select „Create invite link”: the link goes to the clipboard." + - "Send them the link. Through it they set their own name and password." + faq: + - q: "Why does the workflow not run by itself?" + a: "Only a published workflow runs by itself. Check that the header says „Published”; if not, select „Publish”." + - q: "How do I switch a workflow off?" + a: "Open it, and in the menu next to the „Publish” button choose „Unpublish”. The workflow stays, it just does not start by itself." + - q: "Which address do I give a webhook?" + a: "In the webhook step, the „Production URL” belongs to the published workflow and is reached on auto.DOMAIN. The „Test URL” is for trying it out in the editor." + - q: "A family member forgot their password. What do I do?" + a: "On the „Users” page, in the menu next to their name, choose „Copy Password Reset Link”, and send them the link." + - q: "Are the saved sign-in details safe?" + a: "n8n stores the sign-in details you save for services encrypted, with a key the box made at install time. What is backed up, you see on the dashboard, on n8n'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: N8N_ENCRYPTION_KEY + label: 'Encryption key' diff --git a/templates/n8n/steps/9083c23d189f5b92.yml b/templates/n8n/steps/9083c23d189f5b92.yml new file mode 100644 index 0000000..fe7d2ed --- /dev/null +++ b/templates/n8n/steps/9083c23d189f5b92.yml @@ -0,0 +1,50 @@ +# n8n - Workflow automatizálás vizuális szerkesztővel +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: None (file-based) +# RAM: ~150M (mem_limit: 512M) | Pi-compatible: No +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# N8N_ENCRYPTION_KEY- Titkosítási kulcs (auto-generated) + +services: + n8n: + image: n8nio/n8n:2.42.1 + container_name: n8n + restart: unless-stopped + environment: + - TZ=Europe/Budapest + - N8N_HOST=${SUBDOMAIN}.${DOMAIN} + - N8N_PROTOCOL=https + # No usage data leaves the home (catalog sweep 2026-10-24: the log showed n8n's telemetry client trying to send) + - N8N_DIAGNOSTICS_ENABLED=false + - WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN}/ + - N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY} + volumes: + - n8n_data:/home/node/.n8n + networks: + - traefik-public + deploy: + resources: + limits: + memory: 1536M + healthcheck: + test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:5678/healthz"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.n8n.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.n8n.entrypoints=websecure" + - "traefik.http.routers.n8n.tls=true" + - "traefik.http.routers.n8n.tls.certresolver=letsencrypt" + - "traefik.http.services.n8n.loadbalancer.server.port=5678" + +volumes: + n8n_data: + +networks: + traefik-public: + external: true diff --git a/templates/privatebin/.felhom.yml b/templates/privatebin/.felhom.yml index d0793fa..a9724c8 100644 --- a/templates/privatebin/.felhom.yml +++ b/templates/privatebin/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "paste" slug: "privatebin" # 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-22" +catalog_since: "2026-10-27" # --- Resource hints (displayed on deploy screen) --- resources: @@ -174,6 +174,7 @@ i18n: # gated by scripts/check-test-record.py. An image: move without a proven entry here is refused. update_ladder: - {"from": {"privatebin": "privatebin/pdo:2.0.5"}, "to": {"privatebin": "privatebin/pdo:2.0.6"}, "digest": {"privatebin": "sha256:4c141b2326f8b353598ce9ce7507a9cfecf2dad5c60a39fea903d430e296d8f5"}, "verdict": "proven", "tested_at": "2026-09-21T18:19:14.044130+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/privatebin/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 f547f16; 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": {"privatebin": "privatebin/pdo:2.0.6"}, "to": {"privatebin": "privatebin/pdo:2.1.0"}, "digest": {"privatebin": "sha256:3400b0a4714d62161727a710c82a3e319cfea364ac6e591aed653f5bb6bb8055"}, "verdict": "security_fix", "tested_at": "2026-10-27T13:56:56Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/privatebin/", "memory_peak_pct": 25.8, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-w873-3ghv-hmh6"], "advisory": "https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-w873-3ghv-hmh6", "fixed_in": "2.1.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/privatebin/docker-compose.yml b/templates/privatebin/docker-compose.yml index 685cf2c..6a0b4fe 100644 --- a/templates/privatebin/docker-compose.yml +++ b/templates/privatebin/docker-compose.yml @@ -8,7 +8,7 @@ services: privatebin: - image: privatebin/pdo:2.0.6 + image: privatebin/pdo:2.1.0 container_name: privatebin restart: unless-stopped environment: diff --git a/templates/privatebin/steps/92922b000a9b6091.felhom.yml b/templates/privatebin/steps/92922b000a9b6091.felhom.yml new file mode 100644 index 0000000..58878c0 --- /dev/null +++ b/templates/privatebin/steps/92922b000a9b6091.felhom.yml @@ -0,0 +1,170 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "PrivateBin" +description: "Titkosított jegyzet és szöveg megosztás" +category: "security" +subdomain: "paste" +slug: "privatebin" +# 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-22" + +# --- Resource hints (displayed on deploy screen) --- +resources: + mem_request: "40M" + mem_limit: "128M" + 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: "paste" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + +# --- App info (info page content) --- +app_info: + tagline: "Titkosított szöveg megosztás - a szerver nem látja a tartalmat" + login_kind: none # controller >= 0.320.0: no sign-in of its own (FIRST-ADMIN.md class 5) + docs_url: "https://github.com/PrivateBin/PrivateBin/wiki" + + use_cases: + - 'Érzékeny szövegek biztonságos megosztása' + - 'E2E titkosítás - a szerver nem fér hozzá a tartalomhoz' + - 'Beállítható lejárati idő (5 perc - 1 év, vagy soha)' + - 'Olvasás után automatikus törlés opció' + - 'Jelszóvédelem a még nagyobb biztonságért' + + first_steps: + - 'Nyisd meg a paste.DOMAIN címet a böngészőben' + - 'Írd be a szöveget, és kattints a „Létrehozás” gombra' + - 'Oszd meg a generált linket - a titkosítási kulcs az URL-ben van' + guide: + checked_version: "2.0.6" + sections: + - title: "Egyszer olvasható üzenet" + intro: "Ha valamit csak egyszer kell elolvasni, például egy jelszót, a PrivateBin az első olvasás után törli." + steps: + - "Írd be a szöveget." + - "Jelöld be a „Törlés az első olvasás után” jelölőt." + - "A „Lejárati idő” listában válaszd ki, meddig várjon a bejegyzés, ha senki nem nyitja meg." + - "Kattints a „Létrehozás” gombra, majd a „Link másolása” gombra, és küldd el a linket." + - title: "Jelszó a bejegyzésre" + intro: "A jelszóval a link önmagában kevés: aki megkapja, a jelszót is ismernie kell." + steps: + - "Írd be a szöveget, majd a „Jelszó (ajánlott)” mezőbe egy jelszót." + - "Kattints a „Létrehozás” gombra, és küldd el a linket." + - "A jelszót más úton add át, például telefonon, ne ugyanabban az üzenetben, mint a linket." + - title: "Átküldés telefonra" + intro: "A számítógépen írt szöveget egy QR-kóddal gyorsan átviheted a telefonodra." + steps: + - "Hozd létre a bejegyzést a „Létrehozás” gombbal." + - "Kattints a „QR-kód” gombra." + - "Olvasd be a kódot a telefonod kamerájával, és nyisd meg a linket." + - title: "Hozzászólások egy bejegyzéshez" + intro: "Egy bejegyzéshez a címzettek titkosított hozzászólást írhatnak." + steps: + - "Létrehozás előtt jelöld be a „Hozzászólások engedélyezése” jelölőt." + - "A címzett a bejegyzés alatt a „Hozzászólok” gombra kattint." + - "Megadhat egy nevet a „Becenév (amennyiben meg akarod adni)” mezőben, majd a „Beküld” gombbal elküldi a hozzászólást." + faq: + - q: "Látja a szöveget a doboz?" + a: "Nem. A szöveget a böngésződ titkosítja, a kulcs csak a linkben van. A doboz csak titkosított adatot tárol." + - q: "Elvesztettem a linket. Megkereshetem?" + a: "Nem. A kulcs csak a linkben volt, ezért a bejegyzést nélküle senki nem tudja megnyitni, a doboz sem." + - q: "Törölhetem a bejegyzést lejárat előtt?" + a: "Igen, de csak közvetlenül a létrehozás után: ekkor megjelenik az „Adat törlése” gomb. Ha ezt az oldalt bezárod, a bejegyzés a lejárati idő végéig megmarad." + - q: "Küldhetek fájlt vagy képet?" + a: "Nem. Ezen a dobozon a PrivateBin csak szöveget fogad, legfeljebb körülbelül 10 MB-ot." + - q: "Miért kell a „Törlés az első olvasás után” mellé lejárati idő?" + a: "Ha a címzett soha nem nyitja meg a linket, a bejegyzés a lejárati idő végén akkor is törlődik." + + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: http + port: 8080 + +# --- English copy (localisation slice 5, R-560) -------------------------------------------- +# The Hungarian above is UNCHANGED and is what a Hungarian household reads. A box on English +# reads this block field by field; a field missing here shows the Hungarian one, and a +# controller older than 0.257.0 ignores the whole block. +i18n: + en: + description: "Encrypted note and text sharing" + + app_info: + tagline: "Encrypted text sharing - the server never sees the content" + + use_cases: + - 'Share sensitive text safely' + - 'End-to-end encryption - the server cannot reach the content' + - 'You choose how long it lasts (5 minutes to 1 year, or never)' + - 'Optional: delete it automatically after it is read' + - 'Password protection for extra safety' + + first_steps: + - 'Open paste.DOMAIN in your browser' + - 'Type your text and select „Create”' + - 'Share the link you get - the encryption key is part of the URL' + guide: + sections: + - title: "A message that can be read once" + intro: "When something needs to be read only once, for example a password, PrivateBin deletes it after the first reading." + steps: + - "Type the text." + - "Tick „Burn after reading”." + - "In the „Expires” list, choose how long the document waits if nobody opens it." + - "Select „Create”, then „Copy link”, and send the link." + - title: "A password on a document" + intro: "With a password the link alone is not enough: whoever gets it must also know the password." + steps: + - "Type the text, then a password in the „Password (recommended)” field." + - "Select „Create” and send the link." + - "Give the password another way, for example by phone, not in the same message as the link." + - title: "Send it to your phone" + intro: "With a QR code you quickly move text you typed on the computer to your phone." + steps: + - "Create the document with „Create”." + - "Select „QR code”." + - "Scan the code with your phone's camera and open the link." + - title: "Comments on a document" + intro: "The people you send a document to can write encrypted comments on it." + steps: + - "Before you create it, tick „Open discussion”." + - "Under the document, the recipient selects „Add comment”." + - "They can enter a name in „Optional nickname…”, then send the comment with „Post comment”." + faq: + - q: "Does the box see the text?" + a: "No. Your browser encrypts the text, and the key is only in the link. The box stores only encrypted data." + - q: "I lost the link. Can I look it up?" + a: "No. The key was only in the link. Without it the document stays locked for everyone, the box included." + - q: "Can I delete a document before it expires?" + a: "Yes, but only right after you create it: then the „Delete data” button shows. If you close that page, the document stays until it expires." + - q: "Can I send a file or a picture?" + a: "No. On this box PrivateBin takes text only, up to about 10 MB." + - q: "Why do I need an expiry time next to „Burn after reading”?" + a: "If the recipient never opens the link, the document is still deleted when the expiry time runs out." + + 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/privatebin/steps/92922b000a9b6091.yml b/templates/privatebin/steps/92922b000a9b6091.yml new file mode 100644 index 0000000..685cf2c --- /dev/null +++ b/templates/privatebin/steps/92922b000a9b6091.yml @@ -0,0 +1,44 @@ +# PrivateBin - Titkosított jegyzet és szöveg megosztás +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: None (file-based) +# RAM: ~30M (mem_limit: 128M) | Pi-compatible: Yes +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) + +services: + privatebin: + image: privatebin/pdo:2.0.6 + container_name: privatebin + restart: unless-stopped + environment: + - TZ=Europe/Budapest + - PHP_TZ=Europe/Budapest + volumes: + - privatebin_data:/srv/data + networks: + - traefik-public + deploy: + resources: + limits: + memory: 128M + healthcheck: + test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:8080"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.privatebin.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.privatebin.entrypoints=websecure" + - "traefik.http.routers.privatebin.tls=true" + - "traefik.http.routers.privatebin.tls.certresolver=letsencrypt" + - "traefik.http.services.privatebin.loadbalancer.server.port=8080" + +volumes: + privatebin_data: + +networks: + traefik-public: + external: true