diff --git a/CHANGELOG.md b/CHANGELOG.md index 0266f89..7f70513 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## 2026-10-16 — RomM's saves into the backup (R-1097); no false „known, shared password" on eight apps (R-1102, D10 = A) + +- **RomM:** `romm_assets:/romm/assets` (a named volume) in the compose and both `steps/` files. RomM 5.3.1 writes saves, + save states and screenshots to `/romm/assets` (`ASSETS_BASE_PATH`); the image's `VOLUME /romm` put them in an + anonymous volume that no app backup takes — measured on demo-hp 9201: every RomM backup there held only romm_config, + romm_db_data and romm_redis_data (felhom.eu `audits/burndown-apps-2026-10-16/P1/`). A named volume is in every app + backup and comes back with a restore. No one-time copy (operator 2026-10-16: no RomM saves worth keeping on any box; + the hub shows RomM only on demo-hp). New gate `image-volumes` (`check-image-volumes.py`, `--fast`): a measured + registry of image data paths kept in an anonymous VOLUME must be mounted by the template; decoys, red-proved. +- **D10 = A (R-1102):** `app_info.default_creds` removed (Hungarian and English) from grafana, gokapi, kimai, + code-server, nzbget, nextcloud, transmission, prowlarr. With no `after_install` the controller said „Ez az alkalmazás + egy ismert, közös jelszóval indul…" about a password the box generated, the household typed, or (prowlarr) makes on + the first visit. The login panel (controller ≥ 0.320.0) says where the login is; the user name „admin" stays in the + first steps of grafana, gokapi, nzbget and transmission. Copy freeze re-captured, reason recorded per app. + `test_catalog_gates.py` `D10NoFalseKnownLogin` (red-proved) and the gate count 18. + ## 2026-10-16 — `app_info.login_kind`: what the app page says when the box holds no login (controller ≥ 0.320.0) - New optional key `app_info.login_kind: first_visit | email | none` (default `first_visit` — leave it out). An enum, diff --git a/scripts/catalog_gates.py b/scripts/catalog_gates.py index 0289425..e0412b3 100644 --- a/scripts/catalog_gates.py +++ b/scripts/catalog_gates.py @@ -143,6 +143,9 @@ GATES = [ # 2026-10-16 (controller 0.320.0): `app_info.login_kind` is one of first_visit | email | none. An enum, not copy; # a typo would read as first_visit on the box. Static, stdlib only, so --fast: the hook and CI. ("login-kind", "check-login-kind.py", False, True, False), + # R-1097 (2026-10-16): a household-data path an image keeps in its own anonymous VOLUME (RomM's /romm/assets) is + # mounted by the template, or no app backup takes it. Measured registry; static, stdlib only: the hook and CI. + ("image-volumes", "check-image-volumes.py", False, True, False), ] # 3 (R-605): the gate's HARNESS refused to run — its canary failed or it had nothing to judge — so NO app was diff --git a/scripts/check-image-volumes.py b/scripts/check-image-volumes.py new file mode 100644 index 0000000..6b60b88 --- /dev/null +++ b/scripts/check-image-volumes.py @@ -0,0 +1,139 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +"""check-image-volumes.py — a household-data path an image keeps in its own anonymous VOLUME is mounted by the template. + + python3 scripts/check-image-volumes.py # every template (+ its steps/ files) + python3 scripts/check-image-volumes.py --root DIR # another checkout (the decoy harness) + +WHY (R-1097, 2026-10-16). RomM 5.3.1's image declares `VOLUME /romm`, and the app writes the household's saves, save +states and screenshots to `/romm/assets` (`ASSETS_BASE_PATH`, backend/config/__init__.py:39). The template mounted +nothing there, so Docker gave the container an ANONYMOUS volume — and the app backup takes only the named volumes the +compose declares and the drive folders it binds (`backup.ResolveDockerVolumeNames`). Measured on demo-hp 9201: every +earlier RomM backup held romm_config, romm_db_data, romm_redis_data — and no saves +(felhom.eu audits/burndown-apps-2026-10-16/P1). The fix is a named volume; this gate keeps it there. + +THE REGISTRY is measured, not guessed: each entry is an image whose own VOLUME holds household data, with the path(s) +the app writes that data to. Add an entry when a measurement finds one (`docker inspect` of the running container: +a 64-hex volume name at a data path). A path is satisfied by a mount AT that path on a service running that image — +a named volume or a bind. A mount at a parent (`/romm`) or a child (`/romm/assets/x`) is not the same thing and fails. + +STANDARD LIBRARY ONLY (the CI runner has no PyYAML): services, `image:` and short-syntax `volumes:` entries are read by +indentation; comments never count. +""" +import io +import os +import re +import sys + +ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + +# image repository (no tag, no digest) → data paths it keeps in its own anonymous VOLUME +REGISTRY = { + "rommapp/romm": ["/romm/assets"], # R-1097, measured on demo-hp 9201 2026-10-16 +} + + +def strip_comment(line): + out, q = [], None + for c in line: + if q: + if c == q: + q = None + elif c in "'\"": + q = c + elif c == "#": + break + out.append(c) + return "".join(out).rstrip() + + +def repo_of(image): + image = image.strip().strip("'\"").split("@", 1)[0] + last = image.rsplit("/", 1)[-1] + if ":" in last: + image = image[: len(image) - len(last)] + last.split(":", 1)[0] + return image + + +def services(path): + """{service: (image repo, [mount targets])} from a compose file.""" + out, cur, in_svcs, in_vols = {}, None, False, False + with io.open(path, encoding="utf-8") as f: + for raw in f: + line = strip_comment(raw.rstrip("\n")) + if not line.strip(): + continue + ind = len(line) - len(line.lstrip(" ")) + if ind == 0: + in_svcs = line.startswith("services:") + cur = None + continue + if not in_svcs: + continue + if ind == 2 and line.strip().endswith(":"): + cur = line.strip()[:-1] + out[cur] = ["", []] + in_vols = False + continue + if cur is None: + continue + if ind == 4: + in_vols = line.strip() == "volumes:" + m = re.match(r"^\s{4}image:\s*(\S+)", line) + if m: + out[cur][0] = repo_of(m.group(1)) + continue + if in_vols and ind >= 6: + m = re.match(r"^\s*-\s*(.+)$", line) + if m: + spec = m.group(1).strip().strip("'\"") + parts = spec.split(":") + if len(parts) >= 2: + out[cur][1].append(parts[1]) + return out + + +def compose_files(tdir): + for app in sorted(os.listdir(tdir)): + d = os.path.join(tdir, app) + p = os.path.join(d, "docker-compose.yml") + if os.path.isfile(p): + yield app, p + sd = os.path.join(d, "steps") + if os.path.isdir(sd): + for fn in sorted(os.listdir(sd)): + if fn.endswith(".yml") and not fn.endswith(".felhom.yml"): + yield app, os.path.join(sd, fn) + + +def main(argv): + root = ROOT + for a in argv: + if a.startswith("--root="): + root = a.split("=", 1)[1] + if "--root" in argv: + root = argv[argv.index("--root") + 1] + tdir = os.path.join(root, "templates") + if not os.path.isdir(tdir): + print("check-image-volumes: no templates/ under %s — nothing to judge (a failure, never a pass)" % root) + return 3 + bad, judged = [], 0 + for app, p in compose_files(tdir): + for svc, (repo, targets) in services(p).items(): + for need in REGISTRY.get(repo, []): + judged += 1 + if need not in targets: + bad.append("%s: service %s (%s) does not mount %s — the image keeps it in an anonymous volume, " + "which no app backup takes (R-1097). Mount a named volume there." % ( + os.path.relpath(p, root), svc, repo, need)) + if bad: + print("check-image-volumes: %d FAILURE(S)" % len(bad)) + for b in bad: + print(" - " + b) + return 1 + print("check-image-volumes gate OK — %d registered data path(s) mounted" % judged) + return 0 + + +if __name__ == "__main__": + sys.exit(main(sys.argv[1:])) diff --git a/scripts/copy_freeze/hu.json b/scripts/copy_freeze/hu.json index 8fc8c87..d8b91f9 100644 --- a/scripts/copy_freeze/hu.json +++ b/scripts/copy_freeze/hu.json @@ -449,7 +449,6 @@ "description": "Interaktív prezentáció és közönség bevonás" }, "code-server": { - "app_info.default_creds": "(telepítéskor generált jelszó)", "app_info.first_steps[0]": "Nyisd meg a code.DOMAIN címet a böngészőben", "app_info.first_steps[1]": "Add meg a hozzáférési jelszót", "app_info.first_steps[2]": "Nyisd meg a terminált (Ctrl+`) és telepíts eszközöket", @@ -853,7 +852,6 @@ "description": "Minimalista információs dashboard" }, "gokapi": { - "app_info.default_creds": "Felhasználó: admin · A jelszó a Beállítások oldalon látható (telepítéskor generált kezdeti jelszó)", "app_info.first_steps[0]": "Nyisd meg a share.DOMAIN címet a böngészőben", "app_info.first_steps[1]": "Lépj be: felhasználó \"admin\", a jelszó a Beállítások oldalon található", "app_info.first_steps[2]": "Tölts fel egy fájlt és generálj megosztási linket", @@ -904,7 +902,6 @@ "description": "Ideiglenes fájlmegosztás lejáró linkekkel" }, "grafana": { - "app_info.default_creds": "admin / (telepítéskor megadott jelszó)", "app_info.first_steps[0]": "Nyisd meg a grafana.DOMAIN címet a böngészőben", "app_info.first_steps[1]": "Jelentkezz be az admin fiókkal", "app_info.first_steps[2]": "Add hozzá az adatforrásokat (Connections > Data Sources)", @@ -1447,7 +1444,6 @@ "description": "Könyvjelzők, cikkek, jegyzetek és képek egy helyen, kereshetően" }, "kimai": { - "app_info.default_creds": "(telepítéskor megadott admin email és jelszó)", "app_info.first_steps[0]": "Nyisd meg a time.DOMAIN címet a böngészőben", "app_info.first_steps[1]": "Jelentkezz be a telepítéskor megadott admin adatokkal", "app_info.first_steps[2]": "Hozd létre az első ügyfelet és projektet", @@ -1832,7 +1828,6 @@ "description": "Könnyű zene szerver Subsonic API támogatással" }, "nextcloud": { - "app_info.default_creds": "Az admin fiók adatait a telepítéskor adod meg", "app_info.first_steps[0]": "Nyisd meg a cloud.DOMAIN címet a böngészőben", "app_info.first_steps[1]": "Jelentkezz be a telepítéskor megadott admin fiókkal", "app_info.first_steps[2]": "Telepítsd a Nextcloud asztali alkalmazást a számítógépedre", @@ -1895,7 +1890,6 @@ "description": "Saját felhő tárhely - Google Drive/Dropbox alternatíva" }, "nzbget": { - "app_info.default_creds": "admin / (telepítéskor generált jelszó)", "app_info.first_steps[0]": "Nyisd meg az nzbget.DOMAIN címet, és lépj be az admin névvel és a telepítéskor kapott jelszóval", "app_info.first_steps[1]": "Add meg a Usenet szolgáltatód adatait a Settings / News-Servers oldalon (szerver, port, felhasználónév, jelszó). Enélkül a letöltés nem indul el", "app_info.first_steps[2]": "A kész letöltések a meghajtódon, a media/nzbget/completed mappába kerülnek", @@ -2389,7 +2383,6 @@ "description": "Titkosított jegyzet és szöveg megosztás" }, "prowlarr": { - "app_info.default_creds": "Az első belépéskor te hozod létre", "app_info.first_steps[0]": "Nyisd meg a prowlarr.DOMAIN címet, és hozd létre a saját belépésedet", "app_info.first_steps[1]": "Az Indexers oldalon add hozzá a forrásaidat - csak itt, egyszer", "app_info.first_steps[2]": "A Sonarr és a Radarr magától megkapja őket: a doboz összeköti őket, bármelyiket telepíted előbb (Settings, Apps)", @@ -3108,7 +3101,6 @@ "description": "Webes SSH és szerver menedzser" }, "transmission": { - "app_info.default_creds": "admin / (telepítéskor generált jelszó)", "app_info.first_steps[0]": "Nyisd meg a transmission.DOMAIN címet, és lépj be az admin névvel és a telepítéskor kapott jelszóval", "app_info.first_steps[1]": "A kész letöltések a meghajtódon, a media/transmission/complete mappába kerülnek. A Sonarr és a Radarr innen veszi át őket, külön hely nélkül", "app_info.first_steps[2]": "Csak olyan tartalmat tölts le, amihez jogod van. A letöltés a háztartásod internetcíméről történik, és a torrent természetéből adódóan a többi résztvevő látja a címedet.", @@ -3544,15 +3536,15 @@ "calcom": "operator decision D12 2026-10-16 (R-1091 (1)(2)): promise reworded to what is true at the pinned tag", "calibre-web": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "claper": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", - "code-server": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", + "code-server": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag; app_info.default_creds removed — D10 = A (operator 2026-10-16, R-1102): the login panel says where the login is; the „known, shared password” sentence was false", "crafty-controller": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "dawarich": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "docmost": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "ghost": "R-1090 2026-10-16: FAQ line on new-device sign-in, true to the shipped mail mapping", "gitea": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "glance": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", - "gokapi": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", - "grafana": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", + "gokapi": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag; app_info.default_creds removed — D10 = A (operator 2026-10-16, R-1102): the login panel says where the login is; the „known, shared password” sentence was false", + "grafana": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag; app_info.default_creds removed — D10 = A (operator 2026-10-16, R-1102): the login panel says where the login is; the „known, shared password” sentence was false", "gramps-web": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "grimmory": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "grocy": "first_steps: a label corrected to what the app shows at its pinned tag (found by the app-guides night, 2026-10-15; verified in upstream source)", @@ -3562,15 +3554,15 @@ "immich": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "jellyfin": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "karakeep": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", - "kimai": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", + "kimai": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag; app_info.default_creds removed — D10 = A (operator 2026-10-16, R-1102): the login panel says where the login is; the „known, shared password” sentence was false", "komga": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "lubelogger": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "mealie": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "metube": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "n8n": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "navidrome": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", - "nextcloud": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", - "nzbget": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", + "nextcloud": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag; app_info.default_creds removed — D10 = A (operator 2026-10-16, R-1102): the login panel says where the login is; the „known, shared password” sentence was false", + "nzbget": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag; app_info.default_creds removed — D10 = A (operator 2026-10-16, R-1102): the login panel says where the login is; the „known, shared password” sentence was false", "onlyoffice": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "opengist": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "outline": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", @@ -3579,7 +3571,7 @@ "plant-it": "user guide added HIDDEN (checked_version empty) - app guides 2026-10-15; see the evidence file for why", "plex": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "privatebin": "first_steps: a label corrected to what the app shows at its pinned tag (found by the app-guides night, 2026-10-15; verified in upstream source)", - "prowlarr": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", + "prowlarr": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag; app_info.default_creds removed — D10 = A (operator 2026-10-16, R-1102): the login panel says where the login is; the „known, shared password” sentence was false", "qbittorrent": "operator decision D11 2026-10-16 (R-1086): stop advising a password change; the box links Sonarr and Radarr with the generated password", "radarr": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag; first_steps: the download-client, Transmission and root-folder steps dropped - the box wires them (controller 0.313.0, 15-media-library.md section 6)", "radicale": "first_steps: a label corrected to what the app shows at its pinned tag (found by the app-guides night, 2026-10-15; verified in upstream source)", @@ -3592,7 +3584,7 @@ "sparkyfitness": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "tandoor": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "termix": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", - "transmission": "operator decision D11 2026-10-16 (R-1086): stop advising a password change; the box links Sonarr and Radarr with the generated password", + "transmission": "operator decision D11 2026-10-16 (R-1086): stop advising a password change; the box links Sonarr and Radarr with the generated password; app_info.default_creds removed — D10 = A (operator 2026-10-16, R-1102): the login panel says where the login is; the „known, shared password” sentence was false", "uptime-kuma": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "vaultwarden": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", "vikunja": "user guide added (app guides 2026-10-15): every label checked against the app at its pinned tag", diff --git a/scripts/test_catalog_gates.py b/scripts/test_catalog_gates.py index 51c400b..ba385f5 100644 --- a/scripts/test_catalog_gates.py +++ b/scripts/test_catalog_gates.py @@ -69,8 +69,10 @@ class CatalogGatesFastTest(unittest.TestCase): # 15 since 2026-10-14: unclean-boot-images (R-1007) — fast, no history, so the hook AND CI. # 16 since 2026-10-15: guide-version — advisory (exit 0 always), fast, no history: the hook AND CI. # 17 since 2026-10-16: login-kind (controller 0.320.0) — fast, no history: the hook AND CI. - self.assertEqual(len(mod.GATES), 17) + # 18 since 2026-10-16: image-volumes (R-1097) — fast, no history: the hook AND CI. + self.assertEqual(len(mod.GATES), 18) self.assertIn("login-kind", [g[0] for g in mod.GATES if g[3] and not g[4]]) + self.assertIn("image-volumes", [g[0] for g in mod.GATES if g[3] and not g[4]]) self.assertIn("guide-version", [g[0] for g in mod.GATES if g[3] and not g[4]]) self.assertIn("unclean-boot-images", [g[0] for g in mod.GATES if g[3] and not g[4]]) self.assertIn("data-key", [g[0] for g in mod.GATES if g[3] and not g[4]]) @@ -156,5 +158,22 @@ class SummaryTellsRefusedFromUndecided(unittest.TestCase): self.assertIn("CONVICTED: image-pins", out) +class D10NoFalseKnownLogin(unittest.TestCase): + """D10 = A (operator 2026-10-16, R-1102): these eight apps have no known, shared default login — the box + generated the password or the household typed it (or makes it on the first visit). With `app_info.default_creds` + and no `after_install`, the controller says „starts with a known, shared password" about them, which is false. + The line is read by indentation (no PyYAML on CI): ` default_creds:` under app_info, ` default_creds:` + in the English block.""" + + EIGHT = ("grafana", "gokapi", "kimai", "code-server", "nzbget", "nextcloud", "transmission", "prowlarr") + + def test_the_eight_carry_no_default_creds(self): + root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + for app in self.EIGHT: + with open(os.path.join(root, "templates", app, ".felhom.yml"), encoding="utf-8") as f: + hits = [l for l in f if l.lstrip().startswith("default_creds:") and not l.lstrip().startswith("#")] + self.assertEqual(hits, [], "%s carries default_creds again: %r" % (app, hits)) + + if __name__ == "__main__": unittest.main(verbosity=2) diff --git a/scripts/test_gate_decoys.py b/scripts/test_gate_decoys.py index 2ae5c15..b21c2ca 100644 --- a/scripts/test_gate_decoys.py +++ b/scripts/test_gate_decoys.py @@ -64,6 +64,7 @@ COVERS = { "data-key": "a data_key: true only in a COMMENT or inside the i18n: block (not the field); an 'Encryption key' LABEL on a signing secret (copy, not the fact - must pass unflagged) - vs the facts: an *_ENCRYPTION_KEY field unflagged, a REGISTERED field unflagged, an unexplained flag, a stale registry entry, a non-boolean flag (R-127)", "unclean-boot-images": "the new image only in a compose COMMENT, on ANOTHER service (machine-learning), or under a COMMENTED-OUT block; a template with no block - each passes; vs the facts: the repair's service bumped with the list unchanged, the same in a steps/ file (the ladder), a block naming a service the compose does not run, a block with an empty images: list; and the genuine bump with the list updated (flow and block list) passes (R-1007, decision 236)", "guide-version": "ADVISORY, exit 0 always: checked_version written only in a COMMENT or only inside the English block (no guide - never read as the fact), the checked tag carried by a SIDECAR while the app's own service moved (still WARNs), an empty checked_version (hidden, named) - vs the fact: the app's image moved off the checked tag (WARN naming both versions, exit 0), and a current guide (no WARN) (2026-10-15)", + "image-volumes": "the data path mounted only in a COMMENT, on ANOTHER service (romm-db), at the PARENT (/romm) or a CHILD (/romm/assets/x), or only as a top-level volume never mounted - each refused; a steps/ file without it refused; vs the facts: a named volume or a bind AT the path passes, an image not in the registry is not judged, no templates/ is rc 3 (R-1097)", "login-kind": "login_kind written only in a COMMENT, only inside the English i18n: block, or under ANOTHER mapping (resources:) - none is the field, each passes; vs the facts: an unknown value (`magic`), a wrong case (`EMAIL`), the key twice, and no templates/ at all (rc 3, never a pass); the three known values pass (controller 0.320.0)", "copy-i18n": "Hungarian edited in a COMMENT/README/display_name (label, not copy) vs a real frozen string changed; an English block that is not English, is not matched to a Hungarian twin, or rewrites a credential (R-560). A retrieval promise REGISTERED in ALLOWLIST_EN passes only for its own app+path+sentence with a real reason; an entry for another app, a rewritten sentence, a stale entry or a two-word reason convicts (R-594). Also the DEGRADED mode CI actually runs — PyYAML shadowed out, freeze only (R-595). THE USER GUIDE (2026-10-15): a download-source name only in a COMMENT or in docs_url passes; vs the facts - guide strings not frozen, checked_version in the English block, an empty steps list, an FAQ entry with no answer, an unquoted version, an English guide with no Hungarian one, more English sections than Hungarian, a different step count, and a source name in either language", } @@ -736,6 +737,48 @@ def login_kind_cases(): shutil.rmtree(ws, ignore_errors=True) +def image_volumes_cases(): + """check-image-volumes.py reads templates/*/docker-compose.yml (+ steps/*.yml) under --root (R-1097).""" + global ran + ws = tempfile.mkdtemp(prefix="catalog-imgvol-") + try: + def compose(romm_vols, db_vols=" - romm_db_data:/var/lib/mysql\n", comment=""): + return ("services:\n romm:\n image: rommapp/romm:5.3.1@sha256:%s\n volumes:\n%s%s" + " romm-db:\n image: mariadb:11.4\n volumes:\n%s" + "volumes:\n romm_assets:\n romm_db_data:\n" % ("0" * 64, comment, romm_vols, db_vols)) + def run(name, files, expect_rc, must=(), no_templates=False): + global ran + cat = os.path.join(ws, "cat") + shutil.rmtree(cat, ignore_errors=True) + os.makedirs(cat) + if not no_templates: + for rel, body in files.items(): + p = os.path.join(cat, "templates", rel) + os.makedirs(os.path.dirname(p), exist_ok=True) + io.open(p, "w", encoding="utf-8").write(body) + r = sh([sys.executable, os.path.join(ROOT, "scripts", "check-image-volumes.py"), "--root=" + cat], ROOT) + out = r.stdout + r.stderr; ran += 1 + ok = r.returncode == expect_rc and all(m in out for m in must) + print(" %s %-70s rc=%d (expected %d)" % ("ok" if ok else "XX", name, r.returncode, expect_rc)) + if not ok: + fails.append("%s: rc=%d expected %d; missing %s\n%s" % (name, r.returncode, expect_rc, [m for m in must if m not in out], out[-400:])) + good = " - romm_assets:/romm/assets\n" + print("\n-- image-volumes: genuine") + run("GENUINE: a named volume AT /romm/assets", {"romm/docker-compose.yml": compose(good)}, 0, ("1 registered",)) + run("GENUINE: a bind AT /romm/assets, quoted", {"romm/docker-compose.yml": compose(" - \"${HDD_PATH}/appdata/romm/assets:/romm/assets\"\n")}, 0, ("1 registered",)) + run("GENUINE: an image not in the registry is not judged", {"demo/docker-compose.yml": "services:\n demo:\n image: nginx:1.27\n"}, 0, ("0 registered",)) + print("-- image-volumes: decoys and facts (each MUST be refused)") + run("DECOY: the mount only in a COMMENT", {"romm/docker-compose.yml": compose(" - romm_config:/romm/config\n", comment=" # - romm_assets:/romm/assets\n")}, 1, ("does not mount /romm/assets",)) + run("DECOY: the mount on ANOTHER service", {"romm/docker-compose.yml": compose(" - romm_config:/romm/config\n", db_vols=" - romm_assets:/romm/assets\n")}, 1, ("does not mount /romm/assets",)) + run("DECOY: the PARENT /romm mounted", {"romm/docker-compose.yml": compose(" - romm_all:/romm\n")}, 1, ("does not mount",)) + run("DECOY: a CHILD /romm/assets/x mounted", {"romm/docker-compose.yml": compose(" - romm_assets:/romm/assets/saves\n")}, 1, ("does not mount",)) + run("DECOY: only a top-level volume, never mounted", {"romm/docker-compose.yml": compose(" - romm_config:/romm/config\n")}, 1, ("does not mount",)) + run("FACT: a steps/ file without it", {"romm/docker-compose.yml": compose(good), "romm/steps/abc.yml": compose(" - romm_config:/romm/config\n")}, 1, ("steps/abc.yml",)) + run("FACT: no templates/ at all (nothing to judge)", {}, 3, ("nothing to judge",), no_templates=True) + finally: + shutil.rmtree(ws, ignore_errors=True) + + def unclean_boot_cases(): """check-unclean-boot-images.py reads FILES: templates/*/.felhom.yml + docker-compose.yml (+ steps/), via --root (R-1007).""" global ran @@ -1817,6 +1860,7 @@ i18n: data_key_cases() unclean_boot_cases() login_kind_cases() + image_volumes_cases() if fails: print() diff --git a/templates/code-server/.felhom.yml b/templates/code-server/.felhom.yml index 91ed9e6..cf680a4 100644 --- a/templates/code-server/.felhom.yml +++ b/templates/code-server/.felhom.yml @@ -45,7 +45,6 @@ deploy_fields: # --- App info (info page content) --- app_info: tagline: "VS Code a böngészőben - teljes fejlesztői környezet bárhonnan" - default_creds: "(telepítéskor generált jelszó)" docs_url: "https://coder.com/docs/code-server/" use_cases: @@ -123,7 +122,6 @@ i18n: description: 'VS Code in your browser - write code from anywhere' app_info: tagline: 'VS Code in your browser - a full development setup from anywhere' - default_creds: '(the password generated at install time)' use_cases: - 'Write code from anywhere, on any device, in a browser' - 'Everything VS Code does - extensions, terminal, debugging' diff --git a/templates/gokapi/.felhom.yml b/templates/gokapi/.felhom.yml index b0d6a6f..74d1b80 100644 --- a/templates/gokapi/.felhom.yml +++ b/templates/gokapi/.felhom.yml @@ -48,7 +48,6 @@ deploy_fields: app_info: tagline: "Ideiglenes fájlmegosztás lejáró linkekkel" docs_url: "https://gokapi.readthedocs.io/" - default_creds: "Felhasználó: admin · A jelszó a Beállítások oldalon látható (telepítéskor generált kezdeti jelszó)" use_cases: - 'Fájlok biztonságos megosztása lejáró linkekkel' @@ -117,7 +116,6 @@ i18n: description: 'Temporary file sharing with links that expire' app_info: tagline: 'Temporary file sharing with links that expire' - default_creds: 'User: admin - the password is on the Settings page (the first password, generated at install time)' use_cases: - 'Share files safely with links that expire' - 'Set how long a link lasts and how many downloads it allows' diff --git a/templates/grafana/.felhom.yml b/templates/grafana/.felhom.yml index edc681f..c1e09d0 100644 --- a/templates/grafana/.felhom.yml +++ b/templates/grafana/.felhom.yml @@ -45,7 +45,6 @@ deploy_fields: # --- App info (info page content) --- app_info: tagline: "Vizualizációs platform - dashboardok, grafikonok, alertek" - default_creds: "admin / (telepítéskor megadott jelszó)" docs_url: "https://grafana.com/docs/grafana/latest/" use_cases: @@ -121,7 +120,6 @@ i18n: description: 'A professional monitoring and visualisation platform' app_info: tagline: 'A visualisation platform - dashboards, graphs and alerts' - default_creds: 'admin / (the password you set at install time)' use_cases: - 'See system numbers as graphs (CPU, RAM, network, disk)' - 'Build your own dashboards from several data sources' diff --git a/templates/kimai/.felhom.yml b/templates/kimai/.felhom.yml index 5461e29..2bbd6bc 100644 --- a/templates/kimai/.felhom.yml +++ b/templates/kimai/.felhom.yml @@ -56,7 +56,6 @@ deploy_fields: # --- App info (info page content) --- app_info: tagline: "Időkövetés - projektek, ügyfelek és munkaidő nyilvántartás" - default_creds: "(telepítéskor megadott admin email és jelszó)" docs_url: "https://www.kimai.org/documentation/" use_cases: @@ -129,7 +128,6 @@ i18n: description: 'Time tracking and project management' app_info: tagline: 'Time tracking - projects, clients and hours worked' - default_creds: '(the admin e-mail and password you set at install time)' use_cases: - 'Record hours worked, split by project and client' - 'A stopwatch you start with one click' diff --git a/templates/nextcloud/.felhom.yml b/templates/nextcloud/.felhom.yml index df023bc..297c237 100644 --- a/templates/nextcloud/.felhom.yml +++ b/templates/nextcloud/.felhom.yml @@ -77,7 +77,6 @@ deploy_fields: # --- App info (info page content) --- app_info: tagline: "A saját Google Drive-od - fájlok, naptár, névjegyek egy helyen" - default_creds: "Az admin fiók adatait a telepítéskor adod meg" docs_url: "https://docs.nextcloud.com/server/latest/user_manual/" use_cases: @@ -186,7 +185,6 @@ i18n: description: 'Your own cloud storage - a Google Drive/Dropbox alternative' app_info: tagline: 'Your own Google Drive - files, calendar and contacts in one place' - default_creds: 'You set the admin account details at install time' use_cases: - 'Sync and share files between your devices' - 'Calendar and contact sync (CalDAV/CardDAV)' diff --git a/templates/nzbget/.felhom.yml b/templates/nzbget/.felhom.yml index c0a64d7..a7a73ef 100644 --- a/templates/nzbget/.felhom.yml +++ b/templates/nzbget/.felhom.yml @@ -89,7 +89,6 @@ deploy_fields: # --- Customer-facing info --- app_info: tagline: "Usenet letöltés egyszerűen, alig észrevehető erőforrásból" - default_creds: "admin / (telepítéskor generált jelszó)" docs_url: "https://nzbget.com/" use_cases: - 'NZB fájlok letöltése a saját meghajtódra, a letöltés utáni kicsomagolással és javítással együtt' @@ -157,7 +156,6 @@ i18n: description: 'A Usenet downloader that barely uses the machine' app_info: tagline: 'Simple Usenet downloading, on almost no resources' - default_creds: 'admin / (the password generated at install time)' use_cases: - 'Download NZB files to your own drive, with the repair and unpacking that follows' - 'Radarr, Sonarr and Jellyseerr can hand the job to it: this is the Usenet-side downloader' diff --git a/templates/prowlarr/.felhom.yml b/templates/prowlarr/.felhom.yml index aab71be..8dd95ad 100644 --- a/templates/prowlarr/.felhom.yml +++ b/templates/prowlarr/.felhom.yml @@ -49,7 +49,6 @@ setup_gate: true # --- App info (info page content) --- app_info: tagline: "A letöltési források egy helyen" - default_creds: "Az első belépéskor te hozod létre" docs_url: "https://wiki.servarr.com/prowlarr" use_cases: @@ -119,7 +118,6 @@ i18n: description: 'Your download sources in one place for Sonarr and Radarr' app_info: tagline: 'Your download sources in one place' - default_creds: 'You create it at the first sign-in' use_cases: - 'Enter your download sources (indexers) once, and Sonarr and Radarr get them by themselves' - 'See each source''s errors and speed in one place' diff --git a/templates/romm/docker-compose.yml b/templates/romm/docker-compose.yml index 9e77749..8df2a75 100644 --- a/templates/romm/docker-compose.yml +++ b/templates/romm/docker-compose.yml @@ -17,6 +17,7 @@ # 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) # @@ -84,6 +85,10 @@ services: - ${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 @@ -166,6 +171,7 @@ services: volumes: romm_config: + romm_assets: romm_db_data: romm_redis_data: diff --git a/templates/romm/steps/7f9c6a74b5891f8e.yml b/templates/romm/steps/7f9c6a74b5891f8e.yml index a201e38..e7288d2 100644 --- a/templates/romm/steps/7f9c6a74b5891f8e.yml +++ b/templates/romm/steps/7f9c6a74b5891f8e.yml @@ -15,6 +15,7 @@ # ROM library → ${USERDATA_PATH}/roms (browsable — drop ROMs here via FileBrowser) # 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) # @@ -73,6 +74,10 @@ services: - ${USERDATA_PATH}/roms:/romm/library - ${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 @@ -151,6 +156,7 @@ services: volumes: romm_config: + romm_assets: romm_db_data: romm_redis_data: diff --git a/templates/romm/steps/90dd9d68258286ef.yml b/templates/romm/steps/90dd9d68258286ef.yml index dffeb31..8cf1832 100644 --- a/templates/romm/steps/90dd9d68258286ef.yml +++ b/templates/romm/steps/90dd9d68258286ef.yml @@ -15,6 +15,7 @@ # ROM library → ${USERDATA_PATH}/roms (browsable — drop ROMs here via FileBrowser) # 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) # @@ -73,6 +74,10 @@ services: - ${USERDATA_PATH}/roms:/romm/library - ${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 @@ -151,6 +156,7 @@ services: volumes: romm_config: + romm_assets: romm_db_data: romm_redis_data: diff --git a/templates/transmission/.felhom.yml b/templates/transmission/.felhom.yml index b80d056..46ac351 100644 --- a/templates/transmission/.felhom.yml +++ b/templates/transmission/.felhom.yml @@ -91,7 +91,6 @@ deploy_fields: # --- Customer-facing info --- app_info: tagline: "Torrent letöltés egyszerűen, alig észrevehető erőforrásból" - default_creds: "admin / (telepítéskor generált jelszó)" docs_url: "https://transmissionbt.com/" use_cases: - 'Torrentek letöltése a saját meghajtódra, egyszerű felületről' @@ -156,7 +155,6 @@ i18n: description: 'A simple torrent downloader that barely uses the machine' app_info: tagline: 'Simple torrent downloading, on almost no resources' - default_creds: 'admin / (the password generated at install time)' use_cases: - 'Download torrents to your own drive from a simple interface' - 'You see the finished files in the file browser and in your media player'