From abf3db352e0a1ee9f4a20eddb3acaf94c100af11 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Wed, 28 Oct 2026 09:22:05 +0100 Subject: [PATCH] HTTP2Shell (CVE-2026-111497) lane batch 1: security-fix steps ghost 6.73.0-alpine, metube 2026.10.27, zipline 4.8.2 (runtimes read from the image; 9202 proven); Papra fixture sends Origin (felhom.eu R-1332) --- CHANGELOG.md | 16 ++ REPORT.md | 20 +- scripts/upgrade_fixtures_box.py | 5 +- templates/ghost/.felhom.yml | 3 +- templates/ghost/docker-compose.yml | 2 +- .../ghost/steps/38d079ee2e9fa927.felhom.yml | 208 ++++++++++++++++++ templates/ghost/steps/38d079ee2e9fa927.yml | 67 ++++++ templates/metube/.felhom.yml | 3 +- templates/metube/docker-compose.yml | 2 +- .../metube/steps/8a70e3c32c7582da.felhom.yml | 199 +++++++++++++++++ templates/metube/steps/8a70e3c32c7582da.yml | 59 +++++ templates/zipline/.felhom.yml | 3 +- templates/zipline/docker-compose.yml | 2 +- .../zipline/steps/0aaf0c6137f139a9.felhom.yml | 206 +++++++++++++++++ templates/zipline/steps/0aaf0c6137f139a9.yml | 89 ++++++++ 15 files changed, 867 insertions(+), 17 deletions(-) create mode 100644 templates/ghost/steps/38d079ee2e9fa927.felhom.yml create mode 100644 templates/ghost/steps/38d079ee2e9fa927.yml create mode 100644 templates/metube/steps/8a70e3c32c7582da.felhom.yml create mode 100644 templates/metube/steps/8a70e3c32c7582da.yml create mode 100644 templates/zipline/steps/0aaf0c6137f139a9.felhom.yml create mode 100644 templates/zipline/steps/0aaf0c6137f139a9.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index b1780ea..4670fee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## 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 +`scripts/image_runtime.py`; `documentation/audits/runtime-fixes-2026-10-28/TABLE.md`), never from release notes. Each +step: box walk `--security` on 9202 (drill catalog, the guarded Update, soak 600 s, the seeded account read back), then +the writer on this head. No bench fixture exists for these apps (`upgrade_fixtures.py`), so no bench test (`09` §6.4, +the lane's stated trade). +- **ghost 6.67.0-alpine → 6.73.0-alpine** (Node.js 22.23.3 → 22.23.4): `proven`, Update 109 s, peak 21.6 % anon. +- **metube 2026.09.29 → 2026.10.27** (Python Brotli 1.2.0 → 1.2.1): `proven`, Update 43 s, peak 7.7 % anon. +- **zipline 4.8.0 → 4.8.2** (Node.js 24.21.0 → 24.22.1): `proven`, Update 111 s, peak 33.5 % anon. +- **Not in this batch:** adventurelog v0.13.1 (the walk read `unhealthy` 20 s after the Update finished — being + re-walked) and papra 26.7.1 (the fixture could not seed: Papra refuses a POST with no `Origin`, + `MISSING_OR_NULL_ORIGIN`). +- **`scripts/upgrade_fixtures_box.py`:** the Papra fixture sends `Origin: https://papra.` on sign-up and + sign-in, as the other better-auth fixtures do. + ## 2026-10-28 (day, attended) — HTTP2Shell: Immich security-fix step v3.2.4 → v3.3.5; the power-cut repair re-proven on v3.3.5 (felhom.eu R-1322, R-1332) Pushed on the operator's yes at the Immich STOP. diff --git a/REPORT.md b/REPORT.md index 9221b77..48167e7 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,14 +1,16 @@ -# REPORT — 2026-10-28: Immich security-fix step v3.2.4 → v3.3.5 (HTTP2Shell, CVE-2026-111497) +# REPORT — 2026-10-28: HTTP2Shell lane batch 1 — Ghost, MeTube, Zipline security-fix steps (CVE-2026-111497) -**What changed.** Immich v3.2.4 → v3.3.5 as a security-fix step (its image's Node.js 24.21.0 → 24.22.1). The -power-cut repair's image list names v3.3.5 too. Pushed on the operator's yes. (Earlier today: Home Assistant 2026.10.4 -and Wanderer hidden, `b5b78f6`.) +**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. -**Proof.** Box walk on 9202, 2026-10-27 night: `proven` (felhom.eu `audits/http2shell-2026-10-27/walks/immich/`). The -repair on v3.3.5, 9202 today: 4 of 4 broken thumbnails rebuilt in 2.6 s, 0 of 52 controls changed, the deleted original -reported (`audits/runtime-fixes-2026-10-28/immich-repair/`). A first run of the check counted the damaged photos' -own previews as controls (4 „rewritten"); the count was fixed and the run repeated — that file is kept beside it. +**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. -**Gates.** `catalog_gates.py --fast immich`: all OK (`unclean-boot-images` included). +**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. Findings go to felhom.eu `OPEN-ITEMS.md` (R-391). diff --git a/scripts/upgrade_fixtures_box.py b/scripts/upgrade_fixtures_box.py index 1f67136..fca6851 100644 --- a/scripts/upgrade_fixtures_box.py +++ b/scripts/upgrade_fixtures_box.py @@ -1449,8 +1449,9 @@ class Papra: return None email = f"drill-{secrets.token_hex(4)}@gate.invalid" pw = "Drill-" + secrets.token_hex(10) + # Papra 26.7 (better-auth) refuses a POST with no Origin: MISSING_OR_NULL_ORIGIN (measured 2026-10-28) rc, code, body = w.app_curl(sub, "/api/auth/sign-up/email", - "-H", "Content-Type: application/json", + "-H", "Content-Type: application/json", "-H", f"Origin: https://{sub}.{w.DOMAIN}", data=json.dumps({"email": email, "password": pw, "name": "drill"}), method="POST") say(f" papra: sign-up http={code}") @@ -1464,7 +1465,7 @@ class Papra: return False def signin(p): return w.app_curl(sub, "/api/auth/sign-in/email", - "-H", "Content-Type: application/json", + "-H", "Content-Type: application/json", "-H", f"Origin: https://{sub}.{w.DOMAIN}", data=json.dumps({"email": t["email"], "password": p}), method="POST") rc, code, _ = signin("wrong-" + secrets.token_hex(6)) if code == "200": diff --git a/templates/ghost/.felhom.yml b/templates/ghost/.felhom.yml index a716e5f..b971ad7 100644 --- a/templates/ghost/.felhom.yml +++ b/templates/ghost/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "blog" slug: "ghost" # 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-28" # Bare "/" is the public blog; the admin panel / setup wizard lives at /ghost/. open_path: "/ghost/" @@ -214,6 +214,7 @@ update_ladder: - {"from": {"ghost": "ghost:6.53.0-alpine"}, "to": {"ghost": "ghost:6.64.0-alpine"}, "digest": {"ghost": "sha256:47ecbe856dd06dcd20cb9410e1c4d532fc085eba776cfabc203609c7d15d8320"}, "verdict": "proven", "tested_at": "2026-09-22T13:11:12.069214+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/the-28-2026-09-22/apps/ghost/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 acbfafa; 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": {"ghost": "ghost:6.64.0-alpine"}, "to": {"ghost": "ghost:6.65.0-alpine"}, "digest": {"ghost": "sha256:65788e5e2c5478319f8fc65ac12816dbc941d1a9c834c87190cf1d2d1b79d4e2"}, "verdict": "proven", "tested_at": "2026-09-23T19:32:30Z", "harness_version": 3, "evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/ghost/bench/evidence/MV-ghost/verdict.json", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/ghost/verdict.json", "memory_peak_pct": 24.9, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 43.3} - {"from": {"ghost": "ghost:6.65.0-alpine"}, "to": {"ghost": "ghost:6.67.0-alpine"}, "digest": {"ghost": "sha256:1f7ecf094d54363014636c3540dbe9c368394504abaa283914e4fcf8d699f331"}, "verdict": "proven", "tested_at": "2026-09-30T15:42:18Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/ghost/bench/evidence/MV-ghost/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/ghost/step.txt", "memory_peak_pct": 26.7, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 33.9} + - {"from": {"ghost": "ghost:6.67.0-alpine"}, "to": {"ghost": "ghost:6.73.0-alpine"}, "digest": {"ghost": "sha256:4195f6c405e40230cd10c0770425cf500c1f542a96e9f6584c11649c150e5a89"}, "verdict": "security_fix", "tested_at": "2026-10-28T07:30:36Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/runtime-fixes-2026-10-28/walks/ghost", "memory_peak_pct": 21.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": "6.73.0-alpine"}, "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/ghost/docker-compose.yml b/templates/ghost/docker-compose.yml index 6961d3e..92d6992 100644 --- a/templates/ghost/docker-compose.yml +++ b/templates/ghost/docker-compose.yml @@ -8,7 +8,7 @@ services: ghost: - image: ghost:6.67.0-alpine + image: ghost:6.73.0-alpine container_name: ghost restart: unless-stopped environment: diff --git a/templates/ghost/steps/38d079ee2e9fa927.felhom.yml b/templates/ghost/steps/38d079ee2e9fa927.felhom.yml new file mode 100644 index 0000000..27093e2 --- /dev/null +++ b/templates/ghost/steps/38d079ee2e9fa927.felhom.yml @@ -0,0 +1,208 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Ghost" +description: "Professzionális blog és hírlevél platform" +category: "productivity" +subdomain: "blog" +slug: "ghost" +# 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" +# Bare "/" is the public blog; the admin panel / setup wizard lives at /ghost/. +open_path: "/ghost/" + +# --- Resource hints (displayed on deploy screen) --- +resources: + mem_request: "150M" + mem_limit: "512M" + 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: "blog" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + +# --- 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 +# measured on 9202 2026-09-29: before the setup {"setup":[{"status":false}]}, after {"setup":[{"status":true}]}. +setup_done_probe: + url: http://ghost:2368/ghost/api/admin/authentication/setup/ + field: setup.0.status + done: "true" + +# --- App info (info page content) --- +app_info: + tagline: "Professzionális blog és hírlevél platform" + docs_url: "https://ghost.org/docs/" + + use_cases: + - 'Professzionális blog indítása és üzemeltetése' + - 'Hírlevél küldés beépített email funkcióval' + - 'SEO-optimalizált tartalom publikálás' + - 'Tagság és fizetős tartalom kezelés' + - 'Markdown és vizuális szerkesztő' + + first_steps: + - 'Nyisd meg a blog.DOMAIN/ghost/ címet a böngészőben' + - 'Hozd létre az admin fiókot a beállítás varázslóban' + - 'Írd meg és publikáld az első posztodat' + - 'Személyre szabd a témát és beállításokat' + + prerequisites: + - 'x86 processzor szükséges' + guide: + checked_version: "6.67.0-alpine" + sections: + - title: "Bejegyzés képekkel" + intro: "Egy bejegyzésbe képet is tehetsz, és megadhatod, mikor jelenjen meg." + steps: + - "A bal oldali menüben kattints a „Posts” (Bejegyzések) pontra, majd a „New post” (Új bejegyzés) gombra." + - "Írd be a címet és a szöveget. Egy üres sor elején kattints a + jelre, és válaszd az „Image” (Kép) kártyát." + - "A „Preview” (Előnézet) gombbal megnézed, hogyan látják majd az olvasók." + - "Kattints a „Publish” (Közzététel) gombra. Ha később jelenjen meg, válaszd a „Schedule for later” (Időzítés későbbre) lehetőséget, és add meg a napot és az órát." + - "Kövesd a lépéseket a végső jóváhagyásig: a bejegyzés megjelenik, vagy a megadott időben jelenik meg." + - title: "Rólunk oldal és menü" + intro: "Az oldal olyan írás, amely nem kerül a bejegyzések közé, például egy bemutatkozás." + steps: + - "A bal oldali menüben kattints a „Pages” (Oldalak) pontra, majd a „New page” (Új oldal) gombra." + - "Írd meg az oldalt, és tedd közzé úgy, mint egy bejegyzést." + - "Nyisd meg a „Settings” (Beállítások) oldalt, és a „Navigation” (Navigáció) résznél kattints a „Customize” (Testreszabás) gombra." + - "Az üres sorba írd a menüpont nevét és az oldal címét a böngésző címsorából, majd kattints a „Save” (Mentés) gombra." + - title: "A blog neve és kinézete" + intro: "A blog nevét, logóját és színét te választod." + steps: + - "A „Settings” oldalon a „Title & description” (Cím és leírás) résznél kattints az „Edit” (Szerkesztés) gombra." + - "Írd be a blog nevét a „Site title” (A blog neve) mezőbe, majd kattints a „Save” gombra." + - "A „Design & branding” (Dizájn és arculat) résznél kattints a „Customize” gombra." + - "A „Brand” (Arculat) lapon töltsd fel a „Publication logo” (logó) képet, és válaszd ki az „Accent color” (kiemelő szín) értékét." + - "Kattints a „Save” gombra: a változás azonnal látszik a blogon." + - title: "Csak a családnak" + intro: "Ha a blogot csak a család olvassa, kóddal zárhatod le." + steps: + - "A „Settings” oldalon nyisd meg az „Access” (Hozzáférés) részt." + - "A „Who should be able to browse your site?” (Ki böngészheti a blogot?) mezőben válaszd a „Private” (Privát) értéket." + - "Írj be egy hozzáférési kódot, és kattints a „Save” gombra." + - "Add meg a kódot a családtagjaidnak: a blog.DOMAIN címen ezt kéri tőlük a blog." + faq: + - q: "Mi a különbség a blog.DOMAIN és a blog.DOMAIN/ghost cím között?" + a: "A blog.DOMAIN maga a blog, ezt látják az olvasók. A blog.DOMAIN/ghost a szerkesztőfelület, ide csak bejelentkezve jutsz be." + - q: "Hogyan javítok egy már megjelent bejegyzést?" + a: "Nyisd meg a bejegyzést a „Posts” listában, írd át, majd kattints az „Update” (Frissítés) gombra." + - q: "Küldhetek hírlevelet a Ghostból?" + a: "A hírlevélhez a Ghost egy külön levelezőszolgáltatást kér (Mailgun). A doboz ezt nem állítja be. A bejegyzések nélküle is megjelennek a blogon." + - q: "Lehet magyar nyelvű a blog?" + a: "Igen. A „Settings” oldal „Publication language” (a blog nyelve) részén a „Site language” mezőben válaszd a Hungarian nyelvet. A szerkesztőfelület angol marad." + - q: "Hol vannak a bejegyzéseim és a képeim?" + a: "A Ghost saját adattárában, a dobozon. A mentésüket az „Adatok és mentés” fülön látod." + - q: "Kérhet kódot a Ghost, ha másik eszközről lépek be?" + a: "Csak ha a Ghost „Beállítások” fülén be van kapcsolva az „Email-küldés engedélyezése ennél az alkalmazásnál”. Akkor új eszközön a Ghost egy 6 jegyű kódot küld a fiókod e-mail címére, és azt kell beírnod. Ha ki van kapcsolva, a jelszó elég." + +# --- App-email mapping (apps → in-controller shim → hub → Resend) --- +# R-1090 (2026-10-16): Ghost's new-device code goes by e-mail, so it is ON only with app e-mail. Ghost's mailer is +# nodemailer, which upgrades to STARTTLS whenever the server offers it and would refuse the shim's self-signed +# certificate — so it is pointed at the plaintext listener (:2526), as cal.com is. No user/password: the shim +# accepts no-auth on the Docker network. The extra turns the device check on with the mail settings. +smtp_mapping: + tls_mode: plaintext + host_var: GHOST_MAIL_HOST + port_var: GHOST_MAIL_PORT + from_var: GHOST_MAIL_FROM + from_local: ghost + extra: + GHOST_STAFF_DEVICE_VERIFICATION: "true" + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: http + port: 2368 + +# --- 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 blog and newsletter platform' + app_info: + tagline: 'A professional blog and newsletter platform' + use_cases: + - 'Start and run a professional blog' + - 'Send a newsletter with the built-in e-mail feature' + - 'Publish content that search engines can read' + - 'Memberships and paid content' + - 'A Markdown editor and a visual one' + first_steps: + - 'Open blog.DOMAIN/ghost/ in your browser' + - 'Create the admin account in the setup wizard' + - 'Write and publish your first post' + - 'Make the theme and the settings your own' + prerequisites: + - 'An x86 processor is needed' + guide: + sections: + - title: "A post with pictures" + intro: "You can put pictures into a post and choose when it comes out." + steps: + - "In the menu on the left, select „Posts”, then the „New post” button." + - "Type the title and the text. At the start of an empty line, select the + sign and choose the „Image” card." + - "„Preview” shows you how readers will see it." + - "Select „Publish”. If it should come out later, choose „Schedule for later” and set the day and the hour." + - "Follow the steps to the final confirmation: the post comes out now, or at the time you set." + - title: "An About page and the menu" + intro: "A page is writing that does not go among the posts, for example an introduction." + steps: + - "In the menu on the left, select „Pages”, then the „New page” button." + - "Write the page and publish it the same way as a post." + - "Open the „Settings” page, and at „Navigation” select „Customize”." + - "In the empty row, type the name of the menu item and the page's address from the browser's address bar, then select „Save”." + - title: "The blog's name and look" + intro: "You choose the blog's name, logo and colour." + steps: + - "On the „Settings” page, at „Title & description”, select „Edit”." + - "Type the blog's name in „Site title”, then select „Save”." + - "At „Design & branding”, select „Customize”." + - "On the „Brand” tab, upload a „Publication logo” and choose the „Accent color”." + - "Select „Save”: the change shows on the blog at once." + - title: "For the family only" + intro: "If only the family reads the blog, you can lock it with a code." + steps: + - "On the „Settings” page, open „Access”." + - "In „Who should be able to browse your site?”, choose „Private”." + - "Type an access code and select „Save”." + - "Give the code to your family: the blog asks them for it at blog.DOMAIN." + faq: + - q: "What is the difference between blog.DOMAIN and blog.DOMAIN/ghost?" + a: "blog.DOMAIN is the blog itself, the part readers see. blog.DOMAIN/ghost is the editing side, and only a signed-in person gets in there." + - q: "How do I correct a post that is already out?" + a: "Open the post in the „Posts” list, change it, then select „Update”." + - q: "Can I send a newsletter from Ghost?" + a: "For a newsletter, Ghost asks for a separate mail service (Mailgun). The box does not set it up. Posts still come out on the blog without it." + - q: "Can the blog be in Hungarian?" + a: "Yes. On the „Settings” page, at „Publication language”, choose Hungarian in „Site language”. The editing side stays in English." + - q: "Where are my posts and pictures?" + a: "In Ghost's own data store, on the box. You see their backup on the „Data and backup” tab." + - q: "Can Ghost ask for a code when I sign in on another device?" + a: "Only when „Allow sending e-mail for this app” is on in Ghost's „Settings” tab. Then on a new device Ghost sends a 6-digit code to your account's e-mail address, and you type it in. When it is off, the password is enough." + 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/ghost/steps/38d079ee2e9fa927.yml b/templates/ghost/steps/38d079ee2e9fa927.yml new file mode 100644 index 0000000..6961d3e --- /dev/null +++ b/templates/ghost/steps/38d079ee2e9fa927.yml @@ -0,0 +1,67 @@ +# Ghost - Professzionális blog és hírlevél platform +# 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) + +services: + ghost: + image: ghost:6.67.0-alpine + container_name: ghost + restart: unless-stopped + environment: + - TZ=Europe/Budapest + - NODE_ENV=production + - url=https://${SUBDOMAIN}.${DOMAIN} + - database__client=sqlite3 + - database__connection__filename=content/data/ghost.db + # NEW-DEVICE SIGN-IN (R-1090). Ghost 6.67.0 sends a 6-digit code by e-mail when staff sign in on a + # device it has not seen (`security.staffDeviceVerification`, default true: ghost/core/core/shared/ + # config/defaults.json:30; read at core/server/services/auth/session/index.js:65; only the very first + # sign-in skips it, core/server/api/endpoints/session.js:27). With no mail configured that sign-in + # fails with 500 „Failed to send email" — measured on demo-hp 9201 2026-10-16: the third client was + # locked out (felhom.eu audits/romm-ghost-2026-10-16/C1). So the check is OFF unless the household + # has app e-mail on: `.felhom.yml` smtp_mapping.extra turns it on together with the mail settings + # (the Vaultwarden _ENABLE_SMTP pattern). Ghost parses env values (`parseValues: true`, loader.ts:38), + # so "true"/"false" arrive as booleans. + - security__staffDeviceVerification=${GHOST_STAFF_DEVICE_VERIFICATION:-false} + # App e-mail (empty unless the controller injects them): the on-box shim, plaintext listener. + - mail__transport=SMTP + - mail__options__host=${GHOST_MAIL_HOST:-} + - mail__options__port=${GHOST_MAIL_PORT:-} + - mail__options__secure=false + - mail__from=${GHOST_MAIL_FROM:-} + volumes: + - ghost_content:/var/lib/ghost/content + networks: + - traefik-public + deploy: + resources: + limits: + memory: 512M + healthcheck: + test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:2368/',r=>{process.exit(r.statusCode<400?0:1)}).on('error',()=>process.exit(1))"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.ghost.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.ghost-xff.headers.customrequestheaders.X-Forwarded-For=" + - "traefik.http.routers.ghost.middlewares=ghost-xff" + - "traefik.http.routers.ghost.entrypoints=websecure" + - "traefik.http.routers.ghost.tls=true" + - "traefik.http.routers.ghost.tls.certresolver=letsencrypt" + - "traefik.http.services.ghost.loadbalancer.server.port=2368" + +volumes: + ghost_content: + +networks: + traefik-public: + external: true diff --git a/templates/metube/.felhom.yml b/templates/metube/.felhom.yml index b40160f..bd062e0 100644 --- a/templates/metube/.felhom.yml +++ b/templates/metube/.felhom.yml @@ -13,7 +13,7 @@ subdomain: "video" slug: "metube" # 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-02" +catalog_since: "2026-10-28" # --- The family gate (controller >= 0.287.0) --- family_gate: true @@ -203,6 +203,7 @@ i18n: # gated by scripts/check-test-record.py. An image: move without a proven entry here is refused. update_ladder: - {"from": {"metube": "ghcr.io/alexta69/metube:2026.09.28"}, "to": {"metube": "ghcr.io/alexta69/metube:2026.09.29"}, "digest": {"metube": "sha256:8e2fe9beeefc55a02f6e1d04cad0fc3c22e8f067d309188f016551dc99ec27b3"}, "verdict": "proven", "tested_at": "2026-10-02T06:31:05Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/family-gate-2026-10-02/C-metube-bench/move/evidence/MV-metube/verdict.json", "box_evidence": "felhom.eu/documentation/audits/family-gate-2026-10-02/B/box/box-verdict-metube.json", "memory_peak_pct": 28.1, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 100.5} + - {"from": {"metube": "ghcr.io/alexta69/metube:2026.09.29"}, "to": {"metube": "ghcr.io/alexta69/metube:2026.10.27"}, "digest": {"metube": "sha256:845a67373a9f9e62b88e5f9067867202200d63db3615a051acbd77b09e86b9ce"}, "verdict": "security_fix", "tested_at": "2026-10-28T07:44:58Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/runtime-fixes-2026-10-28/walks/metube", "memory_peak_pct": 7.7, "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": "2026.10.27"}, "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/metube/docker-compose.yml b/templates/metube/docker-compose.yml index b67d422..b8f6822 100644 --- a/templates/metube/docker-compose.yml +++ b/templates/metube/docker-compose.yml @@ -17,7 +17,7 @@ services: metube: - image: ghcr.io/alexta69/metube:2026.09.29 + image: ghcr.io/alexta69/metube:2026.10.27 container_name: metube restart: unless-stopped environment: diff --git a/templates/metube/steps/8a70e3c32c7582da.felhom.yml b/templates/metube/steps/8a70e3c32c7582da.felhom.yml new file mode 100644 index 0000000..586f4b3 --- /dev/null +++ b/templates/metube/steps/8a70e3c32c7582da.felhom.yml @@ -0,0 +1,199 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= +# MeTube — ghcr.io/alexta69/metube, a web interface for yt-dlp. Onboarding record: onboarding/metube.md. It has NO login +# of its own (upstream: "deliberately has no login system"), so it is offered ONLY behind the family gate (`09` §3 +# decisions 63/64). FIT.md: was "stop — no login at all"; now "build behind the family gate". + +# --- Display info (shown on dashboard) --- +display_name: "MeTube" +description: "Videók és hanganyagok letöltése a meghajtódra, a család számára" +category: "media" +subdomain: "video" +slug: "metube" +# 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-02" + +# --- The family gate (controller >= 0.287.0) --- +family_gate: true +min_controller: "0.287.0" + +# --- Resource hints (displayed on deploy screen) --- +resources: + mem_request: "128M" + mem_limit: "768M" # metube 768M + pi_compatible: true + needs_hdd: true + +# --- Backup classification --- +backup: + userdata: + - path: media/metube + class: optional # D44 #25 (operator 2026-10-25, R-1283): a video may be gone from its source site — the second-drive copy carries it, off-site does not + +# --- Customer-facing folder annotation (R-75) --- +data_paths: + - path: media/metube + root: userdata + role: library + label: "Letöltött videók (MeTube)" + +# --- 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: "video" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: HDD_PATH + label: "Letöltések meghajtója" + type: path + required: true + placeholder: "/mnt/felhom-drives/hdd_1" + locked_after_deploy: true + description: "A meghajtó, amelyre a letöltések kerülnek" + +# --- Customer-facing info --- +app_info: + tagline: "Videók és hanganyagok letöltése egy linkből - csak a családodnak" + login_kind: none # controller >= 0.320.0: no sign-in of its own (FIRST-ADMIN.md class 5) + add_people: "A családtagokat a Beállítások, Biztonság oldal Család kártyáján adod hozzá; mindenki a saját nevével és jelszavával lép be." + docs_url: "https://github.com/alexta69/metube" + use_cases: + - 'Egy videó vagy lejátszási lista letöltése a linkjéből, videóként vagy csak hangként' + - 'A letöltések a meghajtódra kerülnek, a fájlböngészőben és a médialejátszódban is látod őket' + - 'Csak a családtagjaid érik el: idegen nem tud letölteni a háztartásod internetcíméről' + first_steps: + - 'Add hozzá a családtagjaidat a Beállítások, Biztonság oldal Család kártyáján' + - 'Nyisd meg a video.DOMAIN címet, és lépj be a családi neveddel' + - 'Illessz be egy linket, válaszd ki a minőséget, és indítsd el a letöltést' + - 'Csak saját használatra: csak olyan videót tölts le, amelyhez jogod van (például a sajátodat vagy szabad felhasználásút). A letöltés a háztartásod internetcíméről történik.' + prerequisites: + - 'A letöltés a háztartásod internetkapcsolatát használja; egy videószolgáltató ritkán korlátozhatja a sok letöltést egy címről' + guide: + checked_version: "2026.09.29" + sections: + - title: "Csak a hang letöltése" + intro: "Egy előadásból vagy a saját fellépésed felvételéből sokszor elég a hang." + steps: + - "Illeszd be a linket, mint egy videónál." + - "A „Type” (típus) mezőben válaszd az „Audio” (hang) lehetőséget." + - "A „Format” (formátum) mezőben válaszd az „MP3” lehetőséget, a „Quality” (minőség) mezőben például a „192 kbps” értéket." + - "Kattints a „Download” (letöltés) gombra." + - title: "Hol vannak a kész fájlok?" + intro: "Minden letöltés a meghajtód media/metube mappájába kerül." + steps: + - "A „Downloading” (folyamatban) részben látod, mi töltődik éppen." + - "A kész letöltések a „Completed” (kész) részbe kerülnek. A sor végén lévő letöltés ikonnal a saját gépedre is lementheted a fájlt." + - "A fájlokat a fájlböngészőben is megtalálod, a meghajtó media/metube mappájában." + - "Ha a „Completed” részből törölsz egy sort, a fájl a meghajtón marad." + - title: "Saját mappába rendezés" + intro: "Az összetartozó letöltéseket külön mappába teheted, például egy nyaralás videóit." + steps: + - "Kattints az „Advanced Options” (további beállítások) gombra." + - "A „Download Folder” (letöltési mappa) mezőben válassz egy meglévő mappát, vagy írj be egy új nevet, például nyaralas-2026." + - "Indítsd el a letöltést: a fájl a media/metube mappán belül ebbe a mappába kerül." + - title: "Lejátszási lista letöltése" + intro: "Egy teljes lejátszási listát is letölthetsz, például a saját csatornád felvételeit." + steps: + - "Illeszd be a lejátszási lista linkjét." + - "Az „Advanced Options” alatt az „Items Limit” (elemek száma) mezőben megadhatod, legfeljebb hány elemet töltsön le. A 0 azt jelenti: mindet." + - "Kattints a „Download” gombra. Az elemek egymás után töltődnek le." + faq: + - q: "Miért áll egy letöltés „Queued” (sorban áll) állapotban?" + a: "A doboz úgy állította be, hogy egyszerre két letöltés fusson. A többi sorban vár, és magától elindul." + - q: "Ki látja a letöltéseimet?" + a: "Minden belépett családtag ugyanazt a listát és ugyanazt a mappát látja. A MeTube-ban nincsenek külön fiókok." + - q: "Hibára futott egy letöltés. Mit tegyek?" + a: "Próbáld újra később. A videószolgáltató időnként korlátozza a sok letöltést egy internetcímről." + - q: "Mit tölthetek le?" + a: "Csak olyat, amihez jogod van: például a saját felvételeidet vagy szabad felhasználású tartalmat." + - q: "Hol látom, mi kerül mentésbe?" + a: "A vezérlőpulton, a MeTube „Adatok és mentés” fülén." + +# --- Controller health probe (dials what the compose healthcheck dials) --- +healthcheck: + checks: + - type: http + port: 8081 + +i18n: + en: + description: 'Download videos and audio to your drive, for your family' + app_info: + tagline: 'Download videos and audio from a link - for your family only' + add_people: 'You add family members on the Family card of Settings, Security; everyone signs in with their own name and password.' + use_cases: + - 'Download a video or a playlist from its link, as video or audio only' + - 'The downloads go to your drive; you see them in the file browser and your media player' + - 'Only your family members reach it: a stranger cannot download through your household''s internet address' + first_steps: + - 'Add your family members on the Family card of Settings, Security' + - 'Open video.DOMAIN and sign in with your family name' + - 'Paste a link, pick the quality, and start the download' + - 'For your own use only: download only videos you have the right to (for example your own, or freely licensed ones). Downloads go out from your household''s internet address.' + prerequisites: + - 'Downloads use your household''s internet connection; a video service may now and then limit many downloads from one address' + guide: + sections: + - title: "Download only the audio" + intro: "From a talk or a recording of your own performance, the audio is often enough." + steps: + - "Paste the link, as for a video." + - "In „Type”, choose „Audio”." + - "In „Format”, choose „MP3”, and in „Quality”, for example „192 kbps”." + - "Select „Download”." + - title: "Where are the finished files?" + intro: "Every download goes into the media/metube folder of your drive." + steps: + - "The „Downloading” part shows what is downloading now." + - "Finished downloads move to the „Completed” part. With the download icon at the end of the row, you can also save the file to your own computer." + - "You also find the files in the file browser, in the drive's media/metube folder." + - "If you remove a row from the „Completed” part, the file stays on the drive." + - title: "Sort into your own folder" + intro: "You can put downloads that belong together into their own folder, for example the videos of a holiday." + steps: + - "Select „Advanced Options”." + - "In „Download Folder”, choose an existing folder, or type a new name, for example holiday-2026." + - "Start the download: the file goes into this folder inside the media/metube folder." + - title: "Download a playlist" + intro: "You can download a whole playlist too, for example the recordings on your own channel." + steps: + - "Paste the link of the playlist." + - "Under „Advanced Options”, in „Items Limit”, you can set how many items it downloads at most. 0 means all of them." + - "Select „Download”. The items download one after the other." + faq: + - q: "Why is a download „Queued”?" + a: "The box set it up so that two downloads run at a time. The others wait in line and start by themselves." + - q: "Who sees my downloads?" + a: "Every family member who signs in sees the same list and the same folder. MeTube has no separate accounts." + - q: "A download failed. What do I do?" + a: "Try again later. A video service now and then limits many downloads from one internet address." + - q: "What may I download?" + a: "Only what you have the right to: for example your own recordings or freely licensed content." + - q: "Where do I see what is backed up?" + a: "On the dashboard, on MeTube's „Data and backup” tab." + data_paths: + - path: 'media/metube' + label: 'Downloaded videos (MeTube)' + deploy_fields: + - env_var: DOMAIN + label: 'Domain' + description: 'The server domain name' + - env_var: SUBDOMAIN + label: 'Subdomain' + description: 'The subdomain this app answers on' + - env_var: HDD_PATH + label: 'Downloads drive' + description: 'The drive the downloads go to' + placeholder: '/mnt/felhom-drives/hdd_1' diff --git a/templates/metube/steps/8a70e3c32c7582da.yml b/templates/metube/steps/8a70e3c32c7582da.yml new file mode 100644 index 0000000..b67d422 --- /dev/null +++ b/templates/metube/steps/8a70e3c32c7582da.yml @@ -0,0 +1,59 @@ +# MeTube - Videoletöltő (yt-dlp webes felülete): videók és hanganyagok letöltése a meghajtódra +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: none (its queue and history are files in the state volume) +# RAM: ~150M idle, more while downloading (mem_limit: 768M) | Pi-compatible: Yes (amd64, arm64) +# +# MeTube has NO login of its own, by design. On Felhom it is published ONLY behind the family gate (`family_gate: true`, +# controller >= 0.287.0, `09` §3 decisions 63/64): a stranger reaches nothing, a family member signs in with their own +# name and password. No exceptions — every path, the websocket included, passes the gate. +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# HDD_PATH - The drive the downloads go to +# +# Folders: the downloads in ${USERDATA_PATH}/media/metube (the household sees them in the file browser); the queue and +# history in the named volume metube_state (NVMe). ALLOW_PRIVATE_ADDRESSES stays false (upstream default): MeTube will +# not fetch from the household's own network. + +services: + metube: + image: ghcr.io/alexta69/metube:2026.09.29 + container_name: metube + restart: unless-stopped + environment: + - TZ=Europe/Budapest + - PUID=1000 + - PGID=1000 + - DOWNLOAD_DIR=/downloads + - STATE_DIR=/state + - MAX_CONCURRENT_DOWNLOADS=2 + - ALLOW_PRIVATE_ADDRESSES=false + volumes: + - ${USERDATA_PATH}/media/metube:/downloads + - metube_state:/state + networks: + - traefik-public + deploy: + resources: + limits: + memory: 768M + healthcheck: + test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8081/"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.metube.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.metube.entrypoints=websecure" + - "traefik.http.routers.metube.tls=true" + - "traefik.http.routers.metube.tls.certresolver=letsencrypt" + - "traefik.http.services.metube.loadbalancer.server.port=8081" + +volumes: + metube_state: + +networks: + traefik-public: + external: true diff --git a/templates/zipline/.felhom.yml b/templates/zipline/.felhom.yml index 2036db6..ecd6268 100644 --- a/templates/zipline/.felhom.yml +++ b/templates/zipline/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "img" slug: "zipline" # 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-28" # --- Resource hints (displayed on deploy screen) --- resources: @@ -211,6 +211,7 @@ i18n: update_ladder: - {"from": {"zipline": "ghcr.io/diced/zipline:4.6.1", "zipline-postgres": "postgres:16-alpine"}, "to": {"zipline": "ghcr.io/diced/zipline:4.7.0", "zipline-postgres": "postgres:16-alpine"}, "digest": {"zipline": "sha256:526fa08d2d3cf46bd959b2008987ca8d2a38b1ba840991b68cd9ff4b8c6a3fab", "zipline-postgres": "sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea"}, "verdict": "proven", "tested_at": "2026-09-30T18:04:58Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/zipline/bench/evidence/MV-zipline/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/zipline/step.txt", "memory_peak_pct": 41.7, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 56.8} - {"from": {"zipline": "ghcr.io/diced/zipline:4.7.0", "zipline-postgres": "postgres:16-alpine"}, "to": {"zipline": "ghcr.io/diced/zipline:4.8.0", "zipline-postgres": "postgres:16-alpine"}, "digest": {"zipline": "sha256:8ae3cdf8cdbba2ac98754e9fc4ccec67bbaa86b6e6ab1ccf9683ddcff85eee72", "zipline-postgres": "sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea"}, "verdict": "proven", "tested_at": "2026-09-30T18:22:10Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/zipline/bench/evidence/MV-zipline/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/zipline/step.txt", "memory_peak_pct": 34.3, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 54.0} + - {"from": {"zipline": "ghcr.io/diced/zipline:4.8.0", "zipline-postgres": "postgres:16-alpine"}, "to": {"zipline": "ghcr.io/diced/zipline:4.8.2", "zipline-postgres": "postgres:16-alpine"}, "digest": {"zipline": "sha256:cb3769f50a5887e38d678ab466656bd2a56f3ce96bc8a4d0788cc479d19c05c9", "zipline-postgres": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab"}, "verdict": "security_fix", "tested_at": "2026-10-28T08:05:35Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/runtime-fixes-2026-10-28/walks/zipline", "memory_peak_pct": 33.5, "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": "4.8.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/zipline/docker-compose.yml b/templates/zipline/docker-compose.yml index 7e1ef61..c7957a6 100644 --- a/templates/zipline/docker-compose.yml +++ b/templates/zipline/docker-compose.yml @@ -10,7 +10,7 @@ services: zipline: - image: ghcr.io/diced/zipline:4.8.0 + image: ghcr.io/diced/zipline:4.8.2 container_name: zipline restart: unless-stopped depends_on: diff --git a/templates/zipline/steps/0aaf0c6137f139a9.felhom.yml b/templates/zipline/steps/0aaf0c6137f139a9.felhom.yml new file mode 100644 index 0000000..b2c79fc --- /dev/null +++ b/templates/zipline/steps/0aaf0c6137f139a9.felhom.yml @@ -0,0 +1,206 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Zipline" +description: "ShareX/Flameshot szerver - screenshot és fájlmegosztás" +category: "files" +subdomain: "img" +slug: "zipline" +# 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: 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: "img" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: CORE_SECRET + 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 +# measured on 9202 2026-09-29: firstSetup true -> false once the first user exists (/api/setup itself answers 403 after the setup, so it cannot be the check). +setup_done_probe: + url: http://zipline:3000/api/server/public + field: firstSetup + done: "false" + +# --- App info (info page content) --- +app_info: + tagline: "Screenshot és fájlmegosztó szerver ShareX/Flameshot integrációval" + docs_url: "https://zipline.diced.sh/docs/" + + use_cases: + - 'Screenshotok automatikus feltöltése ShareX/Flameshot-ból' + - 'URL rövidítés és szöveg megosztás (paste)' + - 'Galéria nézet és album kezelés' + - 'API támogatás egyedi integrációkhoz' + - 'Felhasználói fiókok és meghívó rendszer' + + first_steps: + - 'Nyisd meg az img.DOMAIN címet a böngészőben' + - 'Az első megnyitáskor hozd létre az admin fiókodat' + - 'Konfiguráld a ShareX-et vagy Flameshot-ot az API URL-lel' + - 'Tölts fel egy screenshot-ot a teszteléshez' + + prerequisites: + - 'ShareX (Windows) vagy Flameshot (Linux) ajánlott a screenshot feltöltéshez' + guide: + checked_version: "4.8.0" + sections: + - title: "Fájl küldése linkkel" + intro: "A feltöltött fájlhoz a Zipline linket ad, ezt elküldheted bárkinek." + steps: + - "A bal oldali menüben nyisd meg az „Upload” (feltöltés) menüt, és kattints a „File” (fájl) pontra." + - "Húzd a fájlt az oldalra, vagy kattints a mezőre, és válaszd ki." + - "Kattints a lenti feltöltés gombra." + - "A feltöltés után megjelenik a link: a másolás ikonnal vágólapra teszed, és elküldheted." + - title: "Fájl, ami magától törlődik" + intro: "Egy átmeneti fájlnál beállíthatod, hogy egy idő után eltűnjön, vagy jelszót kérjen." + steps: + - "A feltöltés oldalán kattints az „Options” (beállítások) gombra." + - "Az „Upload Options” ablakban válaszd ki, mennyi idő múlva törlődjön a fájl, például: 1 week." + - "Ha csak az nyithassa meg, akinek megmondod, írj jelszót a „Password” (jelszó) mezőbe." + - "Kattints a „Close” (bezárás) gombra, és töltsd fel a fájlt. A beállítást a böngésződ megjegyzi a következő feltöltésre is." + - title: "Közös mappa a családnak" + intro: "Egy nyilvános mappában egy linkkel több fájlt is megoszthatsz, például a nyaralás képeit." + steps: + - "A „Folders” (mappák) oldalon kattints a mappa létrehozása gombra." + - "Írd be a „Name” (név) mezőt, kapcsold be a „Public” (nyilvános) kapcsolót, és kattints a „Create” (létrehozás) gombra." + - "Feltöltéskor az „Options” ablak „Add to a Folder” (mappába tétel) mezőjében válaszd ki ezt a mappát." + - "A mappa menüjében a „Copy URL” (link másolása) ponttal kapod meg a mappa linkjét." + - title: "Fiók a családtagnak" + intro: "Mindenki a saját fiókjával tölthet fel, így a fájlok nem keverednek." + steps: + - "A bal oldali menüben nyisd meg az „Administrator” (adminisztrátor) menüt, és kattints a „Users” (felhasználók) pontra." + - "Kattints a „Create” gombra." + - "Írd be a „Username” (felhasználónév) és a „Password” mezőt, a „Role” (szerep) mezőben hagyd a „User” (felhasználó) értéket." + - "Kattints a „Create” gombra, és add át a családtagnak a nevet és a jelszót." + faq: + - q: "Ki láthatja a feltöltött fájlt?" + a: "Bárki, akinek elküldöd a linket, bejelentkezés nélkül is. Ha ezt nem szeretnéd, feltöltés előtt adj meg jelszót az „Options” ablakban." + - q: "Mekkora fájlt tölthetek fel?" + a: "Alapból fájlonként legfeljebb 100 MB-osat." + - q: "Tudok rövid linket készíteni egy hosszú címből?" + a: "Igen: az „URLs” (linkek) oldalon kattints a „Create” gombra, másold be a címet az „URL” mezőbe, és kattints a „Create” gombra." + - q: "Elfelejtette a jelszavát a családtag. Mit tegyek?" + a: "A „Users” oldalon a családtag kártyájának menüjében kattints az „Edit” (szerkesztés) pontra, írj új jelszót a „Password” mezőbe, és kattints az „Update user” (mentés) gombra." + - q: "Miért angol a Zipline?" + a: "A Zipline csak angolul érhető el. Az útmutató ezért zárójelben megadja a feliratok jelentését." + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: api + port: 3000 + # /api/healthcheck, not /api/health: this probe is `api` WITH an expect + # block, so a 404 on the wrong path reads as unhealthy. zipline's own compose healthcheck + # dials /api/healthcheck (R-618). + path: "/api/healthcheck" + expect: + status: 200 + +# --- English copy (localisation slice 5, R-560) -------------------------------------------- +# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing +# field shows the Hungarian one; a controller older than 0.257.0 ignores the block entirely. +i18n: + en: + description: 'A ShareX/Flameshot server - screenshots and file sharing' + app_info: + tagline: 'A screenshot and file sharing server that works with ShareX/Flameshot' + use_cases: + - 'Screenshots upload themselves from ShareX/Flameshot' + - 'Shorten a URL and share text (paste)' + - 'A gallery view and albums' + - 'An API, for integrations of your own' + - 'User accounts and invitations' + first_steps: + - 'Open img.DOMAIN in your browser' + - 'On the first visit, create your admin account' + - 'Point ShareX or Flameshot at the API address' + - 'Upload a screenshot to check it works' + prerequisites: + - 'ShareX (Windows) or Flameshot (Linux) is recommended for uploading screenshots' + guide: + sections: + - title: "Send a file with a link" + intro: "Zipline gives an uploaded file a link that you can send to anyone." + steps: + - "In the menu on the left, open „Upload” and select „File”." + - "Drag the file onto the page, or click the box and choose it." + - "Select the upload button at the bottom." + - "After the upload the link appears: the copy icon puts it on the clipboard so you can send it." + - title: "A file that deletes itself" + intro: "For a short-lived file you can set it to disappear after a while, or to ask for a password." + steps: + - "On the upload page, select „Options”." + - "In the „Upload Options” window, choose after how long the file deletes itself, for example: 1 week." + - "If only the people you tell should open it, type a password into „Password”." + - "Select „Close” and upload the file. Your browser remembers the setting for the next upload too." + - title: "A shared folder for the family" + intro: "In a public folder you can share several files with one link, for example the holiday photos." + steps: + - "On the „Folders” page, select the button that creates a folder." + - "Fill in „Name”, switch on „Public” and select „Create”." + - "When you upload, choose this folder in „Add to a Folder” in the „Options” window." + - "In the folder's menu, „Copy URL” gives you the folder's link." + - title: "An account for a family member" + intro: "Everyone uploads with their own account, so the files do not get mixed up." + steps: + - "In the menu on the left, open „Administrator” and select „Users”." + - "Select „Create”." + - "Fill in „Username” and „Password”, and leave „Role” on „User”." + - "Select „Create” and give the family member the name and the password." + faq: + - q: "Who can see an uploaded file?" + a: "Anyone you send the link to, even without signing in. If you do not want that, set a password in the „Options” window before you upload." + - q: "How big a file can I upload?" + a: "By default, up to 100 MB per file." + - q: "Can I make a short link from a long address?" + a: "Yes: on the „URLs” page select „Create”, paste the address into „URL” and select „Create”." + - q: "A family member forgot their password. What do I do?" + a: "On the „Users” page, in the menu of the family member's card, select „Edit”, type a new password into „Password” and select „Update user”." + - q: "Why is Zipline in English?" + a: "Zipline is only available in English. That is why the Hungarian guide gives the meaning of the labels in brackets." + 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: CORE_SECRET + label: 'Encryption key' diff --git a/templates/zipline/steps/0aaf0c6137f139a9.yml b/templates/zipline/steps/0aaf0c6137f139a9.yml new file mode 100644 index 0000000..7e1ef61 --- /dev/null +++ b/templates/zipline/steps/0aaf0c6137f139a9.yml @@ -0,0 +1,89 @@ +# Zipline - ShareX/Flameshot szerver - screenshot és fájlmegosztás +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: postgres +# RAM: ~100M (mem_limit: 512M) | Pi-compatible: No +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# CORE_SECRET - Titkosítási kulcs (auto-generated) +# DB_PASSWORD - Adatbázis jelszó (auto-generated) + +services: + zipline: + image: ghcr.io/diced/zipline:4.8.0 + container_name: zipline + restart: unless-stopped + depends_on: + zipline-postgres: + condition: service_healthy + environment: + - TZ=Europe/Budapest + - CORE_SECRET=${CORE_SECRET} + # R-776 (R-753, controller >= 0.286.0): Fastify's trustProxy with a CIDR list walks X-Forwarded-For from the RIGHT, + # skipping the docker networks — so the login limiter (7 / 10 s per address) keys on each VISITOR, not on traefik's + # one address for everybody. Never trustProxy=true without the list (that is the leftmost, client-written entry). + # measured on 9202 2026-10-06 with a control (checklist 3.6; felhom.eu audits/morning-after-2026-10-06/live-9202/). + - CORE_TRUST_PROXY=true + - CORE_TRUSTED_PROXIES=172.16.0.0/12 + # FIGYELEM: a v4 óta a DB változó neve DATABASE_URL (prefix NÉLKÜL), míg a + # CORE_SECRET megtartotta a prefixet. A régi CORE_DATABASE_URL nevet a v4 + # már nem ismeri fel, és indulás nélkül kilép: + # "No database environment variables found (DATABASE_URL or all of [...])" + - DATABASE_URL=postgresql://zipline:${DB_PASSWORD}@zipline-postgres:5432/zipline + volumes: + - zipline_uploads:/zipline/uploads + - zipline_public:/zipline/public + networks: + - traefik-public + - zipline-internal + deploy: + resources: + limits: + memory: 512M + healthcheck: + test: ["CMD", "node", "-e", "const http = require('http'); http.get('http://127.0.0.1:3000/api/healthcheck', (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.zipline.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.zipline.entrypoints=websecure" + - "traefik.http.routers.zipline.tls=true" + - "traefik.http.routers.zipline.tls.certresolver=letsencrypt" + - "traefik.http.services.zipline.loadbalancer.server.port=3000" + + zipline-postgres: + image: postgres:16-alpine + container_name: zipline-postgres + restart: unless-stopped + environment: + - POSTGRES_USER=zipline + - POSTGRES_PASSWORD=${DB_PASSWORD} + - POSTGRES_DB=zipline + - TZ=Europe/Budapest + volumes: + - zipline_postgres_data:/var/lib/postgresql/data + networks: + - zipline-internal + deploy: + resources: + limits: + memory: 256M + healthcheck: + test: ["CMD-SHELL", "pg_isready -U zipline -d zipline"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 20s + +volumes: + zipline_postgres_data: + zipline_public: + zipline_uploads: + +networks: + traefik-public: + external: true + zipline-internal: