diff --git a/CHANGELOG.md b/CHANGELOG.md index 08d1696..76352d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,38 @@ +## 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 +STOP. Each step: the box walk on scratch 9202 (drill catalog, the product's guarded Update, a 600 s soak) said +`proven`; the seed read back after the update (code-server: no seed — no script route into a browser IDE; its files +stay on the same volume). The night leg takes these steps on controller >= 0.341.0. + +| App | Step | Notice ids | Peak (anon, soak) | +|---|---|---|---| +| rallly | 4.15.3 → 4.16.3 | GHSA-gmq4-f8j5-8w8q, CVE-2026-111497 | 41.8 % | +| romm | 5.3.1 → 5.4.1 | GHSA-722m-w9p2-xv2j and three more (the entry lists them) | 59.2 % | +| code-server | 4.129.0 → 4.143.1 | CVE-2026-111497 (Node.js, October 2026) | 5.3 % | +| outline | 1.10.1 → 1.12.0 | GHSA-rq53-m97j-f2pg and more | 31.4 % | +| vikunja | 2.6.0 → 2.7.1 | GHSA-m687-p538-r5hp and more | 12.9 % | + +- **wishlist v0.67.1 → v0.69.0 — a NORMAL step** (bench 9401 + box 9202, both `proven`, seed read back): upstream fixed a + critical account takeover (`/forgot-password` returned the reset token in its own response) with no GHSA/CVE id, so + it cannot ride the lane. +- **Fixture `Rallly`** (`scripts/upgrade_fixtures_box.py`): 4.15 refuses a password sign-up + (`EMAIL_PASSWORD_SIGN_UP_DISABLED`) and a poll needs a space. The fixture now signs in with the e-mailed code + (`email-otp/send-verification-otp` + `sign-in/email-otp`, the code READ from the app's own table) and posts the /setup + page's own server action („Personal"; its build-specific id read from the app's server-reference-manifest). Measured + on 9202 (4.15.3): seed + read-back true, a wrong title reads false. The first walk was `inconclusive` (C1), not failed. +- **Fixture `_MediaServer`** (jellyfin, emby; `scripts/upgrade_fixtures_box28.py`): Jellyfin 10.11 makes the wizard's + first user only after `GET /Startup/User` (a POST before it is 404) and `/Users/Public` lists nobody. The seed GETs + first; the read-back is the household's sign-in (`/Users/AuthenticateByName`), and a wrong password must be refused. + Measured on the bench 2026-10-27 (10.11.11 → 12.4: 200 + token, wrong password 401). +- **Gate `privileges`** (`scripts/check-privileges.py`): a step's `steps/.felhom.yml` copy is not a compose file and + is no longer judged as one (the box reads it with its metadata reader; controller `stacks/image_retention.go` excludes + it the same way). Vikunja's copy was refused: `Tej *bolt.` in a quoted guide line read as a YAML alias. Decoy added + (`test_gate_decoys.py`, seen red first); the reader's scope check is now „every template's compose + step files" + instead of a count. +- Evidence: felhom.eu `documentation/audits/security-app-updates-2026-10-27/` (`walks//`, `bench/wishlist/`, + `walks/_negative-control/`: busybox as TO came back `failed`, the box undid it). + ## 2026-10-26 (night) — every template names where its security notices are published (felhom.eu R-1303) - **`upstream:` in all 65 `.felhom.yml`** — one line per image (97 pins): `github:OWNER/REPO` (its advisories and diff --git a/REPORT.md b/REPORT.md index 58df4a2..f0dae4a 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,15 +1,14 @@ -# REPORT — MeTube's downloads ride the second-drive copy (2026-10-26, attended release run) +# REPORT — security updates batch 1: five security-fix steps + Wishlist (2026-10-27, attended) -**Plain words first.** MeTube's downloaded videos are now in the second-drive copy (not in the off-site copy) — operator -ruling D44 #25, felhom.eu R-1283 (closed). Pushed on the operator's yes; Tester 1 read the new catalog commit at once. +**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. -- `73c165d`: `templates/metube/.felhom.yml` `media/metube` `excluded` → `optional`; `scripts/check-download-binds.py` - allows `optional` for a download folder only by a NAMED ruling (`OPTIONAL_BY_RULING`: metube); decoys in - `scripts/test_gate_decoys.py` (optional by ruling passes; mandatory and unlisted are refused). Ported byte for byte - from drill `6733764` (the three files equalled the drill's parent). -- Gates: `catalog_gates.py --fast` green; the decoy suite green. -- Live: Tester 1 `POST /api/sync` → „catalog moved cd0cf48fabd4 -> 73c165d60f63 … frissítve: metube", and the box's - MeTube folder class reads `optional`. The video in the second-drive copy was proven on the drill rig - (felhom.eu `documentation/audits/night-2026-10-25/rig/r1283-live.txt`). +- 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. -Evidence: felhom.eu `documentation/audits/release-monday-2026-10-26/r1283-catalog-sync.txt`. +Evidence: felhom.eu `documentation/audits/security-app-updates-2026-10-27/`. diff --git a/scripts/check-privileges.py b/scripts/check-privileges.py index 841c9ea..1874e46 100644 --- a/scripts/check-privileges.py +++ b/scripts/check-privileges.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- """check-privileges.py — no template asks for container rights the box's allow-list does not give (R-971). - python3 scripts/check-privileges.py # every templates//docker-compose.yml and steps/*.yml + python3 scripts/check-privileges.py # every templates//docker-compose.yml and steps/*.yml (not steps/*.felhom.yml) python3 scripts/check-privileges.py --root DIR # another checkout (the decoy harness) WHY (R-971, operator decision D2 = A, 2026-10-17). A push to this repo's `main` reaches every installed app within @@ -516,7 +516,11 @@ def judge_files(root): for d, _, fs in os.walk(tdir): for f in sorted(fs): p = os.path.join(d, f) - if f == "docker-compose.yml" or (os.path.basename(d) == "steps" and f.endswith(".yml")): + # a step's own `.felhom.yml` copy (steps/.felhom.yml) is not a compose file: the box reads it with its + # metadata reader, never through the allow-list (felhom-controller stacks/image_retention.go excludes it the + # same way); judged as compose, a `*word` in a quoted guide line read as a YAML alias (2026-10-27, vikunja) + if f == "docker-compose.yml" or (os.path.basename(d) == "steps" and f.endswith(".yml") + and not f.endswith(".felhom.yml")): files.append(p) return tdir, sorted(files) diff --git a/scripts/test_gate_decoys.py b/scripts/test_gate_decoys.py index bee48da..b01212d 100644 --- a/scripts/test_gate_decoys.py +++ b/scripts/test_gate_decoys.py @@ -982,6 +982,9 @@ def privileges_cases(): run("DECOY: privileged: false", {"a/docker-compose.yml": compose(" privileged: false\n")}, 0) run("DECOY: no-new-privileges (a hardening)", {"a/docker-compose.yml": compose(" security_opt:\n - no-new-privileges:true\n")}, 0) run("DECOY: the docker socket only in a COMMENT", {"a/docker-compose.yml": compose(vol=" # - /var/run/docker.sock:/var/run/docker.sock\n")}, 0) + run("DECOY: a step's .felhom.yml copy with `*word` in a quoted guide line (not a compose file)", + {"a/docker-compose.yml": compose(), "a/steps/0123456789abcdef.yml": compose(), + "a/steps/0123456789abcdef.felhom.yml": 'guide:\n - "Tej *bolt."\n'}, 0) run("GENUINE: homepage's allow-listed read-only socket", {"homepage/docker-compose.yml": homepage}, 0, list_body=hp_list) print("-- privileges: the facts (each MUST be refused)") run("FACT: privileged true", {"a/docker-compose.yml": compose(" privileged: true\n")}, 1, ("app: privileged true",)) @@ -1026,7 +1029,11 @@ def privileges_cases(): bad = [p for p in files if m.violations(yaml.safe_load(io.open(p, encoding="utf-8")), m.PLACEHOLDER_ENV) != m.violations(m.load(io.open(p, encoding="utf-8").read()), m.PLACEHOLDER_ENV)] ran += 1 - ok = len(files) >= 100 and not bad + # scope as a fact, not a count (2026-10-27: steps/*.felhom.yml left the set): EVERY template's compose is read, + # and step compose files too + composes = {os.path.join(ROOT, "templates", a, "docker-compose.yml") for a in os.listdir(os.path.join(ROOT, "templates")) + if os.path.isfile(os.path.join(ROOT, "templates", a, "docker-compose.yml"))} + ok = composes <= set(files) and any("/steps/" in p for p in files) and not bad print(" %s %-70s files=%d differ=%d" % ("ok" if ok else "XX", "READER: the stdlib reader equals PyYAML on the catalog", len(files), len(bad))) if not ok: fails.append("privileges reader differs from PyYAML on %s (files=%d)" % (bad[:5], len(files))) diff --git a/scripts/upgrade_fixtures_box.py b/scripts/upgrade_fixtures_box.py index bc27476..525a9c4 100644 --- a/scripts/upgrade_fixtures_box.py +++ b/scripts/upgrade_fixtures_box.py @@ -1751,6 +1751,11 @@ class Rallly: pw = "Drill-" + secrets.token_hex(10) rc, code, out = self._auth(w, sub, "sign-up/email", {"email": email, "password": pw, "name": "Drill"}) say(f" rallly: sign-up http={code}") + if code == "400" and "EMAIL_PASSWORD_SIGN_UP_DISABLED" in (out or ""): + ck = self._otp_sign_in(w, sub, email, say) # 4.15+: e-mail code only (measured 2026-10-27, 4.15.3) + if not ck or not self._setup_space(w, sub, ck, say): + return None + return self._make_poll(w, sub, ck, say) if code != "200": self.tried = f"POST /api/better-auth/sign-up/email -> {code}" return None @@ -1776,6 +1781,65 @@ class Rallly: if code != "200" or "session_token" not in ck: self.tried = f"POST /api/better-auth/sign-in/email -> {code}" return None + return self._make_poll(w, sub, ck, say) + + def _code(self, w, ident): + """The six-digit code Rallly stored for `ident` (a SELECT on its own `verifications` row, never a write).""" + for _ in range(10): + otp = w.guest("docker exec rallly-postgres psql -U rallly -d rallly -Atc " + f"\"select split_part(value,':',1) from verifications where identifier=" + f"'{ident}' order by created_at desc limit 1\" 2>&1").strip() + if re.fullmatch(r"\d{6}", otp): + return otp + time.sleep(2) + return None + + def _otp_sign_in(self, w, sub, email, say): + """Rallly >= 4.15 refuses a password sign-up (EMAIL_PASSWORD_SIGN_UP_DISABLED); the household signs in with an + e-mailed code, and the first sign-in makes the account: `email-otp/send-verification-otp` (type sign-in), the + code read from the app's own table, then `sign-in/email-otp`.""" + rc, code, out = self._auth(w, sub, "email-otp/send-verification-otp", {"email": email, "type": "sign-in"}) + say(f" rallly: e-mail code sign-in requested http={code}") + if code != "200": + self.tried = f"POST /api/better-auth/email-otp/send-verification-otp -> {code}" + return None + otp = self._code(w, f"sign-in-otp-{email}") + if not otp: + self.tried = "the sign-in code was not in the app's own verifications table" + say(" rallly: no sign-in code found in the app's own table") + return None + rc, code, out = self._auth(w, sub, "sign-in/email-otp", {"email": email, "otp": otp}) + ck = _set_cookies(out) + say(f" rallly: sign-in with the code http={code} session={'session_token' in ck}") + if code != "200" or "session_token" not in ck: + self.tried = f"POST /api/better-auth/sign-in/email-otp -> {code}" + return None + return ck + + def _setup_space(self, w, sub, ck, say): + """Rallly >= 4.15: a poll needs a space (`polls.make` -> 403 „You must be a member of a space"), which the new + user makes on the /setup page with the „Personal" choice. That page posts a Next.js server action whose id is + build-specific, so the id is READ from the app's own server-reference-manifest (a file read, never a write) and + the action is posted to /setup exactly as the page posts it: `[{"spaceType": "personal"}]`. Measured on 9202 + 2026-10-27 (4.15.3): 200 `1:{}`, then `polls.make` 200.""" + man = w.guest("docker exec rallly cat /app/apps/web/.next/server/server-reference-manifest.json 2>/dev/null") + try: + aid = [k for k, v in json.loads(man).get("node", {}).items() if v.get("exportedName") == "setupSpaceAction"][0] + except Exception: + self.tried = "no setupSpaceAction in the app's server-reference-manifest" + say(" rallly: the setup action was not found in the app's manifest") + return False + rc, code, out = w.app_curl(sub, "/setup", "-H", f"Cookie: {ck}", "-H", f"Next-Action: {aid}", + "-H", "Accept: text/x-component", "-H", "Content-Type: text/plain;charset=UTF-8", + "-H", f"Origin: https://{sub}.{w.DOMAIN}", data=json.dumps([{"spaceType": "personal"}]), + method="POST") + ok = code == "200" and "1:{}" in (out or "") + say(f" rallly: personal space set up http={code} ok={ok}") + if not ok: + self.tried = f"POST /setup (setupSpaceAction) -> {code} {(out or '')[-120:]}" + return ok + + def _make_poll(self, w, sub, ck, say): title = "drillpoll-" + secrets.token_hex(4) rc, code, out = w.app_curl(sub, "/api/trpc/polls.make", "-H", f"Cookie: {ck}", "-H", "Content-Type: application/json", "-H", f"Origin: https://{sub}.{w.DOMAIN}", diff --git a/scripts/upgrade_fixtures_box28.py b/scripts/upgrade_fixtures_box28.py index 8e8d80c..07aa8af 100644 --- a/scripts/upgrade_fixtures_box28.py +++ b/scripts/upgrade_fixtures_box28.py @@ -344,12 +344,20 @@ class Immich: class _MediaServer: - """jellyfin / emby — the startup wizard IS the front door on a fresh install.""" + """jellyfin / emby — the startup wizard IS the front door on a fresh install. + + Jellyfin 10.11 (measured on the bench 2026-10-27, 10.11.11): the wizard's first user exists only after + `GET /Startup/User` (a POST before it is 404), and `/Users/Public` lists nobody (`[]`). So the seed GETs first, + and the readback is the household's own sign-in, `POST /Users/AuthenticateByName`: the seeded password must give a + token AND a wrong one must be refused — the control that keeps an always-yes readback from passing.""" + AUTH = 'MediaBrowser Client="felhom-drill", Device="drill", DeviceId="felhom-drill", Version="1"' + def seed(self, w, sub, say): - if not w.wait_app(sub, "/", want=("200", "302"), tries=90): + if not w.wait_app(sub, "/System/Info/Public", want=("200",), tries=90): return None u = "drill" + secrets.token_hex(4) pw = "Drill-" + secrets.token_hex(8) + w.app_curl(sub, "/Startup/User") rc, code, out = w.app_curl(sub, "/Startup/User", "-H", "Content-Type: application/json", data=json.dumps({"Name": u, "Password": pw}), method="POST") if code not in ("200", "204"): @@ -358,17 +366,25 @@ class _MediaServer: return None w.app_curl(sub, "/Startup/Complete", method="POST") say(f" {self.name}: seeded first user {u}") - return {"u": u} + return {"u": u, "pw": pw} + + def _login(self, w, sub, u, pw): + rc, code, out = w.app_curl(sub, "/Users/AuthenticateByName", "-H", "Content-Type: application/json", + "-H", f"Authorization: {self.AUTH}", data=json.dumps({"Username": u, "Pw": pw}), + method="POST") + return code, '"AccessToken"' in (out or "") def verify(self, w, sub, t, say): - rc, code, out = w.app_curl(sub, "/Users/Public") - found = t["u"] in (out or "") - absent = ("nope" + secrets.token_hex(6)) not in (out or "") - if not absent: - say(f" {self.name}: READBACK UNUSABLE") + if not w.wait_app(sub, "/System/Info/Public", want=("200",), tries=90): + say(f" {self.name}: /System/Info/Public never came back") + return False + c_bad, tok_bad = self._login(w, sub, t["u"], "wrong-" + secrets.token_hex(5)) + if tok_bad or c_bad == "200": + say(f" {self.name}: READBACK UNUSABLE — a wrong password was not refused (http {c_bad})") return None - say(f" {self.name}: readback found={found} (http {code}, control passed)") - return found + c_ok, tok = self._login(w, sub, t["u"], t["pw"]) + say(f" {self.name}: sign-in as the seeded user http={c_ok} token={tok} (wrong password refused: http {c_bad})") + return tok class Jellyfin(_MediaServer): diff --git a/templates/code-server/.felhom.yml b/templates/code-server/.felhom.yml index 8410d78..b6b6344 100644 --- a/templates/code-server/.felhom.yml +++ b/templates/code-server/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "code" slug: "code-server" # catalog_since: the date THIS repo last changed this app's pinned images. Any commit that # changes an image: line must set this to the same day (see CLAUDE.md). -catalog_since: "2026-07-18" +catalog_since: "2026-10-27" # --- Resource hints (displayed on deploy screen) --- resources: @@ -191,3 +191,9 @@ i18n: # One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10). upstream: lscr.io/linuxserver/code-server: "github:coder/code-server" + +# update_ladder — the test record: one tested step per line, oldest first (JSON flow mappings, +# `09-update-architecture.md` §6.4 part 4). WRITTEN BY scripts/upgrade-test.py, never by hand; +# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused. +update_ladder: + - {"from": {"code-server": "lscr.io/linuxserver/code-server:4.129.0"}, "to": {"code-server": "lscr.io/linuxserver/code-server:4.143.1"}, "digest": {"code-server": "sha256:4524d0b00478e41264f42e0e660c1819e3b7d0c460f78ce73e44fa39b2b55134"}, "verdict": "security_fix", "tested_at": "2026-10-27T13:14:40Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/code-server/", "memory_peak_pct": 5.3, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nodejs.org/en/blog/vulnerability/october-2026-security-releases", "fixed_in": "4.141.1"}, "seed": "none", "memory_basis": "box_soak"} diff --git a/templates/code-server/docker-compose.yml b/templates/code-server/docker-compose.yml index 1679f35..357284b 100644 --- a/templates/code-server/docker-compose.yml +++ b/templates/code-server/docker-compose.yml @@ -9,7 +9,7 @@ services: code-server: - image: lscr.io/linuxserver/code-server:4.129.0 + image: lscr.io/linuxserver/code-server:4.143.1 container_name: code-server restart: unless-stopped environment: diff --git a/templates/outline/.felhom.yml b/templates/outline/.felhom.yml index f2b0bf9..0fea9eb 100644 --- a/templates/outline/.felhom.yml +++ b/templates/outline/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "kb" slug: "outline" # 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: @@ -212,6 +212,7 @@ i18n: update_ladder: - {"from": {"outline": "outlinewiki/outline:1.9.1", "outline-postgres": "postgres:16-alpine", "outline-redis": "redis:7-alpine"}, "to": {"outline": "outlinewiki/outline:1.9.1", "outline-postgres": "postgres:18-alpine", "outline-redis": "redis:7-alpine"}, "digest": {"outline": "sha256:9fe2cbdceccea0ffb82cbc8dc6f4c0d4ba1d377454e502d5d2bddececb34d4f1", "outline-postgres": "sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873", "outline-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"}, "verdict": "proven", "tested_at": "2026-09-30T10:40:04Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/bench/apps/outline/bench/evidence/MV-outline/verdict.json", "box_evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/box/outline/box-verdict-outline.json", "memory_peak_pct": 48.9, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 65.5, "engine_conversion": {"service": "outline-postgres", "engine": "postgres", "from": 16, "to": 18}} - {"from": {"outline": "outlinewiki/outline:1.9.1", "outline-postgres": "postgres:18-alpine", "outline-redis": "redis:7-alpine"}, "to": {"outline": "outlinewiki/outline:1.10.1", "outline-postgres": "postgres:18-alpine", "outline-redis": "redis:7-alpine"}, "digest": {"outline": "sha256:832051f039b446c87aa23929cf92c00980c66aaa2d744d118c48c016ec816ad8", "outline-postgres": "sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873", "outline-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"}, "verdict": "proven", "tested_at": "2026-09-30T17:04:15Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/outline/bench/evidence/MV-outline/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/outline/step.txt", "memory_peak_pct": 33.5, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 62.1} + - {"from": {"outline": "outlinewiki/outline:1.10.1", "outline-postgres": "postgres:18-alpine", "outline-redis": "redis:7-alpine"}, "to": {"outline": "outlinewiki/outline:1.12.0", "outline-postgres": "postgres:18-alpine", "outline-redis": "redis:7-alpine"}, "digest": {"outline": "sha256:25d6a2ced2f1f0cf03c09abd776d87ba31941ed96d3a99992aa84b3bd0afc074", "outline-postgres": "sha256:10a5c69a83035ab5239f5620d708520e8b28f5aa1f2b20143e6024532edadfb5", "outline-redis": "sha256:6ba19c50b56777f5c11c58eff8ddb69d0d5f27ba131cffb63f180ccfd43c66af"}, "verdict": "security_fix", "tested_at": "2026-10-27T13:38:04Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/outline/", "memory_peak_pct": 31.4, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-rq53-m97j-f2pg", "GHSA-97vv-f6qq-6842", "GHSA-w8vg-8mjx-xq8x", "GHSA-h6ff-rw9x-5mq2", "GHSA-65xg-84g9-7hrm"], "advisory": "https://github.com/outline/outline/security/advisories/GHSA-rq53-m97j-f2pg", "fixed_in": "1.12.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/outline/docker-compose.yml b/templates/outline/docker-compose.yml index 2231a51..9147b00 100644 --- a/templates/outline/docker-compose.yml +++ b/templates/outline/docker-compose.yml @@ -11,7 +11,7 @@ services: outline: - image: outlinewiki/outline:1.10.1 + image: outlinewiki/outline:1.12.0 container_name: outline restart: unless-stopped depends_on: diff --git a/templates/outline/steps/e9a25f94911e5934.felhom.yml b/templates/outline/steps/e9a25f94911e5934.felhom.yml new file mode 100644 index 0000000..7509e6f --- /dev/null +++ b/templates/outline/steps/e9a25f94911e5934.felhom.yml @@ -0,0 +1,207 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Outline" +description: "Modern csapat tudásbázis Markdown támogatással" +category: "productivity" +subdomain: "kb" +slug: "outline" +# 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: "300M" + mem_limit: "1152M" # the sum of the compose limits (768+256+128) — R-758; was "768M" + 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: "kb" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: SECRET_KEY + label: "Titkosítási kulcs" + type: secret + generate: "hex:32" + locked_after_deploy: true + + - env_var: UTILS_SECRET + label: "Segédprogram 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 tudásbázis - Markdown, valós idejű együttműködés, keresés" + login_kind: email # controller >= 0.320.0: the app signs in by an e-mailed link (FIRST-ADMIN.md) + docs_url: "https://docs.getoutline.com/" + + use_cases: + - 'Csapat tudásbázis és dokumentáció' + - 'Markdown szerkesztő valós idejű együttműködéssel' + - 'Strukturált dokumentumok fa-szerkezetben' + - 'Teljes szöveges keresés és hivatkozások' + - 'API és integrációk (Slack, webhookok)' + + first_steps: + - 'Nyisd meg a kb.DOMAIN címet a böngészőben' + - 'Hozd létre az első felhasználót' + - 'Hozz létre egy gyűjteményt (Collection) a dokumentumoknak' + - 'Kezdj el írni Markdown-ban' + - 'Hívd meg a csapattagokat' + + prerequisites: + - 'x86 processzor szükséges' + - 'Legalább 1 GB szabad RAM (Outline + PostgreSQL + Redis)' + guide: + checked_version: "1.10.1" + sections: + - title: "Passkey hozzáadása a későbbi belépéshez" + intro: "Ezen a dobozon az Outline-ba nem e-maillel, hanem passkeyjel lépsz be újra." + steps: + - "Nyisd meg a fiókod menüjét a nevednél, és válaszd a „Preferences” (Beállítások) pontot." + - "A bal oldali listában nyisd meg a „Passkeys” oldalt." + - "Kattints az „Add Passkey” (passkey hozzáadása) gombra, és kövesd a böngésző vagy a telefon utasítását." + - "Legközelebb a belépő oldalon a „Continue with Passkey” (folytatás passkeyjel) gombbal lépsz be." + - title: "Dokumentumok rendezése" + intro: "A dokumentumokat egymás alá rendezheted, így a bal oldali sáv fává áll össze." + steps: + - "A bal oldali sávban húzd az egyik dokumentumot egy másikra: alá kerül." + - "Új aldokumentumhoz vidd az egeret egy dokumentum fölé a sávban, és kattints a + jelre." + - "Ugyanígy húzással rendezheted a sorrendet is." + - title: "Keresés a dokumentumokban" + intro: "Az Outline minden dokumentum teljes szövegében keres." + steps: + - "Kattints a bal oldali sávban a „Search” (Keresés) pontra." + - "Írd be, amit keresel, és nyomd meg az Enter billentyűt." + - "Kattints a találatra, hogy megnyisd." + - title: "Megosztás linkkel" + intro: "Egy dokumentumot fiók nélkül is megmutathatsz bárkinek." + steps: + - "Nyisd meg a dokumentumot, és kattints a „Share” (Megosztás) gombra." + - "Kapcsold be a „Publish to web” (közzététel a weben) sor kapcsolóját." + - "Kattints a „Copy public link” (nyilvános link másolása) gombra, és küldd el a linket." + - "A megosztás leállításához kapcsold ki ugyanezt a kapcsolót." + faq: + - q: "Meddig maradok bejelentkezve?" + a: "Egy böngészőben három hónapig. Utána, vagy ha kijelentkezel, csak passkeyjel tudsz belépni, ezért adj hozzá egyet minél előbb." + - q: "Átállíthatom magyarra?" + a: "Igen: a „Preferences” oldalon a „Language” (Nyelv) mezőben válaszd a „Magyar (Hungarian)” lehetőséget. Ez az útmutató az angol menüneveket használja." + - q: "Hová kerül a törölt dokumentum?" + a: "A bal oldali sávban látható „Trash” (Lomtár) oldalra." + - q: "Kimenthetek egy dokumentumot fájlba?" + a: "Igen: a dokumentum menüjében az „Export” (Exportálás) alatt válaszd a „Markdown” vagy a „HTML” formátumot." + - q: "Ki látja a dokumentumaimat?" + a: "Az Outline fiókkal rendelkező tagjai, és az, akinek a „Publish to web” kapcsolóval nyilvános linket adsz." + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: api + port: 3000 + path: "/_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 modern team knowledge base with Markdown' + app_info: + tagline: 'A modern knowledge base - Markdown, live collaboration and search' + use_cases: + - 'A knowledge base and documentation for a team' + - 'A Markdown editor several people can use at once' + - 'Documents in a tree you can follow' + - 'Full text search and links between documents' + - 'An API and integrations (Slack, webhooks)' + first_steps: + - 'Open kb.DOMAIN in your browser' + - 'Create the first user' + - 'Create a Collection for your documents' + - 'Start writing in Markdown' + - 'Invite the rest of the team' + prerequisites: + - 'An x86 processor is needed' + - 'At least 1 GB of free RAM (Outline + PostgreSQL + Redis)' + guide: + sections: + - title: "Add a passkey for signing in later" + intro: "On this box you sign back in to Outline with a passkey, not by email." + steps: + - "Open your account menu at your name and choose „Preferences”." + - "In the list on the left, open the „Passkeys” page." + - "Select „Add Passkey” and follow what your browser or phone asks." + - "Next time, sign in on the sign-in page with „Continue with Passkey”." + - title: "Arrange your documents" + intro: "You can put documents under each other, so the sidebar on the left grows into a tree." + steps: + - "In the sidebar on the left, drag one document onto another: it goes under it." + - "For a new sub-document, move the mouse over a document in the sidebar and select the + sign." + - "You change the order by dragging in the same way." + - title: "Search your documents" + intro: "Outline searches the full text of every document." + steps: + - "Select „Search” in the sidebar on the left." + - "Type what you are looking for and press Enter." + - "Select a result to open it." + - title: "Share with a link" + intro: "You can show a document to anyone, even without an account." + steps: + - "Open the document and select „Share”." + - "Switch on the „Publish to web” row." + - "Select „Copy public link” and send the link." + - "To stop sharing, switch the same row off." + faq: + - q: "How long do I stay signed in?" + a: "Three months in one browser. After that, or if you sign out, you can sign in only with a passkey, so add one soon." + - q: "Can I switch it to Hungarian?" + a: "Yes: on the „Preferences” page, choose Hungarian in the „Language” field. This guide uses the English menu names." + - q: "Where does a deleted document go?" + a: "To the „Trash” page, which you see in the sidebar on the left." + - q: "Can I save a document to a file?" + a: "Yes: in the document's menu, under „Export”, choose „Markdown” or „HTML”." + - q: "Who sees my documents?" + a: "The members with an Outline account, and anyone you give a public link with the „Publish to web” switch." + deploy_fields: + - env_var: DOMAIN + label: 'Domain' + description: 'The server domain name' + - env_var: SUBDOMAIN + label: 'Subdomain' + description: 'The subdomain this app answers on' + - env_var: DB_PASSWORD + label: 'Database password' + - env_var: SECRET_KEY + label: 'Encryption key' + - env_var: UTILS_SECRET + label: 'Utility key' diff --git a/templates/outline/steps/e9a25f94911e5934.yml b/templates/outline/steps/e9a25f94911e5934.yml new file mode 100644 index 0000000..2231a51 --- /dev/null +++ b/templates/outline/steps/e9a25f94911e5934.yml @@ -0,0 +1,116 @@ +# Outline - Modern csapat tudásbázis Markdown támogatással +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: postgres +# RAM: ~200M (mem_limit: 768M) | Pi-compatible: No +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# SECRET_KEY - Titkosítási kulcs (auto-generated) +# UTILS_SECRET - Segédprogram kulcs (auto-generated) +# DB_PASSWORD - Adatbázis jelszó (auto-generated) + +services: + outline: + image: outlinewiki/outline:1.10.1 + container_name: outline + restart: unless-stopped + depends_on: + outline-postgres: + condition: service_healthy + outline-redis: + condition: service_healthy + environment: + - NODE_ENV=production + - SECRET_KEY=${SECRET_KEY} + - UTILS_SECRET=${UTILS_SECRET} + - DATABASE_URL=postgres://outline:${DB_PASSWORD}@outline-postgres:5432/outline + # Az Outline 1.x alapértelmezésben SSL-t vár a Postgrestől. A stackben futó + # sidecar Postgres nem beszél SSL-t (belső hálózat), ezért enélkül az app + # indulási hurokba kerül: "The server does not support SSL connections". + - PGSSLMODE=disable + - REDIS_URL=redis://outline-redis:6379 + - URL=https://${SUBDOMAIN}.${DOMAIN} + - PORT=3000 + - FILE_STORAGE=local + - FILE_STORAGE_LOCAL_ROOT_DIR=/var/lib/outline/data + volumes: + - outline_data:/var/lib/outline/data + networks: + - traefik-public + - outline-internal + deploy: + resources: + limits: + memory: 768M + healthcheck: + test: ["CMD", "node", "-e", "const http = require('http'); http.get('http://127.0.0.1:3000/_health', (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.outline.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.outline-xff.headers.customrequestheaders.X-Forwarded-For=" + - "traefik.http.routers.outline.middlewares=outline-xff" + - "traefik.http.routers.outline.entrypoints=websecure" + - "traefik.http.routers.outline.tls=true" + - "traefik.http.routers.outline.tls.certresolver=letsencrypt" + - "traefik.http.services.outline.loadbalancer.server.port=3000" + + outline-postgres: + image: postgres:18-alpine + container_name: outline-postgres + restart: unless-stopped + environment: + - POSTGRES_USER=outline + - POSTGRES_PASSWORD=${DB_PASSWORD} + - POSTGRES_DB=outline + - TZ=Europe/Budapest + volumes: + - outline_postgres_data:/var/lib/postgresql + networks: + - outline-internal + deploy: + resources: + limits: + memory: 256M + healthcheck: + test: ["CMD-SHELL", "pg_isready -U outline -d outline"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 20s + + outline-redis: + image: redis:7-alpine + container_name: outline-redis + restart: unless-stopped + environment: + - TZ=Europe/Budapest + volumes: + - outline_redis_data:/data + networks: + - outline-internal + deploy: + resources: + limits: + memory: 128M + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 20s + +volumes: + outline_data: + outline_postgres_data: + outline_redis_data: + +networks: + traefik-public: + external: true + outline-internal: diff --git a/templates/rallly/.felhom.yml b/templates/rallly/.felhom.yml index 729c396..25eb633 100644 --- a/templates/rallly/.felhom.yml +++ b/templates/rallly/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "poll" slug: "rallly" # 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: @@ -206,6 +206,7 @@ i18n: update_ladder: - {"from": {"rallly": "lukevella/rallly:4.11.1", "rallly-postgres": "postgres:16-alpine"}, "to": {"rallly": "lukevella/rallly:4.11.1", "rallly-postgres": "postgres:18-alpine"}, "digest": {"rallly": "sha256:b2acb78afb1e2e88445e78cec4393cd8b8cc63f9268cf1defe19f96d0db945b0", "rallly-postgres": "sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873"}, "verdict": "proven", "tested_at": "2026-09-30T10:40:06Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/bench/apps/rallly/bench/evidence/MV-rallly/verdict.json", "box_evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/box/rallly/box-verdict-rallly.json", "memory_peak_pct": 61.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 68.5, "engine_conversion": {"service": "rallly-postgres", "engine": "postgres", "from": 16, "to": 18}} - {"from": {"rallly": "lukevella/rallly:4.11.1", "rallly-postgres": "postgres:18-alpine"}, "to": {"rallly": "lukevella/rallly:4.15.3", "rallly-postgres": "postgres:18-alpine"}, "digest": {"rallly": "sha256:8cd979aefe8d06e1822bc67054eb2d31088cdb831aa3f7b5615b3768f35431d9", "rallly-postgres": "sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873"}, "verdict": "proven", "tested_at": "2026-09-30T17:17:40Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/rallly/bench/evidence/MV-rallly/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/rallly/step.txt", "memory_peak_pct": 60.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 65.8} + - {"from": {"rallly": "lukevella/rallly:4.15.3", "rallly-postgres": "postgres:18-alpine"}, "to": {"rallly": "lukevella/rallly:4.16.3", "rallly-postgres": "postgres:18-alpine"}, "digest": {"rallly": "sha256:7837f8148cc6db5e3e9a8df199912950adaee66898ebad4949d9dbb2f30aa02b", "rallly-postgres": "sha256:10a5c69a83035ab5239f5620d708520e8b28f5aa1f2b20143e6024532edadfb5"}, "verdict": "security_fix", "tested_at": "2026-10-27T13:36:03Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/rallly/", "memory_peak_pct": 41.8, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-gmq4-f8j5-8w8q", "CVE-2026-111497"], "advisory": "https://github.com/lukevella/rallly/security/advisories/GHSA-gmq4-f8j5-8w8q", "fixed_in": "4.15.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/rallly/docker-compose.yml b/templates/rallly/docker-compose.yml index c377b1b..0dad74b 100644 --- a/templates/rallly/docker-compose.yml +++ b/templates/rallly/docker-compose.yml @@ -10,7 +10,7 @@ services: rallly: - image: lukevella/rallly:4.15.3 + image: lukevella/rallly:4.16.3 container_name: rallly restart: unless-stopped depends_on: diff --git a/templates/rallly/steps/cb9ffe27aae45ba0.felhom.yml b/templates/rallly/steps/cb9ffe27aae45ba0.felhom.yml new file mode 100644 index 0000000..7f12a7c --- /dev/null +++ b/templates/rallly/steps/cb9ffe27aae45ba0.felhom.yml @@ -0,0 +1,201 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Rallly" +description: "Időpont szavazás (Doodle alternatíva)" +category: "productivity" +subdomain: "poll" +slug: "rallly" +# 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: "384M" + mem_limit: "1024M" + 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: "poll" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: SECRET_PASSWORD + label: "Titkosítási kulcs" + type: secret + generate: "hex:32" + locked_after_deploy: true + + - env_var: DB_PASSWORD + label: "Adatbázis jelszó" + type: secret + generate: "password:24" + locked_after_deploy: true + +# --- The setup gate (controller >= 0.281.0, `09` §3 decisions 46-47) --- +# The first visitor would create the admin; a fresh install is closed to everyone but the household until the first setup is done. +setup_gate: true + +# --- App info (info page content) --- +app_info: + tagline: "Időpont szavazás - Doodle alternatíva a saját szerveren" + login_kind: email # controller >= 0.320.0: the app signs in by an e-mailed link (FIRST-ADMIN.md) + docs_url: "https://support.rallly.co/" + + use_cases: + - 'Közös időpont egyeztetés szavazással' + - 'Találkozók, események szervezése' + - 'Résztvevők regisztráció nélkül szavazhatnak' + - 'Email értesítések és emlékeztetők' + - 'Egyszerű, tiszta felület' + + first_steps: + - 'Nyisd meg a poll.DOMAIN címet a böngészőben' + - 'Hozz létre egy új szavazást' + - 'Add meg a lehetséges időpontokat' + - 'Oszd meg a linket a résztvevőkkel' + guide: + checked_version: "4.15.3" + sections: + - title: "A végleges időpont kiválasztása" + intro: "Ha mindenki szavazott, kiválasztod a nyertes időpontot." + steps: + - "Nyisd meg a szavazást, és kattints a „Kezelés” menüre." + - "Válaszd a „Véglegesítés” pontot." + - "Jelöld ki az időpontot, amelyre a legtöbben mondtak igent, és kattints a „Véglegesítés” gombra." + - "A szavazás oldalán a „Hozzáadás a naptárhoz” gombbal beteheted az időpontot a naptáradba." + - title: "Új időpont a szavazáshoz" + intro: "Ha egyik időpont sem jó, újakat adhatsz hozzá." + steps: + - "A szavazásnál kattints a „Kezelés” menüre, és válaszd a „Lehetőségek módosítása” pontot." + - "Jelölj ki új napokat vagy időpontokat a naptárban." + - "Kattints a „Mentés” gombra. A régi szavazatok megmaradnak." + - title: "Titkos szavazás" + intro: "Beállíthatod, hogy a résztvevők ne lássák egymás szavazatát vagy nevét." + steps: + - "A szavazásnál kattints a „Kezelés” menüre, és válaszd a „Beállítások szerkesztése” pontot." + - "Kapcsold be a „Szavazatok elrejtése” vagy a „Résztvevők nevének elrejtése” beállítást." + - "Kattints a „Mentés” gombra." + - title: "A szavazás lezárása" + intro: "Ha már nem vársz több szavazatot, lezárhatod a szavazást." + steps: + - "A szavazásnál kattints a „Kezelés” menüre, és válaszd a „Szüneteltetés” pontot. Ezután senki nem tud szavazni." + - "Ha mégis kell, ugyanitt a „Szavazás újranyitása” ponttal újra megnyithatod." + - "Az eredményt a „Kezelés” menü „Exportálás CSV fájlba” pontjával táblázatba mentheted." + faq: + - q: "Kell fiók a szavazáshoz?" + a: "A szavazóknak nem. A résztvevő megnyitja a linket, kiválasztja a jó időpontokat, beírja a nevét, és az „Elérhetőség mentése” gombra kattint. Szavazást létrehozni viszont csak belépve lehet." + - q: "Miért nem jön e-mail a Rallly-tól?" + a: "A Rallly e-mailben küldi a belépő kódot és az értesítéseket, ezért e-mail nélkül belépni sem tudsz. A vezérlőpulton, a Rallly „Beállítások” fülén kapcsold be az „Email-küldés engedélyezése ennél az alkalmazásnál” lehetőséget." + - q: "Mit jelent a „Ha szükséges” válasz?" + a: "Azt, hogy az időpont nem ideális, de a résztvevő meg tudja oldani. Véglegesítéskor ezt is érdemes figyelembe venni." + - q: "Elrontottam a szavazatomat. Javíthatom?" + a: "Igen. A résztvevők listájában a neved melletti menüben válaszd a „Szavazatok szerkesztése” pontot." + - q: "Hogyan törlök egy szavazást?" + a: "Nyisd meg a szavazást, a „Kezelés” menüben válaszd a „Törlés” pontot, és erősítsd meg." + + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: http + port: 3000 + +# --- App-email mapping (apps → in-controller shim → hub → Resend) --- +# Rallly (Nodemailer) uses STARTTLS to the shim (SMTP_SECURE=false) and accepts the shim's self-signed +# cert (SMTP_REJECT_UNAUTHORIZED=false on v4; v3.x accepts by default). From = Rallly's single +# NOREPLY_EMAIL; SMTP_USER/SMTP_PWD stay unset (the shim accepts no-auth). +smtp_mapping: + host_var: SMTP_HOST + port_var: SMTP_PORT + security_var: SMTP_SECURE + security_value: "false" + from_var: NOREPLY_EMAIL + from_name_var: NOREPLY_EMAIL_NAME + from_local: rallly + extra: + SMTP_REJECT_UNAUTHORIZED: "false" + +# --- 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: 'Vote on a date (a Doodle alternative)' + app_info: + tagline: 'Vote on a date - a Doodle alternative on your own server' + use_cases: + - 'Agree on a time together, by voting' + - 'Organise meetings and events' + - 'People can vote without signing up' + - 'E-mail notices and reminders' + - 'A simple, clean interface' + first_steps: + - 'Open poll.DOMAIN in your browser' + - 'Create a new poll' + - 'Enter the possible dates' + - 'Share the link with everybody' + guide: + sections: + - title: "Choose the final date" + intro: "When everyone has voted, you choose the winning date." + steps: + - "Open the poll and select the „Manage” menu." + - "Choose „Schedule”." + - "Pick the date most people said yes to, and select „Schedule”." + - "On the poll page, „Add to calendar” puts the date into your calendar." + - title: "A new date for the poll" + intro: "If none of the dates suits, you can add new ones." + steps: + - "On the poll, select the „Manage” menu and choose „Edit options”." + - "Mark new days or times in the calendar." + - "Select „Save”. The earlier votes stay." + - title: "A secret vote" + intro: "You can set it so that participants do not see each other's votes or names." + steps: + - "On the poll, select the „Manage” menu and choose „Edit settings”." + - "Turn on „Hide votes” or „Hide participant names”." + - "Select „Save”." + - title: "Close the poll" + intro: "When you expect no more votes, you can close the poll." + steps: + - "On the poll, select the „Manage” menu and choose „Close”. After that nobody can vote." + - "If you need it again, „Reopen poll” in the same place opens it again." + - "„Export to CSV” in the „Manage” menu saves the result as a spreadsheet." + faq: + - q: "Do you need an account to vote?" + a: "Voters do not. The participant opens the link, picks the dates that suit, types their name and selects „Save availability”. To create a poll, though, you must be signed in." + - q: "Why does no e-mail come from Rallly?" + a: "Rallly sends its sign-in code and its notices by e-mail, so without e-mail you cannot even sign in. On the dashboard, turn on „Allow sending e-mail for this app” on Rallly's „Settings” tab." + - q: "What does the „If need be” answer mean?" + a: "That the date is not ideal, but the participant can make it. Keep it in mind when you choose the final date." + - q: "I got my vote wrong. Can I fix it?" + a: "Yes. In the list of participants, choose „Edit votes” in the menu next to your name." + - q: "How do I delete a poll?" + a: "Open the poll, choose „Delete” in the „Manage” menu, and confirm." + deploy_fields: + - env_var: DOMAIN + label: 'Domain' + description: 'The server domain name' + - env_var: SUBDOMAIN + label: 'Subdomain' + description: 'The subdomain this app answers on' + - env_var: DB_PASSWORD + label: 'Database password' + - env_var: SECRET_PASSWORD + label: 'Encryption key' diff --git a/templates/rallly/steps/cb9ffe27aae45ba0.yml b/templates/rallly/steps/cb9ffe27aae45ba0.yml new file mode 100644 index 0000000..c377b1b --- /dev/null +++ b/templates/rallly/steps/cb9ffe27aae45ba0.yml @@ -0,0 +1,96 @@ +# Rallly - Időpont szavazás (Doodle alternatíva) +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: postgres +# RAM: ~50M (mem_limit: 256M) | Pi-compatible: Yes +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# SECRET_PASSWORD - Titkosítási kulcs (auto-generated) +# DB_PASSWORD - Adatbázis jelszó (auto-generated) + +services: + rallly: + image: lukevella/rallly:4.15.3 + container_name: rallly + restart: unless-stopped + depends_on: + rallly-postgres: + condition: service_healthy + environment: + - TZ=Europe/Budapest + - DATABASE_URL=postgresql://rallly:${DB_PASSWORD}@rallly-postgres:5432/rallly + - SECRET_PASSWORD=${SECRET_PASSWORD} + - NEXT_PUBLIC_BASE_URL=https://${SUBDOMAIN}.${DOMAIN} + # App-email (managed relay). Injected by the controller only when app-email is on (global + + # per-app); empty SMTP_HOST keeps Rallly mail disabled. Rallly (Nodemailer) reads these at send + # time. SMTP_SECURE=false → STARTTLS to the shim; SMTP_REJECT_UNAUTHORIZED=false accepts the + # shim's self-signed cert (v4 flag; v3.x accepts self-signed by default). See .felhom.yml smtp_mapping. + - SMTP_HOST=${SMTP_HOST:-} + - SMTP_PORT=${SMTP_PORT:-587} + - SMTP_SECURE=${SMTP_SECURE:-false} + - SMTP_REJECT_UNAUTHORIZED=${SMTP_REJECT_UNAUTHORIZED:-true} + # NOREPLY_EMAIL + SUPPORT_EMAIL are REQUIRED by Rallly at boot (it refuses to start without valid + # emails), independent of whether mail can actually send. Default them to valid addresses so Rallly + # boots with app-email OFF; the relay overrides NOREPLY_EMAIL to rallly@felhom.eu when ON. + - NOREPLY_EMAIL=${NOREPLY_EMAIL:-noreply@${DOMAIN}} + - NOREPLY_EMAIL_NAME=${NOREPLY_EMAIL_NAME:-Felhom} + - SUPPORT_EMAIL=${SUPPORT_EMAIL:-noreply@${DOMAIN}} + networks: + - traefik-public + - rallly-internal + deploy: + resources: + limits: + memory: 768M + # The rallly image has NO wget/curl — the old wget healthcheck always failed (exit 127), marking the + # container unhealthy, which made Traefik refuse to publish a route to it. Use Node (always present). + # rallly's "/" returns 307 → /login, so accept any status < 500. + healthcheck: + test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:3000',r=>process.exit(r.statusCode<500?0:1)).on('error',()=>process.exit(1))"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.rallly.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.rallly-xff.headers.customrequestheaders.X-Forwarded-For=" + - "traefik.http.routers.rallly.middlewares=rallly-xff" + - "traefik.http.routers.rallly.entrypoints=websecure" + - "traefik.http.routers.rallly.tls=true" + - "traefik.http.routers.rallly.tls.certresolver=letsencrypt" + - "traefik.http.services.rallly.loadbalancer.server.port=3000" + + rallly-postgres: + image: postgres:18-alpine + container_name: rallly-postgres + restart: unless-stopped + environment: + - POSTGRES_USER=rallly + - POSTGRES_PASSWORD=${DB_PASSWORD} + - POSTGRES_DB=rallly + - TZ=Europe/Budapest + volumes: + - rallly_postgres_data:/var/lib/postgresql + networks: + - rallly-internal + deploy: + resources: + limits: + memory: 256M + healthcheck: + test: ["CMD-SHELL", "pg_isready -U rallly -d rallly"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 20s + +volumes: + rallly_postgres_data: + +networks: + traefik-public: + external: true + rallly-internal: diff --git a/templates/romm/.felhom.yml b/templates/romm/.felhom.yml index 4c4f996..18954ad 100644 --- a/templates/romm/.felhom.yml +++ b/templates/romm/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "arcade" slug: "romm" # 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-23" +catalog_since: "2026-10-27" # --- Resource hints (displayed on deploy screen) --- resources: @@ -336,6 +336,7 @@ update_ladder: - {"from": {"romm": "rommapp/romm:5.0.0", "romm-db": "mariadb:11.4", "romm-redis": "redis:7-alpine"}, "to": {"romm": "rommapp/romm:5.3.0", "romm-db": "mariadb:11.4", "romm-redis": "redis:7-alpine"}, "digest": {"romm": "sha256:dc586cb3a2c7316fcffb3dc273171b1964523f0f409e989295d26d2199df1d4e", "romm-db": "sha256:70cc072b29b4a89ae07abb2d4da2c64678a7f2dfe092751bb51c87d67dc1338b", "romm-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"}, "verdict": "proven", "tested_at": "2026-09-21T19:27:03.627376+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/romm/verdict.json", "memory_peak_pct": 80.9, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": true}, "backfilled": "2026-09-23", "note": "backfilled from catalog commit 15f9ebf; box walk only (harness v1, no memory watch); digest = what the registry served on 2026-09-23, not a measurement of the tested image; memory watch from felhom.eu/documentation/audits/update-rulings-2026-09-23/harness/evidence/M1/verdict.json (bench, harness v2): peak 80.9%"} - {"from": {"romm": "rommapp/romm:5.3.0", "romm-db": "mariadb:11.4", "romm-redis": "redis:7-alpine"}, "to": {"romm": "rommapp/romm:5.3.1", "romm-db": "mariadb:11.4", "romm-redis": "redis:7-alpine"}, "digest": {"romm": "sha256:0d66b4ea152a237c7f24b95e87459f46d3c596a7c0b35a82f26bc971487278b3", "romm-db": "sha256:70cc072b29b4a89ae07abb2d4da2c64678a7f2dfe092751bb51c87d67dc1338b", "romm-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"}, "verdict": "proven", "tested_at": "2026-09-23T19:24:19Z", "harness_version": 3, "evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/romm/bench/evidence/MV-romm/verdict.json", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/romm/verdict.json", "memory_peak_pct": 79.5, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "cgroup_peak", "memory_cgroup_peak_pct": 79.5} - {"from": {"romm": "rommapp/romm:5.3.1", "romm-db": "mariadb:11.4", "romm-redis": "redis:7-alpine"}, "to": {"romm": "rommapp/romm:5.3.1", "romm-db": "mariadb:11.8", "romm-redis": "redis:7-alpine"}, "digest": {"romm": "sha256:0d66b4ea152a237c7f24b95e87459f46d3c596a7c0b35a82f26bc971487278b3", "romm-db": "sha256:79d59758afc91b89b120b0a8904d637f5a3b3e1c4900f29b740d6d46c72fef68", "romm-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"}, "verdict": "proven", "tested_at": "2026-09-23T20:00:03Z", "harness_version": 3, "evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/romm-engine/bench/evidence/MV-romm/verdict.json", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/romm-engine/verdict.json", "memory_peak_pct": 78.0, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 84.1} + - {"from": {"romm": "rommapp/romm:5.3.1", "romm-db": "mariadb:11.8", "romm-redis": "redis:7-alpine"}, "to": {"romm": "rommapp/romm:5.4.1", "romm-db": "mariadb:11.8", "romm-redis": "redis:7-alpine"}, "digest": {"romm": "sha256:8677fb7b81b1d3db20b849e989a1dadc2a11159e51eb34a2acdcb01102274edf", "romm-db": "sha256:c4124d1afa875e47f2892edf26b482fa54f796e2f342d3717a04ca091a22a9bd", "romm-redis": "sha256:6ba19c50b56777f5c11c58eff8ddb69d0d5f27ba131cffb63f180ccfd43c66af"}, "verdict": "security_fix", "tested_at": "2026-10-27T13:14:00Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/romm/", "memory_peak_pct": 59.2, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-722m-w9p2-xv2j", "GHSA-q7fg-rj3q-m3gm", "GHSA-7jw3-ppmp-57wc", "GHSA-9q83-m866-5jrp"], "advisory": "https://github.com/rommapp/romm/security/advisories/GHSA-722m-w9p2-xv2j", "fixed_in": "5.4.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/romm/docker-compose.yml b/templates/romm/docker-compose.yml index 7fccb5e..830cf13 100644 --- a/templates/romm/docker-compose.yml +++ b/templates/romm/docker-compose.yml @@ -28,7 +28,7 @@ services: romm: - image: rommapp/romm:5.3.1 + image: rommapp/romm:5.4.1 container_name: romm restart: unless-stopped depends_on: diff --git a/templates/romm/steps/211c8ec7a0531f87.felhom.yml b/templates/romm/steps/211c8ec7a0531f87.felhom.yml new file mode 100644 index 0000000..67943bb --- /dev/null +++ b/templates/romm/steps/211c8ec7a0531f87.felhom.yml @@ -0,0 +1,330 @@ +# ============================================================================= +# .felhom.yml — App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "RomM" +description: "Retró játékgyűjtemény kezelő" +category: "media" +subdomain: "arcade" +slug: "romm" +# 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-23" + +# --- Resource hints (displayed on deploy screen) --- +resources: + mem_request: "600M" + mem_limit: "1536M" + pi_compatible: false + needs_hdd: true + +# --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) --- +backup: + userdata: + - path: roms + class: optional # ruled: curated ROM sets often not re-acquirable + - path: roms-bios + class: optional # firmware lived inside roms/ until 2026-10-16 (R-1089): same class + hdd: + - path: appdata/romm/resources + class: excluded # scraper cache, re-derivable + +# --- Customer-facing folder annotation (R-75) --- +data_paths: + - path: roms + root: userdata + role: library + label: "ROM gyűjtemény" + - path: roms-bios + root: userdata + role: library + label: "BIOS fájlok (RomM)" + +# --- 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: "arcade" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: DB_PASSWORD + label: "Adatbázis jelszó" + type: secret + generate: "password:24" + locked_after_deploy: true + + - env_var: MYSQL_ROOT_PASSWORD + label: "MariaDB root jelszó" + type: secret + generate: "password:24" + locked_after_deploy: true + + - env_var: ROMM_AUTH_SECRET_KEY + label: "Hitelesítési titkosítási kulcs" + type: secret + generate: "hex:32" + locked_after_deploy: true + + - env_var: HDD_PATH + label: "Adattárolási útvonal" + type: path + required: true + placeholder: "/mnt/felhom-drives/hdd_1" + description: "A külső merevlemez elérési útja, ahol a ROM-ok és borítóképek tárolódnak" + 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: SYSTEM.SHOW_SETUP_WIZARD true -> false once the first user exists. +setup_done_probe: + url: http://romm:8080/api/heartbeat + field: SYSTEM.SHOW_SETUP_WIZARD + done: "false" + +# --- App info (info page content) --- +app_info: + tagline: "Retró játékgyűjtemény kezelő, böngésző és lejátszó" + docs_url: "https://github.com/rommapp/romm/wiki" + + use_cases: + - "Retró játékgyűjtemény rendszerezése és böngészése webes felületen" + - "Játékok metaadatainak automatikus letöltése: borítók, leírások, értékelések" + - "Platformonkénti szűrés és keresés a teljes gyűjteményben" + - "ROM fájlok webes feltöltése és letöltése" + - "Többfelhasználós hozzáférés a háztartás tagjai számára" + + first_steps: + - "Nyisd meg az arcade.DOMAIN címet a böngészőben" + - "Az első megnyitáskor hozd létre az admin fiókodat" + - "Töltsd fel a ROM fájlokat a Fájlkezelőben (FileBrowser) a roms/ mappába, platform mappákba rendezve (pl. roms/gba/, roms/snes/)" + - "Ha egy géphez BIOS fájl kell, tedd a roms-bios/ mappába, a gép mappájába (pl. roms-bios/psx/)" + - "Kattints jobb felül a profilképedre, válaszd a „Scan” (Szkennelés) pontot, és indíts egy szkennelést a ROM-ok beolvasásához" + - "Opcionális: állíts be metaadat-szolgáltatókat a borítóképek és leírások automatikus letöltéséhez (lásd lent)" + + prerequisites: + - "Külső HDD szükséges a ROM fájlok és borítóképek tárolásához" + - "Legalább 1 GB szabad RAM ajánlott (MariaDB + Redis + RomM)" + - "ROM fájlok platform mappákba rendezve (pl. roms/gba/, roms/snes/)" + guide: + checked_version: "5.3.1" + sections: + - title: "Játék a böngészőben" + intro: "Sok retró platform játéka közvetlenül a böngészőben fut, telepítés nélkül." + steps: + - "Kattints felül a „Platforms” (Platformok) menüre, és válaszd ki a platformot." + - "Kattints a játékra: megnyílik az oldala." + - "Kattints a „Play” (Indítás) gombra. Ha nincs ilyen gomb, ezt a platformot a böngésző nem tudja futtatni; a „Download” (Letöltés) gombbal a saját emulátorodba töltheted le." + - title: "Saját fiók a családtagoknak" + intro: "Mindenki saját fiókkal lép be, így a kedvencei külön maradnak." + steps: + - "Kattints jobb felül a profilképedre, és válaszd az „Administration” (Adminisztráció) pontot." + - "A „Users” (Felhasználók) részben kattints az „Add” (Hozzáadás) gombra." + - "Add meg a „Username” (felhasználónév) és a „Password” (jelszó) mezőt, a „Repeat password” mezőbe írd be újra a jelszót, és kattints a „Create” (létrehozás) gombra." + - "Ha inkább a családtag választ jelszót, az „Invite link” (meghívó link) gombbal készíts linket a „Generate” gombbal, és küldd el neki a „Copy link” gombbal." + - title: "Kedvencek és gyűjtemények" + intro: "A gyűjteményekbe összeválogathatod a játékokat, például a gyerekeknek valókat." + steps: + - "Nyisd meg a játékot, és kattints a „Manage collections” (gyűjtemények kezelése) gombra." + - "Új gyűjteményhez kattints a „Create collection” (gyűjtemény létrehozása) pontra, írd be a nevét, és kattints a „Create” gombra." + - "Jelöld be, melyik gyűjteménybe kerüljön a játék." + - "A gyűjteményeidet felül a „Collections” (Gyűjtemények) menüben találod." + - title: "Feltöltés a böngészőből" + intro: "Néhány játékot a fájlkezelő nélkül, közvetlenül a böngészőből is feltölthetsz." + steps: + - "Kattints jobb felül a profilképedre, és válaszd az „Upload ROMs” (ROM-ok feltöltése) pontot." + - "A „Select a platform” (platform választása) listában válaszd ki, melyik géphez tartozik a játék." + - "Húzd a fájlokat a „Drop files here” (húzd ide a fájlokat) részre, és kattints az „Upload” (feltöltés) gombra. A RomM utána magától beolvassa őket." + faq: + - q: "Lehet magyarul?" + a: "Igen. Kattints a profilképedre, válaszd a „User interface” (felhasználói felület) pontot, és a „Language” (nyelv) résznél válaszd a „Magyar” nyelvet. A beállítás böngészőnként külön érvényes." + - q: "Milyen játékot tölthetek fel?" + a: "Csak olyat, amely a tiéd: például a saját kazettádról vagy lemezedről készített mentést." + - q: "Miért nincs borító és leírás a játékoknál?" + a: "Ehhez metaadat-szolgáltató kell. Állítsd be a vezérlőpulton, a RomM „Beállítások” fülén, majd a RomM „Scan” (Szkennelés) oldalán futtass „Update metadata” (metaadatok frissítése) szkennelést." + - q: "Miért nem ismeri fel a játékot?" + a: "A RomM a fájl nevéből keresi meg a játékot. Nevezd át a fájlt a játék pontos címére, és futtass újra egy szkennelést a „Scan” oldalon." + - q: "Hogyan változtatok jelszót?" + a: "Kattints a profilképedre, válaszd a „Profile” (Profil) pontot, majd a „Change password” (jelszó módosítása) gombot. Add meg az új jelszót kétszer, és kattints a „Confirm” (megerősítés) gombra." + +# --- Optional config (configurable before or after deployment) --- +optional_config: + - group: "Metaadat-szolgáltatók" + description: "Játékok borítóinak, leírásainak és értékeléseinek automatikus letöltéséhez. Legalább az IGDB beállítása ajánlott. Mindegyik ingyenesen használható regisztráció után." + fields: + - env_var: IGDB_CLIENT_ID + label: "IGDB Client ID" + type: text + help_url: "https://api-docs.igdb.com/#getting-started" + help_text: "1) Regisztrálj / jelentkezz be a Twitch fejlesztői portálon (dev.twitch.tv). 2) Hozz létre egy új alkalmazást (bármilyen névvel). 3) Másold be a Client ID-t." + + - env_var: IGDB_CLIENT_SECRET + label: "IGDB Client Secret" + type: secret_input + help_text: "A Twitch alkalmazásod Client Secret-je (a „New Secret\" gombbal generálhatod)." + + - env_var: STEAMGRIDDB_API_KEY + label: "SteamGridDB API Key" + type: text + help_url: "https://www.steamgriddb.com/profile/preferences/api" + help_text: "Regisztrálj a SteamGridDB oldalon, majd a Preferences → API fül alatt kattints a „Generate API key\" gombra." + + - env_var: SCREENSCRAPER_USER + label: "ScreenScraper felhasználónév" + type: text + help_url: "https://www.screenscraper.fr/" + help_text: "Regisztrálj a screenscraper.fr oldalon. A felhasználóneved lesz az API felhasználónév." + + - env_var: SCREENSCRAPER_PASSWORD + label: "ScreenScraper jelszó" + type: secret_input + help_text: "A screenscraper.fr fiókod jelszava." + + - env_var: MOBYGAMES_API_KEY + label: "MobyGames API Key" + type: text + help_url: "https://www.mobygames.com/info/api/" + help_text: "Regisztrálj a MobyGames oldalon, majd az API oldalon igényelj kulcsot. Részletes játékinformációkat és krediteket biztosít." + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: http + port: 8080 + +# --- 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: "Retro game collection manager" + + data_paths: + - path: roms + label: "ROM collection" + - path: roms-bios + label: "BIOS files (RomM)" + + 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: MYSQL_ROOT_PASSWORD + label: "MariaDB root password" + + - env_var: ROMM_AUTH_SECRET_KEY + label: "Sign-in encryption key" + + - env_var: HDD_PATH + label: "Data storage path" + placeholder: "/mnt/felhom-drives/hdd_1" + description: "The path to the external hard drive where the ROMs and cover art are kept" + + app_info: + tagline: "Retro game collection manager, browser and player" + + use_cases: + - "Sort and browse a retro game collection in your browser" + - "Game details download themselves - cover art, descriptions, ratings" + - "Filter and search the whole collection by platform" + - "Upload and download ROM files in your browser" + - "Several people in the household can have their own account" + + first_steps: + - "Open arcade.DOMAIN in your browser" + - "On the first visit, create your admin account" + - "Upload the ROM files into the roms/ folder in the File manager (FileBrowser), sorted into platform folders (for example roms/gba/, roms/snes/)" + - "If a console needs a BIOS file, put it in the roms-bios/ folder, in that console's folder (for example roms-bios/psx/)" + - "Select your profile picture at the top right, choose „Scan”, and start a scan to read the ROMs in" + - "Optional: set up metadata providers so cover art and descriptions download themselves (see below)" + + prerequisites: + - "An external hard drive is needed to keep the ROM files and cover art on" + - "At least 1 GB of free RAM is recommended (MariaDB + Redis + RomM)" + - "ROM files sorted into platform folders (for example roms/gba/, roms/snes/)" + guide: + sections: + - title: "Play in the browser" + intro: "Games for many retro platforms run right in the browser, with nothing to install." + steps: + - "Select „Platforms” at the top and choose the platform." + - "Select the game: its page opens." + - "Select „Play”. If there is no such button, the browser cannot run this platform; „Download” gets the game for your own emulator." + - title: "Own accounts for the family" + intro: "Everyone signs in with their own account, so their favourites stay separate." + steps: + - "Select your profile picture at the top right and choose „Administration”." + - "Under „Users”, select „Add”." + - "Fill in „Username” and „Password”, type the password again in „Repeat password”, and select „Create”." + - "If the family member should choose their own password, make a link under „Invite link” with „Generate”, and send it to them with „Copy link”." + - title: "Favourites and collections" + intro: "In collections you can group games, for example the ones for the children." + steps: + - "Open the game and select „Manage collections”." + - "For a new collection, select „Create collection”, type its name and select „Create”." + - "Tick the collections the game should go into." + - "You find your collections under „Collections” at the top." + - title: "Upload from the browser" + intro: "You can upload a few games straight from the browser, without the file manager." + steps: + - "Select your profile picture at the top right and choose „Upload ROMs”." + - "In „Select a platform”, choose which console the game is for." + - "Drag the files onto „Drop files here” and select „Upload”. RomM then reads them in by itself." + faq: + - q: "Can it be in Hungarian?" + a: "Yes. Select your profile picture, choose „User interface”, and under „Language” choose Hungarian, listed under its own name. The setting applies to each browser separately." + - q: "Which games may I upload?" + a: "Only games that are yours: for example a copy you made of your own cartridge or disc." + - q: "Why do the games have no cover or description?" + a: "That needs a metadata provider. Set one up on the dashboard, on RomM's „Settings” tab, then run an „Update metadata” scan on RomM's „Scan” page." + - q: "Why does it not recognise the game?" + a: "RomM looks the game up by the file name. Rename the file to the game's exact title and run a scan again on the „Scan” page." + - q: "How do I change my password?" + a: "Select your profile picture, choose „Profile”, then „Change password”. Enter the new password twice and select „Confirm”." + + optional_config: + - match_group: "Metaadat-szolgáltatók" + group: "Metadata providers" + description: "So that cover art, descriptions and ratings download themselves. IGDB is the one worth setting up first. All of them are free after you sign up." + fields: + - env_var: IGDB_CLIENT_ID + label: "IGDB Client ID" + help_text: '1) Sign up or sign in on the Twitch developer portal (dev.twitch.tv). 2) Create a new application (any name will do). 3) Copy the Client ID across.' + + - env_var: IGDB_CLIENT_SECRET + label: "IGDB Client Secret" + help_text: 'The Client Secret of your Twitch application (the "New Secret" button makes one).' + + - env_var: STEAMGRIDDB_API_KEY + label: "SteamGridDB API Key" + help_text: 'Sign up on SteamGridDB, then select the "Generate API key" button under Preferences -> API.' + + - env_var: SCREENSCRAPER_USER + label: "ScreenScraper user name" + help_text: 'Sign up on screenscraper.fr. Your account name is the API user name.' + + - env_var: SCREENSCRAPER_PASSWORD + label: "ScreenScraper password" + help_text: 'The password of your screenscraper.fr account.' + + - env_var: MOBYGAMES_API_KEY + label: "MobyGames API Key" + help_text: 'Sign up on MobyGames, then ask for a key on the API page. It gives detailed game information and credits.' diff --git a/templates/romm/steps/211c8ec7a0531f87.yml b/templates/romm/steps/211c8ec7a0531f87.yml new file mode 100644 index 0000000..7fccb5e --- /dev/null +++ b/templates/romm/steps/211c8ec7a0531f87.yml @@ -0,0 +1,182 @@ +# ROMM - ROM Manager for Game Libraries +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: MariaDB + Redis +# RAM: ~300MB (mem_limit: 1536M total — romm 1024M + mariadb 384M + redis 128M) +# romm 768M -> 1024M (R-994, 2026-10-17: the 2026-10-13 sizing run measured a peak of 703 MB = 92 % of the old 768M; the new limit keeps it at or under ~70 %). | Pi-compatible: No (MariaDB + heavy) +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# HDD_PATH - Drive namespace root (appdata lives here) +# USERDATA_PATH - Ügyfél-tartalom gyökér (/userdata) +# DB_PASSWORD - MariaDB user password (auto-generated) +# MYSQL_ROOT_PASSWORD - MariaDB root password (auto-generated) +# ROMM_AUTH_SECRET_KEY - Auth secret (auto-generated) +# +# Storage layout (felhom userdata convention): +# ROM library → ${USERDATA_PATH}/roms (browsable — drop ROMs here via FileBrowser, +# one folder per platform: roms/gba/, roms/snes/) +# BIOS/firmware → ${USERDATA_PATH}/roms-bios (browsable — roms-bios//) +# Cover art etc → ${HDD_PATH}/appdata/romm/resources (app-internal, NOT browsable) +# App config → romm_config (named volume, NVMe) +# Saves/states → romm_assets (named volume, NVMe — R-1097) +# MariaDB data → romm_db_data (named volume, NVMe) +# Redis data → romm_redis_data (named volume, NVMe) +# +# First-time setup: +# No default login: the first visit creates the admin account, and the box's setup gate keeps +# everyone but the household out until that is done (`.felhom.yml` setup_gate). + +services: + romm: + image: rommapp/romm:5.3.1 + container_name: romm + restart: unless-stopped + depends_on: + romm-db: + condition: service_healthy + romm-redis: + condition: service_healthy + entrypoint: ["/bin/sh", "-c"] + command: + - | + if [ ! -f /romm/config/config.yml ]; then + echo "Creating default config.yml..." + cat > /romm/config/config.yml << 'CONF' + exclude: + platforms: [] + roms: [] + system: + log_level: INFO + CONF + fi + exec /docker-entrypoint.sh /init + environment: + - ROMM_AUTH_SECRET_KEY=${ROMM_AUTH_SECRET_KEY} + - DB_PASSWD=${DB_PASSWORD} + - DB_HOST=romm-db + - DB_PORT=3306 + - DB_NAME=romm + - DB_USER=romm + - REDIS_HOST=romm-redis + - REDIS_PORT=6379 + - ROMM_PORT=8080 + # 2, not the image's default of 4. MEASURED on demo-hp 2026-09-22 (R-635): each warm + # uvicorn worker holds ~216 MiB, so four of them plus the master reach ~882 MiB and the + # container was OOM-killed at both 512M and 768M — 37 worker SIGKILLs in five minutes, + # ~500% CPU, host load 5.2 while otherwise idle. Four workers is a SERVER default; this + # is one household on one small box. Two workers measure ~450 MiB and fit 768M with + # real headroom. `/init:143` reads this variable: --workers "${WEB_SERVER_CONCURRENCY:-4}". + - WEB_SERVER_CONCURRENCY=2 + - IGDB_CLIENT_ID=${IGDB_CLIENT_ID:-} + - IGDB_CLIENT_SECRET=${IGDB_CLIENT_SECRET:-} + - STEAMGRIDDB_API_KEY=${STEAMGRIDDB_API_KEY:-} + - SCREENSCRAPER_USER=${SCREENSCRAPER_USER:-} + - SCREENSCRAPER_PASSWORD=${SCREENSCRAPER_PASSWORD:-} + - MOBYGAMES_API_KEY=${MOBYGAMES_API_KEY:-} + - TZ=Europe/Budapest + volumes: + # RomM 5.3.1 reads games from library/roms// and firmware from library/bios// + # (config_manager.py DEFAULT_ROM_STRUCTURE "roms/{platform}/{game}", DEFAULT_FIRMWARE_STRUCTURE + # "bios/{platform}"). Until 2026-10-16 the drive's roms/ was mounted as library/ itself, so a game + # put in roms/gba/ as the first steps said sat at library/gba/ and the scan found NOTHING — measured + # on demo-hp 9201 (R-1089, felhom.eu audits/romm-ghost-2026-10-16/A1). Now roms// IS + # library/roms//. Firmware gets its own drive folder so it stays on the drive and in the + # backup, as it was when it sat inside roms/ (operator ruling 2026-10-16). + - ${USERDATA_PATH}/roms:/romm/library/roms + - ${USERDATA_PATH}/roms-bios:/romm/library/bios + - ${HDD_PATH}/appdata/romm/resources:/romm/resources + - romm_config:/romm/config + # Saves, save states and screenshots (ASSETS_BASE_PATH = /romm/assets, RomM backend/config/__init__.py:39). + # Until 2026-10-16 they sat in the image's anonymous `/romm` volume, which no app backup takes (R-1097, + # measured on demo-hp 9201: felhom.eu audits/burndown-apps-2026-10-16/P1). A named volume is in every backup. + - romm_assets:/romm/assets + networks: + - traefik-public + - romm-internal + deploy: + resources: + limits: + # 768M, not 512M: romm 5.3.0 does not fit in 512M. Measured on demo-hp 2026-09-22 — + # OOMKilled true, 4,530 gunicorn worker SIGKILLs in six hours, ~500% CPU in a permanent + # restart storm, while the web front end still answered 200 so the update read `done` + # (R-635). 5.0.0 did fit; the version moved and the limit did not. + memory: 1024M + healthcheck: + test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:8080/"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 60s + labels: + - "traefik.enable=true" + - "traefik.http.routers.romm.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.romm-xff.headers.customrequestheaders.X-Forwarded-For=" + - "traefik.http.routers.romm.middlewares=romm-xff" + - "traefik.http.routers.romm.entrypoints=websecure" + - "traefik.http.routers.romm.tls=true" + - "traefik.http.routers.romm.tls.certresolver=letsencrypt" + - "traefik.http.services.romm.loadbalancer.server.port=8080" + + romm-db: + image: mariadb:11.8 + container_name: romm-db + restart: unless-stopped + environment: + - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} + - MYSQL_DATABASE=romm + - MYSQL_USER=romm + - 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: + - romm_db_data:/var/lib/mysql + networks: + - romm-internal + deploy: + resources: + limits: + memory: 384M + healthcheck: + test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 30s + + romm-redis: + image: redis:7-alpine + container_name: romm-redis + restart: unless-stopped + command: redis-server --appendonly no + environment: + - TZ=Europe/Budapest + volumes: + - romm_redis_data:/data + networks: + - romm-internal + deploy: + resources: + limits: + memory: 128M + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 10s + timeout: 5s + retries: 3 + +volumes: + romm_config: + romm_assets: + romm_db_data: + romm_redis_data: + +networks: + traefik-public: + external: true + romm-internal: diff --git a/templates/vikunja/.felhom.yml b/templates/vikunja/.felhom.yml index 30bf85e..5d36fa1 100644 --- a/templates/vikunja/.felhom.yml +++ b/templates/vikunja/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "tasks" slug: "vikunja" # 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: @@ -198,6 +198,7 @@ i18n: # gated by scripts/check-test-record.py. An image: move without a proven entry here is refused. update_ladder: - {"from": {"vikunja": "vikunja/vikunja:2.3.0"}, "to": {"vikunja": "vikunja/vikunja:2.6.0"}, "digest": {"vikunja": "sha256:417ada6f94e81f0267aa2f007d0a811fc82d38dd2aa58351e3ea520ca01c2ea5"}, "verdict": "proven", "tested_at": "2026-09-21T19:25:26.344387+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/vikunja/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 22f598b; 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": {"vikunja": "vikunja/vikunja:2.6.0"}, "to": {"vikunja": "vikunja/vikunja:2.7.1"}, "digest": {"vikunja": "sha256:f7dc8428d10aef17f3075886d3c1c022f566ec456f88985f02c137f4fc534576"}, "verdict": "security_fix", "tested_at": "2026-10-27T13:37:33Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/vikunja/", "memory_peak_pct": 12.9, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-hq66-9qg8-jwqg", "GHSA-5q33-h98p-rgh9", "GHSA-m687-p538-r5hp"], "advisory": "https://github.com/go-vikunja/vikunja/security/advisories/GHSA-hq66-9qg8-jwqg", "fixed_in": "2.7.1"}, "seed": "read_back", "memory_basis": "box_soak"} # --- Security watch (felhom.eu R-1303): where each image's security notices are published --- # One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10). diff --git a/templates/vikunja/docker-compose.yml b/templates/vikunja/docker-compose.yml index be4591e..e031138 100644 --- a/templates/vikunja/docker-compose.yml +++ b/templates/vikunja/docker-compose.yml @@ -9,7 +9,7 @@ services: vikunja: - image: vikunja/vikunja:2.6.0 + image: vikunja/vikunja:2.7.1 container_name: vikunja user: "0:0" restart: unless-stopped diff --git a/templates/vikunja/steps/0648126b21eeb5a0.felhom.yml b/templates/vikunja/steps/0648126b21eeb5a0.felhom.yml new file mode 100644 index 0000000..833dbf3 --- /dev/null +++ b/templates/vikunja/steps/0648126b21eeb5a0.felhom.yml @@ -0,0 +1,194 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Vikunja" +description: "Feladatkezelő listák és táblák (Todoist/Trello alternatíva)" +category: "productivity" +subdomain: "tasks" +slug: "vikunja" +# 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: "50M" + mem_limit: "256M" + 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: "tasks" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: VIKUNJA_SERVICE_JWTSECRET + label: "JWT titkosítási kulcs" + type: secret + generate: "hex:32" + 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 +# Decision 47: the app's own sign-up address is closed once the gate opens (measured on 9202 2026-09-29: a stranger's sign-up succeeded after the setup; case-insensitive and slash-tolerant because termix's router ignores case (measured 2026-09-29)). +signup_block: "PathRegexp(`(?i)^/+api/+v1/+register`)" +# The app's OWN sign-up switch, set once the gate opens (measured on 9202 2026-09-29: with it on a stranger's +# sign-up is refused even straight at the app; it also refuses the household's own first account, so it goes on AFTER the setup). The compose default stays open, so an installed app is +# unchanged by the catalog. +after_setup: + env: + SIGNUP_OPEN: "false" + +# --- App info (info page content) --- +app_info: + tagline: "Feladatkezelő - listák, Kanban táblák és Gantt diagramok" + add_people: "Nyisd meg a regisztrációt 15 percre, és a családtagod regisztrál; utána megoszthatod vele a projektjeidet." + docs_url: "https://vikunja.io/docs/" + + use_cases: + - 'Feladatlisták és teendők kezelése' + - 'Kanban tábla nézet (Trello-szerű)' + - 'Gantt diagram projekt ütemezéshez' + - 'Megosztott listák és csapat együttműködés' + - 'Emlékeztetők, lejárati dátumok, címkék és prioritások' + + first_steps: + - 'Nyisd meg a tasks.DOMAIN címet a böngészőben' + - 'Hozd létre a fiókodat' + - 'Hozd létre az első projektet és feladatlistát' + - 'Próbáld ki a Kanban és Lista nézeteket' + - 'Hívd meg a családtagokat vagy kollégákat' + guide: + checked_version: "2.6.0" + sections: + - title: "Feladat gyors felvétele" + intro: "Egy sorban megadhatod a feladatot, a címkéjét és a fontosságát." + steps: + - "Nyisd meg a projektet, és kattints a felső mezőbe, ahová az új feladatot írod." + - "Írd be a feladatot, és csillaggal tegyél mellé címkét, például: Tej *bolt." + - "A fontosságot felkiáltójellel és egy 1 és 5 közötti számmal adod meg, például: !4. Minél nagyobb a szám, annál fontosabb." + - "Nyomj Entert. Ha a címke még nem létezik, a Vikunja létrehozza." + - title: "Ismétlődő teendő" + intro: "A heti szemétkihordást vagy a havi számlát elég egyszer felvenni." + steps: + - "Nyisd meg a feladatot, kattints a „Határidő beállítása” gombra, és add meg az első alkalmat." + - "Kattints az „Állítsa be az ismétlési intervallumot” gombra, és válaszd a „Minden héten” lehetőséget." + - "Ha a feladatot késznek jelölöd, a Vikunja a határidőt a következő alkalomra teszi, és a feladat nyitva marad." + - title: "Projekt megosztása a családdal" + intro: "A közös bevásárlólistát mindenki a saját fiókjából látja és bővíti." + steps: + - "A családtagnak saját fiók kell: a vezérlőpulton, a Vikunja oldalán kattints a „Regisztráció megnyitása 15 percre” gombra, és ő közben regisztrál." + - "A bal oldali listában nyisd meg a projekt menüjét, és kattints a „Megosztás” pontra." + - "A felhasználók résznél írd be pontosan a családtag felhasználónevét, válaszd ki, és kattints a „Megosztás” gombra." + - "Mellette beállíthatod, hogy csak olvassa vagy szerkessze is a projektet." + - title: "Mi esedékes a héten?" + intro: "Egy helyen látod az összes projekt közelgő feladatait." + steps: + - "A bal oldali menüben kattints a „Hamarosan” pontra." + - "Itt a mai naptól egy hétig esedékes feladatok látszanak." + - "Jelöld be „A lejárt feladatok megjelenítése” jelölőt, hogy a lekésett feladatok is látszódjanak." + faq: + - q: "Kapok emlékeztetőt?" + a: "Nem. A Vikunja az emlékeztetőt e-mailben küldené, de a doboz nem állított be neki levelezést, ezért az „Emlékeztető beállítása” itt nem jut el hozzád. A „Hamarosan” nézet mutatja, mi esedékes." + - q: "Miért nem találom a családtagomat a megosztásnál?" + a: "Előbb regisztrálnia kell a saját fiókjával. A keresőbe a pontos felhasználónevét írd, nem a teljes nevét." + - q: "Megadhatok határidőt a gyors felvételnél?" + a: "Igen, de a Vikunja a szavakat csak angolul érti, például tomorrow vagy next monday. Magyarul inkább a „Határidő beállítása” gombot használd." + - q: "Miért angol néhány felirat?" + a: "A Vikunja a böngésződ nyelvét követi, és a magyar fordítása nem teljes. A nyelvet a „Beállítások” „Általános beállítások” részén, a „Nyelv” mezőben válthatod." + - q: "Hogyan tüntetem el a lezárt projektet?" + a: "A projekt menüjében kattints az „Archiválás” pontra. Az archivált projekt megmarad, de nem szerkeszthető, amíg vissza nem veszed." + + +# --- Controller-side health probe --- +healthcheck: + checks: + - type: api + port: 3456 + path: "/api/v1/info" + 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: 'Task lists and boards (a Todoist/Trello alternative)' + app_info: + tagline: 'Task management - lists, Kanban boards and Gantt charts' + add_people: "Open sign-up for 15 minutes, and your family member signs up; then share your projects with them." + use_cases: + - 'Keep your task lists and to-dos' + - 'A Kanban board view (Trello-like)' + - 'A Gantt chart for scheduling a project' + - 'Shared lists, so a team can work together' + - 'Reminders, due dates, labels and priorities' + first_steps: + - 'Open tasks.DOMAIN in your browser' + - 'Create your account' + - 'Create your first project and task list' + - 'Try the Kanban and List views' + - 'Invite the household, or your colleagues' + guide: + sections: + - title: "Add a task quickly" + intro: "In one line you can give the task, its label and its priority." + steps: + - "Open the project and click into the top field where you type a new task." + - "Type the task and add a label with an asterisk, for example: Milk *shop." + - "Set the priority with an exclamation mark and a number from 1 to 5, for example: !4. The higher the number, the more important it is." + - "Press Enter. If the label does not exist yet, Vikunja creates it." + - title: "A repeating chore" + intro: "Taking out the bins every week or paying a monthly bill only has to be added once." + steps: + - "Open the task, select „Set Due Date” and set the first time." + - "Select „Set Repeating Interval” and choose „Every Week”." + - "When you mark the task done, Vikunja moves the due date to the next time and the task stays open." + - title: "Share a project with the family" + intro: "Everyone sees and adds to the shared shopping list from their own account." + steps: + - "The family member needs their own account: on the dashboard, on the Vikunja page, select „Open sign-up for 15 minutes”, and they sign up meanwhile." + - "In the list on the left, open the project's menu and select „Share”." + - "In the users part, type the family member's exact username, choose them and select „Share”." + - "Next to them you can set whether they only read the project or can edit it too." + - title: "What is due this week?" + intro: "You see the coming tasks of all your projects in one place." + steps: + - "In the menu on the left, select „Upcoming”." + - "It shows the tasks due from today until a week from now." + - "Tick „Show overdue tasks” to see the tasks you missed as well." + faq: + - q: "Do I get reminders?" + a: "No. Vikunja would send reminders by e-mail, but the box did not set up mail for it, so „Set Reminders” does not reach you here. The „Upcoming” view shows what is due." + - q: "Why can I not find my family member when sharing?" + a: "They have to sign up with their own account first. Type their exact username into the search, not their full name." + - q: "Can I give a due date in the quick add?" + a: "Yes, but Vikunja understands the words only in English, for example tomorrow or next monday. Otherwise use „Set Due Date”." + - q: "Why is some text in English?" + a: "Vikunja follows your browser's language, and its Hungarian translation is not complete. You can change it in „Language” under „General Settings” in „Settings”." + - q: "How do I hide a finished project?" + a: "In the project's menu, select „Archive”. An archived project stays, but you cannot edit it until you take it back." + 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: VIKUNJA_SERVICE_JWTSECRET + label: 'JWT encryption key' diff --git a/templates/vikunja/steps/0648126b21eeb5a0.yml b/templates/vikunja/steps/0648126b21eeb5a0.yml new file mode 100644 index 0000000..be4591e --- /dev/null +++ b/templates/vikunja/steps/0648126b21eeb5a0.yml @@ -0,0 +1,55 @@ +# Vikunja - Feladatkezelő listák és táblák (Todoist/Trello alternatíva) +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: None (file-based) +# RAM: ~50M (mem_limit: 256M) | Pi-compatible: Yes +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# VIKUNJA_SERVICE_JWTSECRET- JWT titkosítási kulcs (auto-generated) + +services: + vikunja: + image: vikunja/vikunja:2.6.0 + container_name: vikunja + user: "0:0" + restart: unless-stopped + environment: + # decision 47: the app's own sign-up switch — open until the box closes it after the first admin (after_setup) + - VIKUNJA_SERVICE_ENABLEREGISTRATION=${SIGNUP_OPEN:-true} + - TZ=Europe/Budapest + - VIKUNJA_SERVICE_PUBLICURL=https://${SUBDOMAIN}.${DOMAIN} + - VIKUNJA_SERVICE_JWTSECRET=${VIKUNJA_SERVICE_JWTSECRET} + # R-776 (R-753, controller >= 0.286.0): the default `direct` reads the TCP peer (traefik) — one address for every + # visitor, so a stranger trips the login floor (10/min per address) for the household. `xff` walks X-Forwarded-For + # from the RIGHT skipping private addresses (echo's default trust): the tunnel's real visitor, or the LAN client. + # measured on 9202 2026-10-06 with a control (checklist 3.6; felhom.eu audits/morning-after-2026-10-06/live-9202/). + - VIKUNJA_SERVICE_IPEXTRACTIONMETHOD=xff + volumes: + - vikunja_data:/app/vikunja/files + - vikunja_db:/db + networks: + - traefik-public + deploy: + resources: + limits: + memory: 256M + # No healthcheck (R-760): the image ships no shell (scripts/upgrade-test.py reads its OOM counter host-side + # for that reason), so neither the CMD-SHELL nor the wget/curl family of REUSE.md §2 can run inside it. Not + # measured: whether the image declares its own HEALTHCHECK. The box is not blind — its own probe + # (.felhom.yml `healthcheck.checks`, api :3456 /api/v1/info expect 200) dials it from outside; only + # Docker's own health state is empty. A healthcheck here needs the image's config READ first, never guessed. + labels: + - "traefik.enable=true" + - "traefik.http.routers.vikunja.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.vikunja.entrypoints=websecure" + - "traefik.http.routers.vikunja.tls=true" + - "traefik.http.routers.vikunja.tls.certresolver=letsencrypt" + - "traefik.http.services.vikunja.loadbalancer.server.port=3456" + +volumes: + vikunja_data: + vikunja_db: + +networks: + traefik-public: + external: true diff --git a/templates/wishlist/.felhom.yml b/templates/wishlist/.felhom.yml index a0fb215..c25f542 100644 --- a/templates/wishlist/.felhom.yml +++ b/templates/wishlist/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "wishes" slug: "wishlist" # 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-23" +catalog_since: "2026-10-27" # --- Resource hints (displayed on deploy screen) --- resources: @@ -190,6 +190,7 @@ i18n: # gated by scripts/check-test-record.py. An image: move without a proven entry here is refused. update_ladder: - {"from": {"wishlist": "ghcr.io/cmintey/wishlist:v0.66.0"}, "to": {"wishlist": "ghcr.io/cmintey/wishlist:v0.67.1"}, "digest": {"wishlist": "sha256:4b89bfb5b57ffb087c33978d21b09048e5c37f4506326e9ccd2705a0a1d86548"}, "verdict": "proven", "tested_at": "2026-09-23T19:37:37Z", "harness_version": 3, "evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/wishlist/bench/evidence/MV-wishlist/verdict.json", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/wishlist/verdict.json", "memory_peak_pct": 35.9, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 52.9} + - {"from": {"wishlist": "ghcr.io/cmintey/wishlist:v0.67.1"}, "to": {"wishlist": "ghcr.io/cmintey/wishlist:v0.69.0"}, "digest": {"wishlist": "sha256:a3c0482c5d55155a3aa96c4cbb63d2aa379f02ae3bbeb76909ffed2b15980f36"}, "verdict": "proven", "tested_at": "2026-10-27T13:24:38Z", "harness_version": 5, "evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/bench/wishlist/evidence/MV-wishlist/", "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/wishlist/", "memory_peak_pct": 21.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 89.2} # --- 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/wishlist/docker-compose.yml b/templates/wishlist/docker-compose.yml index 3878e2b..0770ef8 100644 --- a/templates/wishlist/docker-compose.yml +++ b/templates/wishlist/docker-compose.yml @@ -8,7 +8,7 @@ services: wishlist: - image: ghcr.io/cmintey/wishlist:v0.67.1 + image: ghcr.io/cmintey/wishlist:v0.69.0 container_name: wishlist restart: unless-stopped environment: diff --git a/templates/wishlist/steps/33a677d99c540590.felhom.yml b/templates/wishlist/steps/33a677d99c540590.felhom.yml new file mode 100644 index 0000000..c8621ce --- /dev/null +++ b/templates/wishlist/steps/33a677d99c540590.felhom.yml @@ -0,0 +1,186 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= + +# --- Display info (shown on dashboard) --- +display_name: "Wishlist" +description: "Családi kívánságlista megosztás" +category: "home" +subdomain: "wishes" +slug: "wishlist" +# 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-23" + +# --- Resource hints (displayed on deploy screen) --- +resources: + mem_request: "120M" + mem_limit: "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: "wishes" + 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 +# R-717 (`09` §3 decision 47; controller >= 0.301.0 for open_command): Wishlist keeps its sign-up switch ONLY in its own +# database (system_config, key enableSignup, group "global"; read on every request by getConfig, measured 2026-10-06 in +# v0.67.1 — no row means the built-in default, OPEN). The address block alone closed it until now. `command` closes it +# after the household's setup; `open_command` opens it for the household's 15-minute window, and `command` closes it +# again when the window ends, after a restart and after an update. Node's own sqlite module (node 24 in the image) — no +# extra tool; the value is read back and the marker printed only when it reads what was written. +min_controller: "0.301.0" +after_setup: + service: wishlist + command: ["node", "-e", "const {DatabaseSync}=require('node:sqlite');const db=new DatabaseSync('/usr/src/app/data/prod.db');db.exec('PRAGMA busy_timeout=10000');db.prepare(\"insert into system_config(key,value,groupId) values('enableSignup',?,'global') on conflict(key,groupId) do update set value=excluded.value\").run('false');const r=db.prepare(\"select value from system_config where key='enableSignup' and groupId='global'\").get();if(r&&r.value==='false')console.log('FELHOM_SIGNUP_CLOSED');"] + success: "FELHOM_SIGNUP_CLOSED" + open_command: ["node", "-e", "const {DatabaseSync}=require('node:sqlite');const db=new DatabaseSync('/usr/src/app/data/prod.db');db.exec('PRAGMA busy_timeout=10000');db.prepare(\"insert into system_config(key,value,groupId) values('enableSignup',?,'global') on conflict(key,groupId) do update set value=excluded.value\").run('true');const r=db.prepare(\"select value from system_config where key='enableSignup' and groupId='global'\").get();if(r&&r.value==='true')console.log('FELHOM_SIGNUP_OPEN');"] + open_success: "FELHOM_SIGNUP_OPEN" +# Decision 47: the app's own sign-up address is closed once the gate opens (measured on 9202 2026-09-29: a stranger's sign-up succeeded after the setup; case-insensitive and slash-tolerant because termix's router ignores case (measured 2026-09-29)). +signup_block: "PathRegexp(`(?i)^/+signup/*$`)" + +# --- App info (info page content) --- +app_info: + tagline: "Családi kívánságlista - karácsonyra, születésnapokra" + add_people: "Nyisd meg a regisztrációt 15 percre, és a családtagod regisztrál (a Wishlist meghívó linkje is ebben az időben működik)." + docs_url: "https://github.com/cmintey/wishlist" + + use_cases: + - 'Kívánságlisták létrehozása karácsonyra, születésnapokra' + - 'Családtagok meghívása saját listáik kezeléséhez' + - 'Ajándékok lefoglalása meglepetés nélkül' + - 'Árak és linkek hozzáadása az ajándékokhoz' + - 'Csoportos ajándékok szervezése' + + first_steps: + - 'Nyisd meg a wishes.DOMAIN címet a böngészőben' + - 'Hozd létre a fiókodat' + - 'Hozd létre az első kívánságlistádat' + - 'Hívd meg a családtagokat' + guide: + checked_version: "v0.67.1" + sections: + - title: "Kívánság felvétele webshop linkből" + intro: "Ha megvan a termék linkje, a Wishlist maga tölti ki a nevét, az árát és a képét." + steps: + - "A „My Lists” (saját listáim) oldalon nyisd meg a listádat, és kattints a jobb alsó sarokban a plusz gombra." + - "Másold be a termék linkjét az „Item URL” (termék címe) mezőbe, és várd meg, amíg az adatok betöltődnek." + - "A „Notes” (megjegyzés) mezőbe írd be, ami fontos, például méretet vagy színt." + - "Ha ez a legnagyobb vágyad, kapcsold be a „Most wanted” (legjobban vágyott) jelölőt, majd kattints a „Create item” (létrehozás) gombra." + - title: "Ajándék lefoglalása" + intro: "Foglald le, amit megveszel, így ketten nem veszik meg ugyanazt." + steps: + - "A „Home” (kezdőlap) oldalon nyisd meg a családtag listáját." + - "Az ajándéknál kattints a „Claim” (lefoglalom) gombra, majd a megjelenő ablakban is a „Claim” gombra." + - "A lista gazdája nem látja, hogy mit foglaltak le, a többi családtag viszont látja a neved az ajándék mellett." + - title: "A lefoglalt ajándékaid" + intro: "Egy helyen látod, mit vállaltál, és mit vettél már meg." + steps: + - "Kattints a „My Claims” (foglalásaim) pontra." + - "Ha megvetted az ajándékot, kattints a mellette lévő táska ikonra, a „Mark item as purchased” (megvettem) gombra." + - "Ha mégsem veszed meg, kattints az „Unclaim” (foglalás törlése) gombra, majd a megjelenő ablakban is, hogy más lefoglalhassa." + - title: "Ötlet más listájára" + intro: "Másnak is javasolhatsz kívánságot, de az csak akkor kerül fel, ha ő elfogadja." + steps: + - "Nyisd meg a családtag listáját, és kattints a jobb alsó sarokban a plusz gombra." + - "Töltsd ki a kívánságot ugyanúgy, mint a sajátodnál, és kattints a „Create item” gombra." + - "A lista gazdája az „Approvals” (jóváhagyások) résznél látja a javaslatot, és elfogadja vagy elutasítja." + faq: + - q: "Látja a családtag, hogy mit foglaltam le a listájáról?" + a: "Nem: a lista gazdája nem látja a foglalásokat. A többi családtag látja, hogy te foglaltad le, így nem veszik meg kétszer." + - q: "Miért nem működik a meghívó link?" + a: "A regisztráció csak akkor nyitott, amikor a vezérlőpulton, a Wishlist oldalán a „Regisztráció megnyitása 15 percre” gombot megnyomod. A meghívó linket ebben az időben kell megnyitni." + - q: "Van magyar nyelve?" + a: "Ebben a változatban nincs: a Wishlist angolul jelenik meg, a böngésző nyelvétől függetlenül. Az útmutató ezért zárójelben megadja a feliratok jelentését." + - q: "Feltölthetek saját képet egy kívánsághoz?" + a: "Igen: a kívánság szerkesztésekor kattints az „Upload Image” (kép feltöltése) gombra. Ez akkor jó, ha a termék nem webshopból van." + - q: "Hogyan rendezem a kívánságaimat?" + a: "A listádon kattints a „Reorder” (átrendezés) gombra, állítsd be a sorrendet, majd kattints a „Finish” (kész) gombra." + + +# --- 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: 'Wish lists shared across the household' + app_info: + tagline: 'A family wish list - for Christmas and birthdays' + add_people: "Open sign-up for 15 minutes, and your family member signs up (Wishlist's invite link works in that time too)." + use_cases: + - 'Make wish lists for Christmas and birthdays' + - 'Invite the household so each keeps their own list' + - 'Claim a gift without spoiling the surprise' + - 'Add prices and links to the gifts' + - 'Organise a present several people chip in for' + first_steps: + - 'Open wishes.DOMAIN in your browser' + - 'Create your account' + - 'Create your first wish list' + - 'Invite the household' + guide: + sections: + - title: "Add a wish from a web shop link" + intro: "When you have the product's link, Wishlist fills in its name, price and picture by itself." + steps: + - "On the „My Lists” page, open your list and select the plus button in the bottom right corner." + - "Paste the product's link into „Item URL” and wait while the data loads." + - "In „Notes”, write what matters, for example the size or the colour." + - "If you want this most of all, switch on „Most wanted”, then select „Create item”." + - title: "Claim a gift" + intro: "Claim what you are going to buy, so that two people do not buy the same thing." + steps: + - "On the „Home” page, open the family member's list." + - "At the gift, select „Claim”, then „Claim” again in the window that opens." + - "The owner of the list does not see what was claimed, but the other family members see your name next to the gift." + - title: "The gifts you claimed" + intro: "You see in one place what you took on and what you have already bought." + steps: + - "Select „My Claims”." + - "When you have bought the gift, select the bag icon next to it, the „Mark item as purchased” button." + - "If you are not going to buy it after all, select „Unclaim”, then again in the window that opens, so that someone else can claim it." + - title: "An idea for someone else's list" + intro: "You can suggest a wish to someone else too, but it only goes on the list if they accept it." + steps: + - "Open the family member's list and select the plus button in the bottom right corner." + - "Fill in the wish the same way as your own and select „Create item”." + - "The owner of the list sees the suggestion under „Approvals” and accepts or declines it." + faq: + - q: "Does my family member see what I claimed from their list?" + a: "No: the owner of a list does not see the claims. The other family members see that you claimed it, so nobody buys it twice." + - q: "Why does the invite link not work?" + a: "Sign-up is open only after you press „Open sign-up for 15 minutes” on the dashboard, on the Wishlist page. Open the invite link during that time." + - q: "Is there a Hungarian version?" + a: "Not in this version: Wishlist shows in English, whatever your browser's language. That is why the Hungarian guide gives the meaning of the labels in brackets." + - q: "Can I upload my own picture for a wish?" + a: "Yes: when you edit the wish, select „Upload Image”. This helps when the product is not from a web shop." + - q: "How do I put my wishes in order?" + a: "On your list, select „Reorder”, set the order, then select „Finish”." + 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/wishlist/steps/33a677d99c540590.yml b/templates/wishlist/steps/33a677d99c540590.yml new file mode 100644 index 0000000..3878e2b --- /dev/null +++ b/templates/wishlist/steps/33a677d99c540590.yml @@ -0,0 +1,73 @@ +# Wishlist - Családi kívánságlista megosztás +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: None (file-based) +# RAM: ~115M running, 312M peak during the first-boot seed (mem_limit: 512M) | Pi-compatible: Yes +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) + +services: + wishlist: + image: ghcr.io/cmintey/wishlist:v0.67.1 + container_name: wishlist + restart: unless-stopped + environment: + - TZ=Europe/Budapest + volumes: + # Storage layout. The image declares `VOLUME /usr/src/app/data` and + # `VOLUME /usr/src/app/uploads` (docker image inspect → Config.Volumes), and upstream's own + # compose mounts exactly those two. `/data` — what this template used to mount — is a path + # the application never writes. + # + # The consequence, measured 2026-08-02: `prod.db` landed in the ANONYMOUS volume docker + # created for the image's VOLUME directive. An anonymous volume survives a restart, which is + # what makes it deceptive — but it is absent from ResolveDockerVolumeNames + # (felhom-controller internal/appbackup/appdata.go, which only returns _ for + # volumes DECLARED here), so DumpAppVolumes never backs it up, and `compose down` + `up` + # orphans it and creates a fresh empty one. Meanwhile `wishlist_data` was tarred every night + # as an empty directory. + - wishlist_data:/usr/src/app/data + - wishlist_uploads:/usr/src/app/uploads + networks: + - traefik-public + deploy: + resources: + limits: + # 512M, MEASURED 2026-09-23 (R-612): the first boot runs `prisma db seed`, which peaked at + # 312-345M; at 128M it was OOM-killed on every run (kernel oom_kill 3), sometimes before the + # Role/Group rows existed — then EVERY sign-up fails and the page says "already exists". + # Running, the app sits at ~115M, which is 90% of the old 128M on its own. + memory: 512M + healthcheck: + # A wishlist képfájlban nincs wget és nincs curl — csak node. A korábbi + # wget próba ezért soha nem futott le, a konténer véglegesen unhealthy + # maradt, és a Traefik nem irányított rá forgalmat (404). + # + # R-612 (2026-10-06): the check also reads the first-boot SEED. Upstream's entrypoint runs + # `migrate deploy && db seed && db:patch` and then `exec pnpm start` on its own line, so a killed + # seed still starts the app — and without the `role` and `group` rows EVERY sign-up fails with the + # lie "already exists", while an HTTP-only check read healthy. Healthy now needs the three role rows + # and a group (or a user — an admin may delete the default group later). node:sqlite is built into + # the image's Node 24; read-only. Measured on the bench: the old check passed a seedless database + # (rc 0), this one refuses it (rc 1) and passes a seeded one + # (felhom.eu/documentation/audits/night-burndown-2026-10-06/cat/R-612-red.txt). + test: ["CMD", "node", "-e", "let ok=false;try{const {DatabaseSync}=require('node:sqlite');const d=new DatabaseSync('/usr/src/app/data/prod.db',{readOnly:true});const n=q=>d.prepare(q).get().n;ok=n('SELECT count(*) AS n FROM role')>=3&&(n('SELECT count(*) AS n FROM \"group\"')>0||n('SELECT count(*) AS n FROM user')>0);d.close()}catch(e){}if(!ok){console.error('wishlist: first-boot seed incomplete (role/group rows missing)');process.exit(1)}require('http').get('http://127.0.0.1:3000',r=>process.exit(r.statusCode<500?0:1)).on('error',()=>process.exit(1))"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.wishlist.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.wishlist.entrypoints=websecure" + - "traefik.http.routers.wishlist.tls=true" + - "traefik.http.routers.wishlist.tls.certresolver=letsencrypt" + - "traefik.http.services.wishlist.loadbalancer.server.port=3000" + +volumes: + wishlist_data: + wishlist_uploads: + +networks: + traefik-public: + external: true