Compare commits

...
Author SHA1 Message Date
adminandClaude Opus 5.5 b605815031 New app: Securo 0.18.0 (family finances), with its complete onboarding record — on the operator's yes
gates / gates (push) Successful in 26s
templates/securo/: the page (nginx), the backend (migrates before uvicorn — no one-shot job), a Celery
worker and beat, pgvector 0.8.7-pg16, redis 8.10.3-alpine; 1920M. Setup gate (has_users probe, measured
false -> true), sign-up off from the first byte, optional modules off, TRUSTED_PROXY_HOPS=3 measured
through the simulated tunnel. First ladder step 0.17.0 -> 0.18.0 by the writer (bench + 9202 proven; the
undo on a real failure proven on 9202). Fixture, data-key reason, copy freeze, README, FIRST-ADMIN.
Record: onboarding/securo.md. Evidence: felhom.eu documentation/audits/new-app-securo-2026-11-15/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
2026-11-15 15:20:47 +01:00
admin f4c5c797d9 Four big steps on the operator's yes: paperless-ngx 3.4.1 (felhom.eu R-1331), n8n 3.0.1 (R-1356), mealie v3.30.0, termix 26.11.0 (R-1359); bench + box proven, written by the writer
gates / gates (push) Successful in 20s
2026-11-03 09:06:07 +01:00
admin c760fca938 Security batch 2026-11-02 (felhom.eu R-1336 + the new notices): security-fix steps gitea 28.3.0, uptime-kuma 2.5.9, grafana 13.2.5, actualbudget 26.11.0, n8n 2.46.4, vaultwarden 1.37.5-alpine (9202 proven, negative control first); fixtures: n8n start race, the box-admin guard knows the drill mirror, Vaultwarden's register route, Actual's log
gates / gates (push) Successful in 18s
2026-11-03 00:34:18 +01:00
admin 313eaf68d0 CHANGELOG + REPORT: Plex test record (felhom.eu R-1238), memory watch live figure (R-1338) — the night's prepared commits, applied on 0baf8f9
gates / gates (push) Successful in 17s
2026-10-29 09:59:59 +01:00
admin ddf20f420b Plex test record 1.41.4.9463 -> 1.43.5.11029, bench + box 9202 proven (felhom.eu R-1238); catalog_since stays 2026-10-23 (the pin did not move) 2026-10-29 09:59:21 +01:00
cc 3671802c29 R-1338 memory figure + Plex fixtures + Wanderer entry re-measure 2026-10-29 09:59:21 +01:00
admin 0baf8f9485 Gitea big step 1.27.3 -> 28.2.0 (bench + box + undo proven); repository import only from github.com, codeberg.org, gitlab.com (D57, operator); Gitea fixture commits a file and posts the whole installer form (felhom.eu R-1315)
gates / gates (push) Successful in 21s
2026-10-28 21:10:39 +01:00
admin 9ef06a7a89 Seerr big step: Jellyseerr 2.7.3 -> Seerr v3.5.1, a definition step (init, /app/config to UID 1000, Seerr as node); bench + box + undo proven; Seerr fixture with a throwaway Jellyfin (felhom.eu R-1317)
gates / gates (push) Successful in 50s
2026-10-28 16:57:09 +01:00
admin 1a254d4416 Homepage big step v1.13.2 -> v2.7.0 (bench + box + undo proven; the fixture reads its first-start config) (felhom.eu R-1320)
gates / gates (push) Successful in 1m8s
2026-10-28 16:14:52 +01:00
admin 589c957eb9 Termix big step, hop 2: 2.9.2 -> 26.10.5 (bench + box + undo proven; the X-Forwarded-For test on 9202) (felhom.eu R-1311, D58)
gates / gates (push) Successful in 50s
2026-10-28 15:05:34 +01:00
admin e0b9594c41 Termix big step, hop 1: 2.8.0 -> 2.9.2 (bench + box + undo proven) (felhom.eu R-1311)
gates / gates (push) Successful in 47s
2026-10-28 15:05:34 +01:00
admin 1825247d0f Wanderer big step v0.20.0 -> v0.21.2 (bench + box + undo proven): PocketBase internal, inbound federation off, sign-up lock on PUT /api/v1/user, Meilisearch 384M; offered again (D59 ends, operator); Wanderer + Homepage fixtures; box_walk --to-definition (felhom.eu R-1335)
gates / gates (push) Successful in 44s
2026-10-28 14:06:25 +01:00
admin 0829994440 HTTP2Shell (CVE-2026-111497) lane batch 4: security-fix step adventurelog v0.13.1 (Node 26.12.1 read from the image; 9202 proven); health-check start_period 300 s (slow start after migrations) (felhom.eu R-1332)
gates / gates (push) Successful in 43s
2026-10-28 11:57:12 +01:00
admin 651a991732 HTTP2Shell (CVE-2026-111497) lane batch 3: security-fix steps papra 26.7.1-rootless, dawarich 1.19.0 (runtimes read from the image; 9202 proven); box_walk loads the drill into the box before the install (felhom.eu R-1332)
gates / gates (push) Successful in 38s
2026-10-28 11:08:02 +01:00
admin 71e3fdfc95 HTTP2Shell (CVE-2026-111497) lane batch 2: security-fix steps karakeep 0.34.1, tandoor 2.7.2 (Node 24.22.1 read from the image; 9202 proven); box_walk moves two services sharing one image (felhom.eu R-1332)
gates / gates (push) Successful in 40s
2026-10-28 10:31:38 +01:00
admin abf3db352e HTTP2Shell (CVE-2026-111497) lane batch 1: security-fix steps ghost 6.73.0-alpine, metube 2026.10.27, zipline 4.8.2 (runtimes read from the image; 9202 proven); Papra fixture sends Origin (felhom.eu R-1332)
gates / gates (push) Successful in 41s
2026-10-28 09:22:05 +01:00
admin 0158b50541 HTTP2Shell (CVE-2026-111497): Immich security-fix step v3.2.4 -> v3.3.5 (Node 24.22.1; 9202 proven); power-cut repair re-proven on v3.3.5 (felhom.eu R-1322)
gates / gates (push) Successful in 43s
2026-10-28 07:59:08 +01:00
admin b5b78f61cf HTTP2Shell (CVE-2026-111497): Home Assistant security-fix step 2026.9.4 -> 2026.10.4 (Python Brotli 1.2.1; 9202 proven); Wanderer hidden (D59, felhom.eu R-1313)
gates / gates (push) Successful in 39s
2026-10-28 07:44:52 +01:00
admin 540f18552b Jellyfin big step 10.11.11 -> 12.4 (felhom.eu R-1314): a normal ladder step, bench + box + the undo proven
gates / gates (push) Successful in 58s
On the operator's yes at the Part 3 STOP (2026-10-27). Evidence: felhom.eu
documentation/audits/security-app-updates-2026-10-27/ (bench/jellyfin, walks/jellyfin, part3).
2026-10-27 19:20:19 +01:00
admin 65a6b1198e Security updates batch 3 (felhom.eu R-1306): security_fix steps homebox 0.27.1, mealie v3.29.0, audiobookshelf 2.37.2, bentopdf v2.8.10, uptime-kuma 2.5.7; Homebox (0.26 entities API) and Mealie (generated admin password) fixtures follow the apps
gates / gates (push) Successful in 45s
On the operator's yes at the batch-3 STOP (2026-10-27). Each step proven on scratch 9202 by box_walk.py --security.
Evidence: felhom.eu documentation/audits/security-app-updates-2026-10-27/.
2026-10-27 16:42:56 +01:00
admin 7b0071e92b Security updates batch 2 (felhom.eu R-1306): security_fix steps n8n 2.44.7, privatebin 2.1.0, docmost 0.97.0, grafana 13.2.4 + bookstack 26.09.2 normal step
gates / gates (push) Successful in 39s
On the operator's yes at the batch-2 STOP (2026-10-27). Each step proven on scratch 9202 by box_walk.py --security
(bookstack: bench 9401 + box). Evidence: felhom.eu documentation/audits/security-app-updates-2026-10-27/.
2026-10-27 15:38:22 +01:00
admin 06e603e88d Security updates batch 1 (felhom.eu R-1306): security_fix steps rallly 4.16.3, romm 5.4.1, code-server 4.143.1, outline 1.12.0, vikunja 2.7.1 + wishlist v0.69.0 normal step; Rallly and Jellyfin fixtures follow the apps; privileges gate skips steps/*.felhom.yml (decoy, red first)
gates / gates (push) Successful in 38s
On the operator's yes at the batch STOP (2026-10-27). Each step proven on scratch 9202 by box_walk.py --security
(wishlist: bench 9401 + box). Evidence: felhom.eu documentation/audits/security-app-updates-2026-10-27/.
2026-10-27 15:05:13 +01:00
admin 9ff723ca4d REPORT-security-watch: the pin list for the security watch (felhom.eu R-1303). Docs only.
gates / gates (push) Successful in 59s
2026-10-26 23:54:57 +01:00
admin f61800aae9 R-1303: every template names where its security notices are published (upstream:), gate upstream + decoys, checklist 1.10
gates / gates (push) Successful in 54s
2026-10-26 23:23:12 +01:00
admin 8ddc68bad7 REPORT: the 2026-10-26 attended release run. Docs only.
gates / gates (push) Successful in 56s
2026-10-26 10:38:13 +01:00
admin 73c165d60f metube: media/metube optional — the second-drive copy carries the downloads, off-site does not (D44 #25, felhom.eu R-1283; ported from drill 6733764); check-download-binds allows optional for a NAMED ruling only, with decoys
gates / gates (push) Successful in 56s
2026-10-26 09:12:22 +01:00
admin cd0cf48fab REPORT: the three drill fixes pushed live (ebbf1f4) on the operator's yes; Homepage gate tried on the drill on 9202 first
gates / gates (push) Successful in 57s
2026-10-25 19:03:06 +01:00
admin ebbf1f4509 n8n: no usage data; OpenGist 256M; Homepage family_gate (D46 = yes, tried on the drill on 9202) — held for the operator's yes
gates / gates (push) Successful in 57s
2026-10-25 18:07:45 +01:00
admin 227a54498f Review round 2: .claude/rules/unprompted-work.md aligned with its four siblings (the missing 'A version number is pushed once' fact paragraph); no code change
gates / gates (push) Successful in 51s
2026-10-24 15:51:08 +02:00
admin 5e196e1ab8 box_walk: a leftover is an app.yaml, not the template folder
gates / gates (push) Successful in 53s
/opt/docker/stacks/<app> is the catalog's template copy and stays after a clean remove, so
every remove printed it as a leftover (2026-10-24, 9202).
2026-10-24 13:47:23 +02:00
admin 7de554e954 box_walk: HDD_PATH is the drive itself (R-839)
gates / gates (push) Successful in 51s
The deploy API refuses an HDD_PATH that is a folder inside a registered drive; the walk sent
DRIVE/<app> and got 409 on 9202 (2026-10-24, felhom.eu R-1250 live proof).
2026-10-24 13:36:27 +02:00
adminandClaude Opus 5.5 3d98779869 box_walk: Tester 1's guest address is read from the guest (DHCP: .101 -> .148 on 2026-10-23), like 9202's; the test pins both DHCP rows
gates / gates (push) Successful in 54s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
2026-10-23 13:30:15 +02:00
adminandClaude Opus 5.5 3898593594 D39 = B: the security-fix lane — a security_fix ladder step (box walk required, bench optional, CVE/GHSA notice), its gates + 8 decoys, the writer (--write-ladder --security), the box venue (box_walk.py --security, drill-mirror refresh); two stale tests fixed
gates / gates (push) Successful in 58s
09 §3 decision 255, R-1239. Proven on 9202 (drill catalog) — felhom.eu audits/security-lane-2026-10-23/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
2026-10-23 13:08:51 +02:00
adminandClaude Opus 5.5 cde26abc02 plex: guide checked against 1.43.5.11029-6bf8af3f0 (every HU + EN label read from the new web client, all equal); CHANGELOG + REPORT for the Plex2Shell move
gates / gates (push) Successful in 1m1s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
2026-10-23 11:13:29 +02:00
adminandClaude Opus 5.5 6cc317d016 plex: 1.41.4.9463 -> 1.43.5.11029-6bf8af3f0 (Plex2Shell fix) WITHOUT a test record — operator ruling 2026-10-23 10:56
gates / gates (push) Successful in 51s
The pinned 1.41.4 carries the Plex2Shell chain (CVE-2026-96652, CVE-2026-96654, CVE-2026-96655,
CVE-2026-96656); fixed from 1.43.3.10861. Operator ruling 2026-10-23 10:56: "bump the version to the
newest in the app template immediately (as there are no customers yet), I want the demo boxes on the
newest version asap."

This move skips the test record of 09-update-architecture.md §3 decision 13 ONCE, for Plex only.
check-test-record-move.py refuses it; this ONE commit is pushed with --no-verify on that ruling.
Nothing else rides in it. Plex has no update_ladder, so a person's Update press pins this compose and
the night leg skips it (LegSkipNoTestRecord) — demo/test boxes are updated by hand.
Manifest list sha256:01bdf0ad6d53198da4331540c1e73ab65db7a72e961fff97ecb0847d46055c5f.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
2026-10-23 11:01:54 +02:00
admin ce33e3b882 immich: the model cache leaves every backup (backup.volumes excluded — R-49, operator D21 = B; read by controller >= 0.340.0, inert before)
gates / gates (push) Successful in 1m10s
2026-10-22 16:46:52 +02:00
admin 13f9c9cb13 first-steps texts true for any install choice: Mealie address, Paperless admin name, Vaultwarden sign-up, Immich menu in Hungarian (W16-W19)
gates / gates (push) Successful in 1m4s
2026-10-21 22:29:16 +02:00
admin c50adfc641 R-1019: the download folders of qBittorrent, Transmission (+ watch), NZBGet, SABnzbd and MeTube are excluded from every backup tier; gate download-binds with decoys
gates / gates (push) Successful in 38s
2026-10-20 09:29:06 +02:00
admin 5e37aa6e2f REPORT: the security-scan gate and box_walk's 9202 address
gates / gates (push) Successful in 39s
2026-10-19 21:47:56 +02:00
admin 57ddb20774 box_walk.py: read 9202's DHCP address from the guest instead of a stale .114
gates / gates (push) Successful in 36s
2026-10-19 21:34:11 +02:00
admin 87f558836f security-scan gate (shared felhom.eu/scripts/security_scan_gate.py) in the fast set and CI, warn-first, with the accepted-hits file and decoys (R-986)
gates / gates (push) Successful in 40s
2026-10-19 21:11:51 +02:00
admin 30eea97662 Immich and Nextcloud: Redis without a volume (--save "", tmpfs /data), as upstream runs it (R-1117)
gates / gates (push) Successful in 7s
Measured first on scratch 9202: both apps healthy and their jobs run; the nightly dump skips the removed volume; a
second-drive restore from a copy made WITH the volume succeeds. A box keeps its old Redis volume, unused, until the
app is removed. Ladder step files unchanged.
2026-10-18 22:25:01 +02:00
admin c97eb1c9f8 CI workflow: the failure mail links the public run page, by run id (R-1135)
gates / gates (push) Successful in 6s
The alarm step built its link from GITHUB_SERVER_URL, which on this runner
is the in-cluster Gitea address, and from the run NUMBER, which Gitea 1.26
reads as a run id first (felhom.eu /actions/runs/1116 opened run id 1116 =
run number 613). Now https://gitea.dooplex.hu + GITHUB_RUN_ID, and the link
is printed into the job log as ALARM-LINK. Same change in all four repos.
2026-10-18 20:34:59 +02:00
admin 8cf03e08a9 Immich: server 3072M, ML 2048M after a 4,000-photo import OOM-killed the server twice at 2048M (R-994)
gates / gates (push) Successful in 6s
mem_request unchanged (typical 1,888 MB < 2048M): the install check's verdict on an 8 GB box is
the same. Measurement: felhom.eu audits/night-2026-10-18/P6/.
2026-10-17 23:44:07 +02:00
admin fc93846b2c privileges gate: a template named like another app's appdata folder gets no root; one folder for two apps fails (security review 2026-10-18)
gates / gates (push) Successful in 6s
2026-10-17 23:22:47 +02:00
admin d928932087 homepage without the Docker socket (R-981); each app's own appdata folder in the privileges gate (R-1142)
gates / gates (push) Successful in 7s
The socket served no Felhom feature (demo-hp: empty docker.yaml, no homepage.* labels). The
allow-list copy (v2) matches controller v0.329.0: no entries; appdata_folders paperless-ngx ->
paperless. check-privileges.py judges a ${HDD_PATH} bind against the app's own folder; seven new
decoys, red-proofed. Pushed before the controller, which refuses the old homepage template.
2026-10-17 23:11:38 +02:00
admin 0140fff993 REPORT/CONTEXT: agent 0.159.1, the catalog allow-list (controller v0.328.0), its catalog gate (2026-10-17)
gates / gates (push) Successful in 8s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 17:30:08 +02:00
admin 45763e31c2 CHANGELOG: the privileges gate's round-2/3 changes
gates / gates (push) Successful in 6s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 16:57:02 +02:00
admin 07d1ef79b9 The privileges gate: under HDD_PATH only appdata/ is a root, as on the box (round 3)
gates / gates (push) Successful in 6s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 16:49:24 +02:00
admin 4292ad337b The privileges gate mirrors the controller's round-2 fixes (extends, image/healthcheck binding, bind options, no YAML anchors)
gates / gates (push) Successful in 6s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 16:46:39 +02:00
admin 6b7d40d80b The privileges gate mirrors the controller's security-review fixes (image-bound entry, more classes, drive-namespace roots)
gates / gates (push) Successful in 5s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 16:42:24 +02:00
admin d5a443dbd1 The privileges gate: the early warning for the box's catalog allow-list (R-971, D2 = A)
gates / gates (push) Successful in 7s
check-privileges.py (stdlib, --fast) judges every template and ladder step against the same classes the
controller v0.328.0 refuses; scripts/privilege-allowlist.json is a byte-identical copy of the controller's list.
Decoys + a reader-equals-PyYAML check in test_gate_decoys.py.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 16:34:37 +02:00
admin 1af6ea7508 The 23 memory requests set to measured use (R-1125, operator decision D10 = A)
gates / gates (push) Successful in 6s
mem_request = the 2026-10-13 sizing run's typical use, rounded up. The box's install check adds them up; no box the hub
knows is over after the change; an 8 GB box no longer takes the whole household set (the operator's decision).
README column refreshed; REUSE.md no longer says display-only.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 13:16:56 +02:00
admin c899c82d69 CI workflow: a manual proof that the failure mail can be sent (R-1129)
gates / gates (push) Successful in 6s
workflow_dispatch with input force_alarm (default false). A dispatch-only
step prints the RESEND_API_KEY length (never the key) and, when forced,
fails so the alarm step sends its real mail, subject marked FORCED TEST.
Push runs are unchanged.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 12:49:58 +02:00
admin 356659dd60 Row number: R-1119 -> R-1125 (a parallel session took R-1118..R-1122)
gates / gates (push) Successful in 6s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 11:59:00 +02:00
admin bff82f9bdd Six memory limits raised so measured peaks sit at ~70 % or less (R-994, limits only)
gates / gates (push) Successful in 6s
docmost 768M, romm 1024M, termix 256M, uptime-kuma 384M, grafana 768M, tandoor 1280M; totals updated. The 23
mem_request changes wait for the operator (they would refuse the household set's sixth app on an 8 GB box).
Immich waits for a larger-library measurement.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 11:05:09 +02:00
admin 5d9450b066 Redis snapshots, not append-only, on five apps (R-1096); gate redis-persistence
gates / gates (push) Successful in 5s
romm, docmost, paperless-ngx, immich, nextcloud: redis-server --appendonly no (was yes); volumes kept. Proved on
scratch 9202 first: 100/100 keys through the switch and through the nightly volume dump + restore; a damaged AOF
refuses to start, a snapshot on a full disk keeps the old file. steps/ files unchanged (tested definitions,
09 6.4 part 5). New --fast gate check-redis-persistence.py with 9 decoy cases, red-proved.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 09:22:37 +02:00
admin 33a4b3b518 The copy gate's credential case convicts again; the decoy suite is a gate (R-1115)
gates / gates (push) Successful in 6s
The decoy moved, not the gate: 326f846 (R-1102) removed gokapi's login line, and the case appended an English
login to a template with no Hungarian one left. It now rewrites wger's existing line in place, plus a new case
(calibre-web admin123 -> admin1234); both refused. gate-decoys joins catalog_gates.py's full run (~196 s, not
--fast). test_catalog_gates.py was red since last night (count 18 -> 20).

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-17 08:46:17 +02:00
admin af75dc0fb5 Gate db-credentials: every database password variable is a type: secret field, so the backup carries it (R-1106)
gates / gates (push) Successful in 6s
2026-10-16 22:37:17 +02:00
admin 79df20a75b REPORT: RomM saves into the backup; D10 = A
gates / gates (push) Successful in 5s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-16 17:30:37 +02:00
admin 326f8465ac RomM saves in a named volume (R-1097); no false known-login line on eight apps (R-1102, D10 = A)
gates / gates (push) Successful in 5s
RomM writes saves to /romm/assets, which sat in the image's anonymous /romm volume: no app backup took it
(measured on demo-hp). romm_assets is now a named volume (compose + both steps files); gate image-volumes
keeps it. default_creds removed from grafana, gokapi, kimai, code-server, nzbget, nextcloud, transmission,
prowlarr (HU + EN): the box said 'starts with a known, shared password' about logins it generated.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-16 16:49:32 +02:00
admin 5630979717 app_info.login_kind: what the app page says when the box holds no login (controller >= 0.320.0)
gates / gates (push) Successful in 5s
New optional enum first_visit | email | none (default first_visit). Set on rallly and outline (email:
a sign-in link) and on bentopdf, homepage, privatebin, onlyoffice, glance, metube (none; the last two
are family-gated, so the page says the family sign-in is the login). Gate login-kind with decoys.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-16 15:24:40 +02:00
adminandClaude Opus 5.5 806d2d0924 REPORT: RomM finds its games, Ghost no device lock-out; box walk makes no folder for a passed value
gates / gates (push) Successful in 4s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-16 12:42:08 +02:00
adminandClaude Opus 5.5 fb1847160c RomM scans the drive's roms/<platform>/ (R-1089); Ghost asks for a device code only with app e-mail on (R-1090)
gates / gates (push) Successful in 4s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-16 12:03:17 +02:00
adminandClaude Opus 5.5 5cc9e0e72c D11 + D12: qBittorrent stops advising a password change; Cal.com and BentoPDF promises made true
gates / gates (push) Successful in 5s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-16 09:59:16 +02:00
adminandClaude Opus 5.5 3b8f0de15d REPORT: the owed demo-hp page check of the Plex and Sonarr guides passed (2026-10-16)
gates / gates (push) Successful in 5s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-16 09:24:46 +02:00
admin ec864b5e3f REPORT: app guides night — 62 shown, 2 hidden, 1 not done; gate red-proofs; rows; the credentials incident
gates / gates (push) Successful in 4s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 23:29:26 +02:00
admin 979a3f1b66 Six first-step labels corrected to what the apps show at their pinned tags
gates / gates (push) Successful in 5s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 23:17:44 +02:00
admin cb98c44207 User guides, batch 5: 11 shown; emby has none (no checkable source)
gates / gates (push) Successful in 5s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 23:11:44 +02:00
admin bc3de39afb User guides, batch 4: 12 shown
gates / gates (push) Successful in 4s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 23:07:29 +02:00
admin df2d43b2eb User guides, batch 3: 12 shown
gates / gates (push) Successful in 4s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 23:03:28 +02:00
admin 0b16039f2a User guides, batch 2: 11 shown + home-assistant hidden
gates / gates (push) Successful in 4s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 23:00:03 +02:00
admin 3d98987b91 User guides, batch 1: 11 shown + plant-it hidden; checklist 8.6 (a new app ships with a checked guide)
gates / gates (push) Successful in 3s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 22:56:48 +02:00
admin 2b8d80576f User guides, pilot: Plex, Sonarr, Radarr, Prowlarr, qBittorrent (HU/EN, labels checked at the pinned tags)
gates / gates (push) Successful in 4s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 22:30:21 +02:00
admin 0b33b2a64d User guide: the copy gate reads app_info.guide; an advisory guide-version gate (app guides Part 0)
gates / gates (push) Successful in 5s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 22:20:02 +02:00
admin e67aad496c Prowlarr: the box links it whichever app comes first (controller 0.314.0, R-1058) — the „Bekötés most” sentence dropped (HU/EN)
gates / gates (push) Successful in 4s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 15:15:22 +02:00
adminandClaude Opus 5.5 73b45a69e7 Prowlarr into the live catalog, with its complete onboarding record (R-1048)
gates / gates (push) Successful in 3s
- templates/prowlarr: lscr.io/linuxserver/prowlarr:version-2.6.5.5623 (published 2026-10-07), config volume only
  (important), 512M, setup gate; the first start seeds AuthenticationRequired=Enabled (R-1030) and
  AnalyticsEnabled=False (on by default, measured). The ladder entry 2.5.2.5491 -> 2.6.5.5623 is proven on the bench
  and on 9202 (run 3, the full template).
- The copy says when the box links Prowlarr to Sonarr/Radarr by itself and when the household presses „Bekötés most".
- onboarding/prowlarr.md: 61 checks done or n/a; evidence in felhom.eu documentation/audits/prowlarr-2026-10-15/.
- ProwlarrBox fixture; README + FIRST-ADMIN rows; copy freeze admission.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 13:01:33 +02:00
admin 3ff0cf35d3 Rule file: a release needs no golden; the floor carries it after the three test boxes; golden weekly (09 §3 decision 250, operator 2026-10-15)
gates / gates (push) Successful in 3s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 11:43:32 +02:00
admin 0f1e78b731 Plex: REMOVE the status probe — Plex answers 401 while it starts, the gate opened an unclaimed Plex (measured on demo-hp 9201) (R-1045)
gates / gates (push) Successful in 5s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 10:36:13 +02:00
admin 674d85940f Plex: status probe (/library/sections, done 401) keeps an unclaimed Plex gated on every controller — security review follow-up (R-1045)
gates / gates (push) Successful in 4s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 10:33:57 +02:00
admin b6986eb2cb Plex: claim code required again for controllers before 0.313.0 (after_start for 0.313.0) — fail-open found by a security review of 0188430 (R-1045)
gates / gates (push) Successful in 3s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 10:33:08 +02:00
admin 0188430944 Media apps on every drive: media_library marker on the seven media apps (controller 0.313.0; older ones ignore it); Transmission incomplete folder off at start; Plex: no code at install, ADVERTISE_IP, no probe (R-1023, R-1028)
gates / gates (push) Successful in 4s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 10:30:28 +02:00
admin 9a23ee5460 Plex: the setup gate — a fresh install is closed to everyone but the household until „Kész, beállítottam” (R-1045); no probe (Plex answers XML to it, measured)
gates / gates (push) Successful in 3s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 08:24:51 +02:00
admin 0c67873c9c Rule file: bake first — bake → vouch → floor, never a floor with no golden (09 §3 decision 247, operator 2026-10-15)
gates / gates (push) Successful in 5s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-15 08:18:13 +02:00
admin bc54c01289 The media folders meet: Sonarr/Radarr see media at the same path, the download clients only their own folder (R-1014, D9 = A with a limit)
gates / gates (push) Successful in 3s
sonarr/radarr: one media bind, declared excluded; first start seeds AuthenticationRequired=Enabled (R-1030); first
steps hu+en. qbittorrent/transmission: only their download folder at the same path, /downloads kept for old torrents,
default folders moved at start; transmission watch declared optional (R-1019). plex/jellyfin: /media/tv (R-1015).
onboarding 2.2 rows (R-1016). Evidence: felhom.eu documentation/audits/media-folder-fix-2026-10-14/.
2026-10-14 21:40:47 +02:00
admin 8f5ad8ae83 Gate unclean-boot-images: an Immich bump cannot quietly switch the power-cut repair off (R-1007)
gates / gates (push) Successful in 4s
The after_unclean_boot block's images: must list the image its service runs in the
compose and in each steps/ file carrying the block. Before, the controller only
skipped the repair on an unproven image, in the box's own log. 11 decoys; five
mutations red-proofed.
2026-10-14 19:05:32 +02:00
admin 74c8e84232 REPORT: R-1007 — the repair after an unclean boot, proven live on demo-hp
gates / gates (push) Successful in 4s
Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
2026-10-14 17:52:29 +02:00
admin 6a1bb046fa Immich: after_unclean_boot — rebuild the thumbnails a power cut left empty, read Immich's own lost-file check (R-1007, decision 236)
gates / gates (push) Successful in 3s
Proven on immich-server:v3.2.4 only (any other image: skipped and reported). The repair adds
Immich's own AssetGenerateThumbnails job for the broken asset ids only, with Immich's own queue
library (no key; every user's photos); the lost check queues the missing-files check and reads its
report with a read-only session. Measured on 9202 (felhom.eu audits/immich-repair-2026-10-14/).
Needs controller 0.311.0 to act; an older controller ignores the block, so no min_controller.

Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
2026-10-14 16:47:29 +02:00
adminandClaude Opus 5 8ee687e544 SABnzbd and NZBGet: the Usenet pair, each with its complete record (R-988)
gates / gates (push) Successful in 4s
Two new apps, published in one commit with their onboarding records, bench-proven on LXC 9401
and box-proven on scratch guest 9202 through the product.

- sabnzbd version-5.1.3 (lscr.io/linuxserver — the project publishes no image; the second
  third-party publisher here after transmission), 96M/1024M, usenet.<domain>
- nzbget v26.3 (the project's own image), 64M/512M, nzbget.<domain>
- a PAID Usenet provider is the household's own: both app pages say so before the install, and
  neither record claims the download chain was measured, because without a provider it cannot be
- first admin class 1 in both; SABnzbd ships with NO login at all and its inet_exposure asks
  nobody to log in until local_ranges stops the proxy's address counting as local
- nine defects found by measuring and fixed before publication (CHANGELOG has each one)
- ladders written by upgrade-test.py --write-ladder, both venues proven, C3 failed first
- README (tree + both tables), FIRST-ADMIN (two rows), fixtures for both venues

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117kRTSgs3rJWUFGxyoWN6Y
2026-10-12 22:48:54 +02:00
adminandClaude Opus 5 cb4ececf1f REUSE: a setting the app writes back goes through its API in after_install (and is read back)
gates / gates (push) Successful in 3s
Two rows earned by the qBittorrent/Transmission build:
- pattern: a value seeded into a config file the APP owns is only a request — qBittorrent
  ignores a seeded UseUPnP at first start and rewrites a semicolon host list down to one
  entry, which then refuses the controller's probe. Both go through setPreferences in
  after_install, whose marker depends on the readback, not on the call's exit code.
- lookalike: `curl -f` exits 22 on a 401, so a curl -f healthcheck on an app that requires
  authentication is unhealthy for ever. Decide on the code (200|401), proven both ways.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117kRTSgs3rJWUFGxyoWN6Y
2026-10-12 20:59:58 +02:00
adminandClaude Opus 5 9081a47e11 qBittorrent and Transmission: the two download clients, each with its complete record
gates / gates (push) Successful in 3s
Two new apps, published in one commit with their onboarding records, bench-proven on LXC 9401
and box-proven on scratch guest 9202 through the product.

- qbittorrent 5.2.4-1 (the project's own image), 192M/1024M, torrent.<domain>
- transmission version-4.1.3-r0 (lscr.io/linuxserver — the project publishes no image at all;
  the operator was asked and chose it before the build), 64M/512M, transmission.<domain>
- first admin class 1 in both, measured; no UPnP (the box opens no port at home), both peer
  ports unpublished, a 276 MB torrent completed on outgoing connections alone
- six defects found by measuring and fixed before publication (CHANGELOG has each measurement)
- ladders written by upgrade-test.py --write-ladder, both venues proven
- README (tree + both tables), FIRST-ADMIN (two rows), fixtures for both venues

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117kRTSgs3rJWUFGxyoWN6Y
2026-10-12 20:48:56 +02:00
adminandClaude Opus 5.5 3a6e9308c6 R-932: no em dash in customer Hungarian (13 strings); copy gate CHECK 1b refuses one
gates / gates (push) Successful in 3s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-12 17:04:41 +02:00
adminandClaude Opus 5.5 d308445e87 R-782: Glance behind the family gate (decision 221); family-gate rule 4 pins the ruled apps
gates / gates (push) Successful in 3s
Glance has no login of its own; new installs are published only behind the
household's family gate (family_gate: true, min_controller 0.287.0, no
exceptions). check-family-gate.py rule 4 refuses a ruled app (metube,
grimmory, glance) whose template drops the key; red-proven by three decoys.
An installed Glance is not re-gated (the controller records the gate at install).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-12 14:44:10 +02:00
adminandClaude Opus 5.5 1a642b43e7 R-896: the volume-persistence gate refuses a host that is not a scratch host (no containers on DooPlex)
gates / gates (push) Successful in 7s
check() refuses (HARNESS REFUSED, exit 3) before any docker call unless /opt/upg exists (the bench)
or FELHOM_SCRATCH_HOST=1. TestVenue red before the guard; new end-to-end decoy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-10 15:01:48 +02:00
admin 8ea72aa397 CONTEXT: Monica — the operator ruled keep it out (R-927 closed)
gates / gates (push) Successful in 9s
2026-10-10 14:34:47 +02:00
admin b7f0f7cef5 Grocy and LubeLogger: two new apps, each with its complete record
gates / gates (push) Failing after 14m4s
60 template directories, 58 offered. Records: onboarding/grocy.md and
onboarding/lubelogger.md, all 61 checks answered, none open. Evidence:
felhom.eu/documentation/audits/new-apps-2026-10-10/.

Grocy 4.7.1 from lscr.io/linuxserver/grocy (grocy publishes no image of its
own). SQLite in one volume, no HDD, ~30 MiB idle, amd64 + arm64, Hungarian UI
91.6 %. First admin class 3: it starts with its documented admin/admin and
after_install replaces that password with a generated one.

LubeLogger v1.7.3 from ghcr.io/hargata/lubelogger. LiteDB in one volume, no
HDD, ~60 MiB idle, amd64 + arm64. First admin class 1 — and it has to be: the
image ships EnableAuth=false, and with that the middleware mints a ticket with
the IsRootUser role for every visitor. Measured on a default start: a stranger
got 200 on /, on /api/vehicles and on /Home/Settings and CREATED A VEHICLE.
The compose entrypoint exports EnableAuth=true and the SHA-256 of a generated
name and password, so the app's own login is on before its first byte (at t+1 s
nothing listening, at t+2 s /api/vehicles already 401).

Two defects found by the walk and fixed before publishing:

1. An after_install command may not contain `$`. The controller runs every
   element through os.Expand and refuses one naming anything outside env:, so
   PHP cannot be inlined. On 9202 the first attempt came back
   `[pw argv dsn db i t e s n q h] not declared in env or has no value — not
   run` and the app sat behind its install hold with admin/admin in place. The
   code now lives in a file the compose entrypoint writes. Written into
   REUSE.md's after_install row as a trap.

2. Grocy's persisted config.php does not follow the image. The image copies
   config-dist.php only when that file is absent, so a volume written by 4.6.0
   and started under 4.7.1 answered HTTP 500 on every page — AUTH_CLASS names a
   class 4.7 moved — while its log said migrations done. The entrypoint now
   deletes the file at every start. The 4.6.0 -> 4.7.1 edge failed before this
   and is proven after it, on both venues.

Ladders, written by upgrade-test.py --write-ladder from both verdicts:
  grocy       4.6.0 -> 4.7.1   bench proven, box proven (guarded Update, 41 s)
  lubelogger  v1.7.2 -> v1.7.3 bench proven, box proven (25.6 s)
Checklist 6.3 came from a real failure, not a forced one: before the config.php
fix the product undid the same step in 346 s with the data intact.

REUSE.md: a fifth healthcheck family (bash /dev/tcp) for an image with no HTTP
client at all, measured in both directions.

Tool fixes made on the way: check-onboarding.py crashed on a Windows console
while printing which ids were open; upgrade-test.py's read_text/write_text used
the platform encoding and wrote a cp1250 em dash into a template full of
Hungarian.
2026-10-10 12:31:34 +02:00
admin b38aa92317 audits: PikaPods read against the catalog (read-only; no template touched)
gates / gates (push) Successful in 7s
NOTHING IN THE CATALOG CHANGED. No template, no .felhom.yml, no
templates.json, no image pin. Output is audits/pikapods-scan-2026-10-10/.

THE GREEN HEART, in PikaPods' own words. Hovering it shows the tooltip
"Project has a revenue sharing agreement." (verified by hovering the heart
beside Actual, A1-heart-tooltip.jpg). Their FAQ: "Open source developers have
the option to enter into a revenue sharing agreement to receive 20% of
revenues their app generates." The mark is NOT permission for Felhom -- it is
an agreement with PikaPods, on terms we have not seen. It only shows the
author is open to such an arrangement at all.

Finding the mark took reading the DOM: the hearts are not text and not a
title attribute. Each card carries three Vuetify icons, all three present on
every card, and the green one (rgb(76,175,80)) is display:none where there is
no agreement. Counting "hearts in the page text" would have returned zero on
all 126.

NUMBERS. 126 apps on PikaPods, 39 marked. 58 template dirs here (56 offered +
plant-it abandoned + wger hidden -- which reconciles with the website's 56 +
FileBrowser built-in). 25 on both, 33 of ours not there, 101 of theirs not
ours, 11 of the 25 shared carry the mark.

LICENCE COMFORT: one row moved, and I will not dress it up as more.
sparkyfitness is there WITH the mark, consistent with what its author already
told us (R-784) -- so he demonstrably does commercial-hosting agreements.
tandoor, emby, plex, outline, calcom and wanderer are NOT on PikaPods at all,
so the scan says nothing about them. n8n and docmost ARE hosted there WITHOUT
a mark: a fact about PikaPods' risk appetite, not a permission we can borrow.

TEN CANDIDATES, none added, each licence read at its own repo and cited:
Grocy (MIT), Firefly III (AGPL-3.0), Monica (AGPL-3.0), LubeLogger (MIT),
Storyteller (MIT), PdfDing (AGPL-3.0), Memos (MIT), Wealthfolio (AGPL-3.0),
Kavita (GPL-3.0), PhotoPrism (AGPL-3.0). Developer and company tools were
excluded wholesale. Each would still go through NEW-APP-CHECKLIST.md.

JOPLIN WAS SHORTLISTED AND DROPPED ON ITS LICENCE, which is the most useful
thing in this scan. Its repo root says AGPL-3.0-or-later "unless a directory
contains a LICENSE or LICENSE.md file" -- and packages/server, the part we
would host, carries the Joplin Server Personal Use License: "the Software may
be used for personal non-commercial purposes only", and the licensee may not
"grant others the right to use the Software for a fee". Same shape as
SparkyFitness: open client, restricted server. GitHub's repo-level licence
field says AGPL-3.0 and would have hidden it.

Two other reads worth keeping: PdfDing's GitHub mirror has NO licence file at
all (the project lives on Codeberg, where it is AGPL-3.0) -- trusting the
mirror would have called it unlicensed; and photoprism/joplin both report
NOASSERTION to the API, so both needed the file read rather than the badge.

Register: 0 opened, 0 closed. The brief expected a row only for a licence
problem in an app we already ship; none turned up. No contact with PikaPods or
any author.
2026-10-10 09:47:39 +02:00
admin 0a52dd6f28 rules: "The system poster stays true" (section 6, all five copies identical)
gates / gates (push) Successful in 7s
The shared rule file carries the same wording in felhom.eu, felhom-controller,
felhom-agent, app-catalog-felhom.eu and the workspace root on DooPlex --
"change all five or none" -- so this is this repo's copy of a rule added in
felhom.eu a08bd3cbd5.

A session that changes a fact listed in
architecture/felhom-system-poster.facts.md (a machine, a role, a traffic path,
a backup tier, a time, a retention, a key, a known gap) updates that file in
the same commit; fixes the poster's text if the change is text only; or adds
"System poster needs a refresh: <what changed>" to STATUS. The report names
which of the three it did.

The poster is drawn in Claude Design and nothing in the repo renders it, so
scripts/poster_facts_gate.py only WARNS when the facts outrun the drawing --
it never fails a push, because a refresh needs the operator and another tool.

Verified identical to the other four copies by diff, before and after.
2026-10-09 18:10:25 +02:00
adminandClaude Opus 5.5 31e9651591 wger: install check asks for 256 MB (operator ruling D10, R-762 follow-up)
gates / gates (push) Successful in 5s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-08 14:22:48 +02:00
adminandClaude Opus 5.5 eec9a0d5af wger: gunicorn with 2 workers instead of the development server (R-762)
gates / gates (push) Successful in 6s
WGER_USE_GUNICORN=True + WEB_CONCURRENCY=2. Proven on bench 9401 (anon 44 %) and
scratch 9202 (anon 64.1 % of 384M, 0 oom_kill, 0 restarts; login, CSS and a photo
200). wger stays lifecycle: hidden. No ladder entry: no image moves.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-08 10:10:07 +02:00
adminandClaude Opus 5.5 32d134639c REPORT/CHANGELOG: 2026-10-07 day
gates / gates (push) Successful in 6s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-07 14:21:20 +02:00
adminandClaude Opus 5.5 0fab00bb86 Shared rule file: no hub image build or deploy in a session the operator does not attend (09 §3 decision 162)
gates / gates (push) Successful in 9s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-07 09:55:10 +02:00
adminandClaude Opus 5.5 1f01f1a6d1 CHANGELOG + REPORT: the held branch merged
gates / gates (push) Successful in 6s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-07 09:31:53 +02:00
adminandClaude Opus 5.5 872039d842 Merge night-held-2026-10-06: R-777, R-612, R-782, R-805, R-806, R-733 (09 §3 decision 161)
gates / gates (push) Successful in 6s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-07 09:09:34 +02:00
adminandClaude Opus 5.5 57f15c3ac5 Shared rule file: rule 11 — every helper prompt carries the brief's fences in full (09 §3 decision 160)
gates / gates (push) Successful in 10s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-07 08:52:48 +02:00
251 changed files with 29459 additions and 530 deletions

No files matched your search

+35 -3
View File
@@ -23,7 +23,8 @@ unconditional: true
customer data; anything that changes a promise the product makes to a customer; anything that
reverses a documented design decision (`documentation/architecture/` — a design decision is not a
defect, R-370); anything on DooPlex or ep0; baking or vouching a golden; promoting a
catalog version; a new external dependency.
catalog version; a new external dependency; **a hub image build or hub deploy in a session the operator does not
attend** (operator ruling 2026-10-07, `09` §3 decision 162).
## 2. When you may decide instead of ask (operator grant, 2026-09-14)
@@ -43,13 +44,28 @@ it **first** in the morning note. A decision you cannot write in that shape is o
Throwaway apps only; the standing apps and `bentopdf` stay.
5. **Evidence off the machine at the end of each phase**, before any revert (R-320).
6. **One release per repo per session**, with a CHANGELOG entry (controller: with its `MinAgent`
line), REPORT overwritten, floor raised to deliver it. **No golden unless a drill or fresh install
needs one** (the waiver, R-468). **No `--no-verify`.**
line) and REPORT overwritten. **A controller release needs no golden** (operator ruling 2026-10-15
11:26, `09` §3 decision 250; decision 7 stands): push the image only when it is ready for EVERY box (the
household's update button offers the highest tag); raise the floor, MinAgent declared, only after it ran
on Tester 1, demo-hp and demo-felhom through the normal update path and the box walk's checks are green
on all three — not at night unless the night brief says so. **Agent releases still stop for the
operator's vouch.** The golden is baked weekly and vouched by the operator; CC never vouches. **No `--no-verify`.**
**A version number is pushed once** — `felhom-controller/controller/build.sh` now refuses a second
push of a tag that exists, and a registry it cannot reach is a refusal too. This is a FACT about
what the build does, not a new rule: a fix for something already pushed is the next patch version,
and a box on a bad image is moved by the normal update path, never by re-tagging. Earned on
2026-10-15, when 0.315.0 was pushed three times from three different commits and a cache kept
serving the first one (`09-update-architecture.md` §0).
7. **An enumerated gap becomes a row in the same session — or, if it is small, is fixed in it** (the size rule).
Prose is not a record.
8. **Hungarian text is searched with ASCII fragments**, with a positive and a negative control.
9. **Never leave a half-state.** If time runs out, revert to clean and say what was reverted.
10. **Teardown, three layers, stated** — machine, host, hub — or "provisioned nothing".
11. **Every helper prompt carries the brief's fences in full** (operator ruling 2026-10-07). A helper session (a
subagent, a fork, a workflow agent) gets the brief's fence list word for word — every protected machine, every
„no", every delivery and Docker limit — not a summary and not „the usual fences". Earned on 2026-10-06 night: two
helpers whose prompts carried only part of the fences ran `docker volume prune` on the bench and a Docker-using
gate on DooPlex.
## 4. The morning note
@@ -67,3 +83,19 @@ that no longer exists. Each edit is named in the report (file, line, before, aft
operator's word: loosen a safety rule, a fence, a „never", a protected machine, a secret rule, or a review step; or
remove a rule. When in doubt, it is a rule change, and it goes to the operator. If Claude Code's own permission check
asks before such an edit, wait for the operator's click; if it refuses, record that and file the exact line.
## 6. The system poster stays true
**A session that changes a fact listed in `architecture/felhom-system-poster.facts.md` (a machine, a
role, a traffic path, a backup tier, a time, a retention, a key, a known gap) updates that file in
the same commit.** If the change is text only, it also edits the matching text in
`felhom-system-poster.html`. If it needs a new drawing, it adds the line
**"System poster needs a refresh: <what changed>"** to `STATUS.md`'s "waiting on the operator" list.
**The session report names which of the three it did.**
Why the three-way split: the poster is a drawing made in Claude Design, and **nothing in this
repository renders it** — unlike `where-felhom-stands.html`, which has `render_stands.py`. So the
facts file is the source of truth and the drawing trails it. `scripts/poster_facts_gate.py` warns
when the facts file has a newer commit than the poster; it **never fails a push**, because a refresh
needs the operator and another tool, and a gate nobody can clear is a gate people learn to route
around.
+49 -4
View File
@@ -16,7 +16,16 @@
# A failing run must reach a person — a detector nobody hears is the defect R-29 filed, rebuilt one
# layer up. That is the last step, and it runs ONLY on failure.
name: gates
on: [push]
# R-1129: `workflow_dispatch` is the manual PROOF that the failure mail can be sent. A push run is
# unchanged by it: the proof step below is skipped on a push, and `force_alarm` is then empty.
on:
push:
workflow_dispatch:
inputs:
force_alarm:
description: "Fail this run on purpose so the alarm step sends its real mail (a proof, not a gate result)"
type: boolean
default: false
jobs:
gates:
@@ -33,12 +42,36 @@ jobs:
git fetch -q --depth 1 origin "$GITHUB_SHA"
git checkout -q FETCH_HEAD
echo "checked out $(git rev-parse HEAD)"
# R-986: the security-scan gate is SHARED (felhom.eu/scripts/security_scan_gate.py, never copied), so the
# sibling clone is needed beside this one — the agent's and the controller's shape.
cd .. && git clone -q --depth 1 http://gitea.gitea-system.svc.cluster.local:3000/admin/felhom.eu.git felhom.eu
echo "sibling felhom.eu present at $(cd felhom.eu && git rev-parse --short HEAD)"
- name: Run the gate entry point
# The ONLY thing CI runs. No go build, no go test, no linting, no deploy. The
# exit code IS the result: no `|| true`, no pipe that could swallow it.
env:
# R-986: the security-scan gate fetches the PINNED gitleaks here (sha256-checked); no Go, so govulncheck says
# NOT CHECKED in CI, out loud. Warn-first either way: the scan lists, it never fails this job.
FELHOM_SCAN_FETCH: "1"
run: cd ws/app-catalog-felhom.eu && python3 scripts/catalog_gates.py --fast
- name: Manual proof - alarm key present, optional forced failure (dispatch only, R-1129)
# Runs ONLY on a manual dispatch, never on a push. It prints the key's LENGTH, never the key,
# so "CI can see the secret" is an observable rather than an assumption. With
# force_alarm=true it then fails on purpose so the alarm step below sends its real mail;
# the commit itself stays green, because its push run skips this step.
if: github.event_name == 'workflow_dispatch'
env:
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
FORCE_ALARM: ${{ github.event.inputs.force_alarm }}
run: |
python3 -c 'import os;print("RESEND_API_KEY length: %d" % len(os.environ.get("RESEND_API_KEY","")))'
if [ "$FORCE_ALARM" = "true" ]; then
echo "force_alarm=true - failing on purpose so the alarm step runs (R-1129 proof)"
exit 1
fi
- name: Alarm on failure
# THE POINT OF THE WHOLE THING. Probe P5 measured that a failed run produces NO mail, NO
# notification row and NO log line from Gitea itself — a red tick in a web UI nobody watches
@@ -52,6 +85,8 @@ jobs:
if: failure()
env:
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
# Empty on a push, so a push run's mail is exactly what it was before R-1129.
FORCE_ALARM: ${{ github.event.inputs.force_alarm }}
run: |
python3 - <<'PY'
import json, os, sys, urllib.request, urllib.error
@@ -63,13 +98,23 @@ jobs:
repo = os.environ.get("GITHUB_REPOSITORY", "?")
sha = os.environ.get("GITHUB_SHA", "?")
run = os.environ.get("GITHUB_RUN_NUMBER", "?")
srv = os.environ.get("GITHUB_SERVER_URL", "https://gitea.dooplex.hu")
# R-1135: the link is for a PERSON, so it is the public address and the run ID.
# NOT GITHUB_SERVER_URL: the runner registers at the in-cluster address, so that variable
# reads http://gitea.gitea-system.svc.cluster.local:3000, which nobody outside the cluster
# can open (forced-test mail, job 1997). NOT GITHUB_RUN_NUMBER: Gitea 1.26 reads
# /actions/runs/<n> as a run id first, so a run number that is also an older run's id
# opens THAT run (measured 2026-10-18: felhom.eu /actions/runs/1116 opened the run whose
# id is 1116 = run number 613). The link is printed too, so the job log carries it.
run = os.environ.get("GITHUB_RUN_ID", "?")
srv = "https://gitea.dooplex.hu"
print("ALARM-LINK %s/%s/actions/runs/%s" % (srv, repo, run))
body = json.dumps({
"from": "Felhom CI <monitoring@felhom.eu>",
"to": ["admin@felhom.eu"],
"subject": "[felhom CI] gates FAILED in %s" % repo,
"subject": ("[felhom CI] FORCED TEST, not a real failure - gates FAILED in %s"
if os.environ.get("FORCE_ALARM") == "true"
else "[felhom CI] gates FAILED in %s") % repo,
"text": (
"The gate entry point exited non-zero.\n\n"
"Repository : %s\n"
+4
View File
@@ -0,0 +1,4 @@
# .security-accepted — hits security_scan_gate.py (felhom.eu/scripts, R-986) lists as ACCEPTED, not WARN.
# One per line: <tool> <id> <where> # reason. govulncheck: OSV id + module dir; gitleaks: rule@<sha256[:12] of the line> + file.
# The first scan's verdicts (2026-10-19): felhom.eu documentation/audits/night-2026-10-19/P7/triage.md
# (nothing accepted yet)
+1223
View File
File diff suppressed because it is too large. Load diff
+17 -4
View File
@@ -22,7 +22,7 @@ deployed `app.yaml` (customer secrets) is never overwritten. Full deploy details
## Conventions
- **Adding a NEW app starts with `cp onboarding/_TEMPLATE.md onboarding/<app>.md`** (operator request
2026-10-01). `NEW-APP-CHECKLIST.md` is the list — 61 checks in 10 groups, each with how to test it and
2026-10-01). `NEW-APP-CHECKLIST.md` is the list — 63 checks in 10 groups, each with how to test it and
why it exists; the record answers every id `done` (with evidence that exists), `n/a` (with a reason) or
`open`. The template and its complete record are published in ONE commit: `scripts/check-onboarding.py`
(gate `onboarding`, in `--fast`, so the hook and CI) refuses a new template directory without one. The 53
@@ -51,9 +51,9 @@ deployed `app.yaml` (customer secrets) is never overwritten. Full deploy details
papra** — it would pass on the exact defect it exists to catch. CI was rejected at the time (neither
repo had any); it now exists and re-runs `--fast` on every push (below). R-161 was closed
2026-10-05, accepted by the operator. **Update 2026-08-02:** `.githooks/pre-push` now runs `catalog_gates.py --fast` on every
push, which is every gate except `image-resolvable` and `volume-persistence` (the range-reading ones,
push, which is every gate except `image-resolvable`, `volume-persistence` and `gate-decoys` (the range-reading ones,
engine-major among them, get the push range) — those two need network and a container
runtime and take minutes per app, and a push that pulls images and starts containers gets bypassed
runtime and take minutes per app (`gate-decoys`, the decoy suite itself, takes ~3 minutes; R-1115), and a push that pulls images and starts containers gets bypassed
within a week, after which the bypass is the habit. They stay deliberate periodic runs. The hook is
per-clone (`git config core.hooksPath .githooks`) and `git push --no-verify` bypasses it, which is
why gate 1 alone cannot be the whole story — CI re-runs the entry point on every push and **emails
@@ -95,7 +95,9 @@ deployed `app.yaml` (customer secrets) is never overwritten. Full deploy details
and minutes per app, so it is periodic like the resolvability gate — run it whenever a template's
`volumes:` block or image tag changes, and at the start of every catalog campaign, **on a scratch
host, never a customer box**. It refuses to report at all unless it has just re-proven itself in
both directions against two canary templates. Fixture tests (no Docker):
both directions against two canary templates — **and, since R-896 (2026-10-10), it refuses (exit 3) before any docker
call unless the host says it is a scratch host: the bench's `/opt/upg` exists, or `FELHOM_SCRATCH_HOST=1` is set.**
So a full `catalog_gates.py` run on DooPlex reports volume-persistence HARNESS REFUSED instead of acting there. Fixture tests (no Docker):
`python3 scripts/test_check_volume_persistence.py`.
**UNDETERMINED is exit 2 and is never a pass** — an app that wrote nothing has not been shown to
be correct. Why it exists: papra mounted `papra_data:/app/data` while the app wrote its database
@@ -144,6 +146,17 @@ deployed `app.yaml` (customer secrets) is never overwritten. Full deploy details
newest carries its own compose at `templates/<app>/steps/<ladder.step_key(to)>.yml`** (2026-09-24, `09` §6.4 part
5): the box pins that file, one step per press. The writer keeps the superseded step's definition — fixes
included — and `check-test-record.py` rule 4 refuses a step with no file or a file naming other images.
- **The security-fix lane (`09` §3 decision 255, D39 = B, 2026-10-23).** An urgent upstream fix with a public notice (a
CVE or GHSA id + its https:// page) may skip the bench: `"verdict": "security_fix"`, proven on scratch 9202 through
the product's Update, taken by the night leg on controller >= 0.341.0 (older ones skip it at night; a hand press takes
it). No operator word per incident — the notice is the authority; the session reports the step after the push. The
box walk, then the writer (fields and refusals: `scripts/ladder.py` `check_security`; the walk needs the drill at FROM):
`SC=<0600 dir with .ctlpw> TARGET=9202 python3 scripts/box_walk.py --security <app> --from <svc=ref,…> --to <svc=ref,…>
--ev <dir> [--soak 600] [--value HDD_PATH=<drive>]`, then `python3 scripts/upgrade-test.py --write-ladder --security
--ids <id,…> --advisory <url> --fixed-in <v> --box <box-verdict.json> --box-evidence <rel> --catalog <checkout>
[<bench.json> --evidence <rel>]`. Never across a database engine major; never a same-tag fix (that is decision 52's
re-test). Run the walk's negative control first (a TO image that exits at once must come back `failed`).
`check-test-record.py` WARNs on every push while a template's head is a security-fix step with no bench test.
- **Taking an app out of circulation — use `lifecycle:`, never a directory move.** `.felhom.yml`
gains an optional `lifecycle:` field: `available` (default; absent/empty means this), `hidden`
(not offered for new installs, no explanation owed), `abandoned` (upstream stopped developing it —
+26
View File
@@ -2,6 +2,32 @@
> Created with the REUSE.md rollout (2026-07-03). History: `CHANGELOG.md`; format spec: `README.md`.
- **2026-10-15 (night) — every app gets a user guide (`app_info.guide`, HU + EN):** the „Útmutató" tab of controller
>= 0.315.0 shows it; older controllers ignore the key. **Rules:** every quoted label is found in the app's own files at
the pinned tag (upstream git at that tag, or the files the image ships), recorded per label in felhom.eu
`documentation/audits/app-guides-2026-10-15/{A,B}/<app>-labels.txt`; `checked_version` = the image tag, set ONLY when
all were found (empty = hidden on the box); one shape for all (4 sections, one intro + 2–5 steps each, 5–6 FAQ); the
default UI language's labels — English label + Hungarian meaning when the app starts in English, the app's own
Hungarian when it follows the browser; no step for what the box wires; no download source named (a deny-list in the
copy gate). Gate: `check-copy-i18n.py` counts and freezes guide strings and checks their shape; `guide-version` WARNs
when an image moves away from `checked_version` and never fails. How to write one: `REUSE.md` §5 item 7.
- **2026-10-12 — Glance goes behind the family gate (R-782, `09` §3 decision 221):** `family_gate: true`, no exceptions
(no login of its own). Three family apps now: MeTube, Grimmory, Glance. `check-family-gate.py` rule 4 pins the operator's
rulings (`REQUIRED`). The gate is recorded at INSTALL — a Glance installed before this change stays public until it is
removed and installed again (controller `stacks/deploy.go`: the record is written only when no `app.yaml` exists).
- **2026-10-10 — Grocy and LubeLogger added; Monica STOPPED at checklist 0.2 — the operator ruled KEEP IT OUT (R-927, closed).**
**The operator's decision of 2026-10-10** was to add Grocy, Monica and LubeLogger, chosen from
`audits/pikapods-scan-2026-10-10/FINDINGS.md` §2 because no catalog app covers what they do. Grocy and
LubeLogger are published with complete records (`onboarding/grocy.md`, `onboarding/lubelogger.md`); Monica is
not built — no release in 17 months, no stable release in 29, the stable branch dead since 2024-05-04, and an
upstream notice that the hosted instance and its data go at the end of December 2026 before a rewrite.
**60 template directories, 58 offered.**
Two conventions earned here and written into `REUSE.md`: **an `after_install` command may not contain `$`**
(the controller expands every `$name` and refuses one it was not given — PHP cannot be inlined, and the way out
is a file the compose entrypoint writes), and **a fifth healthcheck family** for an image with no HTTP client at
all (bash `/dev/tcp`, measured in both directions). Grocy also needed its persisted `config.php` made a derived
file: the image copies it once and never again, so a 4.6 → 4.7 move answered HTTP 500 on every page.
- **2026-10-02 (afternoon) — the persistence re-sweep:** the gate now sends requests (R-801), an empty declared volume is
UNDETERMINED (R-788), and it calls the app's own fixture seed. All 58: CLEAN 40 · UNDETERMINED 18 · BROKEN 0. papra 768M
(R-803). Remove keeps the household's userdata — `09` §3 decision 67 (controller v0.288.0 names it).
+11
View File
@@ -18,6 +18,9 @@ dialog and the app page say what the default login is and to change it at once.
`felhom.eu/documentation/audits/login-gate-2026-09-29/B/B-VERDICT.md` (14 of 34 class-4 apps have a probe — 2
measured, 12 upstream; 20 need the button). **It does not close OPEN SIGN-UP after the setup** (R-711).
- „Megváltoztattam" / "I changed it" (controller ≥ 0.280.0, R-710) — the household's word under a known default login.
- `app_info.login_kind` (controller ≥ 0.320.0) — the app page's sentence when the box holds no login: `first_visit`
(default: classes 4, 2), `email` (rallly, outline — a magic link), `none` (class 5: bentopdf, glance, homepage,
onlyoffice, privatebin, metube; family-gated ones say the family sign-in is the login). README „How the household signs in".
**Classes:** 1 generated by us at install · 2 set by the household in our dialog · 3 a hard-coded default · 4 an open
first-run screen (the first visitor creates the admin) · 5 no login by design · 6 unknown.
@@ -52,6 +55,7 @@ asks the probe first where there is one. Open sign-up is closed by the box after
| grafana | 1 | `GF_SECURITY_ADMIN_PASSWORD` — **falls back to `admin` if empty** (R-708) | – | fine while the field is set | R |
| **gramps-web** | 4 | first-run onboarding | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); sign-up closed by the box after the setup: `/api/users/<name>/register/`; its status answers HTTP 405 after the setup — the box reads only 200 answers (measured: the press was then refused, fail closed) → button; self-registration answered 500, blocked anyway | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **grimmory** | 4 | first visitor creates the admin (`POST /api/v1/setup`) | **setup gate**, probe `GET /api/v1/setup/status` → `data` (`false` → `true`), **and the family gate** for good (decision 64): strangers reach nothing but the e-reader exceptions, which keep Grimmory's own login | **NEW 2026-10-02** — catalog, `onboarding/grimmory.md` | **M 9202**: the household made the admin through both gates; a second setup 403; R-775's lock cannot be aimed from outside (`audits/family-gate-2026-10-02/A/items.txt`) |
| **grocy** | 3 | `admin` / `admin`, created by grocy's own first-request migration | (b) the box replaces the password at install: `after_install` runs a PHP helper the compose entrypoint writes, which hashes with grocy's OWN `password_hash(..., PASSWORD_ARGON2ID)` and PROVES the result with `password_verify` before saying so. The code cannot live in the command itself — the controller expands every `$name` in an after_install command — and grocy's image has no other interpreter | **NEW 2026-10-10** — catalog, `onboarding/grocy.md` | **M 9202** (drill catalog): the documented default POSTed once a second as a stranger from before the install press, 65 attempts, **0 signed in** (404, then 401 behind the install hold, then `invalid=true`); after the install the default is refused, the generated password signs in, a wrong one is refused; 25 wrong tries then the household in at once (no lock); a family member added through `POST /api/users` signs in (`felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/`) |
| **home-assistant** | 4 | onboarding | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); the app itself refuses a stranger's second first-admin / sign-up call; its status is a list (`/api/onboarding`) → button | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **homebox** | 4 | open registration | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); sign-up closed by the box after the setup: `/api/v1/users/register` | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| homepage | 5 | static start page | – | fine | R |
@@ -60,11 +64,13 @@ asks the probe first where there is one. Open sign-up is closed by the box after
| **karakeep** | 4 | the first account that signs up becomes the admin (`users.create`) | **setup gate**, opened by the household's press („Kész, beállítottam"); sign-up closed twice after the setup: `after_setup` → `DISABLE_SIGNUPS=true` (it also refuses the FIRST account, so never at install) + a case-insensitive block of `/signup` and any tRPC call naming `users.create` (batched too) | **NEW 2026-10-01** — catalog, `onboarding/karakeep.md` | **M 9202** (drill catalog): stranger 401 before the press; after it users.create / batched / upper-case / `//` / `/signup` all 403; 12 wrong key exchanges → the right one at once; after remove + restore the app's own switch still refuses, the route block is gone (R-773) (`felhom.eu/documentation/audits/new-apps-2026-10-01/box/karakeep/`) |
| kimai | 1 | `ADMIN_PASSWORD` → `ADMINPASS` | – | fine | R |
| **komga** | 4 | first visitor claims | **setup gate**, opened by probe `/api/v1/claim` → `isClaimed`; the app itself refuses a stranger's second first-admin / sign-up call | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **lubelogger** | 1 | the image ships **NO LOGIN AT ALL** (`EnableAuth: false`) and the middleware mints a ticket with the `IsRootUser` role for every visitor | the compose entrypoint exports `EnableAuth=true` and the SHA-256 of the generated name and password (`StaticHelper.GetHash`), so the app's own login is on **before its first byte**; nothing to run after the install | **NEW 2026-10-10** — catalog, `onboarding/lubelogger.md` | **M bench + M 9202**: on a DEFAULT start a stranger got 200 on `/`, on `/api/vehicles` and on `/Home/Settings` and **created a vehicle**; with the template, the first answer the app ever gave a stranger was 401 / 302 → `/Login/Index`. Sign-up is closed by the app itself (`Invalid Token`); 25 wrong passwords then the household in at once (`felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/`) |
| **mealie** | 3 | `changeme@example.com / MyPassword` | (b) its own user repository (`update_password`), password as `sys.argv[1]` | **FIXED** — catalog, 2026-09-29 | **M 9202**: fresh install — default 401, generated 200, wrong 401 (`felhom.eu/documentation/audits/login-gate-2026-09-29/D/`) |
| **metube** | 5 | NO login at all, by design | **the family gate** only (decision 64), no exceptions | **NEW 2026-10-02** — catalog, `onboarding/metube.md` | **M 9202**: a stranger's every path, the websocket included, 401/302 from the gate (`audits/family-gate-2026-10-02/A/items.txt`) |
| **n8n** | 4 | owner setup | **setup gate**, probe `GET /rest/settings` → `data.userManagement.showSetupOnFirstLoad` = false | **GATED** — catalog, 2026-09-29 | **M 9202**: as immich; opened by the probe ~20 s after the owner setup |
| **navidrome** | 4 | first user is admin | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); the app itself refuses a stranger's second first-admin / sign-up call | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| nextcloud | 1 | `NEXTCLOUD_ADMIN_PASSWORD` → auto-install | – | fine | R; **M** demo-hp 2026-09-28 |
| nzbget | 1 | `NZBGET_USER`/`NZBGET_PASS` are applied by the image on EVERY start (`-o ControlUsername=... -o ControlPassword=...`), and this template also writes them into the config file, because the shipped file carries the documented default `nzbget / tegbzn6789` in plain text - and the app's own CLI reads that file | – | fine | **M 9401 + 9202** (2026-10-12): the generated password 200, a wrong one 401, **the documented default 401**, the default name with our password 401; the default is gone from the config file (grep count 0); six wrong tries lock nobody out `felhom.eu/documentation/audits/usenet-2026-10-12/` |
| onlyoffice | 5 | JWT-protected API, no login screen | – | fine | R |
| **opengist** | 4 | first registered user is admin | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); sign-up closed by the box after the setup: `/-/register` | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **outline** | 4 | e-mail / magic-link onboarding | **setup gate**, the household's press; needs e-mail or SSO to sign anyone in — not provable on 9202 | **GATED** — catalog, 2026-09-29; the opening NOT proven | **M 9202**: stranger → gate page / 401, household reached the first-setup screen (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
@@ -73,16 +79,21 @@ asks the probe first where there is one. Open sign-up is closed by the box after
| plant-it | 4 | open, `USERS_LIMIT=-1` | `setup_gate: true` in the template; the catalog marks it NOT installable (`lifecycle: abandoned`) — nothing to prove | not installable | R |
| plex | 2 | the household's plex.tv claim token | – | fine | R |
| privatebin | 5 | anonymous pastes by design | – | fine | R |
| qbittorrent | 1 | `QBT_ADMIN_PASSWORD` generated at install; the entrypoint seeds the config with a PBKDF2 hash of it before the app's first start, so the app never carries its own default | – | fine | **M 9401 + 9202** (2026-10-12): the generated password signs in, a wrong password is refused (401) and an unauthenticated API call 403s, and no temporary password is ever printed to the log (the app prints one only when it has no stored hash, and it always has ours) `felhom.eu/documentation/audits/qbittorrent-2026-10-12/` |
| **prowlarr** | 4 | first visitor sets auth | **setup gate**, opened by the household's press („Kész, beállítottam"); no sign-up to close (single user); `/initialize.json` hands anyone the API key BEFORE the setup — the gate hides it; after, it needs a login. `AuthenticationRequired=Enabled` + `AnalyticsEnabled=False` seeded at the first start | **GATED** — catalog, 2026-10-15 (R-1048) | **M 9202** 2026-10-15: in the install window a stranger got only the gate / 401 / 404; the household made its account (forms) and signed in through traefik; after „Kész” a stranger meets the app's own login (`/initialize.json` → 302 /login); `felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk.txt` |
| **radarr** | 4 | first visitor sets auth | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); no sign-up to close (single user / no accounts); `/initialize.json` hands anyone the API key BEFORE the setup — the gate hides it; after, it needs a login | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **radicale** | 1 | the box generates the password at install; the container writes Radicale's login file from it on the FIRST start only (Radicale 3 ships with `auth = denyall`) | — (no first-run screen, no sign-up route) | **NEW 2026-10-01** — catalog, onboarding record `onboarding/radicale.md` | **M 9202** (drill catalog): no login 401 from the first answer; wrong 401; right 207; 15 wrong tries → right at once (no lock, ~1.3 s delay each); remove + restore → the household's login comes back with the data (`felhom.eu/documentation/audits/new-apps-2026-10-01/box/radicale/`) |
| **rallly** | 4 | magic link to any e-mail | **setup gate**, the household's press; magic link by e-mail — not provable on 9202 | **GATED** — catalog, 2026-09-29; the opening NOT proven | **M 9202**: stranger → gate page / 401, household reached the first-setup screen (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **recipe-importer** | 4 | our own image, open until set | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); no sign-up to close (single user / no accounts); our own app: open until a password is set in its settings — the confirm says so | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **romm** | 4 | first unauthenticated `POST /api/users` creates the user (harness); the stale `admin / admin` note is **removed** (2026-09-29) | **setup gate**, opened by probe `/api/heartbeat` → `SYSTEM.SHOW_SETUP_WIZARD` = false; the app itself refuses a stranger's second first-admin / sign-up call | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **sabnzbd** | 1 | **the app has NO login at all on a fresh install** and the image offers no variable for one, so the entrypoint seeds `sabnzbd.ini` with the generated login, a generated API key, `inet_exposure = 5` and `local_ranges = 127.0.0.1`. That last line is the one that matters: `inet_exposure` only asks an EXTERNAL visitor to log in, and SABnzbd's built-in LAN ranges include the 172.16/12 traefik arrives from, so without it the login applies to nobody | – (seeded at install; `after_install` reads the settings back out of the running app) | fine | **M 9401 + 9202** (2026-10-12): before the fix a request with NO credentials answered 200 and served the Quick-Start Wizard; after it a stranger gets `/login`, `/config/` and `/wizard/` redirect there, the household's session reaches `/config/` (200), a wrong password gets no session, and the API answers the generated key and refuses a wrong one `felhom.eu/documentation/audits/usenet-2026-10-12/` |
| **securo** | 4 | open first-run page: `POST /api/setup/create-admin` makes a superuser for anyone while no user exists (api/setup.py) | **setup gate**, opened by probe `/api/setup/status` → `has_users`; public sign-up OFF from the first byte (`REGISTRATION_ENABLED=false`), family members made by the admin | **NEW 2026-11-15** — catalog, `onboarding/securo.md` | **M 9202** (drill catalog, 0.18.0): a stranger polling every second got 404 → the gate (302/401, its create-admin 401) → the app only after the household's setup; the controller's probe read has_users false → true and opened the gate; the app itself then refuses a second create-admin (403) and sign-up (403) (`felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/`) |
| **seerr** | 4 | setup wizard (needs a media server) | **setup gate**, the household's press; needs a media server to finish its setup — not provable on 9202 (its `initialized` status measured false before) | **GATED** — catalog, 2026-09-29; the opening NOT proven | **M 9202**: stranger → gate page / 401, household reached the first-setup screen (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **sonarr** | 4 | as radarr | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); no sign-up to close (single user / no accounts); as radarr | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **sparkyfitness** | 4 | open registration | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); sign-up closed by the box after the setup: `/api/auth/sign-up` | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **tandoor** | 4 | setup page while no users | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); the app itself refuses a stranger's second first-admin / sign-up call | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| **termix** | 4 | first registered user is admin | **setup gate**, opened by probe `/users/setup-required` → `setup_required` = false; sign-up closed by the box after the setup: `/users/create` | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
| transmission | 1 | `TR_ADMIN_PASSWORD` generated at install; the image's own init writes the RPC user and password into `settings.json` on EVERY start, so the app is never open | – | fine | **M 9401 + 9202** (2026-10-12): an unauthenticated RPC call 401s, the generated password gets past auth (409, the CSRF challenge), a wrong one 401s; `rpc-authentication-required` true `felhom.eu/documentation/audits/qbittorrent-2026-10-12/` |
| **uptime-kuma** | 4 | first visitor creates admin (socket.io `setup`) | **setup gate**, no HTTP probe → the household's „Kész, beállítottam" | **GATED** — catalog, 2026-09-29 | **M 9202**: gate held across a controller restart; the press opened it (second press 409). The proof pressed WITHOUT doing the socket.io setup — the press trusts the household |
| vaultwarden | 1 | `ADMIN_TOKEN` generated; invite-only (R-512) | – | fine | R |
| **vikunja** | 4 | open registration | **setup gate**, opened by the household's press („Kész, beállítottam", confirm first); sign-up closed by the box after the setup: `/api/v1/register` | **GATED** — catalog, 2026-09-29 (decisions 46–47) | **M 9202**: stranger → gate page / 401; household reached the first-setup screen; gate opened after the setup; the app answered after (`felhom.eu/documentation/audits/gate-rollout-2026-09-29/`) |
+5 -3
View File
@@ -56,6 +56,7 @@ well-formed, and may say `open`.
| 1.7 | 2026-10-01 | **Every start-time switch in the image's entrypoint is read and decided** (migrations, production server, debug, start-time downloads, static files) | read the entrypoint inside the image (`docker run --rm --entrypoint cat <image> <entrypoint>`); list each `if $VAR` and the value the template sets | one read of wger's `entrypoint.sh` shows `DJANGO_PERFORM_MIGRATIONS` AND `WGER_USE_GUNICORN` — R-738 and R-755 in one file (`felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/wger/entrypoint-read.txt`) |
| 1.8 | 2026-10-01 | Debug / development mode is OFF on the public origin | 1.7's read + the running container's env; an error page through traefik shows no stack trace | adventurelog ran Django with `DEBUG=True` on the public origin (R-482) |
| 1.9 | 2026-10-01 | A secret whose loss destroys data or locks people out (it encrypts stored data, or signs 2FA secrets / long-lived tokens) carries `data_key: true` and a comment saying why it must never be regenerated; a key that only signs sessions does not | what each generated secret is used for (the app's settings source) | a restore must RECOVER that key; regenerating it destroys data or locks out 2FA (felhom-app-catalog skill §4) |
| 1.10 | 2026-10-26 | Every image names where its security notices are published: one line per image in the `.felhom.yml` `upstream:` block (`github:OWNER/REPO`, `advisories:OWNER/REPO`, `self`, or `gap:<why>` when no machine-readable source exists) | **gate `upstream`** (`catalog_gates.py`); the grammar is in felhom.eu `scripts/security_watch_inventory.py` | the nightly security watch reads it (felhom.eu R-1303); an image with no line is a program nobody watches |
## 2. Storage and backup
@@ -129,6 +130,7 @@ well-formed, and may say `open`.
| 8.2 | 2026-10-01 | `app_info`: tagline, use_cases, first_steps, default_creds (if any), add_people — and each one TRUE on 9202 | read on 9202's app page and follow the first steps | paperless's page named a login that did not exist (R-515); first steps named a literal `wiki.DOMAIN` (R-498) |
| 8.3 | 2026-10-01 | Logo + screenshots on felhom.eu by `slug` | `https://felhom.eu/assets/<slug>-logo.svg` (or `.png`, the controller's fallback) and `<slug>-screenshot-<n>.webp` answer 200 — NOT `-logo.webp` (the canonical template's comment said so until 2026-10-05, R-761) | the card is blank otherwise |
| 8.4 | 2026-10-01 | README tables, FIRST-ADMIN row, `category`, `catalog_since` | review | REUSE.md §5 |
| 8.6 | 2026-10-15 | A user guide (`app_info.guide`, Hungarian + English): every quoted label found in the app's own files at the pinned tag, `checked_version` = that image tag; nothing the box already wires, no download source named | `labelcheck.py` from felhom.eu `documentation/audits/app-guides-2026-10-15/tools/` (its output is the evidence); **gates `copy-i18n` and `guide-version`** | a household that does not know an app had nowhere on the box to look, and asked the operator (app guides, 2026-10-15) |
| 8.5 | 2026-10-01 | The website's app count still holds | `ls templates | wc -l` against `felhom.eu/website` claims; record a drift | felhom-app-catalog skill §6 |
## 9. Sign-off
@@ -147,13 +149,13 @@ well-formed, and may say `open`.
| group | rows |
|---|---|
| 0 Fit | 9 |
| 1 Images, start command, database | 9 |
| 1 Images, start command, database | 10 |
| 2 Storage and backup | 8 |
| 3 Accounts and strangers | 10 |
| 4 Health | 5 |
| 5 Resources | 5 |
| 6 Updates | 5 |
| 7 Mail | 1 |
| 8 Text and listing | 5 |
| 8 Text and listing | 6 |
| 9 Sign-off | 4 |
| **total** | **61** |
| **total** | **63** |
+102 -24
View File
@@ -40,6 +40,7 @@ app-catalog-felhom.eu/ <- This repo (source of truth)
│ ├── n8n/
│ ├── navidrome/
│ ├── nextcloud/
│ ├── nzbget/
│ ├── onlyoffice/
│ ├── opengist/
│ ├── outline/
@@ -47,14 +48,19 @@ app-catalog-felhom.eu/ <- This repo (source of truth)
│ ├── papra/
│ ├── plex/
│ ├── privatebin/
│ ├── prowlarr/
│ ├── qbittorrent/
│ ├── radarr/
│ ├── rallly/
│ ├── romm/
│ ├── sabnzbd/
│ ├── securo/
│ ├── seerr/
│ ├── sonarr/
│ ├── sparkyfitness/
│ ├── tandoor/
│ ├── termix/
│ ├── transmission/
│ ├── uptime-kuma/
│ ├── vaultwarden/
│ ├── vikunja/
@@ -209,6 +215,20 @@ app_info:
**Measure it on 9202:** after the setup a stranger's sign-up succeeds (the reason for the block), with the block it is
refused, and the rest of the app still answers.
### How the household signs in when the box holds no login (`app_info.login_kind`, controller ≥ 0.320.0)
Every installed app's settings tab has a „Belépés az alkalmazásba" panel. When the box holds a login (a `type: password`
field, or `initial_credentials`), the panel shows it. Otherwise the panel shows one sentence, chosen by this key:
```yaml
app_info:
login_kind: email # first_visit (default — leave the key out) | email | none
```
`first_visit`: the household makes the admin on the first visit. `email`: the app mails a sign-in link (rallly,
outline). `none`: no sign-in of its own (bentopdf, privatebin…); with `family_gate: true` the page says the family
sign-in is the login instead (metube, glance). An ENUM, not copy: never in the `i18n:` block. Gate: `check-login-kind.py`.
**Two locks since controller 0.282.0.** Where the app has its OWN sign-up switch, wire it to `SIGNUP_CLOSED` /
`SIGNUP_OPEN` with an OPEN default in the compose (`- DISABLE_REGISTRATION=${SIGNUP_CLOSED:-false}`) — so an app
installed before is unchanged by the catalog — and declare `after_setup: {env: {SIGNUP_CLOSED: "true"}}`. The box sets
@@ -246,8 +266,51 @@ min_controller: "0.287.0" # REQUIRED with family_gate — an older box would
- The gate is recorded at install (`family_gate:` in `app.yaml`), so a catalog change never gates or un-gates an
installed app; the exceptions follow the current template.
- Gate: `scripts/check-family-gate.py` (in `catalog_gates.py`) refuses a non-literal exception, an exception list
without the gate, `family_gate` without `min_controller` ≥ 0.287.0, and `family_gate` while the newest baked golden is
older than 0.287.0.
without the gate, `family_gate` without `min_controller` ≥ 0.287.0, `family_gate` while the newest baked golden is
older than 0.287.0, and (rule 4) an app the operator RULED family-gated — MeTube, Grimmory, Glance (decision 221,
R-782) — whose template does not say `family_gate: true`. A new ruling adds the app to the gate's `REQUIRED` table.
### After an unclean boot (`after_unclean_boot`, controller ≥ 0.311.0)
A power cut while an app writes leaves some files **zero bytes** (ext4 kept the name, not the data). Some apps never
notice: Immich lists the photo as done and never rebuilds its thumbnail. For such an app the template says where the
empty files are, how the app is asked to rebuild **those only**, and how its own lost-file check is read:
```yaml
after_unclean_boot:
service: immich-server # the commands run in this compose service
images: ["ghcr.io/immich-app/immich-server:v3.2.4"] # the images it was PROVEN on; any other: skipped, reported
empty_files:
under: "${HDD_PATH}/appdata/immich/thumbs" # only ${HDD_PATH} is filled in
id_from_name: "^(<id>)_" # exactly one capture group: the app's id for that file
repair:
command: ["node", "-e", "…"] # the ids are APPENDED as arguments (plain id text only)
success: FELHOM_REPAIR_OK # the output must carry this
batch: 200
report_lost: # optional
command: ["node", "-e", "…"] # prints `LOST {"name": …, "taken": …}` lines, then the marker
success: FELHOM_LOST_OK
```
- **When:** once per controller start that followed an **unclean** host boot (the crash guard's fact; unknown is a
normal boot), after the 15-minute crash grace, while the app is running. Never on a normal boot.
- **What the box does:** finds the zero-byte regular files (no symlinks, its own filesystem only), maps names to ids,
runs the repair in batches, re-scans, retries a still-empty file **once**, then reports it. It never deletes or
rewrites a file itself, and never stops the app.
- **Who sees what:** the household sees the lost files (name and date taken) on the app page until it dismisses the
note; the operator gets `app_repaired_after_crash` with **counts only** (operator-only at the hub). File names never
reach a log line, an event or a report.
- **Immich (the only user today):** the repair adds Immich's own `AssetGenerateThumbnails {id}` job on its
`thumbnailGeneration` queue (prefix `immich_bull`) with Immich's own `bullmq` — the job `POST /api/assets/jobs
{name: "regenerate-thumbnail"}` queues — because the box holds no Immich login, and a household-made API key reaches
only the admin's photos (`09` §3 decision 236). The lost check queues `IntegrityMissingFilesQueueAll` and reads
`integrity_report` with a read-only session. Measured on 9202: 5 assets of two users repaired in 1.08 s, 0 of 50
controls touched; a deleted original found in 0.44 s; 20,000 files scanned in 0.29 s
(`felhom.eu/documentation/audits/immich-repair-2026-10-14/`). These are Immich internals, so a new image is
re-proven on 9202 before it joins `images:` — **gated:** `scripts/check-unclean-boot-images.py` (gate
`unclean-boot-images` in `catalog_gates.py`, hook and CI) refuses a compose or `steps/` file whose repair service runs
an image the block does not list. Without it the box would only skip the repair, and say so only in its own log.
- **No `min_controller`:** an older controller ignores the block and installs the app as before (it only cannot repair).
### App-email mapping (`smtp_mapping`)
@@ -308,63 +371,71 @@ block + the matching compose `${VAR}` lines.
| App | DB Type | RAM (request / limit) | Pi | HDD Data | Subdomain |
|-----|---------|----------------------|-----|----------|-----------|
| ActualBudget | None (file) | 50M / 256M | yes | -- | budget.* |
| AdventureLog | PostgreSQL | 100M / 896M | yes | -- | travel.* |
| AdventureLog | PostgreSQL | 400M / 896M | yes | -- | travel.* |
| Audiobookshelf | None (file) | 100M / 512M | yes | `${HDD_PATH}/media/audiobooks/` | audiobooks.* |
| BentoPDF | None (file) | 100M / 384M | yes | -- | pdf.* |
| BookStack | MariaDB | 150M / 768M | yes | -- | wiki.* |
| Cal.com | PostgreSQL | 200M / 1792M | no | -- | cal.* |
| BookStack | MariaDB | 200M / 768M | yes | -- | wiki.* |
| Cal.com | PostgreSQL | 800M / 1792M | no | -- | cal.* |
| Calibre-Web Automated | None (file) | 200M / 768M | no | `${HDD_PATH}/media/books/` | books.* |
| Claper | PostgreSQL | 100M / 640M | yes | -- | present.* |
| Claper | PostgreSQL | 250M / 640M | yes | -- | present.* |
| Code-Server | None (file) | 200M / 1024M | no | -- | code.* |
| Crafty Controller | None (file) | 256M / 2048M | no | -- | minecraft.* |
| Dawarich | PostgreSQL 17 (PostGIS) + Redis | 500M / 2688M | no | -- | timeline.* |
| Docmost | PostgreSQL + Redis | 200M / 768M | no | -- | docs.* |
| Docmost | PostgreSQL + Redis | 450M / 1152M | no | -- | docs.* |
| Emby | None (file) | 512M / 2048M | no | `${HDD_PATH}/media/` | emby.* |
| FileBrowser Quantum | None (file) | 50M / 256M | yes | `${HDD_PATH}/storage/filebrowser/` | files.* |
| Ghost | SQLite | 150M / 512M | no | -- | blog.* |
| Gitea | SQLite | 100M / 512M | yes | -- | git.* |
| Glance | None (file) | 20M / 128M | yes | -- | dashboard.* |
| Gokapi | None (file) | 30M / 128M | yes | -- | share.* |
| Grafana | None (file) | 100M / 512M | yes | -- | grafana.* |
| Grafana | None (file) | 250M / 768M | yes | -- | grafana.* |
| Gramps Web | None (file) | 100M / 384M | yes | -- | family.* |
| Grocy | None (SQLite) | 60M / 384M | yes | -- | kamra.* |
| Grimmory | MariaDB | 600M / 1408M | yes | `${USERDATA_PATH}/media/grimmory/` | library.* |
| Home Assistant | None (file) | 256M / 1024M | yes | -- | ha.* |
| Home Assistant | None (file) | 350M / 1024M | yes | -- | ha.* |
| Homebox | None (SQLite) | 50M / 256M | yes | -- | inventory.* |
| Homepage | None (file) | 50M / 256M | yes | -- | home.* |
| Homepage | None (file) | 90M / 256M | yes | -- | home.* |
| Immich | PostgreSQL + Redis | 2048M / 4096M | no | `${HDD_PATH}/storage/immich/` | photos.* |
| Jellyfin | None (file) | 512M / 2048M | no | `${HDD_PATH}/media/` | media.* |
| Karakeep | SQLite + Meilisearch + Chrome | 700M / 2816M | no | -- | bookmarks.* |
| Kimai | MariaDB | 100M / 640M | yes | -- | time.* |
| Komga | None (file) | 200M / 512M | yes | `${HDD_PATH}/media/comics/` | comics.* |
| Mealie | None (SQLite) | 200M / 1000M | yes | -- | recipes.* |
| Kimai | MariaDB | 200M / 640M | yes | -- | time.* |
| Komga | None (file) | 450M / 768M | yes | `${HDD_PATH}/media/comics/` | comics.* |
| LubeLogger | None (LiteDB) | 80M / 512M | yes | -- | garazs.* |
| Mealie | None (SQLite) | 300M / 1000M | yes | -- | recipes.* |
| MeTube | None (file) | 128M / 768M | yes | `${USERDATA_PATH}/media/metube/` | video.* |
| n8n | None (file) | 150M / 512M | no | -- | auto.* |
| Navidrome | None (file) | 50M / 256M | yes | `${HDD_PATH}/media/music/` | music.* |
| Nextcloud | MariaDB + Redis | 256M / 1664M | no | `${HDD_PATH}/storage/nextcloud/` | cloud.* |
| NZBGet | None (file) | 64M / 512M | yes | `${USERDATA_PATH}/media/nzbget/` | nzbget.* |
| Nextcloud | MariaDB + Redis | 350M / 1664M | no | `${HDD_PATH}/storage/nextcloud/` | cloud.* |
| OnlyOffice | None (file) | 512M / 2048M | no | -- | office.* |
| OpenGist | None (file) | 30M / 128M | yes | -- | gist.* |
| Outline | PostgreSQL + Redis | 200M / 1152M | no | -- | kb.* |
| Paperless-ngx | PostgreSQL + Redis | 500M / 1152M | yes | `${HDD_PATH}/storage/paperless/` | paperless.* |
| Papra | None (file) | 256M / 768M | yes | -- | papra.* |
| Outline | PostgreSQL + Redis | 300M / 1152M | no | -- | kb.* |
| Paperless-ngx | PostgreSQL + Redis | 600M / 1664M | yes | `${HDD_PATH}/storage/paperless/` | paperless.* |
| Papra | None (file) | 300M / 768M | yes | -- | papra.* |
| Plant-it | None (file) | 50M / 256M | yes | -- | plants.* |
| Plex | None (file) | 512M / 2048M | no | `${HDD_PATH}/media/` | plex.* |
| PrivateBin | None (file) | 30M / 128M | yes | -- | paste.* |
| PrivateBin | None (file) | 40M / 128M | yes | -- | paste.* |
| Prowlarr | None (file) | 100M / 512M | yes | -- | prowlarr.* |
| qBittorrent | None (file) | 192M / 1024M | yes | `${USERDATA_PATH}/media/torrents/` | torrent.* |
| Radarr | None (file) | 150M / 512M | yes | `${HDD_PATH}/media/` | radarr.* |
| Radicale | None (file) | 40M / 128M | yes | -- | calendar.* |
| Rallly | PostgreSQL | 50M / 256M | yes | -- | poll.* |
| RomM | MariaDB + Redis | 300M / 1024M | no | `${HDD_PATH}/storage/romm/` | arcade.* |
| Jellyseerr | None (file) | 100M / 384M | yes | -- | requests.* |
| RomM | MariaDB + Redis | 600M / 1536M | no | `${HDD_PATH}/storage/romm/` | arcade.* |
| SABnzbd | None (file) | 96M / 1024M | yes | `${USERDATA_PATH}/media/usenet/` | usenet.* |
| Securo | PostgreSQL 16 (pgvector) + Redis | 600M / 1920M | yes | -- | finance.* |
| Jellyseerr | None (file) | 200M / 384M | yes | -- | requests.* |
| Sonarr | None (file) | 150M / 512M | yes | `${HDD_PATH}/media/` | sonarr.* |
| SparkyFitness | PostgreSQL | 400M / 1792M | no | -- | sparky.* |
| Tandoor Recipes | PostgreSQL | 150M / 512M | yes | -- | recipes.* |
| Termix | None (file) | 30M / 128M | yes | -- | terminal.* |
| Uptime Kuma | None (file) | 50M / 256M | yes | -- | status.* |
| Tandoor Recipes | PostgreSQL | 900M / 1536M | yes | -- | recipes.* |
| Termix | None (file) | 150M / 256M | yes | -- | terminal.* |
| Transmission | None (file) | 64M / 512M | yes | `${USERDATA_PATH}/media/transmission/` | transmission.* |
| Uptime Kuma | None (file) | 150M / 384M | yes | -- | status.* |
| Vaultwarden | None (SQLite) | 50M / 256M | yes | -- | vault.* |
| Vikunja | None (file) | 50M / 256M | yes | -- | tasks.* |
| Wanderer | None (file) | 100M / 384M | yes | -- | hike.* |
| wger | SQLite | 100M / 384M | yes | -- | fitness.* |
| Wishlist | None (file) | 30M / 128M | yes | -- | wishes.* |
| Zipline | PostgreSQL | 100M / 768M | no | -- | img.* |
| Zipline | PostgreSQL | 200M / 768M | no | -- | img.* |
### Variable types per app
@@ -390,6 +461,7 @@ block + the matching compose `${VAR}` lines.
| Gokapi | yes | -- | -- |
| Grafana | yes | -- | GF_SECURITY_ADMIN_PASSWORD |
| Gramps Web | yes | -- | GRAMPSWEB_SECRET_KEY |
| Grocy | yes | -- | ADMIN_PASSWORD (password) |
| Home Assistant | yes | -- | -- |
| Homebox | yes | -- | -- |
| Homepage | yes | -- | -- |
@@ -398,9 +470,11 @@ block + the matching compose `${VAR}` lines.
| Karakeep | yes | -- | NEXTAUTH_SECRET, MEILI_MASTER_KEY, OPENAI_API_KEY (optional, secret_input) |
| Kimai | yes | -- | DB_PASSWORD, ADMIN_EMAIL, ADMIN_PASSWORD |
| Komga | yes | yes | -- |
| LubeLogger | yes | -- | ROOT_PASSWORD (password) |
| Mealie | yes | -- | -- |
| n8n | yes | -- | N8N_ENCRYPTION_KEY |
| Navidrome | yes | yes | -- |
| NZBGet | yes | yes | NZB_ADMIN_PASSWORD (password) |
| Nextcloud | yes | yes | DB_PASSWORD, MYSQL_ROOT_PASSWORD, NEXTCLOUD_ADMIN_USER, NEXTCLOUD_ADMIN_PASSWORD |
| OnlyOffice | yes | -- | JWT_SECRET |
| OpenGist | yes | -- | -- |
@@ -410,15 +484,19 @@ block + the matching compose `${VAR}` lines.
| Plant-it | yes | -- | JWT_SECRET |
| Plex | yes | yes | PLEX_CLAIM |
| PrivateBin | yes | -- | -- |
| qBittorrent | yes | yes | QBT_ADMIN_PASSWORD (password) |
| Radarr | yes | yes | -- |
| Radicale | yes | -- | RADICALE_PASSWORD (password) |
| Rallly | yes | -- | SECRET_PASSWORD, DB_PASSWORD |
| RomM | yes | yes | DB_PASSWORD, MYSQL_ROOT_PASSWORD, ROMM_AUTH_SECRET_KEY |
| SABnzbd | yes | yes | SAB_ADMIN_PASSWORD (password), SAB_API_KEY (secret) |
| Securo | yes | -- | SECRET_KEY (data_key), DB_PASSWORD, MCP_JWT_SECRET |
| Jellyseerr | yes | -- | -- |
| Sonarr | yes | yes | -- |
| SparkyFitness | yes | -- | DB_PASSWORD, APP_DB_PASSWORD, API_ENCRYPTION_KEY, BETTER_AUTH_SECRET |
| Tandoor Recipes | yes | -- | SECRET_KEY, DB_PASSWORD |
| Termix | yes | -- | -- |
| Transmission | yes | yes | TR_ADMIN_PASSWORD (password) |
| Uptime Kuma | yes | -- | -- |
| Vaultwarden | yes | -- | ADMIN_TOKEN |
| Vikunja | yes | -- | VIKUNJA_SERVICE_JWTSECRET |
+12
View File
@@ -0,0 +1,12 @@
# REPORT — the security watch's pin list (felhom.eu R-1303), 2026-10-26 night
> A sibling of `REPORT.md` (the night session owns it tonight). The full report: felhom.eu
> `REPORT-security-watch-2026-10-26.md`.
- **What changed here:** every pin now names where its security notices are published, and a push gate (`upstream`,
`--fast`) refuses a pin without one. The rule and its reader are shared: felhom.eu `scripts/security_watch_inventory.py`.
Decoys for the gate were red-proved with a reader that reads comment lines.
- **Why:** the nightly security watch (felhom.eu `scripts/security_watch.py`, CI 03:40 UTC) reads these lines. No
runtime change: nothing on a box changes, nothing is released.
- **First run:** see felhom.eu `documentation/audits/security-watch-2026-10-26/ADVISORIES-2026-10-26.md` and rows
R-1304 (traefik), R-1305 (the file manager), R-1306 (27 apps).
+14 -9
View File
@@ -1,12 +1,17 @@
# REPORT — design build, catalog side (2026-10-06 evening)
# REPORT — 2026-11-15: Securo, a new app, through the whole new-app checklist
The session report is `felhom.eu/REPORT.md`. Catalog commits this session:
**Plain words.** Securo keeps a family's accounts, transactions, budgets, loans and goals on the box, in Hungarian. The
household makes its own admin account on Securo's first page (the box keeps strangers out until then), loads the file
it downloads from its online bank, and adds family members. Bank sync stays optional and is not set up by the box.
- `c48a0db` — the bench can test a step that ADDS a service (`upgrade-test.py --move-to`, `--write-ladder --to-definition`);
DefinitionEdge tests, red-proved.
- `cf1ed43` — wger: `DJANGO_DEBUG=False` + a `wger-files` nginx serving `/static` and `/media` (R-762); a definition step
proven on the bench and on 9202, written by the ladder writer; wger stays hidden.
- this commit — wishlist's `after_setup` close/open commands and `min_controller: "0.301.0"` (R-717), proven live on 9202;
pushed after controller v0.301.0 reached the three boxes.
| Check | Result |
|---|---|
| Bench (swap 0): negative control, 0.17.0 → 0.18.0, 10-min watch | proven; highest memory 45 % of a limit, 0 kills |
| 9202: the same step through the guarded Update | proven (192 s), soak clean |
| 9202: the undo on a real failure | proven (0.18.0 migrated and failed; 0.17.0 back with the data) |
| 9202: setup gate against a stranger polling every second | held; 0 rounds reached the open setup |
| 9202: sign-in, sign-up off, family members, lock-out per visitor, receipt upload, backup → remove → restore | all as the record says |
| Gates | `catalog_gates.py --fast securo` and image-resolvable exit 0; volume-persistence UNDETERMINED, measured by hand (record 2.1) |
Opengist is not covered (no tool in its container to write its setting) — R-717 stays open for it.
Record: `onboarding/securo.md` (every row done or n/a). Evidence: felhom.eu `documentation/audits/new-app-securo-2026-11-15/`.
Register: felhom.eu R-1399 (the website has no Securo or wger card; the count says 63).
+17 -3
View File
@@ -23,14 +23,15 @@ Templates are config; the few script helpers other scripts must REUSE, never re-
| **The one canonical example app** | `templates/paperless-ngx/` (both files) | Multi-container (app + postgres + redis), HDD + userdata mounts, full deploy_fields spectrum (domain/subdomain/secret/password/text/path/select). Copy this structure for any new app. |
| `.felhom.yml` required fields | `templates/paperless-ngx/.felhom.yml` | All 53 apps: `display_name`, `description` (Hungarian), `category`, `subdomain`, `slug`, `resources{mem_request, mem_limit, pi_compatible, needs_hdd}`, `deploy_fields`, `app_info{tagline, use_cases, first_steps, ...}`, `healthcheck`. Optional: `smtp_mapping` (email-capable apps), `open_path` (non-root landing page, e.g. ghost). |
| deploy_fields conventions | `templates/paperless-ngx/.felhom.yml` (`deploy_fields:` block) | Every app starts with `DOMAIN` (type `domain`) + `SUBDOMAIN` (type `subdomain`, `locked_after_deploy: true`). Secrets: `type: secret` + `generate:` — dominant generators `password:24` (DB passwords) and `hex:32` (app secret keys); `password:16` for shown admin passwords (`type: password`). HDD apps add `HDD_PATH` (`type: path`, placeholder `/mnt/felhom-drives/hdd_1`, locked). Labels/descriptions in Hungarian. **A key that ENCRYPTS STORED DATA gets `data_key: true`** + a comment saying why (the restore recovers it and refuses without it; the box never regenerates it) — gated by `scripts/check-data-key.py` (R-127): an env var naming `ENCRYPTION_KEY`/`PEPPER` must be flagged, any other data key goes in its `REGISTRY` with the reason, and an unexplained flag is refused. A key that only SIGNS sessions is not one, whatever its label says. |
| **Known default login → `after_install:`** (decision 45, controller ≥ 0.279.0) | `templates/bookstack/.felhom.yml` (`ADMIN_PASSWORD` field + `after_install:` block); `FIRST-ADMIN.md` for every app | An app that starts with a known admin login gets a generated `type: password` field (`generate: "password:24"`, `locked_after_deploy: true`) and ONE `after_install: {service, env: [ADMIN_PASSWORD], command: [...], success: "<marker the output must carry>"}` through the app's OWN CLI, run once after a FRESH install. Keep `app_info.default_creds` — the page hides it once the command succeeded and warns while it is in effect. **Prove on 9202 (drill catalog) before live: the default fails, the generated password works, a wrong one fails.** TRAPS: `success:` is required because a CLI can exit 0 on an error (claper's `rpc`); **pass the password as its own argument, never inside program code** (`sys.argv[1]` — mealie, wger; security review 2026-09-29); a special-character policy uses `generate: "password:24:special"` (controller ≥ 0.280.0, calibre-web); a Hungarian first-steps change needs `check-copy-i18n.py --capture-freeze`. |
| **Known default login → `after_install:`** (decision 45, controller ≥ 0.279.0) | `templates/bookstack/.felhom.yml` (`ADMIN_PASSWORD` field + `after_install:` block); `FIRST-ADMIN.md` for every app | An app that starts with a known admin login gets a generated `type: password` field (`generate: "password:24"`, `locked_after_deploy: true`) and ONE `after_install: {service, env: [ADMIN_PASSWORD], command: [...], success: "<marker the output must carry>"}` through the app's OWN CLI, run once after a FRESH install. Keep `app_info.default_creds` — the page hides it once the command succeeded and warns while it is in effect. **Prove on 9202 (drill catalog) before live: the default fails, the generated password works, a wrong one fails.** TRAPS: `success:` is required because a CLI can exit 0 on an error (claper's `rpc`); **pass the password as its own argument, never inside program code** (`sys.argv[1]` — mealie, wger; security review 2026-09-29); a special-character policy uses `generate: "password:24:special"` (controller ≥ 0.280.0, calibre-web); a Hungarian first-steps change needs `check-copy-i18n.py --capture-freeze`. **THE COMMAND TEXT MAY NOT CONTAIN `$` (2026-10-10, grocy).** The controller runs every element of `command:` through Go's `os.Expand` (`internal/stacks/after_install.go` `expandAfterInstall`) and REFUSES the command when it names anything outside `env:` — so a `$`-sigil language cannot be inlined. Measured on 9202: a `php -r` command came back `after_install: [pw argv dsn db i t e s n q h] not declared in env or has no value — not run`, the hold stayed closed and the default password stayed in place. mealie (`sys.argv[1]`) and dawarich (`ARGV[0]`) avoid it by language; PHP and shell cannot. The way out, when the image has no `$`-free interpreter: the compose entrypoint writes the code to a FILE (ours, outside the app's tree, no secret in it) and `after_install` passes only `${PASSWORD}` — `templates/grocy/` does both halves and its compose header explains them. |
| **Open first-run screen → `setup_gate:`** (decision 46, controller ≥ 0.280.0) | `templates/n8n/.felhom.yml` (probe), `templates/uptime-kuma/.felhom.yml` (no probe → the household's button); `FIRST-ADMIN.md` | `setup_gate: true` + optional `setup_done_probe: {url: http://<container_name>:<port>/<path>, field: <dotted.json.path>, done: "<text>"}` | TRAPS: the probe must FLIP on the setup — measure it before and after on 9202; an app with open sign-up after setup (R-711) is not closed by the gate; `url` is read on the docker network, so it names the container, not the subdomain. |
| **Open sign-up after the setup → `signup_block:`** (decision 47, controller ≥ 0.281.0) | `templates/opengist/.felhom.yml`, `templates/calcom/.felhom.yml` | `signup_block: "<traefik matcher>"` + `app_info.add_people` (hu) / `i18n.en.app_info.add_people` | TRAPS: block the app's API sign-up call, not only the page; an app's own invite link often uses the same address (the household's 15-minute window covers it); `add_people` is copy — `--capture-freeze`. |
| **The visitor's address — read from the RIGHT, never the leftmost** (R-753, controller ≥ 0.286.0) | `templates/docmost/docker-compose.yml` (the reset), `templates/home-assistant/` (a right-walking reader) | traefik keeps the tunnel's chain: `<client-written…>, <real visitor>, 172.16.253.2`; the LAN gives one entry. An app that reads the LEFTMOST entry gets the router reset: `traefik.http.middlewares.<router>-xff.headers.customrequestheaders.X-Forwarded-For=` + `traefik.http.routers.<router>.middlewares=<router>-xff` (defined on the router's own container) — it then reads X-Real-Ip or its peer. A right-walking reader gets `172.16.0.0/12` as its trusted proxies. A FIXED count is wrong for one of the two paths — leave count readers alone. **Never turn on** a leftmost switch: glance `proxied`, karakeep `RATE_LIMITING_ENABLED`, vaultwarden `IP_HEADER=X-Forwarded-For`, PocketBase `UseLeftmostIP`, navidrome's reverse-proxy whitelist, Plex `ALLOWED_NETWORKS`. Sweep of all 56: `felhom.eu/documentation/audits/visitors-2026-10-01/A/sweep/`. Checklist 3.10 |
| **No login of its own / a login strangers must not reach → `family_gate:`** (decisions 63/64, controller ≥ 0.287.0) | `templates/metube/.felhom.yml` (no exceptions), `templates/grimmory/.felhom.yml` (`family_gate_except:` for OPDS/Kobo/KOReader/Komga); README.md §family gate | `family_gate: true` + `min_controller: "0.287.0"` (required); optional `family_gate_except:` — LITERAL path prefixes a phone or e-reader app calls, each anchored by the box at a segment boundary and still behind the APP's own login. TRAPS: never an exception on an app with no login of its own (an open door); measure each exception on 9202 as a stranger AND a look-alike (`<prefix>x` → the gate); a websocket passes the gate like any request (MeTube measured 101); gate `check-family-gate.py` refuses an unanchored exception and a family_gate before a golden ≥ 0.287.0 is baked. |
| **No login of its own / a login strangers must not reach → `family_gate:`** (decisions 63/64, controller ≥ 0.287.0) | `templates/metube/.felhom.yml` and `templates/glance/.felhom.yml` (no exceptions), `templates/grimmory/.felhom.yml` (`family_gate_except:` for OPDS/Kobo/KOReader/Komga); README.md §family gate | `family_gate: true` + `min_controller: "0.287.0"` (required); optional `family_gate_except:` — LITERAL path prefixes a phone or e-reader app calls, each anchored by the box at a segment boundary and still behind the APP's own login. TRAPS: never an exception on an app with no login of its own (an open door); measure each exception on 9202 as a stranger AND a look-alike (`<prefix>x` → the gate); a websocket passes the gate like any request (MeTube measured 101); gate `check-family-gate.py` refuses an unanchored exception and a family_gate before a golden ≥ 0.287.0 is baked. |
| **The app's own sign-up switch → `after_setup:`** (decisions 47/49, controller ≥ 0.282.0) | `templates/homebox/` (compose `HBOX_OPTIONS_ALLOW_REGISTRATION=${SIGNUP_OPEN:-true}` + `.felhom.yml` `after_setup.env`) | compose default OPEN; `after_setup: {env: {SIGNUP_CLOSED: "true"}}` | TRAPS: the default must be OPEN (an installed app is unchanged by the catalog); several apps' switch also refuses the household's FIRST account, so never set it at install; an app with no env switch (opengist, wishlist) keeps the block alone — make that block case-insensitive. |
| **A same-tag security fix → a RE-TEST step** (`09` decision 52, 2026-09-30) | `scripts/retest-floating.py` (the ONE monthly command), `scripts/retest_box.py` (the box venue), `scripts/box_walk.py` (the 9202 client), `upgrade-test.py --retest` + `--write-ladder` | An entry whose `from` == `to`, with `digest_from` (the tested digest it started from) and `box_evidence`. `--dry-run` lists; `--engines-only` is the ruled start. Runbook `felhom.eu/documentation/runbooks/monthly-floating-retest.md`. TRAPS: never write one by hand (the gates refuse no new digest, a digest the registry stopped serving, a missing box proof, a `digest_from` that is not the previous entry's digest); `image_digest.resolve` IGNORES a `@digest` in its argument — ask the registry by manifest for a digest. |
| **A bench-only environment override** (R-739) | `upgrade-test.py` `BENCH_ENV_OVERRIDES` | Only for an app that cannot run on the bench at all (wanderer: its web server calls the DB at the public https name). Every verdict carries `bench_overrides`. Never a template change. |
| **A setting the app WRITES BACK -> set it through the app's API in `after_install`, and read it back** (2026-10-12, qbittorrent) | `templates/qbittorrent/.felhom.yml` (`after_install:`) + its compose header | A value seeded into a config file is only a REQUEST: an app that owns that file may ignore it at first start and may rewrite it in its own dialect. Measured on 9202: `Session\UseUPnP=false` is in the file and the app still reports `"upnp": true` and tries a mapping; a semicolon host list in the file comes back as one entry, after which the controller's probe (which dials by CONTAINER NAME) is refused. Both settings go through `/api/v2/app/setPreferences` in `after_install`, which then **reads each one back** and prints its marker only if both answer. TRAPS: `after_install` runs once after a FRESH install, so anything it sets must also survive a restart (verify, do not assume); the marker must depend on the READBACK, not on the setting call's exit code (an API that accepts and discards returns 200); and the host list must contain the container name, or the health probe dies the moment the app rewrites the file. |
| Controller-side health probe | `templates/vaultwarden/.felhom.yml` (`healthcheck:` block) | `healthcheck.checks[]` with `type: http` (port only), `type: api` (port + `path` + `expect.status: 200`), or `type: tcp` (port only — mealie, crafty-controller). Prefer `api` with a real health path when the app has one. |
| App lifecycle (`available`/`hidden`/`abandoned`) | `templates/plant-it/.felhom.yml` (`lifecycle:` block) | Optional top-level `lifecycle:` in `.felhom.yml`. Absent/empty ≡ `available`. `hidden` = not offered for new installs; `abandoned` = same, PLUS a permanent "Nem karbantartott" badge + notice on every box already running it. **Deployed instances keep full function in both states** — lifecycle governs what is OFFERED, never what runs; the controller refuses a deploy of a non-available template server-side (fail-closed, so a stale link or direct POST cannot install one). Unknown value → treated as `available` + one WARN, never a broken template. **Do NOT take an app out of circulation by deleting or moving its directory** — that orphans every customer already running it, which is what the 2026-07-21 `retired/` experiment got wrong. The resolvability gate skips non-available apps, so an abandoned app's dead image is not a standing red. |
| **Catalog gates — THE entry point** | `scripts/catalog_gates.py` | **Run `python3 scripts/catalog_gates.py <app>` after ANY template change** (mandated in `CLAUDE.md`). Runs all four gates below in order — image-pins, image-resolvable, volume-persistence, engine-major (2026-09-13; git-history diff, hook-only until CI fetches deeper, R-452) — and exits **non-zero if any fails**; **2 (UNDETERMINED) is reported distinctly and is never a pass**, 1 (convicted) outranks 2 in the summary. Naming app(s) scopes the two gates that accept scoping, which is the normal after-a-change run; with no names the RUNTIME gate deploys every template, so that form is **scratch host only**. **Why a runner** (operator ruling 2026-08-02, R-161): the only gates in this project that ever get run are the ones with a single entry point named in a CLAUDE.md — `felhom.eu/scripts/site_gates.py` is run, R-29's three orphans are named nowhere and have stopped nothing. Controller-side enforcement was rejected because a load-time check reads only the file and a static audit reports the catalog clean **including papra** — it would pass on the very defect it exists to catch; CI was rejected for now (neither repo has any, no users yet). Adding a fourth gate here means adding it to `GATES` in this file — nothing else. |
@@ -42,11 +43,16 @@ Templates are config; the few script helpers other scripts must REUSE, never re-
| Docker healthcheck — curl-capable images | `templates/paperless-ngx/docker-compose.yml` (~L76) | `test: ["CMD", "curl", "-f", "http://localhost:<port>/<path>"]` (~18 apps: jellyfin, immich, sonarr…). |
| Docker healthcheck — Node images (no wget/curl) | `templates/rallly/docker-compose.yml` (~L49) | `test: ["CMD", "node", "-e", "require('http').get(...)"]` — used when the image lacks wget (that was rallly's actual bug). |
| Docker healthcheck — Python images | `templates/mealie/docker-compose.yml` (~L47) | `test: ["CMD-SHELL", "python3 -c \"import socket; s=socket.create_connection(('localhost',<port>),2); s.close()\""]` (mealie, crafty-controller). tandoor/wger use `urllib.request` variants for real HTTP checks. |
| **Docker healthcheck — an image with NO HTTP client at all** | `templates/lubelogger/docker-compose.yml` (`healthcheck.test`) | `test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/<port> && printf 'GET <path> HTTP/1.0
' >&3 && head -1 <&3 | grep -q 200"]` — the fifth family, added 2026-10-10. `ghcr.io/hargata/lubelogger` carries **no curl, no wget, no nc, no python and no node** (measured), so none of the four families above exists in it; it does carry bash, and bash's `/dev/tcp` speaks TCP without any helper binary. **Measured in BOTH directions before it was written down**: rc 0 against the running app (`HTTP/1.1 200 OK`), rc 1 against a dead port. TRAPS: it needs **bash**, not `sh` — Debian's `sh` is dash and has no `/dev/tcp`, so check `command -v bash` in the image first; `head -1 … | grep -q` is a pipeline, so the FIRST command's failure is invisible — the `&&` chain in front of it is what makes a refused connection fail the check, and that is why the connect is not inside the pipeline. Prefer a real HTTP line (`200`) over a bare TCP connect: a port that is open while the app refuses every request is the uptime-kuma shape (R-613). |
| Docker healthcheck — DB/Redis sidecars | `templates/paperless-ngx/docker-compose.yml` (~L107, L129) | postgres: `pg_isready -U <user> -d <db>`; mariadb: `healthcheck.sh --connect --innodb_initialized`; redis: `redis-cli ping`. App container gets `depends_on: <db>: condition: service_healthy`. |
| MariaDB sidecar — `MARIADB_AUTO_UPGRADE=1` | `templates/bookstack/docker-compose.yml` (`bookstack-db` `environment:`), also kimai/nextcloud/romm | **Every `mariadb:` sidecar carries `MARIADB_AUTO_UPGRADE=1`** (operator ruling 2026-09-13, `felhom.eu/documentation/audits/SPIKE-r459-mariadb-upgrade-2026-09-06.md`). Without it a major engine move starts on the old datadir, logs that the conversion was **skipped**, and says `Check required!` on every start forever (R-459); with it the engine converts in ~7 s and backs its system tables up first (`system_mysql_backup_<ver>.sql.zst` left in the datadir). `MARIADB_DISABLE_UPGRADE_BACKUP` stays UNSET — that backup is the precaution. **Not an image change, so `catalog_since` does not move.** TRAP (R-464): the entrypoint prints `MariaDB upgrade not required` on an UNSUPPORTED downgrade too — ask `mariadb-upgrade --check-if-upgrade-is-needed` (exit 0 = needed, 1 = not), never the log line. PostgreSQL sidecars have NO equivalent (the image runs no `pg_upgrade`, R-463). **Until Slice 4 (R-448) ships, no template may move a `mariadb:`/`postgres:` pin across a MAJOR** — `scripts/check-engine-major.py` refuses it in the pre-push hook. |
| Memory convention | `templates/paperless-ngx/docker-compose.yml` (~L71) + `.felhom.yml resources:` | EVERY service has `deploy.resources.limits.memory` (compose is the enforcement). NO `reservations` anywhere. `.felhom.yml mem_limit` = SUM of all containers' limits (see paperless header comment: 768+256+128=1152M); `mem_request` = expected steady-state usage, display-only. **Gated since 2026-10-05 (R-758):** `scripts/check-mem-limit-sum.py` (`--fast`, stdlib only) refuses a `mem_limit` that is not the sum and a service with no limit; `steps/` files are not judged. |
| Download folder — `class: excluded` (R-1019, 2026-10-20) | `templates/qbittorrent/.felhom.yml` `backup.userdata` (also transmission + its `watch`, nzbget, sabnzbd, metube) | **A download client's download folder is declared `excluded`** (felhom.eu `architecture/15-media-library.md` §7): no tier copies it. `optional` mirrored every download to the household's second drive each night (Tier 2 = mandatory + optional) and could fill it; UNLISTED is worse — the controller classes an unlisted writable `${…_PATH}` bind MANDATORY, so it went off-site too. The folder is found by its FACT, the container target `/downloads` or `/watch`; gate `scripts/check-download-binds.py` (`--fast`, decoys in `test_gate_decoys.py`). The app's own state (settings, queue, resume data) stays in its `important` volume. |
| Memory convention | `templates/paperless-ngx/docker-compose.yml` (~L71) + `.felhom.yml resources:` | EVERY service has `deploy.resources.limits.memory` (compose is the enforcement). NO `reservations` anywhere. `.felhom.yml mem_limit` = SUM of all containers' limits (see paperless header comment: 768+256+128=1152M); `mem_request` = expected steady-state usage — NOT display-only: the box's install check adds the installed apps' requests and refuses an app that does not fit (controller `stacks/deploy.go` `memoryVerdict`; set from the 2026-10-13 measurement, R-1125). **Gated since 2026-10-05 (R-758):** `scripts/check-mem-limit-sum.py` (`--fast`, stdlib only) refuses a `mem_limit` that is not the sum and a service with no limit; `steps/` files are not judged. |
| Compose file skeleton | `templates/paperless-ngx/docker-compose.yml` (header) | Header comment (app, domain, DB type, RAM math, Pi), `restart: unless-stopped`, `TZ=Europe/Budapest`, explicit `container_name`, `traefik-public` external network + `<app>-internal` for DBs, Traefik labels with ``Host(`${SUBDOMAIN}.${DOMAIN}`)``, named volumes for DB/config (NVMe), `${HDD_PATH}/appdata/<app>/...` for bulk data, `${USERDATA_PATH}/...` for customer-browsable content. |
| App-email (SMTP shim) opt-in | `templates/vaultwarden/.felhom.yml` (`smtp_mapping:`) + README.md §smtp_mapping | `smtp_mapping` maps shim host/port/security/from to the app's own env names; compose MUST reference the mapped `${VAR:-}` keys with empty defaults. STARTTLS if the app can accept self-signed certs, else `security_value: "NONE"` plaintext (or the :2526 plaintext listener for STARTTLS-insistent clients — see calcom/nextcloud). TRAP: an image that treats defined-but-EMPTY mail vars as "set" (vaultwarden — campaign F1 2026-07-06) needs its own enable-flag gated `false` in compose and flipped `"true"` via `smtp_mapping.extra`; boot-prove a fresh email-off deploy for every new smtp-mapped app. |
| Redis sidecar persistence (R-1096) | `templates/paperless-ngx/docker-compose.yml` (`paperless-redis`) | `command: redis-server --appendonly no` — snapshots (RDB), never append-only: a damaged AOF keeps Redis down until a person runs `redis-check-aof --fix`, while a snapshot is written to a temp file and renamed, so a full disk leaves the old one intact. No command = the image default = RDB (outline). Gate `redis-persistence` refuses AOF in a template's compose; `steps/` files are tested definitions and keep what they were tested with. |
| Probe-container naming | `templates/vaultwarden/docker-compose.yml` (`container_name: vaultwarden`) + `templates/sparkyfitness/` | The controller-side `healthcheck.checks[]` probe dials the container whose **name equals the stack (directory) name exactly**; fallback = the FIRST running prefix-match, which in a multi-container stack can be the DB (verified: `felhom-controller/controller/internal/stacks/healthprobe.go` `findProbeContainer`). So the Traefik-exposed service's `container_name` must be exactly the stack name; sidecars `<app>-db`, `<app>-redis`, …. |
## 3. Dangerous lookalikes — do NOT copy
@@ -54,6 +60,7 @@ Templates are config; the few script helpers other scripts must REUSE, never re-
| Trap | Why it bites | Use instead |
|---|---|---|
| `templates/gokapi/docker-compose.yml` custom `entrypoint` seeding `config.json` + `--deployment-password` | One-off hack because Gokapi has no env-var headless setup (pinned to ConfigVersion 21 / v1.9.6). Copying this entrypoint pattern to another app will break on image updates. | Normal env-var config via `deploy_fields`; entrypoint-seeding only as last resort. |
| A healthcheck that uses `curl -f` on an app which requires authentication | `curl -f` exits **22** on a 401, so the container is `unhealthy` for ever while the app serves perfectly. Transmission answers 401 on every path (measured 2026-10-12, `transmission-bench/08-health.txt`). | Decide on the CODE, not on curl's exit: `["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:<port>/ \| grep -qE '^(200\|401)$$'"]` - `templates/transmission/docker-compose.yml`. Prove it in both directions (a port nothing serves must fail), and admit the probe's own Host name if the app filters on it. |
| `templates.json` + `scripts/generate-customer.sh` | LEGACY Portainer-only mechanism (marked so in README.md). New apps do NOT need entries here; the controller syncs `templates/<app>/` directly. | Just `templates/<app>/{docker-compose.yml,.felhom.yml}`. |
| `templates/uptime-kuma/docker-compose.yml` `test: ["CMD", "extra/healthcheck"]` | Image-provided binary, unique to this image — not a portable pattern. | Pick the wget/curl/node/python family matching your image (§2). |
@@ -78,6 +85,13 @@ Templates are config; the few script helpers other scripts must REUSE, never re-
6. **Moving an existing app's `image:`** is not an edit: run `scripts/upgrade-test.py --move <app> <svc>=<ref>`
on the bench, walk it on a scratch box, then `upgrade-test.py --write-ladder …` writes the compose move,
`catalog_since` and the ladder entry. `check-test-record-move.py` refuses a move without it (`09` decision 13).
7. **The user guide (`app_info.guide`, controller >= 0.315.0)** — copy the block shape from `templates/sonarr/.felhom.yml`
(4 sections of one intro + 2–5 steps, 5–6 FAQ entries; the English overlay under `i18n.en.app_info.guide`, same counts,
same order — sections are matched BY INDEX). Write it with felhom.eu `documentation/audits/app-guides-2026-10-15/tools/`
`apply_guide.py` (JSON-quoted strings, proves the parse), check every „…" label with `labelcheck.py` against the app's
files AT THE PINNED TAG, then `check-copy-i18n.py --add-app <app> --reason "…"`. `checked_version` = the image tag, and
only when every label was found; empty (`""`) hides the guide. A moved image makes `guide-version` WARN — re-check, then
set it again. Never a step for what the box wires (felhom.eu `15-media-library.md` §6), never a download source.
## 6. Known inconsistencies (observed — NOT fixed)
Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

+114
View File
@@ -0,0 +1,114 @@
# PikaPods scan — what it tells us about licences, and what it suggests we could add
2026-10-10 · read-only · table: `TABLE.md` · nothing in the catalog was changed
**What the green heart means, in PikaPods' own words.** Hovering the heart beside an app name shows
**"Project has a revenue sharing agreement."** (verified by hovering the heart next to *Actual*,
<https://www.pikapods.com/apps>, 2026-10-10; `A1-heart-tooltip.jpg`). Their FAQ answers *"How much do
open source developers get?"* with: **"Open source developers have the option to enter into a revenue
sharing agreement to receive 20% of revenues their app generates."** (<https://www.pikapods.com/>,
read 2026-10-10). The home page states it as **"20% revenue share with project authors where
possible."**
**Numbers.** 126 apps on PikaPods, **39 with the mark**, 87 without. Our catalog has 58 template
directories (56 offered, `plant-it` abandoned, `wger` hidden). **25 apps are on both lists**; 33 of
ours are not on PikaPods; 101 of theirs are not ours. **11 of our 25 shared apps carry the mark.**
---
## §1 Licence comfort — our restricted apps
**Read this first: a mark gives Felhom nothing.** It is evidence that the author signed an agreement
*with PikaPods*, a different company, on terms we have not seen. It is not a licence, not a
precedent, and not permission. Its only value is as a signal that the author is **not opposed in
principle** to someone hosting their app commercially — which is useful when deciding whether asking
is worth the effort.
| our app | licence problem (2026-10-02 read) | on PikaPods? | mark? | what that is worth |
|---|---|---|---|---|
| **sparkyfitness** | custom non-commercial; written permission needed (R-784) | **yes** | **YES** | The strongest signal in this scan, and it matches what the author already told us: he pointed at PikaPods' revenue share himself. The author demonstrably **will** license commercial hosting on the right terms. Worth pursuing. |
| **tandoor** | AGPL-3.0 WITH Commons Clause — forbids selling hosting/support whose value derives substantially from it (R-789) | **no** | – | No signal either way. The scan tells us nothing about Tandoor; the Commons Clause question stands exactly where it did. |
| **emby** | proprietary, personal non-commercial (R-790/791/792 arc) | **no** | – | Unsurprising: PikaPods requires a "license that allows self-hosting", and Emby's terms do not fit a hosting business. No comfort gained. |
| **plex** | proprietary ToS, personal non-commercial | **no** | – | Same. No comfort gained. |
| **n8n** | Sustainable Use License — own internal business use or non-commercial only (NOT OSI) | **yes** | **no** | **The most interesting negative.** PikaPods hosts n8n commercially *without* a revenue-share mark. That tells us n8n's licence did not stop PikaPods, but it does **not** tell us they have permission, and it is not a defence for us. Treat as unchanged. |
| **outline** | BUSL-1.1 — no "Document Service" for third parties (R-793) | **no** | – | No signal. |
| **calcom** | AGPL + Cal.com EE | **no** | – | No signal. |
| **docmost** | AGPL + Docmost EE | **yes** | **no** | Hosted commercially by PikaPods, no mark. Same reading as n8n: informative, not exculpatory. |
| **wanderer** | MIT core + BUSL-1.1 EE modules | **no** | – | No signal. |
| redis 7.4 (RSALv2/SSPL, R-794) | a dependency, not an app | n/a | n/a | Out of scope for this scan. |
**The honest summary: this scan moved exactly one row.** SparkyFitness is confirmed as an author who
does commercial-hosting agreements. Everything else is unchanged, and two apps we ship under
restrictive licences (n8n, docmost) turn out to be hosted commercially by PikaPods *without* a
revenue-share mark — which is a fact about PikaPods' risk appetite, not a permission we can borrow.
**One more thing worth knowing.** PikaPods' own listing criteria are *"Have a license that allows
self-hosting"* and *"Not compete with the author's own paid hosting service, unless alternative
hosting options are actively promoted."* (<https://docs.pikapods.com/faq/apps>, read 2026-10-10).
Those are PikaPods' rules for themselves, not a legal test — but the absence of Emby, Plex and
Tandoor from a list that applies those rules is at least consistent with our own reading of them.
---
## §2 Candidates — apps PikaPods hosts and we do not
**101 PikaPods apps are not in our catalog.** After the household filter — photos, documents, family,
home, money, media, health, learning, and **not** developer or company tools — **about 20** remained;
the ten below are the ranked pick. Developer/company tools were excluded wholesale (Activepieces,
Baserow, Bugsink, Directus, Forgejo, GlitchTip, Keycloak, Listmonk, Matomo, Mattermost, Mautic,
Metabase, NocoDB, Pocketbase, Rocket.Chat, SerpBear, Snipe-IT, SuiteCRM, Twenty CRM, Umami,
WordPress and the rest).
**Nothing here is added. Each would still go through `NEW-APP-CHECKLIST.md`.** Every licence below was
read at the project's own repository on 2026-10-10 and is cited.
| # | app | what it does for a family | licence (read 2026-10-10) | OSI | mark | overlaps what we have |
|---|---|---|---|---|---|---|
| 1 | **Grocy** | Runs the household itself: what food is in the house, what runs out when, the shopping list, chores and meal plans. | **MIT** — <https://github.com/grocy/grocy> | yes | no | **nothing** |
| 2 | **Firefly III** | Household budgeting: income, spending, accounts and debts, multi-currency. | **AGPL-3.0** — <https://github.com/firefly-iii/firefly-iii> | yes | **YES** | ActualBudget (different model: envelope budgeting vs double-entry bookkeeping) |
| 3 | **Monica** | A private address book for family life — birthdays, who said what, when you last called. | **AGPL-3.0** — <https://github.com/monicahq/monica> | yes | no | **nothing** |
| 4 | **LubeLogger** | Every service, repair and tank of fuel for the family car, in one place. | **MIT** — <https://github.com/hargata/lubelog> | yes | no | **nothing** |
| 5 | **Storyteller** | Pairs an ebook with its audiobook so you can read and listen in the same place. | **MIT** — <https://gitlab.com/storyteller-platform/storyteller> | yes | **YES** | partly calibre-web / audiobookshelf, but the pairing is the point and neither does it |
| 6 | **PdfDing** | A library for the household's PDFs — bills, manuals, contracts — read on any device. | **AGPL-3.0** — <https://codeberg.org/mrmn/PdfDing> | yes | **YES** | bentopdf is a PDF *toolbox*; this is a PDF *library* |
| 7 | **Memos** | Quick private notes and a family journal, Markdown, very light. | **MIT** — <https://github.com/usememos/memos> | yes | no | outline, docmost — **and that is the argument for it**: both of those carry non-OSI parts (BUSL / EE), this is plain MIT |
| 8 | **Wealthfolio** | Tracks savings and investments, separate from month-to-month budgeting. | **AGPL-3.0** — <https://github.com/wealthfolio/wealthfolio> | yes | **YES** | nothing directly; sits beside ActualBudget |
| 9 | **Kavita** | Ebook and comic library with a proper reader, for the whole family. | **GPL-3.0** — <https://github.com/Kareadita/Kavita> | yes | **YES** | komga (comics) and calibre-web (books) — real overlap, but Kavita does both in one |
| 10 | **PhotoPrism** | Photo library that finds things in pictures without sending them anywhere. | **AGPL-3.0** — <https://github.com/photoprism/photoprism> | yes | **YES** | **Immich, heavily.** Listed last for that reason; only worth it as an alternative for households that dislike Immich |
### Dropped after reading its licence — and it was nearly recommended
**Joplin** looked like an obvious candidate (notes, sync, a real mobile app; PikaPods hosts it). Its
repository root says *"All code in this repository is licensed under the AGPL-3.0-or-later License
**unless a directory contains a LICENSE or LICENSE.md file**"* — and the directory that matters,
`packages/server`, has one. That file is the **Joplin Server Personal Use License**, which says:
> "Unless authorised by the Licensor in writing, the Software may be used for personal
> non-commercial purposes only. … The Licensee is not allowed to: (i) use the Software for commercial
> purposes and (ii) grant others the right to use the Software for a fee"
— <https://github.com/laurent22/joplin/blob/dev/packages/server/LICENSE.md>, read 2026-10-10.
That is the **same shape as SparkyFitness (R-784)**: the client is open source, the *server we would
host* is not. A repository-level licence badge reading "AGPL-3.0" would have hidden it. **Not
recommended** without written permission — and it is a reminder that the licence of the thing we
actually run is sometimes not the licence of the repository.
### Counts for this section
| | |
|---|---|
| PikaPods apps not in our catalog | **101** |
| after the household filter | ~20 |
| recommended (ranked above) | **10** |
| of those, carrying the revenue-share mark | **6** (Firefly III, Storyteller, PdfDing, Wealthfolio, Kavita, PhotoPrism) |
| dropped on a licence read after shortlisting | **1** (Joplin) |
---
## What this does not say
- It does not say any of the ten may be added. Each needs `NEW-APP-CHECKLIST.md`: an image pin, a
healthcheck read from the image rather than guessed, memory limits, and a live validation.
- It does not re-read the licences of apps we already ship. Those are the 2026-10-02 read.
- It gives Felhom no permission for SparkyFitness, Tandoor, Emby, Plex or n8n. Only the authors can.
- No author and no one at PikaPods was contacted.
+189
View File
@@ -0,0 +1,189 @@
# PikaPods vs the Felhom catalog — one row per app (2026-10-10)
Read-only scan. **PikaPods list read 2026-10-10 from <https://www.pikapods.com/apps>** (126 apps, all read — the page renders them all at once, no pagination).
**The green heart.** PikaPods shows a green heart beside some app names. Hovering it shows the tooltip **“Project has a revenue sharing agreement.”** (verified by hovering the heart next to *Actual* on 2026-10-10; screenshot `A1-heart-tooltip.jpg`). Their FAQ explains it: **“Open source developers have the option to enter into a revenue sharing agreement to receive 20% of revenues their app generates.”** (<https://www.pikapods.com/>, read 2026-10-10). The home page states the same as **“20% revenue share with project authors where possible.”**
**A mark is NOT permission for Felhom.** It is evidence that the author has entered into an agreement *with PikaPods*. It gives Felhom no rights whatsoever. Its only value to us is as a signal that the author is open to a commercial-hosting arrangement at all.
Licence column: our own read of 2026-10-02, `felhom.eu/documentation/audits/licences-2026-10-02/TABLE.md`. Not re-read here.
| app (PikaPods name) | on PikaPods | revenue-share mark | in Felhom catalog | our licence class | note |
|---|---|---|---|---|---|
| Activepieces | yes | no | – | – | – |
| Actual | yes | yes | actualbudget | MIT | – |
| Airsonic Advanced | yes | no | – | – | – |
| Answer | yes | no | – | – | – |
| ArchiveBox | yes | no | – | – | – |
| Audiobookshelf | yes | no | audiobookshelf | GPL-3.0 | – |
| Baserow | yes | no | – | – | – |
| Beszel | yes | no | – | – | – |
| Blinko | yes | yes | – | – | – |
| BookStack | yes | no | bookstack | MIT | – |
| Bugsink | yes | no | – | – | – |
| ByteStash | yes | yes | – | – | – |
| Calibre Web | yes | no | calibre-web | GPL-3.0 | – |
| Changedetection | yes | no | – | – | – |
| Checkmate | yes | yes | – | – | – |
| Chevereto | yes | no | – | – | – |
| Code Server | yes | no | code-server | MIT | – |
| CommaFeed | yes | yes | – | – | – |
| Convos | yes | no | – | – | – |
| Dashy | yes | no | – | – | – |
| Directus | yes | no | – | – | – |
| Docmost | yes | no | docmost | AGPL-3.0 + Docmost EE (not OSI) | **restricted licence in our catalog** |
| DokuWiki | yes | no | – | – | – |
| Easy!Appointments | yes | no | – | – | – |
| Etherpad | yes | no | – | – | – |
| Excalidraw | yes | no | – | – | – |
| Fider | yes | no | – | – | – |
| Firefly III | yes | yes | – | – | – |
| Flarum | yes | no | – | – | – |
| flatnotes | yes | no | – | – | – |
| Forgejo | yes | no | – | – | – |
| FreeScout | yes | yes | – | – | – |
| FreshRSS | yes | no | – | – | – |
| Fusion | yes | no | – | – | – |
| Ghost | yes | no | ghost | MIT | – |
| Gitea | yes | no | gitea | MIT | – |
| GlitchTip | yes | yes | – | – | – |
| Gokapi | yes | yes | gokapi | AGPL-3.0 | – |
| Gonic | yes | no | – | – | – |
| Gotify | yes | no | – | – | – |
| Grimmory | yes | yes | grimmory | (see table) | – |
| Grocy | yes | no | – | – | – |
| Haven | yes | yes | – | – | – |
| HedgeDoc | yes | no | – | – | – |
| Homarr | yes | yes | – | – | – |
| HomeBox | yes | yes | homebox | AGPL-3.0 | – |
| Homer | yes | no | – | – | – |
| Immich | yes | no | immich | AGPL-3.0 | – |
| Joplin | yes | no | – | – | – |
| Journiv | yes | yes | – | – | – |
| Kan | yes | no | – | – | – |
| Karakeep | yes | yes | karakeep | AGPL-3.0 (Meilisearch MIT) | – |
| Kavita | yes | yes | – | – | – |
| Keycloak | yes | no | – | – | – |
| Komga | yes | yes | komga | MIT | – |
| Linkding | yes | yes | – | – | – |
| Linkwarden | yes | no | – | – | – |
| Listmonk | yes | no | – | – | – |
| LubeLogger | yes | no | – | – | – |
| Lychee | yes | no | – | – | – |
| Matomo | yes | no | – | – | – |
| Mattermost | yes | no | – | – | – |
| Mautic | yes | no | – | – | – |
| Mealie | yes | yes | mealie | AGPL-3.0 | – |
| MediaWiki | yes | no | – | – | – |
| Memos | yes | no | – | – | – |
| Metabase | yes | no | – | – | – |
| MicroBin | yes | no | – | – | – |
| Miniflux | yes | no | – | – | – |
| Monica | yes | no | – | – | – |
| Moodle | yes | no | – | – | – |
| My Idlers | yes | yes | – | – | – |
| n8n | yes | no | n8n | Sustainable Use License (NOT OSI) | **restricted licence in our catalog** |
| Navidrome | yes | yes | navidrome | GPL-3.0 | – |
| Nextcloud | yes | no | nextcloud | AGPL-3.0 | – |
| NocoDB | yes | no | – | – | – |
| NoteDiscovery | yes | yes | – | – | – |
| Notifuse | yes | yes | – | – | – |
| Ntfy | yes | no | – | – | – |
| Ocular | yes | yes | – | – | – |
| Open DroneLog | yes | yes | – | – | – |
| Open WebUI | yes | no | – | – | – |
| Paisa | yes | yes | – | – | – |
| Paperless-ngx | yes | no | paperless-ngx | GPL-3.0 | – |
| PasswordPusher | yes | no | – | – | – |
| PdfDing | yes | yes | – | – | – |
| PhotoPrism | yes | yes | – | – | – |
| Pinry | yes | no | – | – | – |
| Pocketbase | yes | no | – | – | – |
| Poznote | yes | yes | – | – | – |
| PrivateBin | yes | no | privatebin | Zlib | – |
| Pydio Cells | yes | no | – | – | – |
| Rallly | yes | yes | rallly | AGPL-3.0 | – |
| Readeck | yes | no | – | – | – |
| Rocket.Chat | yes | no | – | – | – |
| Roundcube | yes | no | – | – | – |
| RSS-Bridge | yes | no | – | – | – |
| RSSHub | yes | no | – | – | – |
| Seafile | yes | no | – | – | – |
| SerpBear | yes | no | – | – | – |
| Shiori | yes | no | – | – | – |
| Shlink | yes | no | – | – | – |
| SilverBullet | yes | yes | – | – | – |
| Slink | yes | no | – | – | – |
| Snipe-IT | yes | no | – | – | – |
| SparkyFitness | yes | yes | sparkyfitness | custom NON-COMMERCIAL (NOT OSI) | **restricted licence in our catalog** |
| Stirling PDF | yes | no | – | – | – |
| Storyteller | yes | yes | – | – | – |
| SuiteCRM | yes | no | – | – | – |
| Sure | yes | yes | – | – | – |
| The Lounge | yes | no | – | – | – |
| Traggo | yes | no | – | – | – |
| Transmute | yes | yes | – | – | – |
| TriliumNext | yes | no | – | – | – |
| Tududi | yes | yes | – | – | – |
| Twenty CRM | yes | no | – | – | – |
| Tymeslot | yes | no | – | – | – |
| Umami | yes | no | – | – | – |
| Uptime Kuma | yes | no | uptime-kuma | MIT | – |
| Vaultwarden | yes | no | vaultwarden | AGPL-3.0 | – |
| Vikunja | yes | yes | vikunja | AGPL-3.0 | – |
| Wallabag | yes | no | – | – | – |
| Wealthfolio | yes | yes | – | – | – |
| WeKan | yes | no | – | – | – |
| Wiki.js | yes | yes | – | – | – |
| WordPress | yes | no | – | – | – |
## Felhom catalog apps NOT on PikaPods
| app (our template) | on PikaPods | revenue-share mark | in Felhom catalog | our licence class | note |
|---|---|---|---|---|---|
| adventurelog | **no** | – | adventurelog | GPL-3.0 | – |
| bentopdf | **no** | – | bentopdf | AGPL-3.0 (dual) | – |
| calcom | **no** | – | calcom | AGPL-3.0 + Cal.com EE (not OSI) | **restricted licence** |
| claper | **no** | – | claper | AGPL-3.0 | – |
| crafty-controller | **no** | – | crafty-controller | GPL-3.0 | – |
| dawarich | **no** | – | dawarich | AGPL-3.0 | – |
| emby | **no** | – | emby | PROPRIETARY (not OSI) | **restricted licence** |
| glance | **no** | – | glance | AGPL-3.0 | – |
| grafana | **no** | – | grafana | AGPL-3.0 | – |
| gramps-web | **no** | – | gramps-web | AGPL-3.0 | – |
| home-assistant | **no** | – | home-assistant | Apache-2.0 | – |
| homepage | **no** | – | homepage | GPL-3.0 | – |
| jellyfin | **no** | – | jellyfin | GPL-2.0 | – |
| kimai | **no** | – | kimai | AGPL-3.0 | – |
| metube | **no** | – | metube | AGPL-3.0 | – |
| onlyoffice | **no** | – | onlyoffice | AGPL-3.0 | – |
| opengist | **no** | – | opengist | AGPL-3.0 | – |
| outline | **no** | – | outline | BUSL-1.1 (NOT OSI) | **restricted licence** |
| papra | **no** | – | papra | AGPL-3.0 | – |
| plant-it | **no** | – | plant-it | (abandoned) | abandoned |
| plex | **no** | – | plex | PROPRIETARY (not OSI) | **restricted licence** |
| radarr | **no** | – | radarr | GPL-3.0 | – |
| radicale | **no** | – | radicale | GPL-3.0 | – |
| recipe-importer | **no** | – | recipe-importer | (own) | – |
| romm | **no** | – | romm | AGPL-3.0 | – |
| seerr | **no** | – | seerr | MIT | – |
| sonarr | **no** | – | sonarr | GPL-3.0 | – |
| tandoor | **no** | – | tandoor | AGPL-3.0 WITH Commons Clause (NOT OSI) | **restricted licence** |
| termix | **no** | – | termix | (see table) | – |
| wanderer | **no** | – | wanderer | MIT + BUSL-1.1 EE modules | **restricted licence** |
| wger | **no** | – | wger | AGPL-3.0 | hidden |
| wishlist | **no** | – | wishlist | MIT | – |
| zipline | **no** | – | zipline | MIT | – |
## Counts
| | |
|---|---|
| PikaPods apps listed | **126** |
| … of those, with the revenue-share mark | **39** |
| … without | 87 |
| Felhom template directories | 58 (56 offered + plant-it abandoned + wger hidden) |
| on **both** | **25** |
| ours, not on PikaPods | 33 |
| PikaPods', not ours | 101 |
| ours that carry the mark on PikaPods | **11** (actualbudget, gokapi, grimmory, homebox, karakeep, komga, mealie, navidrome, rallly, sparkyfitness, vikunja) |
@@ -0,0 +1,7 @@
{
"source": "https://www.pikapods.com/apps",
"read": "2026-10-10",
"total": 126,
"marked": ["Actual","Blinko","ByteStash","Checkmate","CommaFeed","Firefly III","FreeScout","GlitchTip","Gokapi","Grimmory","Haven","Homarr","HomeBox","Journiv","Karakeep","Kavita","Komga","Linkding","Mealie","My Idlers","Navidrome","NoteDiscovery","Notifuse","Ocular","Open DroneLog","Paisa","PdfDing","PhotoPrism","Poznote","Rallly","SilverBullet","SparkyFitness","Storyteller","Sure","Transmute","Tududi","Vikunja","Wealthfolio","Wiki.js"],
"unmarked": ["Activepieces","Airsonic Advanced","Answer","ArchiveBox","Audiobookshelf","Baserow","Beszel","BookStack","Bugsink","Calibre Web","Changedetection","Chevereto","Code Server","Convos","Dashy","Directus","Docmost","DokuWiki","Easy!Appointments","Etherpad","Excalidraw","Fider","Flarum","flatnotes","Forgejo","FreshRSS","Fusion","Ghost","Gitea","Gonic","Gotify","Grocy","HedgeDoc","Homer","Immich","Joplin","Kan","Keycloak","Linkwarden","Listmonk","LubeLogger","Lychee","Matomo","Mattermost","Mautic","MediaWiki","Memos","Metabase","MicroBin","Miniflux","Monica","Moodle","n8n","Nextcloud","NocoDB","Ntfy","Open WebUI","Paperless-ngx","PasswordPusher","Pinry","Pocketbase","PrivateBin","Pydio Cells","Readeck","Rocket.Chat","Roundcube","RSS-Bridge","RSSHub","Seafile","SerpBear","Shiori","Shlink","Slink","Snipe-IT","Stirling PDF","SuiteCRM","The Lounge","Traggo","TriliumNext","Twenty CRM","Tymeslot","Umami","Uptime Kuma","Vaultwarden","Wallabag","WeKan","WordPress"]
}
+2
View File
@@ -31,6 +31,7 @@ rows; do not add free-form lines between them.
1.7 | open | not started: Every start-time switch in the image's entrypoint is read and decided (migrations, …
1.8 | open | not started: Debug / development mode is OFF on the public origin
1.9 | open | not started: A secret whose loss destroys data or locks people out (it encrypts stored data, or …
1.10 | open | not started: Every image names where its security notices are published (`.felhom.yml` `upstream:`)
2.1 | open | not started: Every path the app writes is mounted
2.2 | open | not started: Where each path lives: named volume (NVMe) / ${HDD_PATH}/appdata / ${USERDATA_PATH}
2.3 | open | not started: Backup class for every HDD path (backup: in .felhom.yml) and what the tier-1 unit holds
@@ -70,6 +71,7 @@ rows; do not add free-form lines between them.
8.3 | open | not started: Logo + screenshots on felhom.eu by slug
8.4 | open | not started: README tables, FIRST-ADMIN row, category, catalog_since
8.5 | open | not started: The website's app count still holds
8.6 | open | not started: A user guide whose every label is found at the pinned tag
9.1 | open | not started: python3 scripts/catalog_gates.py <app>
9.2 | open | not started: A fresh install on 9202 from the drill catalog, as a household and as a stranger, …
9.3 | open | not started: Every item above done or n/a-with-reason
+76
View File
@@ -0,0 +1,76 @@
# Onboarding record — grocy
app: grocy
opened: 2026-10-10
template_at: b38aa923177db40bcb399546c625167fa029f025
<!--
Copy this file to onboarding/<app>.md, set the three lines above, and answer every row below.
One line per id: `<id> | done | <evidence path(s)>`, `<id> | n/a | <reason, 4+ words>`, `<id> | open | <what is missing>`.
Evidence paths are written from the workspace root (app-catalog-felhom.eu/… or felhom.eu/documentation/audits/…);
several paths are separated by " ; "; a note may follow after " — ". The checks, their "how" and "why":
NEW-APP-CHECKLIST.md. The gate: scripts/check-onboarding.py (catalog_gates.py --fast). Do not reorder or merge
rows; do not add free-form lines between them.
-->
0.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/FIT.md — MIT. GitHub's licence endpoint answers `spdx_id: MIT` for grocy/grocy and the file is LICENSE.md; we pull linuxserver.io's image and redistribute nothing.
0.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/FIT.md — v4.7.1 on 2026-09-04; three releases in 2026, 83 since 2017, issues answered, not archived.
0.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/FIT.md — lscr.io/linuxserver/grocy:4.7.1, amd64 and arm64, read from the manifest. There is NO image published by grocy itself: grocy/grocy on Docker Hub is 404 and grocy's own README answers "How to run using Docker" with one link, to linuxserver.io.
0.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt — a repo-wide grep at v4.7.1 finds two outbound hosts in the whole codebase: world.openfoodfacts.org for the barcode lookup the household asks for, and releases.grocy.info for demo pictures when MODE is not production. No update check, no analytics, nothing at start. Switch: GROCY_STOCK_BARCODE_LOOKUP_PLUGIN empty.
0.5 | n/a | it needs no internet at runtime at all; the first start downloads nothing and no feature requires a remote service
0.6 | n/a | the image exposes HTTP only and grocy speaks nothing else, so the tunnel costs the household nothing
0.7 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt — grocy has no native app; it is an installable web app. Third-party phone apps use its REST API with the GROCY-API-KEY header. Measured on 9202 through traefik: no credentials 401, a wrong key 401, and a key minted through grocy's own page answered 200 on /api/system/info and on /api/stock.
0.8 | done | app-catalog-felhom.eu/templates/grocy/.felhom.yml — the Hungarian description and app_info.tagline say what a household gets.
0.9 | n/a | grocy never calls itself server-side and the bench ran it with no environment override at all
1.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/gates.txt — catalog_gates.py grocy green, image-pins and image-resolvable included.
1.2 | n/a | grocy has no database service: SQLite inside its own volume is what upstream packaging runs
1.3 | n/a | no MariaDB and no PostgreSQL sidecar exists in this template
1.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/evidence/MV-grocy/verdict.json ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/box-verdict-grocy-FAILED-prefix.json — the step INTO the pin, measured: the previous upstream release 4.6.0 installed and seeded, then moved to 4.7.1, migration observed, seed read back, healthy after. The first run of this edge FAILED and is kept: grocy's persisted config.php did not follow the image.
1.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt — nginx master and php-fpm 8.5 master, workers as abc. PID 1 is s6-svscan, the image's supervisor, which is what the box probe reads.
1.6 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt — grocy's own settings file names no key, secret, token or PEM at all; the only credential it has is the admin password the box generates, and every login route was then exercised.
1.7 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt — the image's s6 oneshots listed and init-grocy-config read in full. It has one start-time decision: it copies config-dist.php to /config/data/config.php only if that file is absent. That line is the 4.6 to 4.7 break, and the template's entrypoint answers it.
1.8 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt — MODE production and DISABLE_AUTH false as the running app reads them; an unknown page 404 with zero stack-trace markers, through traefik too.
1.9 | n/a | no secret here encrypts stored data or signs a long-lived token; the admin password is a login grocy hashes
2.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/volume-persistence.txt — the runtime gate deployed grocy, exercised it and compared where the data landed against what the compose mounts.
2.2 | done | app-catalog-felhom.eu/templates/grocy/docker-compose.yml ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt — one named volume on NVMe holds the database, the settings and the pictures the household uploads. No HDD and no userdata path, deliberately: a fresh install is under a megabyte and there is no bulk data to browse.
2.3 | n/a | the template declares no HDD path, so there is no per-path backup class to set
2.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt — PUID and PGID 1000; everything under /config belongs to abc and php-fpm's workers run as abc, which is why after_install runs as abc too.
2.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/restore.txt — on 9202: the per-app backup the guarded Update took, then remove keeping the backups, then the household's own restore button, then the seed read back through grocy's own API with its three controls.
2.6 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/remove.txt — remove with data measured three times: 200, the named volume gone, the backup paths removed. What is left in the stack directory afterwards is the template pair the syncer keeps for all templates, not deployed state.
2.7 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/offsite-size.txt — the whole app is under a megabyte on a seeded install; grocy never decides how big an off-site snapshot is.
2.8 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt — through traefik over https, as the household: PUT a file through grocy's own file API 204, GET it back 200 with the content matching, and the same GET with no credentials 401.
3.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/install.txt — class 3, measured: a fresh install's users table holds exactly one row, admin, and admin/admin signs in. No first-run screen; an unauthenticated page is 302 to /login and /api is 401.
3.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt — on 9202 through traefik: the documented default refused, the box's generated password signs in, a wrong password refused. Proven on the bench against both 4.7.1 and 4.6.0 first.
3.3 | n/a | grocy has no open first-run screen to gate; its first admin already exists with a password, which is 3.2's case
3.4 | n/a | grocy has no registration route at all and only a signed-in admin can add a user, measured on 9202
3.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/defaultpoll.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/poll.txt — the documented default login POSTed once a second as a stranger from before the install press: 65 attempts, 0 signed in. 404 while nothing answered, then 401 behind the install hold, then invalid once the hold opened, which it only does after after_install has replaced the password.
3.6 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt — 25 wrong passwords for the public name through traefik, then the household's right one: in at once, and the first member's session still live. No lock-out and no throttle, which is why the name is not generated here.
3.7 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt — the household added a family member through grocy's own POST /api/users and that member signed in. app_info.add_people says where the page is, in both languages.
3.8 | done | app-catalog-felhom.eu/templates/grocy/.felhom.yml — the password is its own argument to the helper script; no value is pasted into program text.
3.9 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt — the browser form with its https Origin and Referer signs in through traefik; the API route a phone app uses refuses without a key and with a wrong key, and answers a key minted through grocy's own page.
3.10 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt — a repo-wide grep at v4.7.1 for REMOTE_ADDR, HTTP_X_FORWARDED_FOR and getClientIp finds nothing, and a failed sign-in carrying a forged leftmost X-Forwarded-For through traefik left that address nowhere in the app's log. Nothing is decided on it, so no router reset is needed.
4.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt — the image carries BusyBox wget and no curl, so the probe is the wget family, dialling 127.0.0.1 and /login which answers 200. Measured both ways: rc 0 against the app, rc 1 against a dead port.
4.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/gates.txt — gate probe-matches-compose green: the controller probe is api on port 80 at /login, which is what the compose healthcheck dials.
4.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/install.txt — on a cold first install on 9202: deployed in 30 s, every container healthy 36 s after the press, RestartCount 0.
4.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt — the negative control: docker stop, and the controller read stopped within 5 s with the front door 404; docker start and it was running again 10 s later.
4.5 | done | app-catalog-felhom.eu/templates/grocy/docker-compose.yml — container_name grocy is exactly the stack name, and there are no sidecars to be mistaken for it.
5.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/mem-grocy.csv ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/evidence/MV-grocy/verdict.json ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/remove.txt — on the bench with swap 0, sampled from the container's birth every 2 s: peak anon 27.2 MiB, 6.7 per cent of the 384 M limit, peak swap 0, oom_kill 0, restarts 0. On the box the same app peaked at 45.7 and 86.6 MiB across two installs, 0 swap, 0 kills.
5.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/evidence/MV-grocy/verdict.json — the 10-minute soak after the readback: 605 s, 10343 requests all answered, peak anon 6.7 per cent of the limit, cgroup peak including the page cache 25.4 per cent, 0 oom_kills, 0 restarts.
5.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/gates.txt — gate mem-limit-sum green: one service at 384M and mem_limit 384M, and the compose header says the same.
5.4 | n/a | grocy is PHP behind nginx, not a Node or Java runtime that sizes a heap from the limit
5.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt — amd64 and arm64, so pi_compatible true; the image is about 275 MB to pull.
6.1 | done | app-catalog-felhom.eu/scripts/upgrade_fixtures_box.py ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/evidence/MV-grocy/verdict.json — the Grocy fixture seeds and reads back through grocy's own routes: its login, a product, and the stock route, then the stock read back for the name and the amount. It proves itself on every verify: no cookie must be 401, a session from a wrong password must be 401, and a product id that cannot exist must be 404, or the readback is declared unusable.
6.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/evidence/MV-grocy/verdict.json ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/box-verdict-grocy.json ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/step.txt — bench proven and box proven, the box through the product's own guarded Update in 41 s. Written into the template by upgrade-test.py --write-ladder, never by hand.
6.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/box-verdict-grocy-FAILED-prefix.json ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/step.txt — the undo was measured on a REAL failure, not a forced one: before the config.php fix the same step went backing-up, pulling, copying, verifying, undoing, undone in 346 s, the app came back on 4.6.0 and the seed read back with all three controls. The bench's own bare abort, which takes no backup, loses the data; only the product's backup-first undo returns it.
6.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/evidence/MV-grocy/verdict.json — files_changed is empty: grocy rewrites no file at start, so there is no files_may_change mark to carry.
6.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/FIT.md ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/partA-probes.txt — linuxserver.io rebuilds weekly and re-pushes the plain version tag: 4.7.1 changed from ls342 to ls343 with the same grocy inside. The catalog pins the plain tag as its four other linuxserver apps do, and retest-floating.py is the monthly instrument for that class. The tag shape itself is stable.
7.1 | n/a | grocy sends no mail at all; its own settings file names no SMTP, sendmail or mail function
8.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/gates.txt — gate copy-i18n green with grocy in the freeze: 20 Hungarian strings, 20 with English, informal te, no keruk.
8.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/install.txt — every claim on the app page was followed on 9202: the tagline, the use cases, the first steps, default_creds which the page hides once after_install has replaced it, and add_people, since a family member really can be added that way and signs in.
8.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/grocy/shots — grocy's own icon with its single fill made white like the other logos, and three screenshots of the app's own Hungarian UI taken on the bench from this template; installed as felhom.eu/website/assets/grocy-logo.svg and grocy-screenshot-1..3.webp.
8.4 | done | app-catalog-felhom.eu/README.md ; app-catalog-felhom.eu/FIRST-ADMIN.md ; app-catalog-felhom.eu/templates/grocy/.felhom.yml — both README tables, the FIRST-ADMIN row, category home and catalog_since 2026-10-10.
8.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/site-count.txt — the count moved in every place the website states it, both language sets, with a control that no old count is left.
9.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/gates.txt — catalog_gates.py grocy exit 0, every gate in the table.
9.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/install.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/checks.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/step.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/restore.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/remove.txt — a fresh install on 9202 from the drill catalog, walked as the household and as a stranger, start to finish, twice: the second time after the after_install defect was fixed.
9.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/README.md — this record; the two defects found are in the register and in the catalog CHANGELOG.
9.4 | done | app-catalog-felhom.eu/templates/grocy ; app-catalog-felhom.eu/onboarding/grocy.md — published to the live catalog in one commit.
+76
View File
@@ -0,0 +1,76 @@
# Onboarding record — lubelogger
app: lubelogger
opened: 2026-10-10
template_at: b38aa923177db40bcb399546c625167fa029f025
<!--
Copy this file to onboarding/<app>.md, set the three lines above, and answer every row below.
One line per id: `<id> | done | <evidence path(s)>`, `<id> | n/a | <reason, 4+ words>`, `<id> | open | <what is missing>`.
Evidence paths are written from the workspace root (app-catalog-felhom.eu/… or felhom.eu/documentation/audits/…);
several paths are separated by " ; "; a note may follow after " — ". The checks, their "how" and "why":
NEW-APP-CHECKLIST.md. The gate: scripts/check-onboarding.py (catalog_gates.py --fast). Do not reorder or merge
rows; do not add free-form lines between them.
-->
0.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/FIT.md — MIT. GitHub's licence endpoint answers `spdx_id: MIT` for hargata/lubelog and the file is LICENSE; we pull the project's own image and redistribute nothing.
0.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/FIT.md — v1.7.3 on 2026-09-12, and SEVENTEEN releases in 2026 alone (v1.6.1 in February through v1.7.3 in September); 74 releases since 2024, issues answered, not archived.
0.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/FIT.md — ghcr.io/hargata/lubelogger:v1.7.3, amd64 and arm64, read from the manifest. This is the image upstream's own docker-compose.yml names; Docker Hub carries the same tags.
0.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt — nothing at start: the first log lines are the banner and `Now listening`. Three outbound fetches exist and each is on a page the household opens on purpose: the sponsors list and the language pack from hargata.github.io, and the release check from api.github.com behind a `checkForUpdate` request flag.
0.5 | n/a | it needs no internet at runtime; everything it does works with no network at all
0.6 | n/a | HTTP only on 8080. Its SignalR websocket at /api/ws passes the tunnel like any request, as MeTube's measured 101 showed
0.7 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt — no official native app; it is a PWA. Its API takes HTTP Basic or an `x-api-key` on /api, /kiosk, /images, /documents and /temp. Measured on 9202 through traefik: Basic right 200, Basic wrong 401, a bogus api key 401.
0.8 | done | app-catalog-felhom.eu/templates/lubelogger/.felhom.yml — the Hungarian description and app_info.tagline say what a household gets.
0.9 | n/a | it never calls itself server-side and the bench ran it with no environment override at all
1.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/gates.txt — catalog_gates.py lubelogger green, image-pins and image-resolvable included.
1.2 | n/a | LiteDB inside its own volume, which is exactly what upstream's own default compose runs; PostgreSQL is optional and not used here
1.3 | n/a | no MariaDB and no PostgreSQL sidecar exists in this template
1.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/evidence/MV-lubelogger/verdict.json — the step INTO the pin, measured: v1.7.2 installed and seeded, then moved to v1.7.3, seed read back, healthy after. LiteDB performs no schema migration, so there is no migration switch to set.
1.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt — PID 1 is `./CarCareTracker`, Kestrel, and its own log says `Hosting environment: Production`.
1.6 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt — the image's appsettings.json is printed in full in the probe file; the only keys that are secrets are UserNameHash and UserPasswordHash, which ship EMPTY and which the template's entrypoint fills from the generated password. Every login route was then exercised.
1.7 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt — the image has NO entrypoint script at all: it execs the app. Its start-time switches are configuration keys, and the probe prints the shipped appsettings.json in full with each one decided. The one that matters is `EnableAuth: false`.
1.8 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt — `Hosting environment: Production` in the app's own log, and an unknown page 404 with no debug page, through traefik.
1.9 | n/a | the DataProtection key signs the login cookie and nothing else; losing it signs everyone out and destroys no data
2.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/volume-persistence.txt — the runtime gate deployed lubelogger, exercised it and compared where the data landed against what the compose mounts.
2.2 | done | app-catalog-felhom.eu/templates/lubelogger/docker-compose.yml ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt — two named volumes on NVMe: the data tree (database, documents, images, temp, themes, translations) and the DataProtection keys. No HDD and no userdata path, deliberately: the uploads are receipts and a few photos, and an attached receipt is only ever opened from the record it belongs to.
2.3 | n/a | the template declares no HDD path, so there is no per-path backup class to set
2.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt — the image runs as root (its APP_UID is not used as USER) and writes only inside its own two volumes; there is no PUID/PGID to set.
2.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/restore.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/restore-password.txt — remove keeping the backups then the household's own restore button: the app came back running in 22.3 s with the household's vehicle and its service record. The fixture reported False, and chasing that is the useful part: a `type: password` field is not in PortableSecretEnvVars, so the install's password does not travel in the unit and the box mints a new one. MEASURED after the restore: the install's password is refused, the value the box now holds signs in, and the data is there.
2.6 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/remove.txt — remove with data on 9202: 200, both named volumes gone, the Hungarian note saying there was nothing on an external drive. What is left in the stack directory is the template pair the syncer keeps for all templates, not deployed state.
2.7 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/offsite-size.txt — 140 KB of data and 8 KB of keys on a seeded install; LubeLogger never decides how big an off-site snapshot is.
2.8 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/member-and-upload.txt — through traefik as the household: a PDF uploaded through the app's own file route, fetched back 200 with the content matching, and the same fetch with NO credentials 302 to the login, not 200.
3.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/install.txt — class 1. THE IMAGE'S OWN DEFAULT IS NO LOGIN AT ALL, measured: a stranger got 200 on /, on /api/vehicles and on /Home/Settings and CREATED A VEHICLE that came back from the API. With the template's entrypoint the first answer the app ever gives a stranger is 401 / 302 to the login.
3.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt — on 9202 through traefik: the generated login signs in, a wrong password is refused with the app's own message, and the API refuses both ways. There is no shared default to replace, because the template's login did not exist before we made it.
3.3 | n/a | there is no open first-run screen: with the template the app demands a login from its first byte, so there is no setup window to gate
3.4 | n/a | sign-up is closed by the app itself: RegisterNewUser refuses without a token the root user mints, measured twice on 9202 with an empty and a guessed token
3.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/poll.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt — a stranger's poll of /api/vehicles once a second from the install press: 404 while nothing answered, then 401, never 200. On the bench the same was watched from the container's creation: at t+1 s nothing was listening, at t+2 s /api/vehicles was already 401. There is no window.
3.6 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt — 25 wrong passwords for the public name through traefik, each refused with the app's own message, then the household's right one: in at once. No lock-out and no throttle, which is why the NAME may stay a plain word.
3.7 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/member-and-upload.txt — the admin minted a registration token for a family member on the app's own Admin page with autoNotify false, so no mail server is needed; the member registered with it and SIGNED IN, and the same member with a wrong password was refused. The first attempt used /Login/SendRegistrationToken, which is the self-service path and correctly answers `Open Registration Disabled`; `app_info.add_people` was corrected to the route that works.
3.8 | n/a | there is no after_install command at all; the generated password reaches the app as an environment variable the entrypoint hashes, and is unset from PID 1 afterwards
3.9 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt — the browser form signs in through traefik and again with a browser's https Origin and Referer; the API routes a phone or a script uses answer 200 on the right Basic credentials and 401 on the wrong ones.
3.10 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt — LubeLogger reads the client address in ONE place: LoginController takes the real peer from Connection.RemoteIpAddress and APPENDS the X-Forwarded-For string to a log line for a failed sign-in. Nothing is decided on it. Measured through traefik on 9202 with a forged leftmost entry, and the forged address did not even reach the app: the log line carried the real chain.
4.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt ; app-catalog-felhom.eu/REUSE.md — this image has NO curl, NO wget, NO nc, NO python and NO node, so none of REUSE.md's four healthcheck families exists in it. It has bash, and bash's /dev/tcp speaks TCP without a helper binary. Measured both ways: rc 0 against the app with an HTTP 200 line, rc 1 against a dead port. Written up as the fifth family.
4.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/gates.txt — gate probe-matches-compose green: the controller probe is api on port 8080 at /Login/Index, which is what the compose healthcheck dials.
4.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/install.txt — on a cold first install on 9202: deployed in 20 s, every container healthy 27 s after the press, RestartCount 0.
4.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt — the negative control: docker stop, the controller read the app down and the front door stopped answering; docker start and it came back.
4.5 | done | app-catalog-felhom.eu/templates/lubelogger/docker-compose.yml — container_name lubelogger is exactly the stack name, and there are no sidecars.
5.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/mem-lubelogger.csv ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/evidence/MV-lubelogger/verdict.json ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/remove.txt — on the bench with swap 0, sampled from the container's birth every 2 s: peak anon 66.2 MiB, 12.3 per cent of the 512 M limit, peak swap 0, oom_kill 0, restarts 0. On the box three installs peaked at 22.1, 35.1 and 46.6 MiB, 0 swap, 0 kills.
5.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/evidence/MV-lubelogger/verdict.json — the 10-minute soak after the readback: 605 s, 11988 requests all answered, peak anon 12.3 per cent of the limit, cgroup peak including the page cache 17.9 per cent, 0 oom_kills, 0 restarts.
5.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/gates.txt — gate mem-limit-sum green: one service at 512M and mem_limit 512M, and the compose header says the same.
5.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/mem-lubelogger.csv ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/evidence/MV-lubelogger/verdict.json — it is .NET, which DOES size its heap from the cgroup limit, and the measurement says the limit is not the binding constraint: anon peaked at 12.3 per cent of 512 M under a 605-second soak with no kill and no restart, and the box's three installs peaked lower still on the same limit.
5.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt — amd64 and arm64, so pi_compatible true; the image is about 267 MB to pull.
6.1 | done | app-catalog-felhom.eu/scripts/upgrade_fixtures_box.py ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/evidence/MV-lubelogger/verdict.json — the LubeLogger fixture seeds and reads back through the app's own routes: its login, a vehicle with a marker plate, and a service record with a marker description, then both read back from the API. It proves itself on every verify: no cookie must be 401, a session from a wrong password must be 401, and a vehicleId that cannot exist must answer an empty list.
6.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/evidence/MV-lubelogger/verdict.json ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/box-verdict-lubelogger.json ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/step.txt — bench proven and box proven, the box through the product's own guarded Update in 25.6 s: backing-up, safety-dump, pulling, copying, verifying, done. Written into the template by upgrade-test.py --write-ladder, never by hand.
6.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/evidence/MV-lubelogger/verdict.json ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/grocy/step.txt — no forced-fail case was manufactured for this app, and one was not needed to learn the answer: the harness's ABORT leg put v1.7.2 back and recorded `starts-and-serves`, so an undo on this app returns a working app with its data (LiteDB performs no destructive migration). The product's own undo on a REAL failure was measured in this same session on grocy, where it restored the pre-update backup and the data read back.
6.4 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/evidence/MV-lubelogger/verdict.json — files_changed is empty: it rewrites no file at start, so there is no files_may_change mark to carry.
6.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/FIT.md ; felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/partA-probes.txt — the tag shape is `v<major>.<minor>.<patch>` and has not changed across 74 releases; `latest` and `edge` exist beside it and are not used. The publisher does not re-push a version tag: each release is a new tag, seventeen of them in 2026.
7.1 | n/a | it sends mail only when MailConfig is set, which this template does not set; its own startup banner says SMTP Not Configured and it boots
8.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/gates.txt — gate copy-i18n green with lubelogger in the freeze: 21 Hungarian strings, 21 with English, informal te, no keruk.
8.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/member-and-upload.txt — every claim on the app page was followed on 9202: the tagline, the use cases, the first steps, and add_people, which was CORRECTED after the first route turned out to be the self-service one.
8.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/bench/lubelogger/shots — the app's own icon with its dark background dropped and the mark made white, the rule SparkyFitness's PNG follows, and three screenshots of the app with a household's own car and its service history; installed as felhom.eu/website/assets/lubelogger-logo.png and lubelogger-screenshot-1..3.webp.
8.4 | done | app-catalog-felhom.eu/README.md ; app-catalog-felhom.eu/FIRST-ADMIN.md ; app-catalog-felhom.eu/templates/lubelogger/.felhom.yml — both README tables, the FIRST-ADMIN row, category home and catalog_since 2026-10-10.
8.5 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/site-count.txt — the count moved in every place the website states it, both language sets, with a control that no old count is left.
9.1 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/gates.txt — catalog_gates.py lubelogger exit 0, every gate in the table.
9.2 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/install.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/checks.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/step.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/restore.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/member-and-upload.txt ; felhom.eu/documentation/audits/new-apps-2026-10-10/box/lubelogger/remove.txt — a fresh install on 9202 from the drill catalog, walked as the household and as a stranger, start to finish.
9.3 | done | felhom.eu/documentation/audits/new-apps-2026-10-10/README.md — this record; the findings are in the register and in the catalog CHANGELOG.
9.4 | done | app-catalog-felhom.eu/templates/lubelogger ; app-catalog-felhom.eu/onboarding/lubelogger.md — published to the live catalog in one commit.
+77
View File
@@ -0,0 +1,77 @@
# Onboarding record — nzbget
app: nzbget
opened: 2026-10-12
template_at: 2026-10-12 (published in this commit)
<!--
Measured on 2026-10-12 in two venues: the bench (LXC 9401 on demo-hp) and guest 9202 through the
product. Evidence: felhom.eu/documentation/audits/usenet-2026-10-12/.
The operator asked for the Usenet pair (R-988); NZBGet is the light client beside SABnzbd's full one.
TWO THINGS THIS RECORD DOES NOT CLAIM, both for the same reason: a household must bring a PAID
Usenet provider, and this session had none. A real download - connect, authenticate, par2 repair,
unpack, the finished file on the drive - is NOT measured, and neither is memory under that load. The
app says the same thing itself on every start with no provider: "[ERROR] No servers are configured".
-->
0.1 | done | https://github.com/nzbgetcom/nzbget — GPL-2.0-or-later. We pull the project's own published image and never redistribute it
0.2 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/01-image.txt — v26.3, published 2026-08-27; the project ships a release every few weeks and answers issues
0.3 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/01-image.txt — `nzbgetcom/nzbget` IS the project's own image, with version tags (v26.2, v26.3) and three platforms: amd64, arm/v7, arm64
0.4 | done | app-catalog-felhom.eu/templates/nzbget/docker-compose.yml ; felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/14-both-after-the-fixes.txt — the shipped config has `UpdateCheck=stable`, which asks nzbget.com for new versions; the seed sets it to `none` and the readback shows `UpdateCheck=none`. The box updates the app from the catalog instead
0.5 | done | the app needs the internet for the one thing it exists to do (reach the household's Usenet provider), and for nothing else. No account with us, no token, no call home once the update check is off
0.6 | done | NNTP, usually 563 with TLS, and OUTGOING ONLY — a Usenet client never listens. Unlike the torrent pair it loses nothing at all behind the box's closed ports, which is in the app text
0.7 | n/a | no first-party phone or desktop app for the server; third-party clients drive the same JSON-RPC on the same public name with the generated password (3.9 measures that route)
0.8 | done | app-catalog-felhom.eu/templates/nzbget/.felhom.yml — "Usenet letöltés egyszerűen, alig észrevehető erőforrásból", with the sentence naming the paid provider as a prerequisite and the one naming SABnzbd as the fuller choice
0.9 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/14-both-after-the-fixes.txt — it does not call itself at its public name; the only self-dial is the healthcheck on 127.0.0.1, which the app's shipped `AuthorizedIP=127.0.0.1` lets through
1.1 | done | app-catalog-felhom.eu/templates/nzbget/docker-compose.yml — nzbgetcom/nzbget:v26.3; gates image-pins + image-resolvable
1.2 | n/a | the app has no database engine: its settings and queue are files
1.3 | n/a | no MariaDB and no PostgreSQL sidecar in this template
1.4 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/MV-nzbget/verdict.json — the step INTO the pin is the test (checklist 1.4): v26.2 -> v26.3 proven on the bench, and again on 9202 through the product's own Update
1.5 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/03-process-and-entrypoint.txt — nzbget in server mode under su-exec as the image's unprivileged `user` (uid 1000); no development server exists in this app
1.6 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/14-both-after-the-fixes.txt — the only secret is the control password, generated at install and re-applied on every start; the shipped default is gone from the config file (grep count 0) and refused over HTTP (401)
1.7 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/03-process-and-entrypoint.txt — the image's entrypoint read in full: the lock-file removal, PUID/PGID via usermod/groupmod, the config copy, and the `-o ControlUsername=... -o ControlPassword=...` it appends from NZBGET_USER/NZBGET_PASS on every start
1.8 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/12-container-log.txt — the app's own log; no stack trace. It names its own two warnings (article cache and write buffer), which the template's seed answers
1.9 | n/a | the generated password guards the control interface; losing it destroys no data (it is re-applied from the environment at every start)
2.1 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/14-both-after-the-fixes.txt — /config holds the settings AND the state this template moved there (queue, nzb, tmp, the log); the drive holds the finished and the half-assembled files
2.2 | done | app-catalog-felhom.eu/templates/nzbget/docker-compose.yml — /config in nzbget_config (NVMe); ${USERDATA_PATH}/media/nzbget/completed and .../intermediate on the household's drive. **The app ships MainDir=/downloads**, which would put the queue, the nzb files and the temp dir on the drive; the seed moves them to /config/data
2.3 | done | app-catalog-felhom.eu/templates/nzbget/.felhom.yml — the config volume is `important` (settings, provider entry AND queue — see the comment that explains the move); the downloads are `optional`
2.4 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/14-both-after-the-fixes.txt — PUID/PGID 1000; /config/data and the drive folders are owned 1000:1000. The template chowns the state directory it introduces, because the image's own entrypoint chowns /config and /downloads but neither recursively
2.5 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/nzbget/step.txt — the product's guarded Update took its own per-app backup, and the queued job read back through the app's own RPC afterwards
2.6 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-log.txt — both remove choices measured on 9202: the config volume goes either way, and the drive's media folder is kept as the household's own data
2.7 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/14-both-after-the-fixes.txt — the config volume is a few hundred KB with one queued job; that is what the off-site copy carries. The downloads are the household's own size and are `optional`
2.8 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/MV-nzbget/verdict.json — an NZB appended through the app's own RPC is accepted, held paused in the queue, and its saved nzb file is in the config volume; that is the household's own input, and the readback is 2.5
3.1 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/14-both-after-the-fixes.txt — class 1: the image appends `-o ControlUsername/-o ControlPassword` from the environment on EVERY start, and this template also writes them into the config file so the shipped default is not left lying there. Measured: the generated password 200, a wrong one 401, the documented default `nzbget / tegbzn6789` 401
3.2 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/14-both-after-the-fixes.txt — the default IS replaced, and the file no longer contains it (grep count 0). Before the seed, the file carried `ControlPassword=tegbzn6789` in plain text while the running app used ours — a default that every Usenet guide on the internet quotes
3.3 | n/a | no open first-run screen: the control interface answers 401 from its first request
3.4 | n/a | the app has no sign-up at all; it is single-account by design
3.5 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-results.json — in the install window a stranger gets 401 at the root and 401 at the RPC; nothing is reachable
3.6 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-results.json — six wrong tries, then the household from the same address: the app does not ban at all and the household signs in
3.7 | done | app-catalog-felhom.eu/templates/nzbget/.felhom.yml — first_steps points at the app's own settings; the app has one control account by design
3.8 | done | app-catalog-felhom.eu/templates/nzbget/docker-compose.yml — the password reaches the app as an environment value from the deploy field, never inside program code
3.9 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-results.json — signed in through traefik over https on the app's own public name with Basic auth, the way its own clients do: 200 for the generated password, 401 for a wrong one and for the shipped default
3.10 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/nzbget-app-log.txt — the app logs the address it is asked from and makes no authorisation decision on it beyond its shipped `AuthorizedIP=127.0.0.1`, which only ever matches a request from inside the container; everything arriving through traefik authenticates
4.1 | done | app-catalog-felhom.eu/templates/nzbget/docker-compose.yml — **the image has NO curl** (measured: only busybox wget, python3 and openssl), so this is the BusyBox/wget family from REUSE.md, not the curl one
4.2 | done | app-catalog-felhom.eu/templates/nzbget/.felhom.yml — the controller probe is http on 6789, the port the compose healthcheck dials; gate probe-matches-compose
4.3 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/14-both-after-the-fixes.txt — healthy, failing streak 0. The first template shipped a curl probe and the container could never become healthy, which the bench caught before publication
4.4 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/14-both-after-the-fixes.txt — negative control: the same wget against a port nothing serves fails (rc 1)
4.5 | done | app-catalog-felhom.eu/templates/nzbget/docker-compose.yml — container_name nzbget = the stack name = the probe's target
5.1 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/11-memory.txt — first start from birth: 5.9 MiB used, 6.3 MiB anon, 0 oom_kills, swap off on the bench
5.2 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/MV-nzbget/verdict.json — the harness's own soak under load: 8404 requests, peak 8.8 MB = 1.7 % of the 512M limit, 0 kills, 0 restarts. NOT measured: memory while the article cache fills and par2 repair runs, which needs a provider
5.3 | done | app-catalog-felhom.eu/templates/nzbget/.felhom.yml — mem_limit 512M = the compose limit (gate mem-limit-sum); mem_request 64M, with the comment saying the limit is far above the idle figure because this template turns the article cache on at 100 MB and unrar and par2 run in the same container
5.4 | n/a | C++, with no heap setting to size
5.5 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/01-image.txt — pi_compatible true: the image publishes arm/v7 and arm64 beside amd64
6.1 | done | app-catalog-felhom.eu/scripts/upgrade_fixtures.py ; app-catalog-felhom.eu/scripts/upgrade_fixtures_box.py — an NZB appended (paused) through the app's own JSON-RPC, read back from the queue with a negative control (a job nobody added must be absent). No provider is needed: the job sits in the queue, which is the store the upgrade must not lose
6.2 | done | app-catalog-felhom.eu/templates/nzbget/.felhom.yml — the first ladder step v26.2 -> v26.3, written by `upgrade-test.py --write-ladder` from the bench verdict AND the box verdict, both `proven`
6.3 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/MV-nzbget/verdict.json — the harness's abort put the old image back and the app came up with the queued job still there: `abort: starts-and-serves`, `data present=True`
6.4 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/MV-nzbget/verdict.json — `files_changed` is empty: the step rewrote nothing the harness watches
6.5 | done | felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/01-image.txt — the project's tag shape `v<major>.<minor>` has been stable across the whole v24–v26 series
7.1 | n/a | the app can send mail about finished jobs, and this template configures none: no smtp_mapping, so nothing is sent until a household sets it up itself
8.1 | done | app-catalog-felhom.eu/templates/nzbget/.felhom.yml — Hungarian and English, informal "te", no "kérjük"; admitted to the copy freeze with its reason (gate copy-i18n)
8.2 | done | app-catalog-felhom.eu/templates/nzbget/.felhom.yml — tagline, use_cases, first_steps, default_creds, prerequisites (the paid provider, stated first); add_people n/a (one account by design)
8.3 | done | felhom.eu/website/assets/nzbget-logo.svg ; felhom.eu/website/alkalmazasok.html — the logo is the project's own SVG and the card carries it. The card references NO screenshots, deliberately, as for SABnzbd
8.4 | done | app-catalog-felhom.eu/README.md ; app-catalog-felhom.eu/FIRST-ADMIN.md — both tables; category media; catalog_since 2026-10-12
8.5 | done | felhom.eu/website/alkalmazasok.html — the published count moves 60 -> 62 on both language sets and every page that states it; the media category badge moves with it
9.1 | done | app-catalog-felhom.eu/onboarding/nzbget.md — `catalog_gates.py sabnzbd nzbget` green but for the periodic image-resolvable and volume-persistence, which need network and a scratch host
9.2 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-results.json — a fresh install on 9202 through the product, exercised as the household and as a stranger
9.3 | done | felhom.eu/documentation/audits/usenet-2026-10-12/README.md — every row above is done or n/a with a reason; the defects found on the way are listed there with what each fix was, and so is what a missing provider left unmeasured
9.4 | done | app-catalog-felhom.eu/onboarding/nzbget.md — published in ONE commit with this record
+76
View File
@@ -0,0 +1,76 @@
# Onboarding record — prowlarr
app: prowlarr
opened: 2026-10-15
template_at: 2026-10-15 (published in this commit)
<!--
Measured on 2026-10-15 in three venues: the bench (LXC 9401 on demo-hp), guest 9202 through the product from the drill
catalog, and guest 9201 from the live catalog after the publish (the link read-back, a separate record in the same audit
folder). Evidence: felhom.eu/documentation/audits/prowlarr-2026-10-15/ (README.md says which run proves what).
9202 run 1's Update and run 2 ran with an EMPTY .felhom.yml — a bug in the test tool, not the product
(box/run2-empty-meta/README.md); every row that needs the template's metadata cites run 3.
-->
0.1 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/01-licence.txt — GPL-3.0 (the project's LICENSE). We pull a published image and never redistribute it
0.2 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/01-tags.txt — five releases between 2026-08-02 and 2026-09-16 (v2.6.1 … v2.6.5); the image was rebuilt 2026-10-07
0.3 | n/a | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/01-official-image.txt — THE PROJECT PUBLISHES NO DOCKER IMAGE OF ITS OWN (prowlarr/prowlarr: 404 on Docker Hub, no anonymous pull on ghcr.io, while linuxserver/prowlarr answers 200 on both as the control; the project's README points at a community image), so an official one cannot be used. lscr.io/linuxserver/prowlarr is the maintained community image, the same publisher as Sonarr, Radarr, Transmission and SABnzbd in this catalog: version tags (version-2.4.0.5397, version-2.5.2.5491, version-2.6.5.5623) and amd64 + arm64 (bench/01-tags.txt, bench/01-version-tags.txt)
0.4 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt ; felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk.txt — the app sends anonymous usage data BY DEFAULT (analyticsEnabled true on a fresh config); the template seeds AnalyticsEnabled=False on the first start and the app's own API reads it back false on 9202. No open connection after 150 s on the bench. Self-update is off in this image (UpdateMechanism Docker)
0.5 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt — yes, by design: the indexers are web sites, and at the first start the app fills /config/Definitions with the indexer definitions from the project's server. No account and no claim token
0.6 | done | app-catalog-felhom.eu/templates/prowlarr/docker-compose.yml — HTTP on 9696 only, through traefik; no other port is published
0.7 | n/a | the project has no phone or desktop app; third-party clients call the same API on the same public name with the household's API key, behind the app's own sign-in
0.8 | done | app-catalog-felhom.eu/templates/prowlarr/.felhom.yml — "A letöltési forrásaid egy helyen a Sonarrhoz és a Radarrhoz"
0.9 | done | felhom-controller/controller/internal/mediawire/mediawire.go — the app never calls its public name; the box links it to Sonarr/Radarr by container name (http://prowlarr:9696, http://sonarr:8989, http://radarr:7878), and the healthcheck dials 127.0.0.1
1.1 | done | app-catalog-felhom.eu/templates/prowlarr/docker-compose.yml — lscr.io/linuxserver/prowlarr:version-2.6.5.5623, published 2026-10-07 (8 days old at the publish), digest sha256:f9151e5bc1025c6d0a630d503210cdcb6bb55a7cc098562609d96a408d838902 in the ladder entry; gates image-pins + image-resolvable
1.2 | n/a | the app keeps its own SQLite file inside /config; no database engine and no sidecar
1.3 | n/a | no MariaDB and no PostgreSQL sidecar in this template
1.4 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt ; felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/MV-prowlarr/verdict.json — the app migrates its own database at every start (MigrationController); the step INTO the pin (version-2.5.2.5491 -> version-2.6.5.5623) is proven on the bench with the migration observed
1.5 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt — the Prowlarr binary under s6 as the image's unprivileged `abc` user; the app has no development server
1.6 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt — the only secret the app reads is its API key, which the app itself generates into /config/config.xml at the first start; no secret comes from the environment
1.7 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt ; app-catalog-felhom.eu/templates/prowlarr/docker-compose.yml — the image's init (init-prowlarr-config, svc-prowlarr: -nobrowser -data=/config) read; the template's own entrypoint writes two keys on the FIRST start only (AuthenticationRequired=Enabled, AnalyticsEnabled=False) and then hands over to /init
1.8 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/run3/restore.txt — „Hosting environment: Production"; the app has no debug mode for visitors. Its FILE log level is debug by the app's own default (/config/logs/prowlarr.debug.txt, rotated by the app); nothing of it reaches a visitor
1.9 | n/a | the API key encrypts nothing and locks nobody out; it lives in config.xml in the backed-up volume, and a new key costs only a fresh link press
2.1 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/vp-prowlarr.txt ; felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/VP-prowlarr/prowlarr/probe.json — the volume-persistence gate on the bench: CLEAN, the prober's own canaries passed in both directions. Everything the app writes is under /config
2.2 | done | app-catalog-felhom.eu/templates/prowlarr/docker-compose.yml — /config in the named volume prowlarr_config (NVMe); no drive path and no media folder (needs_hdd false)
2.3 | done | app-catalog-felhom.eu/templates/prowlarr/.felhom.yml — prowlarr_config is `important` (the indexers, their keys, the links); there is no drive path to classify
2.4 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt — PUID/PGID 1000, the app runs as 1000:1000
2.5 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/run3/restore.txt ; felhom.eu/documentation/audits/prowlarr-2026-10-15/box/run3/restore-results.json — on 9202: the seed, the guarded Update's own per-app backup (the box has no other per-app press, R-648), remove KEEPING the backups (volume gone), the household's restore button, the seed read back through the app's own API, and the app answers through traefik again. The restore brings the app back at the image recorded in the backup (the one before the Update). A restore of a removed app comes back WITHOUT the setup gate, by design; a backup taken before the household's setup therefore comes back open with no account — filed in felhom.eu OPEN-ITEMS.md
2.6 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk.txt ; felhom.eu/documentation/audits/prowlarr-2026-10-15/box/run3/restore.txt — remove with data: the volume goes, 0 containers and 0 volumes left; remove keeping data: the volume goes and the backup stays, and it restores. No drive data exists
2.7 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/run3/restore.txt — the config volume is 5.5 MB after the seed (the indexer definitions are most of it); that is what the off-site copy carries
2.8 | n/a | the household uploads no files to this app; it enters indexer settings, and their read-back is 2.5
3.1 | done | app-catalog-felhom.eu/FIRST-ADMIN.md ; felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk.txt — class 4, the first visitor sets the sign-in: the setup gate keeps everyone but the household out until „Kész"; the household made its account (forms) through the gate
3.2 | n/a | there is no known default login: the app starts with no account and the household creates it
3.3 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk.txt ; felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk-results.json — setup_gate: before „Kész" a stranger gets the gate, 401 or 404; after it the app's own login (/ and /initialize.json -> 302 /login, the API 401) and no API key in any body
3.4 | n/a | the app has one account by design and no sign-up page to close
3.5 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk-results.json — 23 s of polling in the install window: only 302 to the gate, 401 and 404. /initialize.json, which hands the API key to anyone before the first account, never reached a stranger
3.6 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk.txt — six wrong passwords from one address, then the household's right one from the same address: in at once (auth cookie set). The app has no lock-out, so a stranger cannot lock the household out
3.7 | done | app-catalog-felhom.eu/templates/prowlarr/.felhom.yml — the household sets and changes its password in the app's own settings (Settings, General, Authentication); one account by design, so no family members to add
3.8 | done | app-catalog-felhom.eu/templates/prowlarr/docker-compose.yml — the template passes no secret at all; the household's password goes in through the app's own form, and the box reads the API key from config.xml at use
3.9 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk.txt — the browser form through traefik over https: the right password 302 to / with the ProwlarrAuth cookie, a wrong one 302 to /login?loginFailed=true and no cookie
3.10 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk.txt — the app logs the visitor's address (192.168.0.180 for the failures) and decides nothing with it: AuthenticationRequired=Enabled is seeded, so there is no „local addresses need no sign-in" exemption
4.1 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt — curl and wget are in the image (one tool per run); the healthcheck is one curl to /ping
4.2 | done | app-catalog-felhom.eu/templates/prowlarr/.felhom.yml — the controller probe is api 9696 /ping, what the compose healthcheck dials; gate probe-matches-compose
4.3 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk.txt ; felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt — healthy on a cold first start, 0 restarts; the bench answered 200 within the start period
4.4 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/run3/restore.txt — negative control: the same probe against a port nothing serves fails (curl rc 7), the real probe passes (rc 0)
4.5 | done | app-catalog-felhom.eu/templates/prowlarr/docker-compose.yml — container_name prowlarr = the stack name = the probe's target
5.1 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt — first start from birth: peak anon 44 MiB, 0 oom_kills, 0 restarts, swap off on the bench
5.2 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/MV-prowlarr/verdict.json — the harness's 10-minute soak: 11,961 requests all 200, peak anon 41 MB = 7.6 % of the 512M limit, 0 kills, 0 restarts
5.3 | done | app-catalog-felhom.eu/templates/prowlarr/.felhom.yml — mem_limit 512M = the one compose limit (gate mem-limit-sum); the compose header carries the measured number
5.4 | n/a | the app is .NET, which sizes its heap from the container's memory limit by itself; measured peak 44 MiB, nothing to set
5.5 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/01-tags.txt ; felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/02-first-start-2.6.5.txt — pi_compatible true: the tag is published for arm64; the pull is about 185 MB
6.1 | done | app-catalog-felhom.eu/scripts/upgrade_fixtures_box.py — ProwlarrBox: a distinctive tag and app profile through the app's own API, with a negative control (a name nobody created must be absent) on every read-back; the bench uses the same fixture through upgrade_boxport
6.2 | done | app-catalog-felhom.eu/templates/prowlarr/.felhom.yml — the first ladder step version-2.5.2.5491 -> version-2.6.5.5623, written by `upgrade-test.py --write-ladder` from the bench verdict and the box verdict (9202 run 3), both `proven`
6.3 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/MV-prowlarr/verdict.json ; felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/C3-verdict.json — the abort put the old image back and the app served (`abort: starts-and-serves`); the C3 negative control failed as it must
6.4 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/MV-prowlarr/verdict.json — `files_may_change` false: the step rewrote nothing the harness watches
6.5 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/bench/01-version-tags.txt — the publisher's shape `version-<upstream four-part version>` held across 2.4, 2.5 and 2.6
7.1 | n/a | the app sends no mail; its notifications go to services the household configures itself
8.1 | done | app-catalog-felhom.eu/templates/prowlarr/.felhom.yml — Hungarian and English, informal "te", no "kérjük"; admitted to the copy freeze with its reason (gate copy-i18n)
8.2 | done | app-catalog-felhom.eu/templates/prowlarr/.felhom.yml — tagline, use_cases, first_steps (the box links it whichever app comes first — controller 0.314.0, R-1058; the button sentence dropped 2026-10-15), default_creds, prerequisites; add_people n/a (one account by design)
8.3 | done | felhom.eu/website/assets/prowlarr-logo.svg ; felhom.eu/website/alkalmazasok.html — the project's own SVG logo (no script) and the card on both language pages; no screenshots, deliberately (the picture gate wants every opener to point at a file)
8.4 | done | app-catalog-felhom.eu/README.md ; app-catalog-felhom.eu/FIRST-ADMIN.md — both tables; category media-automation (as Sonarr and Radarr); catalog_since 2026-10-15
8.5 | done | felhom.eu/website/alkalmazasok.html — the stated count moves 62 -> 63 on every page that states it, both languages, and the media group 19 -> 20; the two cards R-1036 still owes (plant-it, wger) are unchanged
8.6 | done | felhom.eu/documentation/audits/app-guides-2026-10-15/A/prowlarr-labels.txt — added the night the id joined (app guides pilot): 30 labels found at v2.6.5.5623; checked_version version-2.6.5.5623; box check owed (not running on 9201 that night)
9.1 | done | app-catalog-felhom.eu/onboarding/prowlarr.md — `catalog_gates.py prowlarr --fast` green; the runtime volume-persistence gate CLEAN on the bench (2.1)
9.2 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/box/walk.txt ; felhom.eu/documentation/audits/prowlarr-2026-10-15/box/run3/restore.txt — a fresh install from the drill catalog on 9202 as the household and as a stranger (run 1, before its bump), and the step and the restore with the full template (run 3)
9.3 | done | felhom.eu/documentation/audits/prowlarr-2026-10-15/README.md — every row above is done or n/a with a reason; the runs, the tool bug and what each run proves are listed there
9.4 | done | app-catalog-felhom.eu/onboarding/prowlarr.md — published in ONE commit with this record
+74
View File
@@ -0,0 +1,74 @@
# Onboarding record — qbittorrent
app: qbittorrent
opened: 2026-10-12
template_at: 2026-10-12 (published in this commit)
<!--
Measured on 2026-10-12 in two venues: the bench (LXC 9401 on demo-hp) and guest 9202 through the
product, from the drill catalog. Evidence: felhom.eu/documentation/audits/qbittorrent-2026-10-12/.
Why this app exists at all: radarr, sonarr and seerr have been in the catalog for months and none of
them downloads anything - they hand the work to a download client, and there was none.
-->
0.1 | done | https://github.com/qbittorrent/qBittorrent — GPL-2.0 (the repo's own licence files; GPL2.txt + GPL3.txt). We pull the project's own image and never redistribute it
0.2 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/01-image.txt — the project pushed to its own repository on 2026-10-12, the day of this record; 5.2.4-1 is the newest tag of a long-running series
0.3 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/01-image.txt — qbittorrentofficial/qbittorrent-nox, the PROJECT'S OWN image; version tags (…5.2.3-1, 5.2.4-1), amd64 + arm64 (and 386, arm, riscv64)
0.4 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/02-telemetry-and-net.txt — no update check and no analytics in qbittorrent-nox; DHT, PEX and LSD are the torrent protocol itself; rss auto-download off, ip filter off, alternative WebUI off. It does fetch a GeoIP database at start (db-ip.com), which the record names rather than hides
0.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/09-download.txt — yes, by design: a torrent client is a network client. Nothing is claimed or licensed; no account anywhere
0.6 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/verify-fixes.json — peer port 6881 is NOT published and UPnP is turned OFF by after_install. What the household loses: incoming peer connections. Measured with the port closed: 34 seeds, 4.0 MB/s, the torrent completed
0.7 | n/a | there is no first-party phone or desktop app for the server; third-party clients drive the same WebAPI on the same public name, which is what 3.9 measures
0.8 | done | app-catalog-felhom.eu/templates/qbittorrent/.felhom.yml — "Torrent letöltés a saját gépedre, böngészőből vezérelve", with the Radarr/Sonarr sentence that says why it is here
0.9 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/qbittorrent-applog-after-fix.txt — it does not call itself at its public name; the only self-dial is the healthcheck on 127.0.0.1, and the host list carries the local names for the controller's probe
1.1 | done | app-catalog-felhom.eu/templates/qbittorrent/docker-compose.yml — qbittorrentofficial/qbittorrent-nox:5.2.4-1; gates image-pins + image-resolvable
1.2 | n/a | the app has no database at all, so no engine or major to match
1.3 | n/a | no MariaDB and no PostgreSQL sidecar in this template
1.4 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/MV-qbittorrent/verdict.json — the step INTO the pin is the test (checklist 1.4): 5.2.3-1 -> 5.2.4-1 proven on the bench, and again on 9202 through the product's own Update
1.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/03-process-and-entrypoint.txt — `qbittorrent-nox --confirm-legal-notice --profile=/config …` running as qbtUser, not root, not a development server
1.6 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/04-first-admin.txt — the only secret the app reads is its WebUI password, generated at install and seeded as a PBKDF2 hash; no key is left at an image default
1.7 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/03-process-and-entrypoint.txt — the whole entrypoint read inside the image: PUID/PGID/PAGID, QBT_LEGAL_NOTICE (required, set to confirm), QBT_TORRENTING_PORT, QBT_WEBUI_PORT, UMASK, and the default config it writes when none exists
1.8 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/11-container-log.txt — no debug or development mode exists in qbittorrent-nox; the log carries no stack trace and the app serves its built-in WebUI
1.9 | n/a | the generated password only signs the WebUI session; losing it destroys no data (the household resets it in the app)
2.1 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/05-storage.txt — /config (settings + BT_backup resume data) and /downloads are both mounted; nothing of value is written outside them
2.2 | done | app-catalog-felhom.eu/templates/qbittorrent/docker-compose.yml — /config in the named volume qbittorrent_config (NVMe); downloads in ${USERDATA_PATH}/media/torrents on the household's drive, bound at the SAME path inside the container (2026-10-14, R-1014) and ONLY that folder (operator ruling D9 = A with a limit); the same folder also under its old name /downloads for torrents added before. Evidence felhom.eu/documentation/audits/media-folder-fix-2026-10-14/B2-B3-qbittorrent.txt: an install from the old template kept seeding its torrent after the update, a new torrent and a fresh install use the same-path folder, and from inside the container media/photos does not exist (a write lands in the container's own layer, the box's photos unchanged). (Corrected 2026-10-14: this row said media/qbittorrent, R-1016.)
2.3 | done | app-catalog-felhom.eu/templates/qbittorrent/.felhom.yml — the config volume is `important` (it holds the resume data: without it every torrent is re-checked or lost from the list); the downloads are `optional` (large, fetchable again)
2.4 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/06-ownership.txt — PUID/PGID 1000; the files land 1000:1000 on both sides of the bind mount
2.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/qbittorrent/step.txt — the product's guarded Update took its own per-app backup (phase `backing-up`, then `safety-dump`, `copying`) and the seeded category and torrent read back through the app's own API afterwards
2.6 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/boxwalk-log.txt — both remove choices measured on 9202: with `remove_hdd_data` the config volume goes and the drive's media folder is KEPT (`userdata_kept`), and the keep-data choice leaves the same folder; nothing else survives either
2.7 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/05-storage.txt — the config volume is 8 MB with one torrent (settings + resume data); it is what the off-site copy carries. The downloads are the household's own size and are `optional`
2.8 | n/a | the household downloads files rather than uploading them; what it adds is a magnet or a .torrent, and that readback is 2.5
3.1 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/04-first-admin.txt — class 1: the password is generated at install and seeded into the config before the first start. 0 temporary-password lines in the whole log, before and after a restart
3.2 | n/a | there is no known default login to replace: the app starts with the generated one
3.3 | n/a | no open first-run screen exists; the app asks for a password from its first request
3.4 | n/a | the app has no sign-up at all, so nothing to close after the setup
3.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/boxwalk-results.json — in the install window a stranger reaches the login page (200) and nothing else: the API answers 403 unauthenticated
3.6 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/verify-fixes.json — six wrong passwords from one address ban THAT address (401 x5, then 403), and the household signs in from its own address at the same instant (204). The ban is per visitor because the app reads the real client address through the proxy headers
3.7 | done | app-catalog-felhom.eu/templates/qbittorrent/.felhom.yml — first_steps tells the household to set its own password on the WebUI settings page; the app has its own user management for nothing else (one account by design)
3.8 | done | app-catalog-felhom.eu/templates/qbittorrent/.felhom.yml — after_install passes the password as a command argument from the deploy value, never inside program code; the compose takes it from the generated env var
3.9 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/verify-fixes.json — signed in through traefik over https on the app's own public name: 204 for the right password, 401 for a wrong one. The session cookie is QBT_SID_<port>, not SID
3.10 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/qbittorrent-app-log.txt — the app logs the REAL visitor address (192.168.0.180), not traefik's, because ReverseProxySupport and the trusted range are set; it is what the ban in 3.6 is keyed on
4.1 | done | app-catalog-felhom.eu/templates/qbittorrent/docker-compose.yml — curl is in the image (bench/07-health.txt) and the healthcheck is a single curl to the WebUI root
4.2 | done | app-catalog-felhom.eu/templates/qbittorrent/.felhom.yml — the controller probe is http on 8080, the port the compose healthcheck dials; gate probe-matches-compose
4.3 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/07-health.txt — healthy within the start period on a cold first start, with no one-time import to wait for
4.4 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/07-health.txt — negative control: the same probe against a port nothing serves fails (curl exit 7)
4.5 | done | app-catalog-felhom.eu/templates/qbittorrent/docker-compose.yml — container_name qbittorrent = the stack name = the probe's target
5.1 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/08-memory.txt — first start from birth: 16 MiB anon, 0 oom_kills, swap off on the bench
5.2 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/MV-qbittorrent/verdict.json — the harness's own soak under load: peak 31.0 % of the 1024M limit, 0 kills, 0 restarts
5.3 | done | app-catalog-felhom.eu/templates/qbittorrent/.felhom.yml — mem_limit 1024M = the compose limit (gate mem-limit-sum), and the compose header carries the measured numbers
5.4 | n/a | the app is C++/Qt and sizes nothing from a heap setting
5.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/01-image.txt — pi_compatible true: the image publishes arm64; the pull is ~60 MB
6.1 | done | app-catalog-felhom.eu/scripts/upgrade_fixtures.py ; app-catalog-felhom.eu/scripts/upgrade_fixtures_box.py — a category and a torrent through the app's own API, with a negative control (a category nobody created must be absent) on every readback
6.2 | done | app-catalog-felhom.eu/templates/qbittorrent/.felhom.yml — the first ladder step 5.2.3-1 -> 5.2.4-1, written by `upgrade-test.py --write-ladder` from the bench verdict AND the box verdict, both `proven`
6.3 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/MV-qbittorrent/verdict.json — the harness's abort put the old image back and the app came up: `abort: starts-and-serves`
6.4 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/MV-qbittorrent/verdict.json — `files_may_change` is true and the detail names them: the downloads the test torrent wrote under the drive. The config is rewritten by the app on exit, which is normal for it
6.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/bench/01-image.txt — the tag shape `<version>-<build>` has been stable across the whole 4.6/5.x series; the lt2 variant is a separate suffix we do not use
7.1 | n/a | the app sends no mail of any kind
8.1 | done | app-catalog-felhom.eu/templates/qbittorrent/.felhom.yml — Hungarian and English, informal "te", no "kérjük"; admitted to the copy freeze with its reason (gate copy-i18n)
8.2 | done | app-catalog-felhom.eu/templates/qbittorrent/.felhom.yml — tagline, use_cases, first_steps, default_creds; add_people n/a (the app has one account by design)
8.3 | done | felhom.eu/website/assets/qbittorrent-logo.svg ; felhom.eu/website/alkalmazasok.html — the logo is the project's own SVG and the card carries it. The card references NO screenshots, deliberately: the picture gate requires every opener to point at a file that exists, and photographing a signed-in WebUI is a separate piece of work
8.4 | done | app-catalog-felhom.eu/README.md ; app-catalog-felhom.eu/FIRST-ADMIN.md — both tables; category media; catalog_since 2026-10-12
8.5 | done | felhom.eu/website/alkalmazasok.html — the published count moves 58 -> 60 (62 templates, minus wger hidden and plant-it abandoned), on both language sets and every page that states it
9.1 | done | app-catalog-felhom.eu/onboarding/qbittorrent.md — `catalog_gates.py qbittorrent transmission` green but for the periodic image-resolvable and volume-persistence, which need network and a scratch host
9.2 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/boxwalk-results.json ; felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/verify-fixes.json — a fresh install from the drill catalog on 9202, exercised as the household and as a stranger
9.3 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/README.md — every row above is done or n/a with a reason; the five defects found on the way are listed there with what each fix was
9.4 | done | app-catalog-felhom.eu/onboarding/qbittorrent.md — published in ONE commit with this record
+78
View File
@@ -0,0 +1,78 @@
# Onboarding record — sabnzbd
app: sabnzbd
opened: 2026-10-12
template_at: 2026-10-12 (published in this commit)
<!--
Measured on 2026-10-12 in two venues: the bench (LXC 9401 on demo-hp) and guest 9202 through the
product. Evidence: felhom.eu/documentation/audits/usenet-2026-10-12/.
The operator asked for the Usenet pair (R-988); SABnzbd is the full client, NZBGet the light one.
TWO THINGS THIS RECORD DOES NOT CLAIM, both for the same reason: a household must bring a PAID
Usenet provider, and this session had none. A real download - connect, authenticate, par2 repair,
unpack, the finished file on the drive - is NOT measured, and neither is memory under that load. What
IS measured is everything else, including the queue taking a job through the app's own API and
keeping it across the update.
-->
0.1 | done | https://github.com/sabnzbd/sabnzbd — GPL-2.0-or-later. We pull a published image and never redistribute it
0.2 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/01-image.txt — 5.1.3, published 2026-10-08, four days before this record; the project releases on a regular cadence
0.3 | n/a | THE PROJECT PUBLISHES NO DOCKER IMAGE, so an official one cannot be used — the second such template in this catalog after Transmission, under the same operator ruling (2026-10-12). `lscr.io/linuxserver/sabnzbd` is the maintained community image, built from the upstream release with version tags (version-5.1.2, version-5.1.3) and amd64 + arm64. The compose header says so
0.4 | done | app-catalog-felhom.eu/templates/sabnzbd/docker-compose.yml ; felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/02-telemetry-and-net.txt — the seed sets `check_new_rel = 0`, so the app does not ask sabnzbd.org for versions; the box updates it from the catalog instead
0.5 | done | the app needs the internet for the one thing it exists to do (reach the household's Usenet provider), and for nothing else. No account with us, no token, no call home
0.6 | done | NNTP, usually 563 with TLS, and OUTGOING ONLY — a Usenet client never listens. Unlike the torrent pair it loses nothing at all behind the box's closed ports, which is in the app text
0.7 | n/a | no first-party phone or desktop app for the server; third-party clients drive the same API on the same public name, with the generated API key (3.9 measures that route)
0.8 | done | app-catalog-felhom.eu/templates/sabnzbd/.felhom.yml — "Usenet letöltés teljes felülettel: sorok, kategóriák, automatikus kicsomagolás", with the sentence naming the paid provider as a prerequisite
0.9 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/14-both-after-the-fixes.txt — it does not call itself at its public name; the only self-dial is the healthcheck on 127.0.0.1
1.1 | done | app-catalog-felhom.eu/templates/sabnzbd/docker-compose.yml — lscr.io/linuxserver/sabnzbd:version-5.1.3; gates image-pins + image-resolvable
1.2 | n/a | the app has no database engine: its queue and history are files (/config/admin/queue10.sab, history1.db)
1.3 | n/a | no MariaDB and no PostgreSQL sidecar in this template
1.4 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/MV-sabnzbd/verdict.json — the step INTO the pin is the test (checklist 1.4): version-5.1.2 -> version-5.1.3 proven on the bench, and again on 9202 through the product's own Update
1.5 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/03-process-and-entrypoint.txt — SABnzbd under s6, running as the image's unprivileged `abc` user; it serves its own HTTP, there is no development server to leave on
1.6 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/04-first-admin.txt — the two secrets the app holds are the generated login and the generated API key; no key is left at an image default, and the log prints neither
1.7 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/03-process-and-entrypoint.txt — the image's init read in full: PUID/PGID, UMASK, the config copy, and what it does NOT offer, which is any way to set a login (hence the seeded ini)
1.8 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/12-container-log.txt — the app's own log at INFO; no stack trace, and the password and key are filtered out of the captured copy
1.9 | n/a | the generated login and key guard access; losing them destroys no data (the household can change both in the app)
2.1 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/06-storage.txt — /config (settings, queue index, history) in the volume; the finished files and the half-assembled ones on the drive. Nothing of value outside them
2.2 | done | app-catalog-felhom.eu/templates/sabnzbd/docker-compose.yml — /config in sabnzbd_config (NVMe); ${USERDATA_PATH}/media/usenet/complete and .../incomplete on the household's drive
2.3 | done | app-catalog-felhom.eu/templates/sabnzbd/.felhom.yml — the config volume is `important` (the provider entry, the queue and the history); the downloads are `optional`
2.4 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/07-ownership.txt — PUID/PGID 1000; the files land 1000:1000 on both sides of the bind mount
2.5 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/sabnzbd/step.txt — the product's guarded Update took its own per-app backup, and the queued job and the category read back through the app's own API afterwards
2.6 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-log.txt — both remove choices measured on 9202: the config volume goes either way, and the drive's media folder is kept as the household's own data
2.7 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/06-storage.txt — the config volume is a few MB (the queue index and history); that is what the off-site copy carries. The downloads are the household's own size and are `optional`
2.8 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/09-seed-no-provider.txt — an NZB uploaded through the app's own API is accepted (`"status": true` with an nzo_id) and appears in the queue; that is the household's own input, and the readback is 2.5
3.1 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/15-sabnzbd-login.txt — class 1, and this app needed the most care of any in the catalog: **SABnzbd has NO login on a fresh install**, offers no environment variable for one, and its `inet_exposure = 5` ("web UI with login for external") decides "external" from the CLIENT ADDRESS, whose default LAN ranges include the 172.16/12 the proxy arrives from. Measured before the fix: no credentials at all answered 200 and served the Quick-Start Wizard. The template seeds the login, the API key, `inet_exposure = 5` AND `local_ranges = 127.0.0.1`, which replaces those defaults
3.2 | n/a | there is no known default login to replace: the app starts with no login at all, which 3.1 closes
3.3 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-results.json — the open first-run screen is the Quick-Start Wizard, and on 9202 a stranger is sent to /login before reaching it
3.4 | n/a | the app has no sign-up at all; it is single-account by design
3.5 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-results.json — in the install window a stranger gets the login page at `/`, and `/config/` and `/wizard/` redirect there too; the API without a key answers "API Key Required"
3.6 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-results.json — six wrong sign-ins, then the household from the same address: the app does not ban, and the household signs in
3.7 | done | app-catalog-felhom.eu/templates/sabnzbd/.felhom.yml — first_steps points at the app's own settings; the app has one account by design, and the API key is what other apps use
3.8 | done | app-catalog-felhom.eu/templates/sabnzbd/docker-compose.yml — the password and the key reach the app as environment values written into its config file at first start, never inside program code
3.9 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-results.json — signed in through traefik over https on the app's own public name, the way the app's own interface does it (a session POST to /login/, the cookie kept): the household reaches /config/ with 200, a wrong password gets no session, and the API answers the generated key and refuses a wrong one
3.10 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/sabnzbd-app-log.txt — the app makes no decision on the visitor's address any more: `local_ranges = 127.0.0.1` means no proxied request counts as local, and the same setting stops SABnzbd trusting an X-Forwarded-For header, which the tunnel's chain can carry client-written (R-753's family)
4.1 | done | app-catalog-felhom.eu/templates/sabnzbd/docker-compose.yml — curl is in the image and the probe is one curl to the API's version call
4.2 | done | app-catalog-felhom.eu/templates/sabnzbd/.felhom.yml — the controller probe is http on 8080, the port the compose healthcheck dials; gate probe-matches-compose
4.3 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/14-both-after-the-fixes.txt — healthy, failing streak 0. Before the fix the probe dialled `/`, which answers 303, and the container could never become healthy
4.4 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/14-both-after-the-fixes.txt — negative control: the same probe against a port nothing serves fails (rc 1)
4.5 | done | app-catalog-felhom.eu/templates/sabnzbd/docker-compose.yml — container_name sabnzbd = the stack name = the probe's target
5.1 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/11-memory.txt — first start from birth: 68.7 MiB anon, 0 oom_kills, swap off on the bench
5.2 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/MV-sabnzbd/verdict.json — the harness's own soak under load: 8344 requests, peak 78 MB = 7.3 % of the 1024M limit, 0 kills, 0 restarts. NOT measured: memory while par2 repair and unpacking run, which needs a provider
5.3 | done | app-catalog-felhom.eu/templates/sabnzbd/.felhom.yml — mem_limit 1024M = the compose limit (gate mem-limit-sum); mem_request 96M is the measured idle plus a little, and the compose header says why the limit is far above it (par2 and unrar run in this container)
5.4 | n/a | Python, with no heap setting to size
5.5 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/01-image.txt — pi_compatible true: the image publishes arm64
6.1 | done | app-catalog-felhom.eu/scripts/upgrade_fixtures.py ; app-catalog-felhom.eu/scripts/upgrade_fixtures_box.py — a queued NZB and a category through the app's own API, each readback carrying a negative control (a job and a category nobody created must be absent). No provider is needed: the job sits in the queue, which is the store the upgrade must not lose
6.2 | done | app-catalog-felhom.eu/templates/sabnzbd/.felhom.yml — the first ladder step version-5.1.2 -> version-5.1.3, written by `upgrade-test.py --write-ladder` from the bench verdict AND the box verdict, both `proven`
6.3 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/MV-sabnzbd/verdict.json — the harness's abort put the old image back and the app came up: `abort: starts-and-serves`
6.4 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/MV-sabnzbd/verdict.json — `files_changed` is empty: the step rewrote nothing the harness watches
6.5 | done | felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/01-image.txt — the publisher's tag shape `version-<upstream>` has been stable across the 4.x and 5.x series
7.1 | n/a | the app can send mail about finished jobs, and this template configures none: no smtp_mapping, so nothing is sent until a household sets it up itself
8.1 | done | app-catalog-felhom.eu/templates/sabnzbd/.felhom.yml — Hungarian and English, informal "te", no "kérjük"; admitted to the copy freeze with its reason (gate copy-i18n)
8.2 | done | app-catalog-felhom.eu/templates/sabnzbd/.felhom.yml — tagline, use_cases, first_steps, default_creds, prerequisites (the paid provider, stated first); add_people n/a (one account by design)
8.3 | done | felhom.eu/website/assets/sabnzbd-logo.svg ; felhom.eu/website/alkalmazasok.html — the logo is the project's own SVG and the card carries it. The card references NO screenshots, deliberately: the picture gate requires every opener to point at a file that exists, and photographing a signed-in UI is separate work
8.4 | done | app-catalog-felhom.eu/README.md ; app-catalog-felhom.eu/FIRST-ADMIN.md — both tables; category media; catalog_since 2026-10-12
8.5 | done | felhom.eu/website/alkalmazasok.html — the published count moves 60 -> 62 on both language sets and every page that states it; the media category badge moves with it (it had drifted two apps behind)
9.1 | done | app-catalog-felhom.eu/onboarding/sabnzbd.md — `catalog_gates.py sabnzbd nzbget` green but for the periodic image-resolvable and volume-persistence, which need network and a scratch host
9.2 | done | felhom.eu/documentation/audits/usenet-2026-10-12/box/boxwalk-results.json — a fresh install on 9202 through the product, exercised as the household and as a stranger
9.3 | done | felhom.eu/documentation/audits/usenet-2026-10-12/README.md — every row above is done or n/a with a reason; the defects found on the way are listed there with what each fix was, and so is what a missing provider left unmeasured
9.4 | done | app-catalog-felhom.eu/onboarding/sabnzbd.md — published in ONE commit with this record
+75
View File
@@ -0,0 +1,75 @@
# Onboarding record — securo
app: securo
opened: 2026-11-15
template_at: the commit that publishes this record (securo-finance securo-frontend + securo-backend 0.18.0, pgvector/pgvector:0.8.7-pg16, redis:8.10.3-alpine)
<!--
Evidence root: felhom.eu/documentation/audits/new-app-securo-2026-11-15/ — A/ (source reads at v0.18.0), S/ (image reads,
guide label check, screenshots), bench/ (bench 9401, swap 0), box/ (scratch guest 9202, drill catalog), tools/. The
operator's own instance on DooPlex (k3s, finance-system) was only READ, for the first memory figure (S1 fit message).
-->
0.1 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md — AGPL-3.0; upstream's own images, pulled
0.2 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md — v0.18.0 on 2026-11-06, a release every 1–2 weeks, issues closed daily; before 1.0 with 113 migrations on main (expect frequent update steps)
0.3 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/S/S1-image-reads.txt — plain `X.Y.Z` tags (no `v`), amd64 + arm64 for both app images; pgvector and redis pinned
0.4 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md — no telemetry library; every outbound host is behind a feature the template leaves off (bank sync, FX, Brazilian bonds, plugins, AI); market prices (Yahoo) only for assets the household marks so; Google's favicon service only for SimpleFIN/market logos, loaded by the browser
0.5 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/install.txt — the first start needs only the images (healthy 155 s after the press, pulls included); the AI module's model download is off
0.6 | n/a | Securo serves HTTP on port 8080 only; the backend, PostgreSQL and Redis stay internal
0.7 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks.txt — no native app; the PWA signs in through the same `POST /api/auth/login` form route the browser uses (3.9, through traefik over https, 200 with a token; wrong 400)
0.8 | done | app-catalog-felhom.eu/templates/securo/.felhom.yml — tagline + use_cases: the family's accounts, budgets and goals on its own server
0.9 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/bench/evidence/MV-securo/verdict.json — FRONTEND_URL is handed to the browser and the bank (CORS, OAuth redirects), never fetched by the server; the bench runs it
1.1 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/G/gates-securo.txt — image-pins and image-resolvable exit 0
1.2 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md — upstream's compose runs `pgvector/pgvector:pg16` (the agents' migration needs the extension) and `redis:8-alpine`; the template pins `0.8.7-pg16` and `8.10.3-alpine`
1.3 | done | app-catalog-felhom.eu/templates/securo/docker-compose.yml — PostgreSQL 16: `/var/lib/postgresql/data` is right below 18; no MariaDB
1.4 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/bench/evidence/MV-securo/verdict.json ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/step/box-verdict-securo.json — the image runs NO migration; the template's backend command runs `alembic upgrade head` before uvicorn (upstream uses a one-shot job); 0.17.0 seeded, stepped INTO 0.18.0 (migrations 102 -> 105 seen), read back on both venues
1.5 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks.txt — uvicorn (no reload), celery worker and celery beat; nginx for the page
1.6 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md — SECRET_KEY, the database password and AGENTS_MCP_JWT_SECRET generated (upstream's defaults are `change-me-in-production` / `postgres`); every other secret empty, which turns its feature off
1.7 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/S/S1-image-reads.txt ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md — backend: no entrypoint script (migrations by the template's command); frontend: the nginx entrypoint renders BACKEND_URL and the resolver only
1.8 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks.txt — `DEBUG=false`; an unknown API path is a plain JSON 404, no trace
1.9 | done | app-catalog-felhom.eu/templates/securo/.felhom.yml — SECRET_KEY is `data_key: true`: a Fernet key derived from it encrypts the bank connections' stored credentials (`agents/services/crypto.py`); `check-data-key.py` REGISTRY carries the reason
1.10 | done | app-catalog-felhom.eu/templates/securo/.felhom.yml — `upstream:` names github:securo-finance/securo for both app images, redis's repo, and a stated gap for the pgvector image; gate `upstream` exit 0
2.1 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/bench/volume-persistence.txt ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/bench/persistence-upload.txt — the gate is UNDETERMINED (its GET exercise writes no attachment); measured by hand: an uploaded receipt lands in the attachments volume, and every container-layer write is derived (Python bytecode caches, nginx's rendered config, `/tmp`, the Postgres socket); the database is its volume; Redis keeps nothing on purpose (`--save ""`, broker and rate limits only)
2.2 | done | app-catalog-felhom.eu/templates/securo/docker-compose.yml — named volumes (NVMe): the database and the attachments
2.3 | n/a | needs_hdd false: no drive path to classify; the tier-1 unit holds the database dump and the attachments volume
2.4 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/install.txt — the backend migrated and the household's admin, account and transaction were stored on first start
2.5 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/restore.txt — the guarded Update's per-app backup, remove keeping backups, the household's restore button: the seeded account and transaction read back AND the household's own password signs in; the gate stays open (has_users true)
2.6 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/restore.txt — both remove choices delete both volumes; no drive data exists; the stack folder keeps only the catalog's compose
2.7 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks.txt — 13 MB database on install; the operator's own instance holds 17 433 transactions in 30 MB; receipts up to 10 MB each
2.8 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks2.txt — a receipt uploaded through traefik (201), read back byte-identical through the same front door (200); without a token 401
3.1 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/install.txt — class 4 (open first-run page), measured; the household made the first admin through the gate
3.2 | n/a | no known default login: the first admin is made on the setup page by the household
3.3 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/install.txt ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/controller-setup-gate-log.txt — before: a stranger gets the gate (302 / 401), its create-admin 401; the controller's probe read has_users "false" -> "true" and opened the gate; after: a stranger's create-admin 403 „Setup already completed”
3.4 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks.txt — sign-up off from the first byte: `POST /api/auth/register` 403 „Registration is currently disabled”; no signup_block: the switch is the admin's own (Admin settings), a stranger cannot reach it
3.5 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/stranger-poll.txt — 260 polls once a second from the press: 404 until routed, 401 (the gate), then 200 only after the household's setup; 0 rounds with has_users false, 0 create-admin accepted
3.6 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks2.txt — 5 sign-in tries a minute per address (sliding window): a stranger's 6th try is 429 for 60 s; another internet visitor and the LAN household sign in meanwhile; a forged left entry does not move the key; the stranger is let in again after 61 s. The LAN shares ONE key („unknown”): five tries a minute for the whole home
3.7 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks.txt — the admin creates a family member (201); the member signs in, changes the own password (old 400, new 200), and cannot create users (403)
3.8 | n/a | no after_install command: the household makes the first admin itself
3.9 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks.txt — the browser's form sign-in through traefik with an https Origin and Referer: right 200 with a token, wrong 400; the token reads the account, no token 401
3.10 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks.txt — the address is only the rate limit's key, read from the RIGHT by a count; `TRUSTED_PROXY_HOPS=3` measured through the simulated tunnel: visitor A and B get their own keys, a forged leftmost entry keeps A's key, the LAN keys on „unknown”
4.1 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/S/S1-image-reads.txt — backend: python only (no wget/curl) → upstream's urllib probe; frontend: BusyBox wget; worker/beat: celery as PID 1; pg_isready and redis-cli for the sidecars; 127.0.0.1
4.2 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/G/gates-securo.txt — probe-matches-compose exit 0
4.3 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/install.txt — all six healthy 155 s after the press (pulls included), 0 restarts; the backend's start_period 120 s
4.4 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks.txt ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks2.txt — the backend stopped: the controller read `degraded` within 10 s, the front door 502; running again ~15 s after start; the seed read back
4.5 | done | app-catalog-felhom.eu/templates/securo/docker-compose.yml — `container_name: securo` (the page, traefik's); sidecars securo-backend, securo-worker, securo-beat, securo-db, securo-redis
5.1 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/bench/mem-securo.csv ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/mem-securo-box.csv — from birth, bench swap 0: backend 161 MiB anon (42 %), worker 151 (30 %), beat 116 (45 %), db 14 (+ cache), redis 6, page 5; 0 kills; the box (0.18.0 birth): backend 209 (55 %), 0 swap used, 0 kills
5.2 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/bench/evidence/MV-securo/verdict.json ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/step/box-verdict-securo.json — 10-min watch under 12 123 requests: highest anon 45 % (beat), 0 kills, 0 restarts; the box's soak clean
5.3 | done | app-catalog-felhom.eu/templates/securo/.felhom.yml — mem_limit 1920M = 128 + 384 + 512 + 256 + 512 + 128; mem-limit-sum gate exit 0
5.4 | n/a | Securo is Python (uvicorn + celery) and nginx; no self-sizing heap
5.5 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md — pi_compatible true (every image amd64 + arm64); ~1.45 GB of images
6.1 | done | app-catalog-felhom.eu/scripts/upgrade_fixtures_box28.py — `Securo`: the first admin, an account and a transaction through the app's own API; read-back finds both, a wrong password must be refused
6.2 | done | app-catalog-felhom.eu/templates/securo/.felhom.yml — the first ladder step 0.17.0 -> 0.18.0 (frontend + backend x3), written by `upgrade-test.py --write-ladder`
6.3 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/undo/undo-proof-securo.json — the bench's abort put 0.17.0 back on the migrated schema and it REFUSED to start; on 9202 a 0.18.0 whose checks fail migrated the data, the box's undo ran (`undone` at 526 s) and 0.17.0 runs again with the seed read back
6.4 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/bench/evidence/MV-securo/verdict.json — no mark (files_may_change false)
6.5 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/A/fit.md — plain `X.Y.Z` from 0.1 to 0.18.0 on ghcr; publishes `latest` beside each version; no re-push seen
7.1 | n/a | Securo sends no mail at v0.18.0 (no mail code); a forgotten password is reset by the admin
8.1 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/G/gates-securo.txt — copy-i18n exit 0 (frozen with the new app)
8.2 | done | app-catalog-felhom.eu/templates/securo/.felhom.yml — tagline, use_cases, first_steps (incl. the language choice: Securo starts in English until each browser picks „Magyar”), add_people; followed on 9202 and the bench
8.3 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/S/shots/ — logo + three screenshots pushed to felhom.eu `website/assets/` (commit 44715fb); they reach the public site with the next Cloudflare publish
8.4 | done | app-catalog-felhom.eu/README.md — both tables; FIRST-ADMIN row; category finance; catalog_since
8.5 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/G/site-count.txt — drift recorded: the website says 63 apps and its apps page has 64 cards; the catalog holds 66 with Securo (wger and Securo have no card)
8.6 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/S/guide-labelcheck.txt — 42 labels, all found in Securo's own locale files at v0.18.0 (and the controller's for „Adatok és mentés”); checked_version 0.18.0
9.1 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/G/gates-securo.txt — every gate exit 0; volume-persistence UNDETERMINED with the reason in 2.1
9.2 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/install.txt ; felhom.eu/documentation/audits/new-app-securo-2026-11-15/box/checks.txt — a fresh install from the drill catalog, as household and stranger
9.3 | done | felhom.eu/documentation/audits/new-app-securo-2026-11-15/README.md — every row done or n/a; the open questions are rows
9.4 | done | app-catalog-felhom.eu/onboarding/securo.md — published in one commit with this record (the onboarding gate)
+74
View File
@@ -0,0 +1,74 @@
# Onboarding record — transmission
app: transmission
opened: 2026-10-12
template_at: 2026-10-12 (published in this commit)
<!--
Measured on 2026-10-12 in two venues: the bench (LXC 9401 on demo-hp) and guest 9202 through the
product, from the drill catalog. Evidence: felhom.eu/documentation/audits/qbittorrent-2026-10-12/.
This is the LIGHT download client beside qBittorrent's full one (operator ruling 2026-10-12), and the
first template in this catalog whose image is not the project's own - see 0.3.
-->
0.1 | done | https://github.com/transmission/transmission — GPL-2.0 (with GPL-3.0 alongside, per the repo's own licence files). We pull a published image and never redistribute it
0.2 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/01-image.txt — the project pushed to its own repository on 2026-10-12, the day of this record; the image tracks the 4.1.x series
0.3 | n/a | THE PROJECT PUBLISHES NO DOCKER IMAGE AT ALL, so an official one cannot be used — the operator was asked before the build and chose lscr.io/linuxserver/transmission (2026-10-12), the maintained community image, built from the upstream release with version tags (version-4.1.2-r0, version-4.1.3-r0) and amd64 + arm64. This is the first third-party publisher in this catalog and the compose header says so
0.4 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/03-init-script.txt — the init script is read in full; no telemetry and no update check. DHT and PEX are the torrent protocol itself, LPD is off, and `port-forwarding-enabled` is turned OFF by this template
0.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/05-download.txt — yes, by design: a torrent client is a network client. No account and no token anywhere
0.6 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/verify-fixes.json — peer port 51413 is NOT published and port forwarding is off. What the household loses: incoming peer connections. Measured with the port closed (transmission-bench/05-download.txt): a 276 MB torrent added through the app's own RPC reached 100 % and its files landed on the drive - outgoing connections are enough
0.7 | n/a | no first-party phone or desktop app for the server; third-party clients drive the same RPC on the same public name, which is what 3.9 measures
0.8 | done | app-catalog-felhom.eu/templates/transmission/.felhom.yml — "Torrent letöltés egyszerűen, alig észrevehető erőforrásból", with the sentence that says when to choose qBittorrent instead
0.9 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/08-health.txt — it does not call itself at its public name; the only self-dial is the healthcheck on 127.0.0.1, which the host whitelist admits
1.1 | done | app-catalog-felhom.eu/templates/transmission/docker-compose.yml — lscr.io/linuxserver/transmission:version-4.1.3-r0; gates image-pins + image-resolvable
1.2 | n/a | the app has no database at all, so no engine or major to match
1.3 | n/a | no MariaDB and no PostgreSQL sidecar in this template
1.4 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/MV-transmission/verdict.json — the step INTO the pin is the test (checklist 1.4): version-4.1.2-r0 -> version-4.1.3-r0 proven on the bench, and again on 9202 through the product's own Update
1.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/04-process.txt — transmission-daemon under s6, running as the image's unprivileged `abc` user; no development server exists in this app
1.6 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/02-first-admin.txt — the only secret the app reads is its RPC password, generated at install; the init script writes it on every start and `rpc-authentication-required` is true
1.7 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/03-init-script.txt — the whole init script read inside the image: USER/PASS (auth), WHITELIST, HOST_WHITELIST, PEERPORT, UMASK, PUID/PGID, and what each writes into settings.json
1.8 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/11-container-log.txt — no debug mode exists; the log carries the app's own start lines and no stack trace
1.9 | n/a | the generated password only guards the RPC; losing it destroys no data (it is re-applied from the env at every start)
2.1 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/06-storage.txt — /config (settings + torrent state) and /downloads are both mounted, plus the /watch folder; nothing of value is written outside them
2.2 | done | app-catalog-felhom.eu/templates/transmission/docker-compose.yml — /config in the named volume transmission_config (NVMe); downloads in ${USERDATA_PATH}/media/transmission (complete/, incomplete/) bound at the SAME path inside the container (2026-10-14, R-1014) and ONLY that folder (operator ruling D9 = A with a limit); /downloads kept as the old name of the same folder for torrents added before; /watch is media/transmission/watch, now declared optional (it was unlisted and so mandatory, off-site included, R-1019). Evidence felhom.eu/documentation/audits/media-folder-fix-2026-10-14/B2-B3-transmission.txt: an old install kept seeding after the update, the default folders moved to the same path at start, a fresh install starts there, and media/photos does not exist inside the container.
2.3 | done | app-catalog-felhom.eu/templates/transmission/.felhom.yml — the config volume is `important` (settings and the torrent list); the downloads are `optional` (large, fetchable again)
2.4 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/07-ownership.txt — PUID/PGID 1000; the finished files land 1000:1000 on both sides of the bind mount
2.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/transmission/step.txt — the product's guarded Update took its own per-app backup (phase `backing-up`, then `copying`) and the seeded speed limit and torrent read back through the app's own RPC afterwards
2.6 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/boxwalk-log.txt — both remove choices measured on 9202: the config volume goes either way (`volumes_removed`), and the drive's media folder is kept as the household's own data
2.7 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/06-storage.txt — the config volume is a few hundred KB with one torrent; it is what the off-site copy carries. The downloads are the household's own size and are `optional`
2.8 | n/a | the household downloads files rather than uploading them; a .torrent dropped into the watch folder is the one thing it adds, and the readback is 2.5
3.1 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/02-first-admin.txt — class 1: the image's init writes the generated username and password into settings.json on EVERY start, so the app is never open and never carries a default
3.2 | n/a | there is no known default login to replace: the app starts with the generated one
3.3 | n/a | no open first-run screen; the RPC answers 401 from its first request
3.4 | n/a | the app has no sign-up at all, so nothing to close after the setup
3.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/boxwalk-results.json — in the install window a stranger gets 401 at the root and 401 at the RPC; nothing is reachable
3.6 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/verify-fixes.json — six wrong passwords from one address, then the household from its own: the app does not ban at all and the household is unaffected (409 = past auth). Unlike qBittorrent, there is no lock-out to lock anyone out with
3.7 | done | app-catalog-felhom.eu/templates/transmission/.felhom.yml — first_steps points at the app's own settings; the app has one RPC account by design
3.8 | done | app-catalog-felhom.eu/templates/transmission/docker-compose.yml — the password reaches the app as an environment value from the deploy field, never inside program code
3.9 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/verify-fixes.json — signed in through traefik over https on the app's own public name: 409 (past auth, the CSRF challenge) for the right password, 401 for a wrong one
3.10 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/transmission-app-log.txt — the app makes no decision on the visitor's address: `rpc-whitelist-enabled` is false deliberately, because behind traefik an address allow-list would admit everyone or nobody. The Host header is what it filters on (`rpc-host-whitelist`)
4.1 | done | app-catalog-felhom.eu/templates/transmission/docker-compose.yml — curl is in the image (transmission-bench/08-health.txt) and the probe is one curl to the web root
4.2 | done | app-catalog-felhom.eu/templates/transmission/.felhom.yml — the controller probe is http on 9091, the port the compose healthcheck dials; gate probe-matches-compose
4.3 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/08-health.txt — healthy within the start period once the probe accepts the 401 the app always answers; before that fix it read unhealthy for ever (curl exit 22)
4.4 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/08-health.txt — negative control: the same probe against a port nothing serves fails
4.5 | done | app-catalog-felhom.eu/templates/transmission/docker-compose.yml — container_name transmission = the stack name = the probe's target
5.1 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/09-memory.txt — first start from birth: 3 MiB anon, 0 oom_kills, swap off on the bench
5.2 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/MV-transmission/verdict.json — the harness's own soak under load: peak 4.2 % of the 512M limit, 0 kills, 0 restarts
5.3 | done | app-catalog-felhom.eu/templates/transmission/.felhom.yml — mem_limit 512M = the compose limit (gate mem-limit-sum), and the compose header carries the measured numbers
5.4 | n/a | the app is C and sizes nothing from a heap setting
5.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/01-image.txt — pi_compatible true: the image publishes arm64; the pull is ~70 MB
6.1 | done | app-catalog-felhom.eu/scripts/upgrade_fixtures.py ; app-catalog-felhom.eu/scripts/upgrade_fixtures_box.py — a distinctive speed limit and a torrent through the app's own RPC, with a negative control (a limit nobody set must be absent) on every readback
6.2 | done | app-catalog-felhom.eu/templates/transmission/.felhom.yml — the first ladder step version-4.1.2-r0 -> version-4.1.3-r0, written by `upgrade-test.py --write-ladder` from the bench verdict AND the box verdict, both `proven`
6.3 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/MV-transmission/verdict.json — the harness's abort put the old image back and the app came up: `abort: starts-and-serves`
6.4 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/MV-transmission/verdict.json — `files_may_change` is false: the step rewrote nothing the harness watches
6.5 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/transmission-bench/01-image.txt — the publisher's tag shape `version-<upstream>-r<build>` has been stable across the whole 4.0/4.1 series
7.1 | n/a | the app sends no mail of any kind
8.1 | done | app-catalog-felhom.eu/templates/transmission/.felhom.yml — Hungarian and English, informal "te", no "kérjük"; admitted to the copy freeze with its reason (gate copy-i18n)
8.2 | done | app-catalog-felhom.eu/templates/transmission/.felhom.yml — tagline, use_cases, first_steps, default_creds; add_people n/a (one RPC account by design)
8.3 | done | felhom.eu/website/assets/transmission-logo.svg ; felhom.eu/website/alkalmazasok.html — the logo is the project's own SVG and the card carries it. The card references NO screenshots, deliberately: the picture gate requires every opener to point at a file that exists, and photographing a signed-in RPC UI is a separate piece of work
8.4 | done | app-catalog-felhom.eu/README.md ; app-catalog-felhom.eu/FIRST-ADMIN.md — both tables; category media; catalog_since 2026-10-12
8.5 | done | felhom.eu/website/alkalmazasok.html — the published count moves 58 -> 60 (62 templates, minus wger hidden and plant-it abandoned), on both language sets and every page that states it
9.1 | done | app-catalog-felhom.eu/onboarding/transmission.md — `catalog_gates.py qbittorrent transmission` green but for the periodic image-resolvable and volume-persistence, which need network and a scratch host
9.2 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/boxwalk-results.json ; felhom.eu/documentation/audits/qbittorrent-2026-10-12/box/verify-fixes.json — a fresh install from the drill catalog on 9202, exercised as the household and as a stranger
9.3 | done | felhom.eu/documentation/audits/qbittorrent-2026-10-12/README.md — every row above is done or n/a with a reason; the defects found on the way are listed there with what each fix was
9.4 | done | app-catalog-felhom.eu/onboarding/transmission.md — published in ONE commit with this record
+3 -3
View File
@@ -26,9 +26,9 @@ Measured on 9202 2026-10-01 from the drill catalog (e9f50b5, wger template ident
1.2 | n/a | wger keeps SQLite on its own volume, no database sidecar
1.3 | n/a | no MariaDB or PostgreSQL service in this template
1.4 | done | felhom.eu/documentation/audits/new-app-checklist-2026-10-01/C/C2-static-reads.txt ; felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/wger/step.txt — `DJANGO_PERFORM_MIGRATIONS=True`; the 2.6 -> 2.7 step migrated and read back on the box
1.5 | open | the container runs `manage.py runserver` — `WGER_USE_GUNICORN` is not set (R-755; C2)
1.5 | done | gunicorn with 2 workers since 2026-10-08 (`WGER_USE_GUNICORN=True`, `WEB_CONCURRENCY=2`, R-762): 2 × „Booting worker" in the log; login page, CSS and a photo 200; 10-min watch 0 oom_kill, 0 restarts — bench 9401 and 9202 (`felhom.eu/documentation/audits/day-2026-10-08/r762/`)
1.6 | done | felhom.eu/documentation/audits/new-app-checklist-2026-10-01/C/C2-static-reads.txt ; felhom.eu/documentation/audits/new-app-checklist-2026-10-01/C/C3-logins.txt — of 15 key-like env reads: SECRET_KEY generated, JWT pair made at start (phone route 200), DB password unused by SQLite; the rest belong to features off here (S3, mail, reCAPTCHA, OIDC, PowerSync)
1.7 | done | `DJANGO_DEBUG=False` (R-762, 2026-10-06): `collectstatic` runs at start; the static files are served by `wger-files` (nginx) — the login page's own CSS links 200 on the bench and on 9202 (`felhom.eu/documentation/audits/design-build-2026-10-06/F/`). `WGER_USE_GUNICORN` stays unset (R-755, closed)
1.7 | done | `DJANGO_DEBUG=False` (R-762, 2026-10-06): `collectstatic` runs at start; the static files are served by `wger-files` (nginx) — the login page's own CSS links 200 on the bench and on 9202 (`felhom.eu/documentation/audits/design-build-2026-10-06/F/`). the web server is gunicorn since 2026-10-08 (row 1.5)
1.8 | done | felhom.eu/documentation/audits/new-app-checklist-2026-10-01/C/C2-static-reads.txt ; felhom.eu/documentation/audits/new-app-checklist-2026-10-01/C/C3-logins.txt — DEBUG False; an unknown page is a plain 404, no debug page
1.9 | n/a | SECRET_KEY signs sessions and reset links only; the JWT pair lives on the data volume and is backed up with it
2.1 | open | re-sweep 2026-10-02 with the fixed gate (felhom.eu/documentation/audits/persistence-sweep-2026-10-02/A/sweep/TABLE.md): UNDETERMINED — /home/wger/media stays empty after the seed (no upload in the seed); nothing written outside a preserved folder (R-807). The August CLEAN came from start-time writes alone
@@ -71,5 +71,5 @@ Measured on 9202 2026-10-01 from the drill catalog (e9f50b5, wger template ident
8.5 | n/a | wger is an existing app; the count does not change
9.1 | open | the runtime volume-persistence gate was not re-run today (last CLEAN 2026-08-02); the other gates exit 0 (B3) (R-759)
9.2 | done | felhom.eu/documentation/audits/new-app-checklist-2026-10-01/C/C1-install.txt ; felhom.eu/documentation/audits/new-app-checklist-2026-10-01/C/C8-signup-guest-media-static.txt — fresh installs from the drill catalog, as household and stranger
9.3 | open | 10 other rows stay open; each is a register row (R-755, R-759, R-762, R-763, R-764)
9.3 | open | 8 other rows stay open; each is a register row (R-759, R-763, R-764, R-807)
9.4 | n/a | wger is exempt: published 2026-02-15, before the checklist
+380 -22
View File
@@ -23,6 +23,7 @@ The walk, per `09` §6.4 and the update-night brief §4:
`inconclusive` is a first-class verdict and is NEVER collapsed into `failed`.
"""
import argparse, json, os, re, subprocess, sys, time
from memfigure import anon_live # R-1338: the soak's memory figure, shared with upgrade-test.py
from datetime import datetime, timezone
SC = os.environ.get('SC', os.path.expanduser('~/.felhom-retest'))
@@ -34,27 +35,25 @@ DRILL = "/mnt/5_hdd/felhom.eu/drill/app-catalog-drill"
# TARGET=9202 (default) scratch guest 9202 on demo-hp
# TARGET=9201 demo-hp's hub-enabled guest (the mail proof) — household-shaped, never seeded through an admin
# TARGET=tester-1 the Tester 1 box: VM 341 on the HP box (`09` §3 decision 158), its node `felhom` at
# 192.168.0.154, guest 9201 at 192.168.0.101 for felhom.enkicsifelhom.hu (identity matched
# 192.168.0.154, guest 9201 (DHCP — read at start) for felhom.enkicsifelhom.hu (identity matched
# 2026-10-06: the agent's report `host.node=felhom` = the VM's certificate; the guest answers
# that domain, the other one 404 — `felhom.eu/documentation/audits/readback-2026-10-07/`)
# GUEST=<vmid> still selects a demo-hp row (the old switch), unless TARGET is set.
TARGETS = {
# 9202 takes its address by DHCP (.114 until 2026-10-19, then .121), so its row names none: it is read from the
# guest at start (resolve_base below); BASE= still wins.
"9202": {"hp": "demo-hp", "ssh": "demo-hp", "jump": None, "guest": "9202",
"base": "https://192.168.0.114", "domain": "enkisfelhom.hu"},
"base": None, "domain": "enkisfelhom.hu"},
"9201": {"hp": "demo-hp", "ssh": "demo-hp", "jump": None, "guest": "9201",
"base": "https://192.168.0.155", "domain": "enkisfelhom.hu"},
"tester-1": {"hp": "tester-1", "ssh": "root@192.168.0.154", "jump": "demo-hp", "guest": "9201",
"base": "https://192.168.0.101", "domain": "enkicsifelhom.hu"},
"base": None, "domain": "enkicsifelhom.hu"}, # DHCP: .101 until 2026-10-23, then .148 — read
}
TARGET = os.environ.get("TARGET") or os.environ.get("GUEST", "9202")
if TARGET not in TARGETS:
raise SystemExit(f"box_walk: unknown TARGET {TARGET!r} — one of {sorted(TARGETS)}")
_T = TARGETS[TARGET]
GUEST = _T["guest"]
BASE = os.environ.get("BASE") or _T["base"]
DOMAIN = os.environ.get("DOMAIN") or _T["domain"]
HOSTHDR = f"Host: felhom.{DOMAIN}"
HP = _T["hp"]
def ssh_args():
@@ -67,6 +66,23 @@ def ssh_args():
LOG = []
def resolve_base():
"""A DHCP guest's dashboard address, read from the guest itself over the host's pct (no guessing)."""
r = subprocess.run(ssh_args() + ["pct", "exec", _T["guest"], "--", "ip", "-4", "-o",
"addr", "show", "eth0"], capture_output=True, text=True, timeout=60)
m = re.search(r"inet (\d+\.\d+\.\d+\.\d+)/", r.stdout)
if not m:
raise SystemExit("box_walk: could not read guest %s's address (%s) — set BASE=https://<ip>"
% (_T["guest"], (r.stderr or r.stdout).strip()[-120:]))
return "https://" + m.group(1)
BASE = os.environ.get("BASE") or _T["base"] or resolve_base()
DOMAIN = os.environ.get("DOMAIN") or _T["domain"]
HOSTHDR = f"Host: felhom.{DOMAIN}"
HP = _T["hp"]
def say(*a):
line = " ".join(str(x) for x in a)
ts = datetime.now().strftime("%H:%M:%S")
@@ -255,7 +271,8 @@ def wait_app(sub, path="/", want=("200", "302", "303", "401", "403"), tries=60,
# ------------------------------------------------------------------ the walk
DRIVE = "/mnt/felhom-drives/scratch_hdd/userdata"
DRIVE_ROOT = "/mnt/felhom-drives/scratch_hdd" # the registered drive: what an HDD_PATH must name (R-839)
DRIVE = DRIVE_ROOT + "/userdata"
# What THIS run generated for a deploy, per app. Deploy secrets are ENCRYPTED AT REST in
# `app.yaml` (`ENC:…`), which is right and which means a fixture cannot read an app's admin
@@ -267,7 +284,7 @@ GENERATED = {}
DEPLOYED_THIS_RUN = set()
def deploy_values(name, sub):
def deploy_values(name, sub, given=None):
"""Fill EVERY required deploy field the way the wizard would, by asking the box what this app
asks for — `GET /api/stacks/<n>/deploy-fields` — instead of assuming DOMAIN+SUBDOMAIN.
@@ -282,7 +299,8 @@ def deploy_values(name, sub):
code, d = ctl("GET", f"/api/stacks/{name}/deploy-fields")
fields = (((d.get("data") or {}).get("metadata") or {}).get("deploy_fields")) or []
values = {"DOMAIN": DOMAIN, "SUBDOMAIN": sub}
made = []
values.update(given or {}) # a caller's own value wins, and no drive folder is made for it (2026-10-16: a passed
made = [] # HDD_PATH still got DRIVE/<app> created, an empty folder nobody asked for)
for f in fields:
ev, ty = f.get("env_var"), f.get("type")
if ev in values:
@@ -293,7 +311,11 @@ def deploy_values(name, sub):
# caller that trusts the contract gets a 400. Measured tonight on grafana; filed.
if not f.get("required") and ty != "password":
continue # the controller generates the optional secrets itself
if ty == "path":
if ty == "path" and ev == "HDD_PATH":
# R-839 (controller): the deploy API refuses an HDD_PATH that is a folder INSIDE a registered drive —
# the app's data place is the drive itself. Measured 2026-10-24: DRIVE/<app> came back 409.
values[ev] = DRIVE_ROOT
elif ty == "path":
p = f"{DRIVE}/{name}"
values[ev] = p
made.append(p)
@@ -319,9 +341,7 @@ def deploy(name, sub, extra_values=None):
if st.get("deployed"):
say(f" [1] {name} already deployed — reusing")
return True
values = deploy_values(name, sub)
if extra_values:
values.update(extra_values)
values = deploy_values(name, sub, extra_values)
body = {"values": values}
if os.environ.get("KEPT"): # decision 36: the household's answer when the drive holds old data ("fresh" moves it aside, deletes nothing)
body["kept_data"] = os.environ["KEPT"]
@@ -369,15 +389,59 @@ def backup_now(name):
say(f" [4] backup press SKIPPED for {name} (R-648: whole-box only; the update's backing-up phase backs up {name} alone)")
return None
def drill_bump(app, frm, to, service_hint=None):
"""Serialised across concurrent walks: one git working tree, one lock."""
def drill_bump(app, frm, to, service_hint=None, definition=None):
"""Serialised across concurrent walks: one git working tree, one lock. `definition` = (dir, TO map): the drill commit
takes that whole definition instead of moving image lines (a definition step)."""
import fcntl
with open(f"{SC}/drill.lock", "w") as lk:
fcntl.flock(lk, fcntl.LOCK_EX)
sh(["git", "-C", DRILL, "pull", "-q", "--rebase", "origin", "main"], timeout=120)
if definition:
c, y, why = definition_files(definition[0], definition[1], datetime.now().strftime("%Y-%m-%d"))
if why:
say(f" [5] {why}")
return None
open(f"{DRILL}/templates/{app}/docker-compose.yml", "w").write(c)
open(f"{DRILL}/templates/{app}/.felhom.yml", "w").write(y)
sh(["git", "-C", DRILL, "add", "-A"])
sh(["git", "-C", DRILL, "commit", "-q", "-m", f"DRILL {app}: {frm} -> {to} (definition {definition[0]})"])
r = sh(["git", "-C", DRILL, "push", "-q", "origin", "main"], timeout=120)
h = sh(["git", "-C", DRILL, "rev-parse", "--short=12", "HEAD"]).stdout.strip()
say(f" [5] drill commit {h}: {app} -> the definition in {definition[0]} (push rc={r.returncode})")
refresh_box_mirror()
return h
return _drill_bump(app, frm, to, service_hint)
def move_images(s, froms, tos):
"""Move each `image: FROM` line of a compose text to its TO. Returns (text, None), or (the text unchanged, the FROM
that cannot move). Two services that share one image (dawarich + dawarich-sidekiq) list the same pair twice and move
together; one FROM asked to go to two different TOs is refused. Pinned by test_box_walk_drill_move.py."""
pairs = {}
for f1, t1 in zip(froms, tos):
if pairs.setdefault(f1, t1) != t1:
return s, f1
out = s
for f1, t1 in pairs.items():
if f"image: {f1}" not in out:
return s, f1
out = out.replace(f"image: {f1}", f"image: {t1}")
return out, None
def definition_files(ddir, to, today):
"""A DEFINITION step (more than image lines: an entrypoint, an init flag, a removed field — R-762's shape): the TO
compose and .felhom.yml from `ddir`, catalog_since set to `today`. Returns (compose, felhom, None), or (None, None, why)
when the definition's images are not the walk's TO. Pinned by test_box_walk_drill_move.py."""
c = open(os.path.join(ddir, "docker-compose.yml")).read()
y = open(os.path.join(ddir, ".felhom.yml")).read()
imgs = images_of(c)
if imgs != to:
return None, None, f"the definition in {ddir} names {imgs}, the walk's TO is {to}"
y = re.sub(r'^catalog_since:.*$', f'catalog_since: "{today}"', y, count=1, flags=re.M)
return c, y, None
def _drill_bump(app, frm, to, service_hint=None):
"""Commit the edge to the DRILL repo. catalog_since set by hand (the drill repo has no gates).
@@ -394,11 +458,10 @@ def _drill_bump(app, frm, to, service_hint=None):
if len(froms) != len(tos):
say(f" [5] from/to lists differ in length: {froms} vs {tos}")
return None
for f1, t1 in zip(froms, tos):
if f"image: {f1}" not in s:
say(f" [5] FROM ref not found in compose: {f1}")
return None
s = s.replace(f"image: {f1}", f"image: {t1}")
s, missing = move_images(s, froms, tos)
if missing:
say(f" [5] FROM ref not found in compose: {missing}")
return None
open(comp, "w").write(s)
f = open(fy).read()
today = datetime.now().strftime("%Y-%m-%d")
@@ -409,9 +472,35 @@ def _drill_bump(app, frm, to, service_hint=None):
r = sh(["git", "-C", DRILL, "push", "-q", "origin", "main"], timeout=120)
h = sh(["git", "-C", DRILL, "rev-parse", "--short=12", "HEAD"]).stdout.strip()
say(f" [5] drill commit {h}: {app} {frm} -> {to} (push rc={r.returncode})")
refresh_box_mirror()
return h
BOX_VOL = "/var/lib/docker/volumes/felhom-controller-data/_data" # the controller's data volume, guest path
BOX_CVOL = "/opt/docker/felhom-controller" # the same, inside the controller container
MIRROR_URL = f"file://{BOX_CVOL}/drill-catalog.git"
def refresh_box_mirror():
"""A box pointed at the drill through its LOCAL MIRROR (R-992: no catalog credential on the box — the mirror method of
felhom.eu audits/burndown-3-2026-10-17/tools/repoint.py) sees a drill commit only after the mirror is loaded again.
Without this a drill commit reaches Gitea and never the box, and a walk then presses Update on nothing. A box on any
other catalog URL is left alone (it fetches the drill itself)."""
conf = guest(f"grep -E '^\\s+repo_url:' {BOX_VOL}/controller.yaml")
if MIRROR_URL not in conf:
return False
import secrets as _s
b = f"/tmp/drill-walk-{os.getpid()}-{_s.token_hex(4)}.bundle"
sh(["git", "-C", DRILL, "bundle", "create", b, "main"])
sh(["scp", "-q", "-o", "StrictHostKeyChecking=accept-new"] + (["-J", _T["jump"]] if _T["jump"] else [])
+ [b, f"{_T['ssh']}:{b}"], timeout=120)
sh(ssh_args() + [f"pct push {GUEST} {b} {BOX_VOL}/{os.path.basename(b)} && rm -f {b}"], timeout=120)
out = guest(f"""docker exec felhom-controller sh -c 'git -C {BOX_CVOL}/drill-catalog.git fetch -q {BOX_CVOL}/{os.path.basename(b)} +main:main && rm -f {BOX_CVOL}/{os.path.basename(b)}; git -C {BOX_CVOL}/drill-catalog.git log -1 --format="%h" main'""")
os.remove(b)
say(f" [5] the box's drill mirror now at {out.strip()}")
return True
def sync_rescan(expect_app=None, expect_ref=None, tries=12, delay=5):
"""Sync, rescan, and — when told what to expect — WAIT FOR THE BADGE TO CATCH UP.
@@ -550,7 +639,9 @@ def remove(name):
say(f" [X] remove (keeping drive data) -> {code} {str(d)[:160]}")
time.sleep(5)
st = stack(name)
left = guest(f"ls -d /opt/docker/stacks/{name} 2>/dev/null; "
# The stack folder itself stays: it is the catalog's template copy (every app has one). An install leaves its record,
# app.yaml — that is the leftover to look for (2026-10-24: the folder alone read as a leftover after a clean remove).
left = guest(f"ls -d /opt/docker/stacks/{name}/app.yaml 2>/dev/null; "
f"docker ps -a --filter label=com.docker.compose.project={name} --format '{{{{.Names}}}}'")
say(f" [X] after remove: deployed={st.get('deployed')} leftovers={left.strip()!r}")
return code
@@ -621,3 +712,270 @@ def restore(name, snapshot_id=None, wait_s=1200):
"http": head, "location": loc[:1], "seconds": round(time.time() - t0, 1),
"state_after": st.get("state"), "hold_after": st.get("hold_reason"),
"observables_after": observables(name)}
# ------------------------------------------------------------------ the security-fix walk (D39 = B)
SECURITY_WALK_VERSION = 1
SOAK_DEFAULT_S = 600
def soak(name, seconds, interval=10):
"""The box's memory soak (`09` §3 decision 255): every `interval` s for `seconds`, per container of the app, the
app's own memory (cgroup `anon`, decision 22 — the cgroup peak counts the file cache) against its limit, the
cgroup peak, the OOM-kill counter and the restart count. One guest call; the guest prints one JSON line a sample."""
script = f"""
set -u
ids=$(docker ps -a --filter label=com.docker.compose.project={name} --format '{{{{.ID}}}}')
end=$(( $(date +%s) + {int(seconds)} ))
while :; do
for id in $ids; do
full=$(docker inspect -f '{{{{.Id}}}}' $id); nm=$(docker inspect -f '{{{{.Name}}}}' $id | tr -d /)
rc=$(docker inspect -f '{{{{.RestartCount}}}}' $id); run=$(docker inspect -f '{{{{.State.Running}}}}' $id)
start=$(docker inspect -f '{{{{.State.StartedAt}}}}' $id); oomk=$(docker inspect -f '{{{{.State.OOMKilled}}}}' $id)
cg=""; for c in /sys/fs/cgroup/system.slice/docker-$full.scope /sys/fs/cgroup/docker/$full; do [ -d "$c" ] && cg=$c; done
anon=0; fl=0; af=0; inf=0; aa=0; ia=0; sh=0; mx=max; pk=0; ok=0
if [ -n "$cg" ]; then
anon=$(awk '$1=="anon"{{print $2}}' $cg/memory.stat); mx=$(cat $cg/memory.max)
fl=$(awk '$1=="file"{{print $2}}' $cg/memory.stat); af=$(awk '$1=="active_file"{{print $2}}' $cg/memory.stat)
inf=$(awk '$1=="inactive_file"{{print $2}}' $cg/memory.stat); aa=$(awk '$1=="active_anon"{{print $2}}' $cg/memory.stat)
ia=$(awk '$1=="inactive_anon"{{print $2}}' $cg/memory.stat); sh=$(awk '$1=="shmem"{{print $2}}' $cg/memory.stat)
pk=$(cat $cg/memory.peak 2>/dev/null || echo 0); ok=$(awk '$1=="oom_kill"{{print $2}}' $cg/memory.events)
fi
printf '{{"t":%s,"c":"%s","anon":%s,"file":%s,"active_file":%s,"inactive_file":%s,"active_anon":%s,"inactive_anon":%s,"shmem":%s,"max":"%s","peak":%s,"oom_kill":%s,"restarts":%s,"running":"%s","started":"%s","oomkilled":"%s","cg":"%s"}}\\n' \\
"$(date +%s)" "$nm" "${{anon:-0}}" "${{fl:-0}}" "${{af:-0}}" "${{inf:-0}}" "${{aa:-0}}" "${{ia:-0}}" "${{sh:-0}}" "$mx" "${{pk:-0}}" "${{ok:-0}}" "$rc" "$run" "$start" "$oomk" "$cg"
done
[ "$(date +%s)" -ge "$end" ] && break
sleep {int(interval)}
done
"""
out = guest(script, timeout=int(seconds) + 300)
samples = []
for line in out.splitlines():
try:
samples.append(json.loads(line))
except ValueError:
continue
return soak_summary(samples, seconds, interval)
def soak_summary(samples, seconds, interval):
"""The soak's samples → the per-container record. The mark's figure (peak_pct) is the LIVE anon (R-1338,
memfigure.anon_live: `anon` without the pages the app already gave back); `anon_peak_pct` stays beside it.
Pinned by test_memory_live.py."""
per = {}
for s in samples:
c = per.setdefault(s["c"], {"samples": 0, "anon_peak": 0, "live_peak": 0, "cg_peak": 0, "limit": None, "oom_kill": [],
"restarts": [], "running": [], "started": set(), "oomkilled": False, "cgroup": s["cg"]})
c["samples"] += 1
c["anon_peak"] = max(c["anon_peak"], int(s["anon"]))
live = anon_live(s)
c["live_peak"] = max(c["live_peak"], int(live if live is not None else s["anon"]))
c["cg_peak"] = max(c["cg_peak"], int(s["peak"]))
c["limit"] = int(s["max"]) if str(s["max"]).isdigit() else None
c["oom_kill"].append(int(s["oom_kill"]))
c["restarts"].append(int(s["restarts"]))
c["running"].append(s["running"] == "true")
c["started"].add(s["started"])
c["oomkilled"] = c["oomkilled"] or s["oomkilled"] == "true"
res = {"soak_s": int(seconds), "interval_s": interval, "samples": len(samples), "containers": {}}
kills = restarts = 0
peaks = []
for nm, c in per.items():
k = (max(c["oom_kill"]) - min(c["oom_kill"])) if c["oom_kill"] else 0
r = (max(c["restarts"]) - min(c["restarts"])) + (len(c["started"]) - 1)
kills += k + (1 if c["oomkilled"] else 0)
restarts += r
pct = round(100.0 * c["anon_peak"] / c["limit"], 1) if c["limit"] else None
live_pct = round(100.0 * c["live_peak"] / c["limit"], 1) if c["limit"] else None
cgp = round(100.0 * c["cg_peak"] / c["limit"], 1) if c["limit"] else None
if live_pct is not None:
peaks.append(live_pct)
res["containers"][nm] = {"samples": c["samples"], "anon_peak_bytes": c["anon_peak"], "limit_bytes": c["limit"],
"anon_peak_pct": pct, "anon_live_peak_bytes": c["live_peak"], "anon_live_peak_pct": live_pct,
"cgroup_peak_pct": cgp, "oom_kill_delta": k,
"oom_killed_flag": c["oomkilled"], "restarts_delta": r,
"running_all_samples": all(c["running"]), "cgroup": c["cgroup"]}
res["oom_kills"], res["restarts"] = kills, restarts
res["peak_pct"] = max(peaks) if peaks else None # the live anon figure (R-1338)
res["peak_basis"] = "anon_live"
return res
def setup_gate_probe(sub):
"""How the setup gate (decision 46) answers this app right now, as the household's browser and as a script: status and
redirect target only (the cookie is never printed)."""
out = {}
for label, hdr in (("browser", ["-H", "Accept: text/html"]), ("script", [])):
r = sh(["curl", "-sk", "-D", "-", "-o", "/dev/null", "-H", f"Host: {sub}.{DOMAIN}"] + hdr + [f"{BASE}/identity"])
st = re.match(r"HTTP/\S+ (\d+)", r.stdout or "")
loc = _loc(r.stdout)
out[label] = {"status": st.group(1) if st else None, "redirect": re.sub(r"\?.*", "?…", loc) if loc else None}
return out
def security_walk(app, frm, to, evdir, soak_s=SOAK_DEFAULT_S, values=None, definition=None):
"""`box_walk.py --security <app> --from <svc=ref,…> --to <svc=ref,…> --ev <dir> [--soak N] [--value K=V …]` — the BOX venue of a
security-fix step (`09` §3 decision 255, D39 = B), on scratch guest 9202 pointed at the DRILL catalog, through the
product's own endpoints only:
1. the drill's template for <app> must stand at FROM (the caller puts it there; this walk never guesses);
2. <app> is installed fresh; the four version observables must read FROM;
3. seed + read-back when a box fixture has the app, else `seed: "none"` — written, never hidden;
4. a DRILL-only commit moves the compose FROM -> TO; sync + rescan until the box's catalog_images carry TO;
5. the product's guarded Update, every phase with its time;
6. after: final phase `done`, no undo, no hold, the app running, the four observables equal TO, the seed read back;
7. the memory soak (default 600 s): a kill or a restart = failed;
8. <evdir>/box-verdict-<app>.json: `proven` only if all of that holds; `inconclusive` stays `inconclusive`.
The app is removed through the product at the end unless KEEP=1."""
import upgrade_fixtures_box as fixtures
import upgrade_fixtures_box28 as _f28
global LOG
LOG = []
FX = dict(_f28.FIXTURES28)
FX.update(fixtures.FIXTURES)
os.makedirs(evdir, exist_ok=True)
rec = {"app": app, "walk": "security", "box_walk_version": SECURITY_WALK_VERSION, "verdict": "inconclusive",
"venue": f"box {GUEST} (drill catalog), the guarded Update", "from": frm, "to": to}
def finish(verdict, why):
rec["verdict"], rec["why"] = verdict, why
rec["log"] = LOG
write_verdict(rec, evdir)
os.replace(os.path.join(evdir, "verdict.json"), os.path.join(evdir, f"box-verdict-{app}.json"))
say(f"RESULT {verdict} — {why}")
if not os.environ.get("KEEP") and stack(app).get("deployed"):
remove(app)
return 0 if verdict == "proven" else 1
login()
conf = guest("grep -A3 '^git:' /var/lib/docker/volumes/felhom-controller-data/_data/controller.yaml")
if "app-catalog-drill" not in conf and MIRROR_URL not in conf:
return finish("inconclusive", f"guest {GUEST} is not on the drill catalog (nor its local mirror) — nothing done")
sh(["git", "-C", DRILL, "pull", "-q", "--rebase", "origin", "main"], timeout=120)
drill_imgs = images_of(open(f"{DRILL}/templates/{app}/docker-compose.yml").read())
if drill_imgs != frm:
return finish("inconclusive", f"the drill's {app} is at {drill_imgs}, not at FROM {frm} — put it there first")
fx = FX.get(app)
sub = getattr(fx, "sub", app) if fx else app
if stack(app).get("deployed"):
say(f" [1] removing the existing {app} first (scratch box)")
remove(app)
# the box reads the drill through its own mirror: load the head checked above, or a drill commit made outside a walk
# (a revert back to FROM) never reaches it and the install takes the old head's TO (2026-10-28, adventurelog)
refresh_box_mirror()
sync_rescan()
if not deploy(app, sub, values):
return finish("inconclusive", "the install at FROM did not complete — nothing was tested")
wait_app(sub, "/identity" if app == "plex" else "/", tries=60)
rec["observables_before"] = observables(app)
if rec["observables_before"]["pinned_images"] != frm:
return finish("inconclusive", f"installed at {rec['observables_before']['pinned_images']}, not at FROM")
rec["setup_gate_before"] = setup_gate_probe(sub)
say(f" [2] setup gate as installed: {rec['setup_gate_before']}")
tok = None
if fx is None or fx.__class__.__name__ == "NoRoute":
rec["seed"] = "none"
rec["seed_why"] = getattr(fx, "tried", "no box fixture for this app")
say(f" [3] seed: none — {rec['seed_why']}")
else:
tok = fx.seed(w_self(), sub, say)
if tok is None or not fx.verify(w_self(), sub, tok, say):
return finish("inconclusive", "C1: the fixture could not seed and read back before the update")
rec["seed"] = "read_back"
froms = ",".join(frm[s] for s in sorted(frm) if frm[s] != to.get(s))
tos = ",".join(to[s] for s in sorted(frm) if frm[s] != to.get(s))
if definition:
rec["to_definition"] = definition
rec["drill_commit"] = drill_bump(app, froms, tos, definition=(definition, to) if definition else None)
if not rec["drill_commit"]:
return finish("inconclusive", "the drill could not be moved FROM -> TO")
moved = [s for s in sorted(to) if frm.get(s) != to[s]]
rec["sync_waited_s"] = sync_rescan(app, to[moved[0]], tries=40, delay=10)
if rec["sync_waited_s"] is None:
return finish("inconclusive", f"the box never read TO {to[moved[0]]} from the drill catalog — nothing pressed")
rec["badge_before"] = badges(app)
rec["measured_at"] = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
rec["update"] = press_update(app, poll=1.0, cap_s=1800)
time.sleep(15)
st = stack(app)
rec["observables_after"] = obs = observables(app)
rec["badge_after"] = badges(app)
rec["state_after"], rec["hold_after"] = st.get("state"), st.get("hold_reason")
ii = (st.get("app_config") or {}).get("installed_images") or {}
rec["to_digests"] = {s: (ii.get(s) or {}).get("digest") if isinstance(ii.get(s), dict) else None for s in to}
u = rec["update"]
if not u.get("accepted"):
return finish("failed", f"the Update was refused: {u.get('http')} {str(u.get('refusal'))[:200]}")
if u.get("final_phase") != "done" or u.get("update_error") or rec["hold_after"]:
return finish("failed", f"the update ended {u.get('final_phase')!r} (error {u.get('update_error')!r}, hold {rec['hold_after']!r})")
live = sorted({l.split("image:", 1)[1].strip() for l in obs.get("live_compose_image_lines") or [] if "image:" in l})
four = {"pinned": obs.get("pinned_images"), "installed": obs.get("installed_images"), "catalog": obs.get("catalog_images"),
"live_compose": live}
rec["four_observables"] = four
running = {l.split()[1] for l in obs.get("docker_inspect") or [] if "running=true" in l}
bad = {k: v for k, v in four.items() if k != "live_compose" and v != to}
if bad or set(live) != set(to.values()) or not set(to.values()) <= running:
return finish("failed", f"the version observables are not TO: {bad or four['live_compose']}, running {sorted(running)}")
if rec["state_after"] != "running":
return finish("failed", f"the app is {rec['state_after']!r} after the update")
if tok is not None:
rec["seed_read_after"] = fx.verify(w_self(), sub, tok, say)
if not rec["seed_read_after"]:
return finish("failed", "the seed did not read back after the update")
if any(not d for d in rec["to_digests"].values()):
return finish("inconclusive", f"the box recorded no digest for a TO service: {rec['to_digests']}")
rec["setup_gate_after"] = setup_gate_probe(sub)
say(f" [7] memory soak {soak_s} s …")
rec["memory"] = m = soak(app, soak_s)
say(f" [7] soak: peak {m.get('peak_pct')}% of the limit (anon), kills {m.get('oom_kills')}, restarts {m.get('restarts')}")
if m.get("samples", 0) == 0 or m.get("peak_pct") is None:
return finish("inconclusive", "the soak read no sample — not a pass")
if m["oom_kills"] or m["restarts"] or not all(c["running_all_samples"] for c in m["containers"].values()):
return finish("failed", f"the soak saw {m['oom_kills']} OOM kill(s) and {m['restarts']} restart(s)")
return finish("proven", "the security-fix step ran on the box through the guarded Update; healthy, TO on all four "
"observables, no undo, no hold, a clean soak" + ("" if tok is None else ", seed read back"))
def images_of(compose_text):
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import ladder
return ladder.images_in(compose_text)
def w_self():
return sys.modules[__name__]
def _refs(spec):
"""`svc=ref,svc2=ref2` -> {svc: ref}."""
out = {}
for part in spec.split(","):
k, _, v = part.strip().partition("=")
if k and v:
out[k] = v
return out
def main(argv):
ap = argparse.ArgumentParser(prog="box_walk.py")
ap.add_argument("--security", metavar="APP", required=True,
help="the security-fix walk (09 decision 255) for this app")
ap.add_argument("--from", dest="frm", required=True, help="svc=ref,… the drill must stand at")
ap.add_argument("--to", required=True, help="svc=ref,… the step moves to")
ap.add_argument("--ev", required=True, help="evidence directory")
ap.add_argument("--soak", type=int, default=SOAK_DEFAULT_S)
ap.add_argument("--to-definition", dest="to_definition", default=None, metavar="DIR",
help="a definition step: the drill takes DIR's docker-compose.yml + .felhom.yml (images must be TO)")
ap.add_argument("--value", action="append", default=[], metavar="KEY=VAL",
help="a deploy field the wizard would get from the household (e.g. HDD_PATH=<the drive>)")
a = ap.parse_args(argv)
frm, to = _refs(a.frm), _refs(a.to)
if set(frm) != set(to):
print("box_walk: --from and --to must name the same services")
return 2
vals = dict(v.split("=", 1) for v in a.value if "=" in v)
return security_walk(a.security, frm, to, a.ev, a.soak, vals or None, definition=a.to_definition)
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
+56 -1
View File
@@ -29,6 +29,19 @@ Gates, in order (all must pass; **non-zero exit on any failure**):
service's deploy.resources.limits.memory, and every service has one (R-758)
12. data-key static, instant, whole repo — every data-encrypting key carries data_key: true (name rule
or REGISTRY), and no flag is unexplained (R-127)
13. unclean-boot-images static, instant, whole repo — an after_unclean_boot block lists the image its service
runs (R-1007): an Immich bump without a re-proven repair is refused, not silently skipped
14. guide-version static, instant, ADVISORY — a user guide's checked_version is not the image tag the app
runs: a WARN naming both versions, and exit 0 always (it never fails a push)
16. redis-persistence static, instant, whole repo — no template's Redis/Valkey service runs append-only (R-1096)
17. privileges static, instant, whole repo — no template or ladder step asks for a container right the box's
allow-list does not give (R-971); the box (controller >= 0.328.0) refuses on its own
18. security-scan the SHARED scanner (felhom.eu/scripts/security_scan_gate.py) — gitleaks on the pushed commits,
WARN-FIRST: it lists, it never refuses (R-986); no Go module here, so no govulncheck
19. upstream static, instant, whole repo — every template image names where its security notices are
published (`.felhom.yml` `upstream:`; SHARED rule felhom.eu/scripts/security_watch_inventory.py, R-1303)
15. gate-decoys the decoy suite (test_gate_decoys.py) — each gate above still convicts its decoys
(R-1115). ~3 minutes, needs PyYAML: the full run only, never --fast
4. engine-major static, needs GIT HISTORY — no database engine pin crosses a MAJOR version
(operator ruling 2026-09-13; expires when Slice 4 / R-448 ships). Runs in the
pre-push hook, which has the full clone; on a SHALLOW clone (CI fetches at
@@ -125,9 +138,50 @@ GATES = [
# templates were under it — the deploy screen and the box's overcommit warning read less than the app may take.
# Static, stdlib only (no PyYAML on CI), so --fast: the hook and CI.
("mem-limit-sum", "check-mem-limit-sum.py", True, True, False),
# R-1106 (2026-10-16 night): a database service's password variable must be a `type: secret` deploy field, so the
# backup carries it and a restore can put the password back with the data (controller v0.324.0). Static, stdlib.
("db-credentials", "check-db-credentials.py", True, True, False),
# R-127 leg (a) (2026-10-05): every data-encrypting key carries `data_key: true` (by its NAME, or by a registry
# entry with its reason) and every flag is accounted for — the restore's fail-closed gate reads only that flag.
("data-key", "check-data-key.py", True, True, False),
# R-1007 (2026-10-14, decision 236): an `after_unclean_boot:` block's `images:` must list the image its service
# runs in the compose (and in each steps/ file that carries the block). The repair uses the app's internals, so the
# controller SKIPS it on an unproven image and nobody is told — this refuses the image bump that would do that.
("unclean-boot-images", "check-unclean-boot-images.py", True, True, False),
# 2026-10-15 (app guides night): ADVISORY — a guide's `checked_version` differs from the image the app runs, so
# the guide may describe a changed screen. It prints a WARN naming both versions and ALWAYS exits 0: an image move
# is judged by its test record, and a stale-prose warning must never hold back an update.
("guide-version", "check-guide-version.py", True, True, False),
# 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),
# R-1096 (2026-10-17): no catalog Redis runs append-only — a damaged AOF keeps Redis (and its app) down until a
# person repairs it; snapshots are written by temp-file-and-rename. Static, stdlib only: the hook and CI.
("redis-persistence", "check-redis-persistence.py", False, True, False),
# R-971 (2026-10-17, operator decision D2 = A): no template or ladder step asks for a container right the BOX's
# allow-list does not give (privileged, cap_add, devices, host namespaces, the Docker socket, binds outside the
# data roots, ...). The box (controller >= 0.328.0) is the authority and refuses on its own; this is the early
# warning, so a bad template fails here instead of on every box. Static, stdlib only: the hook and CI.
("privileges", "check-privileges.py", False, True, False),
# R-986 (2026-10-19): the shared dependency and secret scanner, WARN-FIRST (exit 0 whatever it finds). It reads no
# network here (no Go module, so no govulncheck); gitleaks on the pushed commits, ~1 s. CI fetches the pinned gitleaks
# (FELHOM_SCAN_FETCH=1 in gates.yml).
# R-1019 (2026-10-20): a download client's download folder (bound at /downloads or /watch) is declared `excluded`,
# so no tier copies it — optional mirrored every download to the second drive, unlisted sent it off-site.
("download-binds", "check-download-binds.py", False, True, False),
("security-scan", "check-security-scan.py", False, True, False),
# R-1303 (2026-10-26): every template image names where its security notices are published (`.felhom.yml`
# `upstream:`), read by the nightly security watch. The rule is SHARED (felhom.eu/scripts/security_watch_inventory.py).
# Static, files only, so --fast: the hook and CI.
("upstream", "check-upstream.py", False, True, False),
# R-1115 (2026-10-17): the gates' OWN decoy suite — every gate above is red-proved against its decoys here. It
# was not in this table, so a case that stopped convicting (a template edit removed its premise) failed for a
# night with nobody looking. Static (a local clone, a stub docker), but ~3 minutes and it needs PyYAML, so NOT
# --fast: the full run only, like the two slow gates.
("gate-decoys", "test_gate_decoys.py", False, False, False),
]
# 3 (R-605): the gate's HARNESS refused to run — its canary failed or it had nothing to judge — so NO app was
@@ -193,7 +247,8 @@ def main(argv):
" cross-major engine move is caught at push time, not here." % ", ".join(needs_history))
if skipped:
print(" --fast SKIPPED: %s — they need network and a container runtime and take minutes\n"
" per app, so they are NEVER in a hook. They remain deliberate periodic runs: start\n"
" per app (gate-decoys: ~3 minutes on its own), so they are NEVER in a hook. They\n"
" remain deliberate periodic runs: start\n"
" of a catalog campaign, before a publish train, or when a template's volumes:/image\n"
" changes. Run them with no --fast, on a scratch host." % ", ".join(skipped))
+177 -1
View File
@@ -157,6 +157,22 @@ def copy_strings(meta):
for k in ("use_cases", "first_steps", "prerequisites"):
for i, v in enumerate(ai.get(k) or []):
add("app_info.%s[%d]" % (k, i), v)
# The user guide (controller >= 0.315.0, 10-localisation.md §7). Addressed BY INDEX — the only copy
# that is: a section's title is the thing being translated, so it has no key. `checked_version` is
# NOT copy (the render gate; a translator does not vouch for a version) and is never collected.
g = ai.get("guide") if isinstance(ai.get("guide"), dict) else {}
for i, se in enumerate(g.get("sections") or []):
if not isinstance(se, dict):
continue
add("app_info.guide.sections[%d].title" % i, se.get("title"))
add("app_info.guide.sections[%d].intro" % i, se.get("intro"))
for j, st in enumerate(se.get("steps") or []):
add("app_info.guide.sections[%d].steps[%d]" % (i, j), st)
for i, qa in enumerate(g.get("faq") or []):
if not isinstance(qa, dict):
continue
add("app_info.guide.faq[%d].q" % i, qa.get("q"))
add("app_info.guide.faq[%d].a" % i, qa.get("a"))
for i, f in enumerate(meta.get("deploy_fields") or []):
key = f.get("env_var") or "#%d" % i
for fld in ("label", "description", "placeholder"):
@@ -222,8 +238,11 @@ def overlay_strings(ov, hu_meta):
errs.append("app_info must be a mapping")
else:
for k in ai:
if k not in ("tagline", "default_creds", "add_people", "use_cases", "first_steps", "prerequisites"):
if k not in ("tagline", "default_creds", "add_people", "use_cases", "first_steps", "prerequisites",
"guide"):
errs.append("unknown key app_info.%s — `docs_url` and the rest are not copy" % k)
if ai.get("guide") is not None:
guide_overlay(ai.get("guide"), (hu_meta.get("app_info") or {}).get("guide"), scalar, errs)
scalar("app_info.tagline", ai.get("tagline"), "app_info.tagline")
scalar("app_info.default_creds", ai.get("default_creds"), "app_info.default_creds")
scalar("app_info.add_people", ai.get("add_people"), "app_info.add_people")
@@ -348,6 +367,149 @@ def overlay_strings(ov, hu_meta):
return out, errs
# ── The user guide (controller >= 0.315.0) ───────────────────────────────────────────────────────
#
# Sections and FAQ entries are matched BY INDEX on the box (metadata_i18n.go AppGuideOverlay), so the
# English must carry the SAME number of each, and each section the same number of steps (`steps`
# replaces whole). A longer English list is dropped past the Hungarian count on the box with one WARN;
# a shorter one shows Hungarian in an English page. Both are refused here, where they cost nothing.
# `checked_version` is the render gate and NOT copy: an overlay that carries it is refused — the box
# ignores it there, and a translator who believes they vouched for a version did not.
GUIDE_SECTION_KEYS = ("title", "intro", "steps")
GUIDE_FAQ_KEYS = ("q", "a")
# The media guides never name a download source (15-media-library.md §6: „Indexers stay the household's
# choice"). The list is the OBVIOUS names, folded and matched as words; the human rule is wider than it.
SOURCE_DENYLIST = [
"the pirate bay", "piratebay", "thepiratebay", "1337x", "rarbg", "yts", "yify", "eztv", "nyaa",
"torrentgalaxy", "limetorrents", "kickass", "kickasstorrents", "rutracker", "rutor", "ncore", "bithumen",
"iptorrents", "torrentleech", "torrentday", "filelist", "magnetdl", "torlock", "zooqle", "solidtorrents",
"bitsearch", "torrentz2", "nzbgeek", "nzbplanet", "drunkenslug", "nzbfinder", "dognzb", "nzb.su",
"ninjacentral", "nzbcat", "newshosting", "eweka", "easynews", "usenetserver", "frugalusenet",
]
def guide_shape(app, meta, fails):
"""The Hungarian guide's own shape. An empty `steps`, a section with no title, an FAQ entry with no
answer: each renders as an empty heading or a question nobody answers."""
ai = meta.get("app_info") or {}
g = ai.get("guide")
if g is None:
return
where = "%s: app_info.guide" % app
if not isinstance(g, dict):
fails.append("%s must be a mapping" % where)
return
for k in g:
if k not in ("checked_version", "sections", "faq"):
fails.append("%s.%s — unknown key (the controller reads checked_version, sections, faq)" % (where, k))
cv = g.get("checked_version")
if cv is not None and not isinstance(cv, str):
fails.append("%s.checked_version must be a QUOTED string (an image tag), got %s — YAML reads 1.10 as 1.1"
% (where, type(cv).__name__))
secs, faq = g.get("sections"), g.get("faq")
if secs is not None and not isinstance(secs, list):
fails.append("%s.sections must be a list" % where)
secs = []
if faq is not None and not isinstance(faq, list):
fails.append("%s.faq must be a list" % where)
faq = []
if not (secs or faq):
fails.append("%s has neither sections nor faq — the box would render nothing under a heading" % where)
for i, se in enumerate(secs or []):
sw = "%s.sections[%d]" % (where, i)
if not isinstance(se, dict):
fails.append("%s is not a mapping" % sw)
continue
for k in se:
if k not in GUIDE_SECTION_KEYS:
fails.append("%s.%s — unknown key" % (sw, k))
if not (isinstance(se.get("title"), str) and se.get("title").strip()):
fails.append("%s.title is missing or empty" % sw)
steps = se.get("steps")
if not isinstance(steps, list) or not steps:
fails.append("%s.steps is missing or empty" % sw)
continue
for j, st in enumerate(steps):
if not (isinstance(st, str) and st.strip()):
fails.append("%s.steps[%d] is not a non-empty string" % (sw, j))
for i, qa in enumerate(faq or []):
fw = "%s.faq[%d]" % (where, i)
if not isinstance(qa, dict):
fails.append("%s is not a mapping" % fw)
continue
for k in qa:
if k not in GUIDE_FAQ_KEYS:
fails.append("%s.%s — unknown key" % (fw, k))
for k in GUIDE_FAQ_KEYS:
if not (isinstance(qa.get(k), str) and qa.get(k).strip()):
fails.append("%s.%s is missing or empty" % (fw, k))
def guide_overlay(g, hu_g, scalar, errs):
"""One language's `app_info.guide` overlay: same counts as the Hungarian, matched by index."""
if not isinstance(g, dict):
errs.append("app_info.guide must be a mapping")
return
if not isinstance(hu_g, dict):
errs.append("app_info.guide is translated but the Hungarian has no guide — it would be INERT")
return
for k in g:
if k == "checked_version":
errs.append("app_info.guide.checked_version in the English block — it is the render gate, not copy; "
"a translator does not vouch for a version (10-localisation.md §7)")
elif k not in ("sections", "faq"):
errs.append("unknown key app_info.guide.%s — only sections and faq are translated" % k)
for lk, keys in (("sections", GUIDE_SECTION_KEYS), ("faq", GUIDE_FAQ_KEYS)):
lst = g.get(lk)
if lst is None:
continue
if not isinstance(lst, list):
errs.append("app_info.guide.%s must be a list" % lk)
continue
hu_lst = hu_g.get(lk) if isinstance(hu_g.get(lk), list) else []
if len(lst) != len(hu_lst):
errs.append("app_info.guide.%s has %d entries, Hungarian has %d — entries are matched BY INDEX, so "
"the counts and the running order must match" % (lk, len(lst), len(hu_lst)))
for i, e in enumerate(lst):
p = "app_info.guide.%s[%d]" % (lk, i)
if not isinstance(e, dict):
errs.append("%s is not a mapping" % p)
continue
for k in e:
if k not in keys:
errs.append("unknown key %s.%s" % (p, k))
for k in keys:
if k == "steps":
continue
scalar("%s.%s" % (p, k), e.get(k), "%s.%s" % (p, k))
if lk == "sections" and e.get("steps") is not None:
st = e.get("steps")
if not isinstance(st, list):
errs.append("%s.steps must be a list" % p)
continue
for j, v in enumerate(st):
scalar("%s.steps[%d]" % (p, j), v, "%s.steps[%d]" % (p, j))
hu_e = hu_lst[i] if i < len(hu_lst) and isinstance(hu_lst[i], dict) else {}
hu_n = len(hu_e.get("steps") or [])
if len(st) != hu_n:
errs.append("%s.steps has %d entries, Hungarian has %d — steps are replaced WHOLE"
% (p, len(st), hu_n))
def guide_sources(app, strings, fails):
"""No download source named in a guide, in either language (Scenario E)."""
for path, val in sorted(strings.items()):
if ".guide." not in path:
continue
f = fold(val)
for name in SOURCE_DENYLIST:
if re.search(r"(?<![a-z0-9])%s(?![a-z0-9])" % re.escape(name), f):
fails.append("%s: %s names a download source (%r) — indexers and trackers stay the household's "
"choice (15-media-library.md §6): %r" % (app, path, name, val))
# ── Loading ──────────────────────────────────────────────────────────────────────────────────────
def have_yaml():
@@ -642,6 +804,19 @@ def main(argv):
if path not in hu:
fails.append("%s: Hungarian string REMOVED at %s (%r)" % (app, path, frozen[path]))
# CHECK 1b (R-932, 2026-10-12) — no em dash in customer Hungarian. The house rule
# (felhom.eu skills/felhom-web-design §4) uses the spaced en dash as the gondolatjel, and most
# sentences want a colon or a full stop; 13 strings carried „—" into the app pages before this.
for path, val in sorted(hu.items()):
if "\u2014" in val:
fails.append("%s: em dash in customer Hungarian at %s = %r — use a colon, a full stop "
"or a spaced en dash (R-932)" % (app, path, val))
# CHECK 1c (2026-10-15) — the user guide's shape, and no download source named in it. Every app,
# whatever the scope: both are cheap, and a guide is copy the household reads first.
guide_shape(app, meta, fails)
guide_sources(app, hu, fails)
# CHECKS 2-4 — the English block.
i18n = meta.get("i18n") or {}
en_paths = set()
@@ -659,6 +834,7 @@ def main(argv):
vals, errs = overlay_strings(i18n[lang], meta)
for e in errs:
fails.append("%s: %s" % (app, e))
guide_sources("%s / i18n.%s" % (app, lang), vals, fails)
# COVERAGE IS COUNTED FOR EVERY APP, scope or not: the ratchet is a fact
# about the whole catalog, and a scoped run that counted only the named apps
# would report a number that depends on how the gate was invoked — a ratchet
+1
View File
@@ -44,6 +44,7 @@ REGISTRY = {
("bookstack", "APP_KEY"): "Laravel encrypt() on every member's two-factor secret (app/Access/Mfa/MfaValue.php)",
("dawarich", "SECRET_KEY_BASE"): "the template's own comment: stored data unreadable if it changes",
("papra", "AUTH_SECRET"): "the template's own comment: stored tokens invalid if it changes; keep the old key",
("securo", "SECRET_KEY"): "Fernet key derived from it encrypts the bank connections' credentials (crypto.py)",
("sparkyfitness", "BETTER_AUTH_SECRET"): "signs sessions AND encrypts 2FA/TOTP secrets (template comment)",
}
+226
View File
@@ -0,0 +1,226 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""check-db-credentials.py — every variable that feeds a database password must TRAVEL with the backup (R-1106).
WHAT WENT WRONG. A database engine reads POSTGRES_PASSWORD / MARIADB_ROOT_PASSWORD / … only when it initialises an
EMPTY data directory. A restore puts a data directory back, and only the password it was created with opens it.
Measured 2026-10-16 on demo-hp: Rallly and Grimmory removed, reinstalled (new generated passwords), restored from the
off-site copy — the data came back and neither app could open it. Controller v0.324.0 restores the BACKUP's database
password (operator decision 1A, `07` §7.4) and refuses a restore whose backup does not carry it. The backup carries a
value only when its deploy field is `type: secret` (D5: `type: password` fields are admin logins and never leave the
box). So a database password fed by a `type: password` field, or by a variable with no deploy field at all, could
never be restored — this gate refuses it at push time.
THE FACT, and the labels that are not it:
* The fact is a DATABASE service's (image: postgres / postgis / pgvector / timescaledb / mariadb / mysql — the
controller's own predicate, appbackup.dbTypeForImage) environment entry whose KEY is a credential
(`(POSTGRES|PG|MARIADB|MYSQL)_*PASSWORD`, the controller's appbackup.dbCredentialKeyRe) and whose VALUE references
a variable (${X}, ${X:-d}, $X). Each such X must be a `.felhom.yml` deploy field with `type: secret`.
* NOT the fact: the same reference in the APP service (it reads the password, it does not create the data
directory); a redis/valkey `*_PASSWORD` (not a database the backup dumps); a literal password (nothing to carry);
a mention in a COMMENT; files under `steps/` (a superseded step's own definition).
Mirrors controller `internal/appbackup.DBCredentialVars` (TestR1106_DBCredentialVarsAndVolumes).
stdlib only, a line reader (catalog CI has no PyYAML).
USAGE
python3 scripts/check-db-credentials.py # every template directory
python3 scripts/check-db-credentials.py rallly romm # only these
python3 scripts/check-db-credentials.py --root=<dir> # judge another checkout (the decoy suite)
Exit: 0 every DB password travels · 1 convicted · 2 inconclusive.
Decoys: scripts/test_gate_decoys.py `db_cred_cases` (COVERS "db-credentials").
"""
import io
import os
import re
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DB_IMAGE = ("postgres", "postgis", "pgvector", "timescaledb", "mariadb", "mysql")
CRED_KEY = re.compile(r"^(POSTGRES|PG|MARIADB|MYSQL)_[A-Z_]*PASSWORD$")
REF = re.compile(r"\$\{([A-Za-z_][A-Za-z0-9_]*)(?:[:]?[-?+][^}]*)?\}|\$([A-Za-z_][A-Za-z0-9_]*)")
def _strip_comment(line):
out, q = [], None
for i, ch in enumerate(line):
if q:
if ch == q:
q = None
elif ch in ("'", '"'):
q = ch
elif ch == "#" and (i == 0 or line[i - 1] in " \t"):
break
out.append(ch)
return "".join(out).rstrip()
def _unq(v):
v = v.strip()
if len(v) >= 2 and v[0] == v[-1] and v[0] in "'\"":
return v[1:-1]
return v
def compose_db_refs(text):
"""{db_service: [(KEY, var), ...]} for every credential key of a database service that references a variable."""
services = {} # name -> {"image": str, "env": [(k, v)]}
svc, svc_indent, in_env, env_indent = None, None, False, None
top = None
for raw in text.split("\n"):
line = _strip_comment(raw)
if not line.strip():
continue
indent = len(line) - len(line.lstrip(" "))
s = line.strip()
if indent == 0:
top = s.split(":", 1)[0]
svc, in_env = None, False
continue
if top != "services":
continue
if svc is None or indent <= svc_indent:
m = re.match(r"^([A-Za-z0-9_.\-]+):\s*$", s)
if m:
svc, svc_indent, in_env = m.group(1), indent, False
services[svc] = {"image": "", "env": []}
continue
if in_env and indent <= env_indent:
in_env = False
if in_env:
if s.startswith("- "):
item = _unq(s[2:])
if "=" in item:
k, v = item.split("=", 1)
services[svc]["env"].append((k.strip(), v))
else:
m = re.match(r"^([A-Za-z0-9_]+):\s*(.*)$", s)
if m:
services[svc]["env"].append((m.group(1), _unq(m.group(2))))
continue
m = re.match(r"^(image|environment):\s*(.*)$", s)
if m and indent > svc_indent:
if m.group(1) == "image":
services[svc]["image"] = _unq(m.group(2))
else:
in_env, env_indent = True, indent
out = {}
for name, sv in services.items():
if not any(k in sv["image"].lower() for k in DB_IMAGE):
continue
refs = []
for k, v in sv["env"]:
if not CRED_KEY.match(k):
continue
for a, b in REF.findall(v):
refs.append((k, a or b))
out[name] = refs
return out
def deploy_field_types(text):
"""{env_var: type} from `.felhom.yml` top-level `deploy_fields:` list items."""
fields, in_df, cur = {}, False, None
for raw in text.split("\n"):
line = _strip_comment(raw)
if not line.strip():
continue
indent = len(line) - len(line.lstrip(" "))
s = line.strip()
if indent == 0:
if cur and cur.get("env_var"):
fields[cur["env_var"]] = cur.get("type", "")
cur = None
in_df = s.startswith("deploy_fields:")
continue
if not in_df:
continue
if s.startswith("- "):
if cur and cur.get("env_var"):
fields[cur["env_var"]] = cur.get("type", "")
cur = {}
s = s[2:].strip()
m = re.match(r"^(env_var|type):\s*(.*)$", s)
if m and cur is not None:
cur[m.group(1)] = _unq(m.group(2))
if cur and cur.get("env_var"):
fields[cur["env_var"]] = cur.get("type", "")
return fields
def check_app(tdir, app):
d = os.path.join(tdir, app)
try:
compose = io.open(os.path.join(d, "docker-compose.yml"), encoding="utf-8").read()
meta = io.open(os.path.join(d, ".felhom.yml"), encoding="utf-8").read()
except (IOError, OSError) as e:
return 2, "%s: unreadable template (%s)" % (app, e), []
refs = compose_db_refs(compose)
types = deploy_field_types(meta)
bad, listed = [], []
for svc in sorted(refs):
for key, var in refs[svc]:
listed.append("%s:%s<-%s" % (svc, key, var))
t = types.get(var)
if t is None:
bad.append("%s %s=${%s}: no deploy field %s — a restore cannot carry it" % (svc, key, var, var))
elif t != "secret":
bad.append("%s %s=${%s}: field %s is type %r, not 'secret' — it never travels in the backup (D5)"
% (svc, key, var, var, t))
if bad:
return 1, "%s: %s" % (app, "; ".join(bad)), listed
return 0, app, listed
def main(argv):
root, apps, verbose = ROOT, [], False
for a in argv:
if a.startswith("--root="):
root = a.split("=", 1)[1]
elif a == "--all":
continue
elif a == "-v":
verbose = True
elif a.startswith("-"):
print("unknown option: %s" % a)
return 2
else:
apps.append(a)
tdir = os.path.join(root, "templates")
if not os.path.isdir(tdir):
print("db-credentials: no templates/ under %s" % root)
return 2
every = sorted(n for n in os.listdir(tdir) if os.path.isdir(os.path.join(tdir, n)))
unknown = [a for a in apps if a not in every]
if unknown:
print("db-credentials: no such template: %s" % ", ".join(unknown))
return 2
convicted, undecided, total = [], [], 0
for app in (apps or every):
v, msg, listed = check_app(tdir, app)
total += len(listed)
if verbose and listed:
print(" %s: %s" % (app, ", ".join(listed)))
if v == 1:
convicted.append(msg)
elif v == 2:
undecided.append(msg)
for m in convicted:
print("REFUSED: " + m)
for m in undecided:
print("INCONCLUSIVE: " + m)
n = len(apps or every)
if convicted:
print("db-credentials: %d of %d template(s) refused — make the variable a `type: secret` deploy field (R-1106)"
% (len(convicted), n))
return 1
if undecided:
print("db-credentials: INCONCLUSIVE on %d of %d template(s) — never a pass" % (len(undecided), n))
return 2
print("db-credentials gate OK: %d template(s), %d database password reference(s), each a `type: secret` field"
% (n, total))
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
+143
View File
@@ -0,0 +1,143 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""check-download-binds.py — a download client's download folder is never backed up (`excluded`).
python3 scripts/check-download-binds.py # every template under templates/
python3 scripts/check-download-binds.py --root DIR # another checkout (the decoy harness)
WHY (R-1019, 2026-10-20; felhom.eu `architecture/15-media-library.md` §7). A download folder is large and can be
fetched again. Declared `optional`, it is mirrored to the household's second drive every night (Tier 2 = mandatory +
optional) and can fill it with films; left UNLISTED, the controller classes a writable `${…_PATH}` bind MANDATORY and
it goes off-site too (`stacks/classify_binds.go`; measured 2026-10-14 for Transmission's watch folder). So every
download folder is declared `excluded`: no tier copies it (`appbackup.tierKeeps`).
WHAT IS A DOWNLOAD FOLDER — judged by the FACT, not by an app name: a `${USERDATA_PATH}/<folder>` bind of
templates/<app>/docker-compose.yml whose CONTAINER target is `/downloads` or `/watch` (or below them) — where every
download client of the catalog writes (qBittorrent, Transmission, NZBGet, SABnzbd on 2026-10-20). The same folder
bound a second time elsewhere (qBittorrent binds it at its own path too) is the same folder. Its class is read from
.felhom.yml `backup: userdata:` (`- path: <folder>` + `class:`); it must be `excluded`. NOT judged, on purpose:
steps/<key>.yml — a ladder step carries the compose only; the backup classes live in .felhom.yml alone.
STANDARD LIBRARY ONLY (the CI runner has no PyYAML); comments never count.
Exit 0 clean · 1 a download folder is optional, mandatory or unlisted · 3 nothing to judge.
"""
import io
import os
import re
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DOWNLOAD_TARGETS = ("/downloads", "/watch")
# R-1283 (operator D44 #25, 2026-10-25; felhom.eu `architecture/15-media-library.md` §7): a download folder the operator
# ruled worth a second-drive copy. It may be `optional` (Tier 2 copies it, off-site does not) — never mandatory and never
# unlisted. Only by a ruling named here; every other download client stays `excluded`.
OPTIONAL_BY_RULING = {
"metube": "a MeTube video may be gone from its source site, so it cannot be fetched again (D44 #25, R-1283)",
}
BIND = re.compile(r"""^\s*-\s*["']?\$\{USERDATA_PATH\}/([^:"'\s]+):([^:"'\s]+)""")
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 is_download_target(target):
t = target.rstrip("/")
return any(t == d or t.startswith(d + "/") for d in DOWNLOAD_TARGETS)
def download_folders(compose):
"""The userdata folders a compose binds at a download target (sorted, de-duplicated)."""
out = set()
with io.open(compose, encoding="utf-8") as f:
for raw in f:
m = BIND.match(strip_comment(raw.rstrip("\n")))
if m and is_download_target(m.group(2)):
out.add(m.group(1).rstrip("/"))
return sorted(out)
def userdata_classes(felhom):
"""{path: class} from .felhom.yml `backup:` → `userdata:` — a line reader for the catalog's own shape."""
out, in_backup, in_userdata, cur = {}, False, False, None
if not os.path.exists(felhom):
return out
with io.open(felhom, 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_backup, in_userdata, cur = line.startswith("backup:"), False, None
continue
if not in_backup:
continue
if ind == 2:
in_userdata, cur = line.strip() == "userdata:", None
continue
if not in_userdata:
continue
m = re.match(r"^\s*-\s*path:\s*['\"]?([^'\"]+?)['\"]?\s*$", line)
if m:
cur = m.group(1).strip().rstrip("/")
out[cur] = ""
continue
m = re.match(r"^\s*class:\s*['\"]?([A-Za-z]+)['\"]?\s*$", line)
if m and cur is not None:
out[cur] = m.group(1)
return out
def main(argv):
root = ROOT
for a in argv:
if a.startswith("--root="):
root = a.split("=", 1)[1]
tdir = os.path.join(root, "templates")
if not os.path.isdir(tdir):
print("download-binds: nothing to judge — no templates/ under %s" % root)
return 3
judged, bad = [], []
for app in sorted(os.listdir(tdir)):
compose = os.path.join(tdir, app, "docker-compose.yml")
if not os.path.isfile(compose):
continue
folders = download_folders(compose)
if not folders:
continue
classes = userdata_classes(os.path.join(tdir, app, ".felhom.yml"))
for folder in folders:
cls = classes.get(folder)
judged.append("%s:%s=%s" % (app, folder, cls or "UNLISTED"))
if cls == "optional" and app in OPTIONAL_BY_RULING:
continue # the ruling's one allowed class besides excluded (R-1283)
if cls != "excluded":
why = ("UNLISTED in backup.userdata — the controller classes it MANDATORY (every tier, off-site included)"
if cls is None else "declared `%s` — %s" % (cls, "a nightly copy on the second drive" if cls == "optional" else "copied by the backup"))
bad.append("templates/%s: the download folder %s is %s; declare it `class: excluded` (R-1019)" % (app, folder, why))
if not judged:
print("download-binds: nothing to judge — no template binds a folder at %s" % " or ".join(DOWNLOAD_TARGETS))
return 3
if bad:
print("download-binds gate FAILED (%d of %d download folder(s)):" % (len(bad), len(judged)))
for b in bad:
print(" " + b)
return 1
print("download-binds gate OK — %d download folder(s), every one `excluded` or `optional` by a named ruling (%s): %s"
% (len(judged), ", ".join(sorted(OPTIONAL_BY_RULING)), ", ".join(judged)))
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
+13
View File
@@ -19,6 +19,10 @@ refused here:
Also refused: `family_gate_except:` on a template without `family_gate: true` (an exception list with no gate is a label
without the fact).
4. an app the OPERATOR RULED family-gated (REQUIRED below) whose template does not say `family_gate: true` — the
ruling is the fact; a dropped or commented-out key would publish the app to strangers on every NEW install
(R-782: Glance, decision 221). A template directory that is absent is not refused (nothing is offered).
Line-based on purpose: the catalog's CI has NO PyYAML. Only TOP-LEVEL, uncommented keys count; a key inside a comment, a
README or a tagline is not the field.
@@ -39,6 +43,12 @@ ITEM = re.compile(r'^\s+-\s*(?:"([^"]*)"|\'([^\']*)\'|(\S+))\s*(#.*)?$')
GOLDEN_DIR = re.compile(r"^golden-(\d+)\.(\d+)\.(\d+)-\d{4}-\d{2}-\d{2}$")
GOLDEN_SHA = re.compile(r"GOLDEN_SHA256=[0-9a-f]{64}")
BAKE_LOGS = ("bake.log", "06-bake.log", "bake-clean.log", "06-bake-clean.log")
# Rule 4: the apps the operator ruled family-gated, each with its ruling. Adding an app here is a ruling, not a guess.
REQUIRED = {
"metube": "`09` §3 decisions 63/64 (no login of its own)",
"grimmory": "`09` §3 decisions 63/64 (its 15-minute lock, R-775)",
"glance": "`09` §3 decision 221 (R-782, no login of its own)",
}
def arg(name, default):
@@ -108,6 +118,9 @@ def main():
if not os.path.isfile(fy):
continue
gate, excepts, minc = parse(io.open(fy, encoding="utf-8").read())
if app in REQUIRED and not gate:
fails.append("%s: ruled family-gated by %s, but the template has no top-level `family_gate: true` — "
"every new install would be public" % (app, REQUIRED[app]))
if excepts is not None and not gate:
fails.append("%s: family_gate_except without family_gate: true — an exception list with no gate" % app)
if not gate:
+156
View File
@@ -0,0 +1,156 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""check-guide-version.py — ADVISORY: is each user guide still checked against the image the app runs?
python3 scripts/check-guide-version.py # every app
python3 scripts/check-guide-version.py sonarr plex # named apps only
python3 scripts/check-guide-version.py --root DIR # another checkout (the decoy harness)
`app_info.guide.checked_version` names the image tag the guide's author checked every label against
(controller >= 0.315.0 renders a guide only when it is set — `02-controller-module-map.md`, „The catalog's
user guide"). When the app's image moves, the guide may describe a screen that changed. This gate says so,
naming the app and both versions.
IT NEVER FAILS A PUSH (exit 0 always). An image move is decided by its test record (`check-test-record*.py`);
a guide that may be stale is a reason to re-read it, not a reason to hold back a security fix. Refusing here
would make every Renovate-style bump wait on prose, and a gate that blocks the wrong thing gets bypassed.
Which tag is „the app's": the compose service named like the template directory (or whose container_name
is), else — when no service is — every service's tag. A sidecar sharing the checked tag by coincidence
is the cost of that fallback; it is stated rather than hidden.
STANDARD LIBRARY ONLY: the CI runner has python3 and git and nothing else (the copy gate's first six pushes
turned CI red by importing yaml). The two values are read by indentation from files whose shape the other
gates already hold: `checked_version:` at four spaces under ` guide:` under top-level `app_info:` — so the
English block (six spaces and deeper) and a comment are never read as the fact.
"""
import io
import os
import re
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
def strip_comment(line):
# A `#` starts a comment only outside quotes; the values read here never contain one.
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 unquote(v):
v = v.strip()
if len(v) >= 2 and v[0] == v[-1] and v[0] in "'\"":
return v[1:-1]
return v
def checked_version(felhom_yml):
"""(present, value) — present is False when the template carries no guide block at all."""
state = None # None → in app_info → in guide
present, value = False, None
for raw in io.open(felhom_yml, encoding="utf-8").read().split("\n"):
line = strip_comment(raw)
if not line.strip():
continue
ind = len(line) - len(line.lstrip(" "))
if ind == 0:
state = "app_info" if line.strip() == "app_info:" else None
continue
if state == "app_info" and ind == 2:
state = "guide" if line.strip() == "guide:" else "app_info"
if state == "guide":
present = True
continue
if state == "guide":
if ind <= 2:
state = "app_info"
continue
m = re.match(r"^ checked_version:\s*(.*)$", line)
if m:
value = unquote(m.group(1))
return present, value
def image_tags(compose, slug):
"""{service: tag} for every image: line, and the services that are „the app" by name."""
tags, cname, svc, in_services = {}, {}, None, False
for raw in io.open(compose, encoding="utf-8").read().split("\n"):
line = strip_comment(raw)
if not line.strip():
continue
ind = len(line) - len(line.lstrip(" "))
if ind == 0:
in_services = line.strip() == "services:"
svc = None
continue
if not in_services:
continue
if ind == 2 and line.strip().endswith(":"):
svc = line.strip()[:-1]
continue
if svc and ind == 4:
m = re.match(r"^\s+image:\s*(\S+)", line)
if m:
ref = unquote(m.group(1)).split("@")[0]
last = ref.rsplit("/", 1)[-1]
tags[svc] = last.split(":", 1)[1] if ":" in last else ""
m = re.match(r"^\s+container_name:\s*(\S+)", line)
if m:
cname[svc] = unquote(m.group(1))
main = [s for s in tags if s == slug or cname.get(s) == slug]
return tags, main
def main(argv):
global ROOT
if "--root" in argv:
ROOT = os.path.abspath(argv[argv.index("--root") + 1])
skip = {argv.index("--root") + 1} if "--root" in argv else set()
scope = [a for i, a in enumerate(argv) if i >= 1 and not a.startswith("-") and i not in skip]
tdir = os.path.join(ROOT, "templates")
apps = sorted(d for d in os.listdir(tdir) if os.path.exists(os.path.join(tdir, d, ".felhom.yml")))
if scope:
apps = [a for a in apps if a in scope]
shown, hidden, stale, none = [], [], [], 0
for app in apps:
present, cv = checked_version(os.path.join(tdir, app, ".felhom.yml"))
if not present:
none += 1
continue
if not cv:
hidden.append(app)
continue
compose = os.path.join(tdir, app, "docker-compose.yml")
if not os.path.exists(compose):
print("WARN %s: guide checked against %s, but the template has no docker-compose.yml to compare" % (app, cv))
stale.append(app)
continue
tags, main_svcs = image_tags(compose, app)
cands = [tags[s] for s in main_svcs] or list(tags.values())
if cv in cands:
shown.append(app)
continue
stale.append(app)
now = ", ".join("%s=%s" % (s, tags[s]) for s in (main_svcs or sorted(tags)))
print("WARN %s: the guide was checked against %s, the image is now %s — re-check the guide's labels "
"and set checked_version again (the box still shows it)" % (app, cv, now or "(no image line)"))
print("guide-version: %d app(s) · %d guide(s) current · %d may be STALE · %d hidden (checked_version empty) · "
"%d without a guide" % (len(apps), len(shown), len(stale), len(hidden), none))
if hidden:
print("guide-version: hidden — %s" % ", ".join(hidden))
print("guide-version: advisory — never fails a push")
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv))
+139
View File
@@ -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:]))
+98
View File
@@ -0,0 +1,98 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""check-login-kind.py — `app_info.login_kind` is one of the three values the controller knows.
python3 scripts/check-login-kind.py # every app
python3 scripts/check-login-kind.py --root DIR # another checkout (the decoy harness)
`app_info.login_kind` (controller >= 0.320.0, `02-controller-module-map.md` „The app page") tells the app page how
the household signs in when the box holds no login: `first_visit` (the default — leave the key out), `email` (the app
mails a sign-in link) or `none` (no sign-in). It is an ENUM, not copy: the sentence is the controller's, so the key
never appears in the English `i18n:` block (copy-i18n refuses it there as an unknown app_info key).
A value the controller does not know reads as `first_visit` there — safe, but the author meant something else. This
gate refuses it, so the typo is found at push time instead of on a box.
STANDARD LIBRARY ONLY (the CI runner has no PyYAML). The value is read by indentation: `login_kind:` at two spaces
directly under the top-level `app_info:` — a comment, the English block (six spaces) and any other mapping are never
read as the fact.
"""
import io
import os
import re
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
KNOWN = ("first_visit", "email", "none")
KEY = re.compile(r"^ login_kind:\s*(.*)$")
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 login_kinds(path):
"""Every `login_kind:` value directly under top-level app_info (normally zero or one)."""
vals, in_ai = [], 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
if not line.startswith(" "):
in_ai = line.startswith("app_info:")
continue
if in_ai:
m = KEY.match(line)
if m:
v = m.group(1).strip()
if len(v) >= 2 and v[0] == v[-1] and v[0] in "'\"":
v = v[1:-1]
vals.append(v)
return vals
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-login-kind: no templates/ under %s — nothing to judge (a failure, never a pass)" % root)
return 3
bad, seen = [], 0
for app in sorted(os.listdir(tdir)):
p = os.path.join(tdir, app, ".felhom.yml")
if not os.path.isfile(p):
continue
vals = login_kinds(p)
seen += len(vals)
if len(vals) > 1:
bad.append("%s: app_info.login_kind appears %d times" % (app, len(vals)))
for v in vals:
if v not in KNOWN:
bad.append("%s: app_info.login_kind %r is not one of %s" % (app, v, ", ".join(KNOWN)))
if bad:
print("check-login-kind: %d FAILURE(S)" % len(bad))
for b in bad:
print(" - " + b)
return 1
print("check-login-kind gate OK — %d login_kind key(s), each one of %s" % (seen, ", ".join(KNOWN)))
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
+10
View File
@@ -38,6 +38,16 @@ import os
import re
import sys
# A gate's own console must not decide its verdict. The checklist titles this gate quotes back carry
# non-ASCII characters (an arrow in 3.2/3.3, accented Hungarian), and a Windows console here defaults
# to cp1250: on 2026-10-10 this gate hit UnicodeEncodeError while printing WHICH ids were still open,
# so an informative exit 1 arrived as a traceback. Same trap class as poster_facts_gate.py's.
for _stream in (sys.stdout, sys.stderr):
try:
_stream.reconfigure(encoding="utf-8", errors="replace")
except (AttributeError, ValueError, OSError): # pragma: no cover - old Python, or a pipe
pass
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
CATALOG_PREFIX = "app-catalog-felhom.eu/"
CUTOFF = "2026-10-01"
+596
View File
@@ -0,0 +1,596 @@
#!/usr/bin/env python3
# -*- 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/<app>/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
about 15 minutes. Since controller v0.328.0 the BOX refuses, before it writes any app compose, every setting in the
classes below unless that app's service has exactly that setting on the allow-list compiled into the controller
(felhom-controller `internal/privpolicy`). THE BOX IS THE AUTHORITY; this gate is the early warning, so a bad template
fails here before it is pushed instead of being refused on every box and alarming the operator.
THE CLASSES (the same setting strings as the controller's — a mismatch makes this gate and the box disagree):
privileged, cap_add, device, device_cgroup_rule, network_mode, pid, ipc, uts, userns_mode, cgroup, cgroup_parent,
runtime, isolation, security_opt (except no-new-privileges), sysctl, volumes_from, gpus, device_request (deploy
reservations), provider, post_start / pre_stop, build, extends_file, env_file outside the stack dir, bind (a host path
outside ${HDD_PATH}/appdata/<the app's own folder> / ${USERDATA_PATH} / ${IMPORT_PATH}, the Docker socket anywhere,
mount propagation; the folder is the app's name unless the list's appdata_folders names it — R-1142), volume
(driver / driver_opts / external / name), config_file / secret_file outside the stack dir, include, and
`interpolated <key>` for a ${VAR} inside any of the privileged keys. An allowed setting holds only while its service
runs the entry's image repository with the image's own entrypoint and command.
THE LIST: scripts/privilege-allowlist.json, a BYTE-IDENTICAL copy of the controller's
internal/privpolicy/allowlist.json (pinned there by TestAllowList_CatalogCopyIsIdentical, and here by this gate when the
sibling clone is present). Why a copy and not a fetch: a fetch needs the network in CI and a pinned commit to be
reproducible; two identical files and one equality check is the boring version, and either side's test catches drift.
STANDARD LIBRARY ONLY (the CI runner has no PyYAML): a small reader for the subset compose files use here (block maps
and lists, flow lists and maps, quoted and plain scalars, block scalars, comments). The decoy suite checks it against
PyYAML on every catalog file where PyYAML exists.
Exit 0 clean · 1 a template asks for a right not on the list · 3 nothing to judge.
"""
import io
import json
import os
import re
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ALLOWLIST = os.path.join("scripts", "privilege-allowlist.json")
CONTROLLER_COPY = os.path.join("..", "felhom-controller", "controller", "internal", "privpolicy", "allowlist.json")
PLACEHOLDER_ENV = {
"HDD_PATH": "/mnt/felhom-drives/check/felhom-data",
"USERDATA_PATH": "/mnt/felhom-drives/check/felhom-data/userdata",
"IMPORT_PATH": "/mnt/felhom-drives/check/felhom-data/userdata/import",
"DOMAIN": "example.invalid",
"SUBDOMAIN": "check",
}
ROOT_VARS = ("HDD_PATH", "USERDATA_PATH", "IMPORT_PATH")
SCALAR_KEYS = ("network_mode", "pid", "ipc", "uts", "userns_mode", "cgroup", "cgroup_parent", "runtime", "isolation")
PRIVILEGED_KEYS = ("privileged", "cap_add", "devices", "device_cgroup_rules", "network_mode", "pid", "ipc", "uts",
"userns_mode", "cgroup", "cgroup_parent", "runtime", "isolation", "security_opt", "sysctls",
"volumes_from", "gpus", "provider", "post_start", "pre_stop")
DRIVE_NAMESPACE = "/mnt/felhom-drives/"
# ---------- a small YAML reader for compose files ----------
class YamlError(Exception):
pass
def _strip_comment(line):
out, q = [], None
for i, c in enumerate(line):
if q:
out.append(c)
if c == q:
q = None
continue
if c in "'\"" and (i == 0 or line[i - 1] in " \t[{,:-"):
q = c
elif c == "#" and (i == 0 or line[i - 1] in " \t"):
break
out.append(c)
return "".join(out).rstrip()
def _split_flow(s):
items, depth, cur, q = [], 0, [], None
for c in s:
if q:
cur.append(c)
if c == q:
q = None
continue
if c in "'\"":
q = c
elif c in "[{":
depth += 1
elif c in "]}":
depth -= 1
elif c == "," and depth == 0:
items.append("".join(cur).strip())
cur = []
continue
cur.append(c)
if "".join(cur).strip():
items.append("".join(cur).strip())
return items
def _key_split(s):
"""'key: value' -> (key, value) | None — a colon followed by a space or the end, outside quotes."""
q = None
for i, c in enumerate(s):
if q:
if c == q:
q = None
continue
if c in "'\"":
q = c
elif c == ":" and (i + 1 == len(s) or s[i + 1] == " "):
return _scalar(s[:i].strip()), s[i + 1:].strip()
elif c in "[{" and i == 0:
return None
return None
def _scalar(s):
s = s.strip()
if s.startswith("[") and s.endswith("]"):
return [_scalar(x) for x in _split_flow(s[1:-1])]
if s.startswith("{") and s.endswith("}"):
m = {}
for it in _split_flow(s[1:-1]):
kv = _key_split(it)
if kv:
m[kv[0]] = _scalar(kv[1]) if kv[1] != "" else None
return m
if len(s) >= 2 and s[0] == s[-1] and s[0] in "'\"":
body = s[1:-1]
return body.replace("''", "'") if s[0] == "'" else body.replace('\\"', '"').replace("\\\\", "\\")
if s in ("true", "True", "TRUE"):
return True
if s in ("false", "False", "FALSE"):
return False
if s in ("", "~", "null", "Null", "NULL"):
return None
if re.fullmatch(r"-?[0-9]+", s):
return int(s)
return s
ANCHOR = re.compile(r"(^|[\s\[{,:-])[&*][A-Za-z0-9_-]+|<<\s*:")
def load(text):
for n, line in enumerate(text.split("\n"), 1):
c = _strip_comment(line)
if ANCHOR.search(c):
# the box's YAML library expands anchors and merge keys; this reader does not — refuse rather than judge a
# different document than the box will (a merge can carry an allowed right into another service)
raise YamlError("YAML anchor, alias or merge key at line %d (not used by the catalog; refused)" % n)
raw = text.split("\n")
lines = [] # (indent, content, rawline)
i = 0
while i < len(raw):
r = raw[i]
if not r.strip() or r.lstrip().startswith("#"):
i += 1
continue
c = _strip_comment(r)
if not c.strip():
i += 1
continue
lines.append((len(c) - len(c.lstrip(" ")), c.strip(), i))
i += 1
pos = [0]
def block_scalar(start_line, parent_indent):
# the lines after `key: |` that are indented deeper than the parent
out = []
j = start_line + 1
while j < len(raw):
r = raw[j]
if r.strip() and (len(r) - len(r.lstrip(" "))) <= parent_indent:
break
out.append(r.strip())
j += 1
# skip the consumed lines in `lines`
while pos[0] < len(lines) and lines[pos[0]][2] < j:
pos[0] += 1
return " ".join(x for x in out if x)
def parse(indent):
if pos[0] >= len(lines):
return None
ind, content, _ = lines[pos[0]]
if content.startswith("- ") or content == "-":
return parse_seq(ind)
return parse_map(ind)
def value_after(ind, rest, lineno):
if rest in ("|", "|-", "|+", ">", ">-", ">+"):
return block_scalar(lineno, ind)
if rest == "":
if pos[0] < len(lines) and (lines[pos[0]][0] > ind or
(lines[pos[0]][0] == ind and lines[pos[0]][1].startswith("- "))):
return parse(lines[pos[0]][0])
return None
return _scalar(rest)
def parse_map(ind):
m = {}
while pos[0] < len(lines):
li, content, lineno = lines[pos[0]]
if li < ind:
break
if li > ind:
raise YamlError("unexpected indent at line %d" % (lineno + 1))
if content.startswith("- "):
break
kv = _key_split(content)
if not kv:
raise YamlError("not a key at line %d" % (lineno + 1))
pos[0] += 1
m[kv[0]] = value_after(ind, kv[1], lineno)
return m
def parse_seq(ind):
seq = []
while pos[0] < len(lines):
li, content, lineno = lines[pos[0]]
if li < ind or not (content.startswith("- ") or content == "-"):
break
if li > ind:
raise YamlError("unexpected indent at line %d" % (lineno + 1))
item = content[2:].strip() if content != "-" else ""
pos[0] += 1
kv = _key_split(item) if item and item[0] not in "[{\"'" else None
if kv:
# a mapping item: `- key: value` and its siblings, indented by the dash's width
sub_ind = ind + 2
first = {kv[0]: value_after(sub_ind, kv[1], lineno)}
while pos[0] < len(lines) and lines[pos[0]][0] == sub_ind and not lines[pos[0]][1].startswith("- "):
c2 = lines[pos[0]][1]
kv2 = _key_split(c2)
if not kv2:
raise YamlError("not a key at line %d" % (lines[pos[0]][2] + 1))
ln2 = lines[pos[0]][2]
pos[0] += 1
first[kv2[0]] = value_after(sub_ind, kv2[1], ln2)
seq.append(first)
elif item in ("|", "|-", "|+", ">", ">-", ">+"):
seq.append(block_scalar(lineno, ind))
elif item == "":
seq.append(parse(lines[pos[0]][0]) if pos[0] < len(lines) and lines[pos[0]][0] > ind else None)
else:
seq.append(_scalar(item))
return seq
doc = parse(0)
if pos[0] != len(lines):
raise YamlError("trailing content at line %d" % (lines[pos[0]][2] + 1))
return doc if isinstance(doc, dict) else {}
# ---------- the check (the controller's privpolicy, line for line) ----------
INTERP = re.compile(r"\$\$|\$\{([A-Za-z_][A-Za-z0-9_]*)(?:(:?[-?+])([^}]*))?\}|\$([A-Za-z_][A-Za-z0-9_]*)")
def render(v, env):
if v is None:
return ""
if isinstance(v, bool):
return "true" if v else "false"
if not isinstance(v, str):
return str(v)
def sub(m):
if m.group(0) == "$$":
return "$"
name, op, arg = m.group(1) or m.group(4), m.group(2), m.group(3) or ""
val, is_set = env.get(name, ""), name in env
if op == ":-" and val == "":
return arg
if op == "-" and not is_set:
return arg
if op == ":+":
return arg if val != "" else ""
if op == "+":
return arg if is_set else ""
return val
return INTERP.sub(sub, v)
def has_interp(v):
if isinstance(v, str):
return "$" in v.replace("$$", "")
if isinstance(v, dict):
return any(has_interp(k) or has_interp(x) for k, x in v.items())
if isinstance(v, list):
return any(has_interp(x) for x in v)
return False
def as_list(v):
if v is None:
return []
return v if isinstance(v, list) else [v]
def canon(v, env):
if isinstance(v, (dict, list)):
def tree(x):
if isinstance(x, dict):
return {k: tree(y) for k, y in x.items()}
if isinstance(x, list):
return [tree(y) for y in x]
return render(x, env) if isinstance(x, str) else x
return json.dumps(tree(v), sort_keys=True, separators=(",", ":"))
return render(v, env)
def shown(v, env):
return str(v) if has_interp(v) else render(v, env)
def truthy(s):
return s.strip().lower() in ("true", "yes", "on", "1")
def within(p, root):
return p == root or p.startswith(root + "/")
def has_dotdot(p):
return ".." in p.split("/")
def inside_stack(p):
return p != "" and not p.startswith("/") and not p.startswith("~") and not has_dotdot(p)
def root_led(raw):
if "$" not in raw.replace("$$", ""):
return True
for r in ROOT_VARS:
for form in ("${%s}" % r, "$" + r):
if raw.startswith(form):
rest = raw[len(form):]
if (rest == "" or rest.startswith("/")) and "$" not in rest.replace("$$", ""):
return True
return False
def one_segment(s):
return s not in ("", ".", "..") and not any(ch in s for ch in "/\\$")
def appdata_folder(app, folders):
"""The app's own folder under ${HDD_PATH}/appdata/ (R-1142) — as the box's privpolicy.AppdataFolder."""
if app in folders:
return folders[app]
# a folder the list gives to ANOTHER app is not this app's, even when it is named like it (security review
# 2026-10-18: a template called "paperless" must not get paperless-ngx's files)
if not one_segment(app) or app in folders.values():
return ""
return app
def valid_roots(env, app="", folders=None):
out = []
for r in ROOT_VARS:
v = env.get(r, "")
if v and v.startswith("/") and os.path.normpath(v) == v and v != "/" and not has_dotdot(v) and v.startswith(DRIVE_NAMESPACE):
if r == "HDD_PATH":
# as the box: under HDD_PATH only appdata/ is a root (backups/ holds the recovery units with app
# secrets), and in it only the app's OWN folder (R-1142) — appdata/<other app>/ is another app's files
f = appdata_folder(app, folders or {})
if not f:
continue
v = v + "/appdata/" + f
out.append(v)
return out
def violations(doc, env, app="", folders=None):
out = []
roots = valid_roots(env, app, folders)
def add(svc, setting):
out.append((svc, setting))
if "include" in doc:
add("", "include")
for n, d in sorted((doc.get("volumes") or {}).items()):
d = d if isinstance(d, dict) else {}
for k in ("driver", "driver_opts", "external", "name"):
if k in d and not (k == "driver" and render(d[k], env) == "local"):
add("", "volume %s %s %s" % (n, k, canon(d[k], env)))
for top in ("configs", "secrets"):
for n, d in sorted((doc.get(top) or {}).items()):
d = d if isinstance(d, dict) else {}
if "file" in d and not inside_stack(render(d["file"], env)):
add("", "%s_file %s %s" % (top[:-1], n, shown(d["file"], env)))
for name, sd in sorted((doc.get("services") or {}).items()):
sd = dict(sd or {})
for k in PRIVILEGED_KEYS:
if k in sd and has_interp(sd[k]):
add(name, "interpolated " + k)
del sd[k]
if "privileged" in sd and truthy(render(sd["privileged"], env)):
add(name, "privileged true")
for v in as_list(sd.get("cap_add")):
c = render(v, env).upper()
add(name, "cap_add " + (c[4:] if c.startswith("CAP_") else c))
for v in as_list(sd.get("devices")):
add(name, "device " + canon(v, env))
for v in as_list(sd.get("device_cgroup_rules")):
add(name, "device_cgroup_rule " + render(v, env))
for k in SCALAR_KEYS:
if k in sd:
add(name, "%s %s" % (k, render(sd[k], env)))
for v in as_list(sd.get("security_opt")):
s = render(v, env)
if s.replace("=", ":").replace(" ", "") in ("no-new-privileges", "no-new-privileges:true"):
continue
add(name, "security_opt " + s)
sy = sd.get("sysctls")
if isinstance(sy, dict):
for k in sorted(sy):
add(name, "sysctl %s=%s" % (k, render(sy[k], env)))
elif isinstance(sy, list):
for v in sy:
add(name, "sysctl " + render(v, env))
for v in as_list(sd.get("volumes_from")):
add(name, "volumes_from " + render(v, env))
if "build" in sd:
add(name, "build")
if "gpus" in sd:
add(name, "gpus " + canon(sd["gpus"], env))
res = ((sd.get("deploy") or {}).get("resources") or {}) if isinstance(sd.get("deploy"), dict) else {}
rv = res.get("reservations") if isinstance(res, dict) else None
if isinstance(rv, dict) and "devices" in rv:
add(name, "device_request " + canon(rv["devices"], env))
if "provider" in sd:
add(name, "provider " + canon(sd["provider"], env))
for hook in ("post_start", "pre_stop"):
if hook in sd:
add(name, hook + " " + canon(sd[hook], env))
ex = sd.get("extends")
if isinstance(ex, dict):
if "file" in ex:
add(name, "extends_file " + shown(ex["file"], env))
else:
add(name, "extends " + shown(ex.get("service"), env))
elif isinstance(ex, str):
add(name, "extends " + shown(ex, env))
for v in as_list(sd.get("env_file")):
raw = v.get("path") if isinstance(v, dict) else v
if not inside_stack(render(raw, env)):
add(name, "env_file " + shown(raw, env))
for v in as_list(sd.get("volumes")):
vol = volume(v, env, roots)
if vol:
add(name, vol)
return sorted(out)
def volume(v, env, roots):
prop = ""
if isinstance(v, str):
parts = v.split(":")
if len(parts) < 2:
return None
raw_src = parts[0]
if raw_src.startswith(("/", ".", "~", "$")) and (not root_led(parts[1]) or (len(parts) > 2 and has_interp(":".join(parts[2:])))):
return "bind " + v + " with a variable in its target or options"
src, dst, mode = render(parts[0], env), render(parts[1], env), "rw"
if len(parts) > 2:
for o in parts[2].split(","):
if o == "ro":
mode = "ro"
elif o in ("shared", "rshared", "slave", "rslave"):
prop = o
if not src.startswith(("/", ".", "~", "$")) and not raw_src.startswith(("/", ".", "~", "$")):
return None
elif isinstance(v, dict):
typ = render(v.get("type"), env)
raw_src = str(v.get("source"))
src, dst, mode = render(v.get("source"), env), render(v.get("target"), env), "rw"
if truthy(render(v.get("read_only"), env)):
mode = "ro"
b = v.get("bind")
if isinstance(b, dict) and render(b.get("propagation"), env) in ("shared", "rshared", "slave", "rslave"):
prop = render(b.get("propagation"), env)
if typ in ("volume", "tmpfs", "image"):
return None
if typ != "bind":
return "volume type " + typ
else:
return None
show = src if root_led(raw_src) else raw_src
setting = "bind %s -> %s %s" % (show, dst, mode)
if prop:
setting += " " + prop
socket = src.endswith(".sock") or "docker.sock" in src
under = src.startswith("/") and not has_dotdot(src) and any(within(os.path.normpath(src), r) for r in roots)
if not root_led(raw_src) or prop or socket or not under:
return setting
return None
def image_repo(ref):
ref = ref.strip().split("@", 1)[0]
i = ref.rfind(":")
return ref[:i] if i > ref.rfind("/") else ref
def judge_files(root):
tdir = os.path.join(root, "templates")
files = []
for d, _, fs in os.walk(tdir):
for f in sorted(fs):
p = os.path.join(d, f)
# a step's own `.felhom.yml` copy (steps/<key>.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)
def main(argv):
root = ROOT
for a in argv:
if a.startswith("--root="):
root = a.split("=", 1)[1]
with io.open(os.path.join(root, ALLOWLIST), encoding="utf-8") as f:
raw_list = f.read()
the_list = json.loads(raw_list)
allowed = {(e["app"], e["service"], e["setting"]): e for e in the_list["entries"]}
folders = the_list.get("appdata_folders") or {}
for a, f in folders.items():
if not one_segment(f):
print("FAIL: %s: the appdata folder of %s is not one folder name: %r" % (ALLOWLIST, a, f))
return 1
if len(set(folders.values())) != len(folders):
print("FAIL: %s: one appdata folder is given to two apps" % ALLOWLIST)
return 1
sibling = os.path.join(root, CONTROLLER_COPY)
if os.path.exists(sibling):
with io.open(sibling, encoding="utf-8") as f:
if f.read() != raw_list:
print("FAIL: %s differs from the controller's %s — change both in the same session" % (ALLOWLIST, CONTROLLER_COPY))
return 1
print("allow-list copy: byte-identical to the controller's")
else:
print("allow-list copy: no sibling felhom-controller clone — equality checked by the controller's own test")
tdir, files = judge_files(root)
if not files:
print("check-privileges: nothing to judge under %s" % tdir)
return 3
bad = []
for p in files:
rel = os.path.relpath(p, tdir)
app = rel.split(os.sep)[0]
try:
with io.open(p, encoding="utf-8") as f:
doc = load(f.read())
except (YamlError, UnicodeDecodeError) as e:
bad.append("%s: cannot be read (%s) — the box refuses a definition it cannot check" % (rel, e))
continue
for svc, setting in violations(doc, PLACEHOLDER_ENV, app, folders):
where = "%s: %s%s" % (rel, (svc + ": ") if svc else "", setting)
if (app, svc, setting) not in allowed:
bad.append(where + " — not on the allow-list (scripts/privilege-allowlist.json)")
continue
# the entry holds only for its image repository and the image's own start (security review 2026-10-17)
sd = (doc.get("services") or {}).get(svc) or {}
e = allowed[(app, svc, setting)]
hc = sd.get("healthcheck") if isinstance(sd.get("healthcheck"), dict) else {}
test = json.dumps(hc["test"], separators=(",", ":")) if "test" in hc else ""
if has_interp(sd.get("image")):
bad.append(where + " — allowed only with a literal image (no variable)")
elif image_repo(render(sd.get("image"), PLACEHOLDER_ENV)) != e["image"]:
bad.append(where + " — allowed only for image " + e["image"])
elif "entrypoint" in sd or "command" in sd:
bad.append(where + " — allowed only with the image's own entrypoint and command")
elif test != e.get("healthcheck", ""):
bad.append(where + " — allowed only with the healthcheck the list names")
for b in bad:
print("REFUSED " + b)
if bad:
print("check-privileges: %d setting(s) the box would refuse, in %d files judged" % (len(bad), len(files)))
return 1
print("check-privileges: %d files judged, every class-setting on the allow-list" % len(files))
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
+133
View File
@@ -0,0 +1,133 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""check-redis-persistence.py — no catalog Redis runs append-only (AOF); snapshots (RDB) only.
python3 scripts/check-redis-persistence.py # every template's docker-compose.yml
python3 scripts/check-redis-persistence.py --root DIR # another checkout (the decoy harness)
WHY (R-1096, 2026-10-17). An append-only file damaged in the MIDDLE — what the 2026-09-24 thin-pool fill left in
docmost's and romm's Redis (zero bytes near the end) — makes Redis refuse to start until a person runs
`redis-check-aof --fix`, and the app stays down. A snapshot (RDB) is written to a temp file and renamed only when
complete, so a full disk leaves the old snapshot intact (measured on 9202: the save fails, the old dump.rdb is
byte-identical, Redis starts again on it — felhom.eu audits/burndown-3-2026-10-17/P6/). The five apps were switched to
`--appendonly no` in one commit; this gate keeps a sixth from arriving with AOF.
WHAT IS JUDGED: every service of templates/<app>/docker-compose.yml whose image is redis or valkey; its `command:`
(string, flow list or block list) must not turn AOF on (`--appendonly yes` / `appendonly yes`). A service with no
command runs the image's default, which is RDB. NOT judged, on purpose: `steps/<key>.yml` — a ladder step is its own
TESTED definition and a box climbing the ladder runs it unchanged (`09` §6.4 part 5); a box reaches RDB at the head.
LIMIT, stated: a mounted redis.conf is not read (no catalog template mounts one today).
STANDARD LIBRARY ONLY (the CI runner has no PyYAML); comments never count.
Exit 0 clean · 1 a template runs AOF · 3 nothing to judge.
"""
import io
import os
import re
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
REDIS_IMAGES = ("redis", "valkey")
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 is_redis(image):
image = image.strip().strip("'\"").split("@", 1)[0]
last = image.rsplit("/", 1)[-1].split(":", 1)[0]
return last in REDIS_IMAGES
def services(path):
"""{service: (image, command text)} — the command's string, flow list or block list joined by spaces."""
out, cur, in_svcs, in_cmd = {}, 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, cur = line.startswith("services:"), None
continue
if not in_svcs:
continue
if ind == 2 and line.strip().endswith(":"):
cur = line.strip()[:-1]
out[cur] = ["", ""]
in_cmd = False
continue
if cur is None:
continue
if ind == 4:
in_cmd = False
m = re.match(r"^\s{4}image:\s*(\S+)", line)
if m:
out[cur][0] = m.group(1)
m = re.match(r"^\s{4}command:\s*(.*)$", line)
if m:
out[cur][1] = m.group(1)
in_cmd = m.group(1).strip() == ""
continue
if in_cmd and ind >= 6:
m = re.match(r"^\s*-\s*(.+)$", line)
if m:
out[cur][1] += " " + m.group(1)
return out
def runs_aof(command):
toks = re.findall(r"[^\s\[\],\"']+", command)
for i, t in enumerate(toks[:-1]):
if t.lstrip("-") == "appendonly" and toks[i + 1].lower() == "yes":
return True
return False
def main(argv):
root = ROOT
if "--root" in argv:
root = argv[argv.index("--root") + 1]
for a in argv:
if a.startswith("--root="):
root = a.split("=", 1)[1]
tdir = os.path.join(root, "templates")
if not os.path.isdir(tdir):
print("check-redis-persistence: no templates/ under %s — nothing to judge (a failure, never a pass)" % root)
return 3
bad, judged = [], 0
for app in sorted(os.listdir(tdir)):
p = os.path.join(tdir, app, "docker-compose.yml")
if not os.path.isfile(p):
continue
for svc, (image, cmd) in services(p).items():
if not is_redis(image):
continue
judged += 1
if runs_aof(cmd):
bad.append("%s/docker-compose.yml: service %s (%s) runs append-only — `command: %s`. Use "
"`--appendonly no` (snapshots): a damaged AOF keeps Redis down until a person repairs it "
"(R-1096)" % (app, svc, image, cmd.strip()))
if bad:
print("check-redis-persistence: FAIL — %d Redis service(s) run append-only:" % len(bad))
for b in bad:
print(" - " + b)
return 1
print("check-redis-persistence gate OK — %d Redis service(s), none append-only" % judged)
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""check-security-scan.py — runs the SHARED dependency and secret scanner on this repo (R-986).
The gate itself lives in ONE place, `felhom.eu/scripts/security_scan_gate.py` (the reuse_refs_check.py rule: never
copied), and is WARN-FIRST — it lists hits and exits 0. This repo has no Go module, so it runs gitleaks on the pushed
commits only. If the sibling felhom.eu clone is absent this FAILS and names the path it tried: a runner that quietly
skips a gate is the inert-seam failure this project has shipped four times.
"""
import os
import subprocess
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SHARED = os.path.join(os.path.dirname(ROOT), "felhom.eu", "scripts", "security_scan_gate.py")
if __name__ == "__main__":
if not os.path.isfile(SHARED):
print("FAIL: the shared gate is MISSING beside this clone (tried %s) — a failure, never a skip" % SHARED)
sys.exit(1)
sys.exit(subprocess.call([sys.executable, SHARED, ROOT]))
+5 -3
View File
@@ -16,7 +16,8 @@ For every template whose per-service images differ between A and B, the `.felhom
carry, in an `update_ladder:` line that was NOT there at A, an entry that
- is well-formed (ladder.check_entry) and NOT `backfilled` (a backfill cites an old record; a new
move needs a new test),
- has `verdict: "proven"`,
- has `verdict: "proven"` — or `"security_fix"` (`09` §3 decision 255, D39 = B: an urgent upstream fix proven on the
box, bench optional; its own fields are ladder.check_security's), judged here exactly like a proven one,
- has `from` equal to the images at A and `to` equal to the images at B, service by service,
- carries digests that the registry STILL serves for those refs right now (decision 17). A digest
that moved since the test means the image that was tested is not the image a box would pull;
@@ -117,8 +118,9 @@ def judge_app(app, a, b, resolver, network=True):
problems.append("new entry: " + p)
if e.get("backfilled") is not None:
problems.append("new entry is marked backfilled — a new move needs a new test, not an old record")
if e.get("verdict") != "proven":
problems.append("new entry's verdict is %r — only a PROVEN step may be published" % e.get("verdict"))
if e.get("verdict") not in ("proven", ladder.SECURITY_FIX):
problems.append("new entry's verdict is %r — only a PROVEN or a SECURITY-FIX step may be published"
% e.get("verdict"))
if e.get("from") != before:
problems.append("new entry's `from` %s is not the compose before the move %s" % (e.get("from"), before))
if (e.get("marks") or {}).get("memory_tight"):
+22 -1
View File
@@ -13,7 +13,7 @@ is shallow (the R-452 gap that skips every history gate there). Its twin
WHAT IT CHECKS, per template that carries `update_ladder:` (format and field rules: ladder.py):
1. every line of the block is a one-line JSON entry, and every entry is well-formed
(verdict proven|unrecorded only; a sha256 digest per `to` service; the memory watch's peak on
(verdict proven|unrecorded|security_fix only; a sha256 digest per `to` service; the memory watch's peak on
any entry not backfilled; marks.memory_tight agrees with the peak);
2. the ladder is CONTINUOUS — each entry's `from` is the previous entry's `to`;
2b. a RE-TEST (`from` == `to`, `09` §3 decision 52) starts FROM the previous entry's digest
@@ -27,6 +27,9 @@ WHAT IT CHECKS, per template that carries `update_ladder:` (format and field rul
4b. ... and its own `.felhom.yml` at `steps/<step_key(to)>.felhom.yml` (R-664), with a healthcheck
when the template has one.
5. (WARN, never a refusal — `09` §3 decision 255) a template whose NEWEST step is a `security_fix` with no bench
`evidence` prints one line, so a step that skipped the bench stays visible on every push.
A template WITHOUT a ladder passes here — it has never been moved since the gate existed, and its
first move is refused by the twin unless that move brings the first entry.
@@ -100,6 +103,21 @@ def check_app(app_dir):
return problems
def security_warning(app, app_dir):
"""The one WARN line of rule 5, or None: the ladder's head is a security_fix step with no bench test."""
fy = os.path.join(app_dir, ".felhom.yml")
if not os.path.exists(fy):
return None
entries, _r, _e = ladder.parse(open(fy, encoding="utf-8").read())
if not entries:
return None
head = entries[-1]
if head.get("verdict") != ladder.SECURITY_FIX or head.get("evidence"):
return None
to = ",".join("%s" % r for _s, r in sorted((head.get("to") or {}).items()))
return "%s: security-fix step %s has no bench test (since %s)" % (app, to, head.get("tested_at"))
def main(argv):
root = ROOT
if "--root" in argv:
@@ -122,6 +140,9 @@ def main(argv):
if "update_ladder:" in text:
with_ladder += 1
probs = check_app(d)
warn = security_warning(app, d)
if warn:
print("WARN " + warn)
if probs:
convicted.append(app)
for p in probs:
+207
View File
@@ -0,0 +1,207 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""check-unclean-boot-images.py — an app's power-cut repair runs only on the images it was PROVEN on (R-1007, decision 236).
WHAT GOES WRONG WITHOUT IT. A template's `after_unclean_boot:` block lists the images the repair was proven on
(`images:`). The repair uses the app's INTERNALS (Immich: its BullMQ queue `thumbnailGeneration`, the job
`AssetGenerateThumbnails`, the `integrity_report` table), so the controller runs it only when the installed image of
`after_unclean_boot.service` is in that list; any other image is SKIPPED, with a reason in the box's log and the app
record only (controller `internal/stacks/after_unclean_boot.go`). An image bump in the compose that forgets the list
therefore turns the repair off on every box that updates — and nobody is told. This gate refuses that push.
THE FACT, and the labels that are not it:
* The fact is the `image:` line of the service NAMED by `after_unclean_boot.service`, directly under that service's
key in the compose's top-level `services:` (the controller keys `installed_images` by the compose service name),
and the `images:` list INSIDE the top-level, uncommented `after_unclean_boot:` block.
* NOT the fact: the image in a COMMENT, the image of ANOTHER service (immich-machine-learning moves with the server,
but the repair never runs in it), a block that is commented out (an older controller would not read it either).
* The same rule for each `steps/<key>.felhom.yml` that carries the block, against its own `steps/<key>.yml` (the
update ladder: a box pinned to a step reads that step's files).
* A block the gate cannot read (no `service:`, no `images:`, the service absent from the compose, a service with no
`image:`) is refused too — a list nobody can match is not a proof.
stdlib only, a line reader: the catalog CI has no PyYAML.
USAGE
python3 scripts/check-unclean-boot-images.py # every template directory
python3 scripts/check-unclean-boot-images.py immich # only these
python3 scripts/check-unclean-boot-images.py --root=<dir> # judge another checkout (the decoy suite)
(`--all` is accepted and changes nothing.)
Exit 0 clean · 1 refused. Decoys: scripts/test_gate_decoys.py `unclean_boot_cases` (COVERS "unclean-boot-images").
"""
import io
import os
import re
import sys
TOP_BLOCK = re.compile(r"^after_unclean_boot:\s*(#.*)?$")
TOP_KEY = re.compile(r"^\S")
CHILD = re.compile(r"^(\s+)([A-Za-z_][A-Za-z0-9_]*):\s*(.*?)\s*$")
ITEM = re.compile(r'^\s+-\s*(?:"([^"]*)"|\'([^\']*)\'|([^\s#]+))\s*(#.*)?$')
FLOW_ITEM = re.compile(r'"([^"]*)"|\'([^\']*)\'|([^,\s\[\]"\']+)')
METHOD = "felhom.eu/documentation/audits/immich-repair-2026-10-14/"
def strip_comment(v):
"""A value with its trailing ` # comment` removed (quotes respected)."""
out, q = [], None
for i, c in enumerate(v):
if q:
if c == q:
q = None
elif c in "\"'":
q = c
elif c == "#" and (i == 0 or v[i - 1].isspace()):
break
out.append(c)
return "".join(out).strip()
def unquote(v):
v = v.strip()
if len(v) >= 2 and v[0] == v[-1] and v[0] in "\"'":
return v[1:-1]
return v
def parse_block(text):
"""(present, service, images or None) from a .felhom.yml text. Only the top-level, uncommented block counts."""
lines = text.splitlines()
for i, ln in enumerate(lines):
if not TOP_BLOCK.match(ln):
continue
body = []
for nxt in lines[i + 1:]:
if nxt.strip() and TOP_KEY.match(nxt):
break
body.append(nxt)
indent = None
for b in body:
if b.strip() and not b.lstrip().startswith("#"):
indent = len(b) - len(b.lstrip())
break
service, images = None, None
for j, b in enumerate(body):
m = CHILD.match(b)
if not m or len(m.group(1)) != indent:
continue
key, val = m.group(2), strip_comment(m.group(3))
if key == "service":
service = unquote(val) or None
elif key == "images":
if val.startswith("["):
images = [next(g for g in t if g) for t in FLOW_ITEM.findall(val.strip("[]"))]
elif val == "":
images = []
for nxt in body[j + 1:]:
if not nxt.strip() or nxt.lstrip().startswith("#"):
continue
mi = ITEM.match(nxt)
if not mi or len(nxt) - len(nxt.lstrip()) <= indent:
break
images.append(next(g for g in mi.groups()[:3] if g is not None))
return True, service, images
return False, None, None
def service_image(text, service):
"""The `image:` of `services.<service>` in a compose text, or None."""
lines = text.splitlines()
in_services, svc_indent, in_svc, key_indent = False, None, False, None
for ln in lines:
if not ln.strip() or ln.lstrip().startswith("#"):
continue
ind = len(ln) - len(ln.lstrip())
if ind == 0:
in_services = ln.rstrip().split("#")[0].strip() == "services:"
in_svc = False
continue
if not in_services:
continue
m = CHILD.match(ln) or re.match(r"^(\s+)([A-Za-z0-9_.-]+):\s*(.*?)\s*$", ln)
if svc_indent is None:
svc_indent = ind
if ind == svc_indent:
name = unquote(ln.strip().rstrip(":").split(":")[0])
in_svc = name == service
key_indent = None
continue
if in_svc and ind > svc_indent:
if key_indent is None:
key_indent = ind
if ind == key_indent and m and m.group(2) == "image":
return unquote(strip_comment(m.group(3)))
return None
def judge(app, label, felhom_text, compose_text, compose_name):
present, service, images = parse_block(felhom_text)
if not present:
return None, []
fails = []
if not service:
fails.append("%s (%s): the after_unclean_boot block names no `service:` — the repair cannot be matched to an "
"image" % (app, label))
return True, fails
if not images:
fails.append("%s (%s): the after_unclean_boot block lists no `images:` — the repair was proven on nothing" % (app, label))
return True, fails
if compose_text is None:
fails.append("%s (%s): no %s to read the image of %s from" % (app, label, compose_name, service))
return True, fails
img = service_image(compose_text, service)
if img is None:
fails.append("%s (%s): %s has no service %r with an `image:` — the block names a service the app does not "
"run" % (app, label, compose_name, service))
elif img not in images:
fails.append("%s (%s): the repair after a power cut was proven on %s; the compose now runs %s. Re-prove the "
"repair on 9202 (the method in %s), then add the image."
% (app, label, ", ".join(images), img, METHOD))
return True, fails
def read(path):
if not os.path.isfile(path):
return None
return io.open(path, encoding="utf-8").read()
def main(argv):
root = os.getcwd()
for a in argv:
if a.startswith("--root="):
root = a.split("=", 1)[1]
names = [a for a in argv if not a.startswith("-")]
tdir = os.path.join(root, "templates")
apps = names or sorted(os.listdir(tdir))
fails, carriers = [], []
for app in apps:
d = os.path.join(tdir, app)
fy = read(os.path.join(d, ".felhom.yml"))
if fy is not None:
has, f = judge(app, "template", fy, read(os.path.join(d, "docker-compose.yml")), "docker-compose.yml")
if has:
carriers.append(app)
fails += f
sd = os.path.join(d, "steps")
if os.path.isdir(sd):
for fn in sorted(os.listdir(sd)):
if not fn.endswith(".felhom.yml"):
continue
key = fn[:-len(".felhom.yml")]
has, f = judge(app, "steps/" + fn, read(os.path.join(sd, fn)), read(os.path.join(sd, key + ".yml")),
"steps/" + key + ".yml")
if has:
carriers.append("%s/steps/%s" % (app, key))
fails += f
for f in fails:
print(" REFUSED " + f)
if fails:
print("unclean-boot-images gate: %d refusal(s)" % len(fails))
return 1
print("unclean-boot-images gate OK: %d after_unclean_boot block(s) on a proven image %s" % (len(carriers), carriers))
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env python3
"""check-upstream.py — every image of every template names where its security notices are published (R-1303).
The rule and its reader live in ONE place, `felhom.eu/scripts/security_watch_inventory.py` (the reuse_refs_check.py
rule: never copied); the nightly security watch reads the same lines. A template image with no line in its
`.felhom.yml` `upstream:` block refuses the push; a `gap:<why>` is allowed (a stated hole, listed in every weekly mail).
If the sibling felhom.eu clone is absent this FAILS and names the path it tried — never a skip.
USAGE python3 scripts/check-upstream.py [--root=<catalog checkout>] (the decoy suite judges a scratch catalog)
Exit: 0 every image has an upstream · 1 convicted · 2 inconclusive.
Decoys: scripts/test_gate_decoys.py `upstream_cases` (COVERS "upstream").
"""
import os
import subprocess
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SHARED = os.path.join(os.path.dirname(ROOT), "felhom.eu", "scripts", "security_watch_inventory.py")
if __name__ == "__main__":
root = ROOT
for a in sys.argv[1:]:
if a.startswith("--root="):
root = a.split("=", 1)[1]
shared = os.environ.get("FELHOM_UPSTREAM_GATE", SHARED)
if not os.path.isfile(shared):
print("FAIL: the shared gate is MISSING beside this clone (tried %s) — a failure, never a skip" % shared)
sys.exit(1)
sys.exit(subprocess.call([sys.executable, shared, "--gate=catalog", root]))
+24
View File
@@ -944,9 +944,33 @@ def collect_apps(root: Path, only=None, include_unavailable=False):
# apart, so a summary can say whether the gate ran at all. Pinned by test_check_volume_persistence.py.
HARNESS_REFUSED = 3
# R-896 (2026-10-10): the real prober builds a canary image and runs every template on the LOCAL Docker. Run on DooPlex
# (the production host) it acted there — and its self-test failed for every app. So it runs only where the host says it
# is a scratch host: the bench's layout directory, or an explicit FELHOM_SCRATCH_HOST=1 from the person who knows the box.
# Fail closed: no marker → HARNESS REFUSED before any docker call. Pinned by TestVenue (test_check_volume_persistence.py).
SCRATCH_ENV = "FELHOM_SCRATCH_HOST"
SCRATCH_MARKERS = (Path("/opt/upg"),) # the bench guest's harness layout (upgrade-test.py ROOT)
def venue_refusal() -> str:
"""Empty when this host may run containers for the gate; otherwise the reason it may not."""
if os.environ.get(SCRATCH_ENV) == "1":
return ""
if any(m.is_dir() for m in SCRATCH_MARKERS):
return ""
return ("this host is not a scratch host (no %s, %s is not 1) — the gate runs real containers on the local "
"Docker and must not act on a production host (R-896). Run it on the bench, or set %s=1 on a scratch "
"host." % (" / ".join(str(m) for m in SCRATCH_MARKERS), SCRATCH_ENV, SCRATCH_ENV))
def check(root: Path, only=None, prober=docker_prober, include_unavailable=False,
evidence: Path | None = None, skip_self_test=False) -> int:
if prober is docker_prober:
why = venue_refusal()
if why:
print(f"ERROR: {why}", file=sys.stderr)
print("HARNESS REFUSED — not a scratch host; no container was started")
return HARNESS_REFUSED
apps, skipped = collect_apps(root, only, include_unavailable)
if skipped:
print(f"skipping {len(skipped)} app(s) not offered for new installs: {', '.join(skipped)}")
File diff suppressed because it is too large. Load diff
+111 -3
View File
@@ -40,6 +40,22 @@ AN ENTRY (all keys required unless marked):
the previous entry's `digest`. Written by `upgrade-test.py --write-ladder` from a
`--retest` verdict, never by hand.
A SECURITY-FIX STEP (`09` §3 decision 255, D39 = B, 2026-10-23): `"verdict": "security_fix"` — an urgent upstream
fix that skipped the bench. The night leg takes it like a proven step (controller >= 0.341.0; an older controller
skips it at night as `not_proven` and a person's press still takes it). Beyond the keys above it needs:
security {"ids": ["CVE-YYYY-NNNN…" | "GHSA-xxxx-xxxx-xxxx", …], "advisory": "https://…",
"fixed_in": "<the first fixed upstream version, as the advisory states it>"} — the public
notice IS the authority (no operator word per incident)
box_evidence required: the box walk (`box_walk.py --security`) on 9202, through the product's Update
seed "read_back" (a box fixture seeded and read it back after the update) | "none" (the app has
no box fixture — said, never hidden)
memory_peak_pct from the BOX soak; `memory_basis` names the venue ("box_soak")
evidence the bench record, or null when no bench ran. A bench given must be proven: `bench_verdict`
"proven" and `harness_version` >= 2 ride with it; with no bench both are null
It may NOT carry `backfilled`, `digest_from` (a same-tag fix is decision 52's lane), `engine_conversion`, nor cross
a database engine MAJOR (the judgement is check-engine-major.py's own `engine_of`/`major_of`, imported, not copied).
Written only by `upgrade-test.py --write-ladder --security`.
STEP DEFINITIONS (`09` §6.4 part 5, controller v0.268.0): every entry but the NEWEST carries its own
complete compose file at `templates/<app>/steps/<step_key(to)>.yml` — the box climbs one step at a time
and pins exactly that file; the newest step's definition is the template's `docker-compose.yml`. The box's
@@ -50,7 +66,9 @@ SAME way by the controller (`stacks.StepKey`, pinned by TestLadder_StepKeyMatche
Every path that reads or writes the format is here, so the gate and the writer cannot disagree.
"""
import hashlib
import importlib.util
import json
import os
import re
LADDER_KEY_RE = re.compile(r"^update_ladder:\s*$")
@@ -60,10 +78,86 @@ IMAGE_RE = re.compile(r"^\s+image:\s*[\"']?([^\s\"'#]+)")
DIGEST_RE = re.compile(r"^sha256:[0-9a-f]{64}$")
TS_RE = re.compile(r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$")
DATE_RE = re.compile(r"^\d{4}-\d{2}-\d{2}$")
VERDICTS = ("proven", "unrecorded")
VERDICTS = ("proven", "unrecorded", "security_fix")
SECURITY_FIX = "security_fix"
SECURITY_ID_RE = re.compile(r"^(CVE-\d{4}-\d{4,}|GHSA(-[23456789cfghjmpqrvwx]{4}){3})$")
SEEDS = ("read_back", "none")
MEMORY_TIGHT_PCT = 80.0
def _engine_major_module():
"""check-engine-major.py, loaded by path (its name has a hyphen) — the ONE judgement of what a database engine is
and what its major is. Reused, never copied (D39 = B, §3.2 rule 2)."""
p = os.path.join(os.path.dirname(os.path.abspath(__file__)), "check-engine-major.py")
spec = importlib.util.spec_from_file_location("check_engine_major", p)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
return mod
def engine_majors_crossed(frm, to):
"""[(service, engine, major_from, major_to), …] — every database engine service whose MAJOR differs between
`frm` and `to`. A major nobody can read is reported with None (a conviction for a security step, never a pass)."""
em = _engine_major_module()
out = []
for svc, ref in sorted((to or {}).items()):
a, b = em.engine_of((frm or {}).get(svc, "")), em.engine_of(ref)
if not b or not a:
continue
ma, mb = em.major_of(a[1]), em.major_of(b[1])
if ma is None or mb is None or ma != mb:
out.append((svc, b[0], ma, mb))
return out
def check_security(e):
"""Problems with a security_fix entry's own fields (D39 = B). Called by check_entry."""
p = []
sec = e.get("security")
if not isinstance(sec, dict):
return ["a security_fix step needs a security block {ids, advisory, fixed_in} — the public notice is its authority"]
ids = sec.get("ids")
if not (isinstance(ids, list) and ids):
p.append("security.ids must list at least one CVE or GHSA id")
else:
bad = [i for i in ids if not (isinstance(i, str) and SECURITY_ID_RE.match(i))]
if bad:
p.append("security.ids %s are not CVE-YYYY-NNNN or GHSA-xxxx-xxxx-xxxx ids" % bad)
adv = sec.get("advisory")
if not (isinstance(adv, str) and re.match(r"^https://[^\s/]+\.[^\s]+$", adv)):
p.append("security.advisory must be the notice's https:// address (got %r)" % (adv,))
if not (isinstance(sec.get("fixed_in"), str) and sec["fixed_in"].strip()):
p.append("security.fixed_in must name the first fixed upstream version")
if not (isinstance(e.get("box_evidence"), str) and e["box_evidence"].strip()):
p.append("a security_fix step must cite its box walk: box_evidence is missing")
if e.get("seed") not in SEEDS:
p.append("a security_fix step must say what was read back: seed is %r, not one of %s" % (e.get("seed"), "/".join(SEEDS)))
if not (isinstance(e.get("memory_basis"), str) and e["memory_basis"].startswith("box")):
p.append("a security_fix step's memory_peak_pct comes from the box soak: memory_basis must name it (box_…)")
ev = e.get("evidence")
if ev is None:
if e.get("bench_verdict") is not None or e.get("harness_version") is not None:
p.append("a security_fix step with no bench evidence carries no bench_verdict or harness_version")
elif not (isinstance(ev, str) and ev.strip()):
p.append("security_fix evidence is the bench record's path, or null when no bench ran")
else:
if e.get("bench_verdict") != "proven":
p.append("a security_fix step that cites a bench run needs that run PROVEN (bench_verdict %r) — a failed "
"bench is evidence against the step, never for it" % (e.get("bench_verdict"),))
if not isinstance(e.get("harness_version"), int) or e["harness_version"] < 2:
p.append("a security_fix step that cites a bench run needs its harness_version >= 2 (the memory watch)")
for k, why in (("backfilled", "a backfill cites an old record; a security fix is a new test"),
("digest_from", "a same-tag fix is a decision-52 re-test, not a security_fix step"),
("engine_conversion", "a security_fix step may not convert a database")):
if e.get(k) is not None:
p.append("a security_fix step may not carry %s (%s)" % (k, why))
if e.get("from") == e.get("to"):
p.append("a security_fix step must move an image (from == to is a decision-52 re-test)")
for svc, eng, a, b in engine_majors_crossed(e.get("from"), e.get("to")):
p.append("a security_fix step may not cross a database engine major: %s (%s) %s -> %s" % (svc, eng, a, b))
return p
def images_in(compose_text):
"""{service: image} — per service, from that service's OWN `image:` line (the same reading
check-engine-major.py and check-catalog-since.py make)."""
@@ -145,7 +239,21 @@ def check_entry(e):
for svc in e["digest"]:
if svc not in e["to"]:
p.append("digest names a service %r that `to` does not" % svc)
if e["from"] == e["to"] and v == "proven" and backfilled is None: # a RE-TEST (decision 52)
if v == SECURITY_FIX:
p.extend(check_security(e))
if not (isinstance(e["tested_at"], str) and TS_RE.match(e["tested_at"])):
p.append("a security_fix step needs tested_at (the box walk's time) as an RFC 3339 time")
peak = e["memory_peak_pct"]
if not isinstance(peak, (int, float)) or isinstance(peak, bool):
p.append("a security_fix step needs memory_peak_pct from the box soak")
elif isinstance(e["marks"], dict) and bool(e["marks"].get("memory_tight")) != (peak > MEMORY_TIGHT_PCT):
p.append("marks.memory_tight=%s disagrees with memory_peak_pct=%s (tight above %d%%)"
% (e["marks"].get("memory_tight"), peak, MEMORY_TIGHT_PCT))
elif e.get("security") is not None or e.get("seed") is not None:
p.append("security / seed belong only to a security_fix step")
if v == SECURITY_FIX:
pass # digest_from is judged by check_security, with its own sentence
elif e["from"] == e["to"] and v == "proven" and backfilled is None: # a RE-TEST (decision 52)
df = e.get("digest_from")
if not isinstance(df, dict) or set(df) != set(e["to"]) or not all(isinstance(x, str) and DIGEST_RE.match(x) for x in df.values()):
p.append("a re-test (from == to) needs digest_from: {service: sha256} for every service — the digest it was tested FROM")
@@ -187,7 +295,7 @@ def check_entry(e):
def entry_line(e):
"""The one line the writer emits for an entry — key order fixed so diffs stay readable."""
order = ["from", "to", "digest", "verdict", "tested_at", "harness_version", "evidence",
"box_evidence", "memory_peak_pct", "marks", "backfilled", "note"]
"box_evidence", "memory_peak_pct", "marks", "backfilled", "security", "seed", "note"]
ordered = {k: e[k] for k in order if k in e}
for k in e:
if k not in ordered:
+31
View File
@@ -0,0 +1,31 @@
"""memfigure — the memory figure an update test judges an app on (one home; upgrade-test.py and box_walk.py import it)."""
def anon_live(stat: dict):
"""R-1338 (2026-10-28 night): the app's anonymous memory WITHOUT the pages it already gave back.
MEASURED (felhom.eu audits/night-2026-10-28/r1338-meili/, bench and 9202): Wanderer's Meilisearch read `anon` at
84-96 % of its 384 MiB limit for ten minutes while it used ~100 MB. An allocator that frees with MADV_FREE leaves
the pages mapped — `anon` keeps counting them — and the kernel moves them to the INACTIVE FILE list and takes them
back first at the limit (thousands of limit hits, 0 kills, no swap). They are no file cache: `file` stayed at ~1 MB
while `inactive_file` held ~280 MB. Two estimates of the anon the app still holds:
(a) anon - max(0, active_file + inactive_file - file) — the file-list pages beyond the file cache are given back;
(b) active_anon + inactive_anon - shmem — the kernel's own anon lists (given-back pages left them).
The LARGER is taken, capped at `anon`, so the figure errs high, never low (the bench measured (b) 10-22 MB above (a);
a reused given-back page can sit on the file list until the next reclaim pass — (b) still counts it). Missing
fields fall back to `anon`. None when `anon` is missing. Pinned by test_memory_live.py."""
try:
anon = int(stat["anon"])
except (KeyError, TypeError, ValueError):
return None
try:
a = anon - max(0, int(stat.get("active_file", 0)) + int(stat.get("inactive_file", 0)) - int(stat.get("file", 0)))
except (TypeError, ValueError):
return anon
if "active_anon" in stat or "inactive_anon" in stat:
try:
b = int(stat.get("active_anon", 0)) + int(stat.get("inactive_anon", 0)) - int(stat.get("shmem", 0))
except (TypeError, ValueError):
b = anon
a = max(a, b)
return max(0, min(anon, a))
+8
View File
@@ -0,0 +1,8 @@
{
"version": 2,
"note": "R-971 (operator decision D2 = A, 2026-10-17). The box's catalog allow-list, compiled into the controller. Each entry allows ONE exact setting for ONE service of ONE app, only while that service runs the entry's image repository with the image's own entrypoint and command and the exact healthcheck named; a changed setting is a different one and is refused. EMPTY since R-981 (2026-10-18): homepage's Docker socket was used by no Felhom feature and is gone, so no app has an exception. appdata_folders (R-1142): an app's bind root under ${HDD_PATH} is appdata/<its own folder>/, the folder being its name unless listed here. The catalog's scripts/privilege-allowlist.json is a byte-identical copy for its CI gate. Survey: felhom.eu documentation/audits/agent-allowlist-rotation-2026-10-17/P2/survey.md and audits/night-2026-10-18/P1/",
"entries": [],
"appdata_folders": {
"paperless-ngx": "paperless"
}
}
+77
View File
@@ -0,0 +1,77 @@
#!/usr/bin/env python3
"""The drill mover moves every service that carries the app's own image, also when two services share one image
(dawarich + dawarich-sidekiq on freikin/dawarich — the 2026-10-28 walk stopped with „FROM ref not found").
Run: python3 scripts/test_box_walk_drill_move.py"""
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import box_walk as w # noqa: E402
TWO = """services:
dawarich:
image: freikin/dawarich:1.15.3
dawarich-sidekiq:
image: freikin/dawarich:1.15.3
dawarich-db:
image: postgis/postgis:17-3.5-alpine
"""
class DrillMove(unittest.TestCase):
def test_shared_image_moves_both_services(self):
out, missing = w.move_images(TWO, ["freikin/dawarich:1.15.3", "freikin/dawarich:1.15.3"],
["freikin/dawarich:1.19.0", "freikin/dawarich:1.19.0"])
self.assertIsNone(missing)
self.assertEqual(out.count("image: freikin/dawarich:1.19.0"), 2)
self.assertNotIn("1.15.3", out)
self.assertIn("image: postgis/postgis:17-3.5-alpine", out) # the engine sidecar stays
def test_two_images_move_each(self):
s = "a:\n image: x/back:v1\nb:\n image: x/front:v1\n"
out, missing = w.move_images(s, ["x/back:v1", "x/front:v1"], ["x/back:v2", "x/front:v2"])
self.assertIsNone(missing)
self.assertEqual(out, "a:\n image: x/back:v2\nb:\n image: x/front:v2\n")
def test_missing_from_is_refused(self):
out, missing = w.move_images(TWO, ["freikin/dawarich:1.14.0"], ["freikin/dawarich:1.19.0"])
self.assertEqual(missing, "freikin/dawarich:1.14.0")
self.assertEqual(out, TWO)
def test_one_image_two_targets_is_refused(self):
out, missing = w.move_images(TWO, ["freikin/dawarich:1.15.3", "freikin/dawarich:1.15.3"],
["freikin/dawarich:1.19.0", "freikin/dawarich:1.18.0"])
self.assertEqual(missing, "freikin/dawarich:1.15.3")
self.assertEqual(out, TWO)
def test_walk_loads_the_drill_into_the_box_before_the_install(self):
# 2026-10-28: a drill revert never reached 9202's mirror; the walk installed the OLD head's TO as FROM
src = open(w.__file__).read()
body = src[src.index("def security_walk("):]
body = body[:body.index("rec[\"drill_commit\"]")]
self.assertIn("refresh_box_mirror()", body, "security_walk installs FROM without loading the drill into the box")
self.assertLess(body.index("refresh_box_mirror()"), body.index("deploy(app, sub, values)"))
def test_definition_step_takes_the_whole_definition(self):
import tempfile
d = tempfile.mkdtemp()
comp = "services:\n seerr:\n image: ghcr.io/seerr-team/seerr:v3.5.1\n init: true\n"
open(os.path.join(d, "docker-compose.yml"), "w").write(comp)
open(os.path.join(d, ".felhom.yml"), "w").write('display_name: "Seerr"\ncatalog_since: "2026-01-01"\n')
c, y, why = w.definition_files(d, {"seerr": "ghcr.io/seerr-team/seerr:v3.5.1"}, "2026-10-28")
self.assertIsNone(why)
self.assertEqual(c, comp)
self.assertIn('catalog_since: "2026-10-28"', y)
c, y, why = w.definition_files(d, {"seerr": "ghcr.io/seerr-team/seerr:v3.4.0"}, "2026-10-28")
self.assertIsNotNone(why) # the definition's images must be the walk's TO
def test_cli_has_to_definition(self):
self.assertIn('"--to-definition"', open(w.__file__).read())
def test_mover_uses_move_images(self):
self.assertIn("move_images(s, froms, tos)", open(w.__file__).read(), "_drill_bump no longer calls move_images")
if __name__ == "__main__":
unittest.main()
+42 -4
View File
@@ -66,11 +66,28 @@ class CatalogGatesFastTest(unittest.TestCase):
# 12 since family-gate joined — STALE AGAIN until 2026-10-05 (found by the burn-down, round 2).
# 13 since 2026-10-05: mem-limit-sum (R-758), fast and history-free, so it runs in CI too.
# 14 since the same night: data-key (R-127 leg a).
self.assertEqual(len(mod.GATES), 14)
# 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.
# 18 since 2026-10-16: image-volumes (R-1097) — fast, no history: the hook AND CI.
# 19 since 2026-10-16 night: db-credentials (R-1106) — STALE AGAIN until 2026-10-17 (that night did not
# update this count; found by burndown 3, because this file is in no gate run either).
# 20 since 2026-10-17: gate-decoys (R-1115) — the decoy suite itself; ~3 min, so the full run only.
# 21 since the same day: redis-persistence (R-1096) — fast, no history: the hook AND CI.
# 24 by 2026-10-23: privileges, download-binds and security-scan (R-986) — STALE AGAIN until then (found by the
# D39 security-lane session; this file is still in no gate run).
self.assertEqual(len(mod.GATES), 24)
self.assertIn("redis-persistence", [g[0] for g in mod.GATES if g[3] and not g[4]])
self.assertIn("db-credentials", [g[0] for g in mod.GATES if g[3] and not g[4]])
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]])
self.assertIn("mem-limit-sum", [g[0] for g in mod.GATES if g[3] and not g[4]])
self.assertIn("onboarding", [g[0] for g in mod.GATES if g[3] and not g[4]])
self.assertEqual([g[0] for g in mod.GATES if not g[3]], ["image-resolvable", "volume-persistence"])
self.assertEqual([g[0] for g in mod.GATES if not g[3]],
["image-resolvable", "volume-persistence", "gate-decoys"])
self.assertIn("test-record", [g[0] for g in mod.GATES if g[3] and not g[4]]) # runs in CI too
# the gates that need git history are the ones the CI half cannot run (R-452's shallow gap)
self.assertEqual([g[0] for g in mod.GATES if g[4]], ["engine-major", "catalog-since", "test-record-move"])
@@ -89,7 +106,11 @@ class CatalogGatesFastTest(unittest.TestCase):
"""On a --depth 1 clone (what CI has) the runner must SKIP engine-major and SAY so — never
convict every push, never pass silently. Asserted on a real shallow clone of this repo."""
import shutil, tempfile
tmp = tempfile.mkdtemp(prefix="catalog-shallow-")
parent = tempfile.mkdtemp(prefix="catalog-shallow-")
# the security-scan gate reads the SHARED gate from the sibling felhom.eu clone and fails when it is absent
# (never a skip) — so the clone gets the real sibling beside it, as CI's checkout does
os.symlink(os.path.join(os.path.dirname(ROOT), "felhom.eu"), os.path.join(parent, "felhom.eu"))
tmp = os.path.join(parent, "app-catalog-felhom.eu")
try:
subprocess.run(["git", "clone", "-q", "--depth", "1", "file://" + ROOT, tmp],
check=True, capture_output=True)
@@ -104,7 +125,7 @@ class CatalogGatesFastTest(unittest.TestCase):
self.assertNotIn("engine-major gate OK", out)
self.assertEqual(p.returncode, 0, out)
finally:
shutil.rmtree(tmp, ignore_errors=True)
shutil.rmtree(parent, ignore_errors=True)
@@ -150,5 +171,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)
+60
View File
@@ -9,6 +9,7 @@ Run: python3 scripts/test_check_volume_persistence.py
"""
import importlib.util
import io
import os
import sys
import tempfile
import unittest
@@ -597,5 +598,64 @@ class TestEmptyBind(unittest.TestCase):
self.assertFalse(any("R-805" in w for w in why), why)
class TestVenue(unittest.TestCase):
"""R-896: the REAL prober runs containers on the local Docker. On a host that is not a scratch host (DooPlex is
the production host) the gate refuses BEFORE any docker call — the consequence, not the helper: the prober is
never reached."""
def setUp(self):
self._env = os.environ.pop(cvp.SCRATCH_ENV, None)
self._markers = cvp.SCRATCH_MARKERS
self._real = cvp.docker_prober
self.calls = []
def tearDown(self):
if self._env is not None:
os.environ[cvp.SCRATCH_ENV] = self._env
else:
os.environ.pop(cvp.SCRATCH_ENV, None)
cvp.SCRATCH_MARKERS = self._markers
def _run(self):
def spy(*a, **kw):
self.calls.append(a)
raise AssertionError("the real prober was reached")
with tempfile.TemporaryDirectory() as td:
d = Path(td) / "templates" / "demo"
d.mkdir(parents=True)
(d / "docker-compose.yml").write_text("services:\n s:\n image: alpine:3.22\n")
(d / ".felhom.yml").write_text("slug: demo\n")
orig_self_test = cvp.self_test
cvp.self_test = lambda prober: spy()
try:
buf = io.StringIO()
with redirect_stdout(buf):
rc = cvp.check(Path(td)) # the default prober = the real one
finally:
cvp.self_test = orig_self_test
return rc, buf.getvalue()
def test_no_marker_refuses_before_any_docker_call(self):
with tempfile.TemporaryDirectory() as nowhere:
cvp.SCRATCH_MARKERS = (Path(nowhere) / "absent",)
rc, out = self._run()
self.assertEqual(rc, cvp.HARNESS_REFUSED, out)
self.assertIn("not a scratch host", out)
self.assertEqual(self.calls, [])
def test_marker_directory_lets_it_run(self):
with tempfile.TemporaryDirectory() as here:
cvp.SCRATCH_MARKERS = (Path(here),)
with self.assertRaises(AssertionError): # it went on to the self-test (the spy)
self._run()
def test_explicit_env_lets_it_run(self):
with tempfile.TemporaryDirectory() as nowhere:
cvp.SCRATCH_MARKERS = (Path(nowhere) / "absent",)
os.environ[cvp.SCRATCH_ENV] = "1"
with self.assertRaises(AssertionError):
self._run()
if __name__ == "__main__":
unittest.main(verbosity=2)
+752 -16
View File
@@ -47,6 +47,7 @@ ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Read by felhom.eu/scripts/decoy_coverage_gate.py, which AST-parses this literal. A gate named here
# MUST have a decoy below that has been seen to fail.
COVERS = {
"security-scan": "R-986: the shared gate's own decoys (felhom.eu scripts/test_security_scan_gate.py, 8 cases in SCRATCH git repos: a planted token listed by rule and file, its value never printed; a second secret on another line of an accepted file still listed; a called govulncheck finding listed, an imported-only one not; no tool is NOT CHECKED out loud), run from here; plus this repo's wrapper on its own tree (exit 0 and the summary line) and the wrapper with the shared gate MISSING (exit 1, never a skip)",
"volume-persistence": "the classifier and the self-test via the injected-prober suite scripts/test_check_volume_persistence.py, RUN FROM HERE and required green (a blind prober and a crying-wolf prober are refused rc=3; `wrote nothing`, a container not running, a path token alone, an unresolved suspect are UNDETERMINED or clean, never a false CLEAN/BROKEN; the papra signature convicts); and END TO END with a PATH-STUB docker that fails every call, no docker at all, nothing to judge - each HARNESS REFUSED rc=3, never 0 (R-426)",
"image-resolvable": "END TO END through the gate's own `docker manifest inspect` call, with a PATH-STUB docker (PATH holds ONLY the stub, so the real runtime is unreachable): the label of success without the fact - rc=0 carrying a throttle or any error text, a docker that resolves EVERYTHING incl. the .invalid canary, no docker at all, nothing to judge - each INCONCLUSIVE or HARNESS REFUSED, never 0; the cry-wolf direction - a throttle or an unrecognised error on rc=1 is never an accusation; vs a registry that positively says `manifest unknown` (convicted, naming the app) and a clean run (R-426)",
"image-pins": "the pin's LABEL without the pin: a registry PORT (`:5000`) read as a tag, `@sha256:` with no digest behind it, a QUOTED `\"image\":` key, an interpolated `${APP_IMAGE:-nginx}`, `:LATEST`/`:latest` in quotes - vs the inert shapes that must pass (a commented `# image: nginx`, an `x-image:` extension field, a README line) and the genuine pins (a tag, a real 64-hex digest, `:latest@sha256:` pinned by its digest, a port with a tag) (R-426)",
@@ -55,14 +56,24 @@ COVERS = {
"probe-matches-compose": "the probe TARGET resolves by exact name, explicit `container`, or a UNIQUE prefix - an ambiguity is refused, not guessed (R-630); the DEGRADED no-PyYAML mode CI actually runs; the port/path moved in a COMMENT, in traefik's loadbalancer label, in "
"`ports:`/`expose:`, or on a NON-probed service - none of which is where "
"the app listens; vs a real probe port/path that the app does not answer (R-618)",
"test-record": "a ladder whose newest step is not the compose's images (a move without a record), a gap, a line that is not one JSON entry, a failed verdict - vs a clean ladder (09 decision 13)",
"test-record-move": "an image move with NO entry, with the entry only in a COMMENT or in README, with a failed/backfilled entry, with a digest the registry no longer serves, memory_tight without a raised limit - vs a proven entry that matches; a ref moving in a compose COMMENT is not a move (09 decision 13)",
"test-record": "a ladder whose newest step is not the compose's images (a move without a record), a gap, a line that is not one JSON entry, a failed verdict - vs a clean ladder (09 decision 13); a security_fix head with no bench prints its WARN and passes (09 decision 255)",
"test-record-move": "an image move with NO entry, with the entry only in a COMMENT or in README, with a failed/backfilled entry, with a digest the registry no longer serves, memory_tight without a raised limit - vs a proven entry that matches; a ref moving in a compose COMMENT is not a move (09 decision 13); a SECURITY-FIX step (09 decision 255): the CVE ids only in a note with no security block, a non-CVE/GHSA id, an http advisory, no seed, a digest_from, a failed bench, a PostgreSQL major - each refused; vs a box-only security_fix that matches",
"probe-measured": "the measurement written in the TAGLINE or another comment block, not directly above setup_done_probe:; a date with no before/after; before/after with no date; 'read upstream' instead of 'measured' - vs a genuine measured comment (R-715)",
"family-gate": "family_gate written only in a COMMENT (not gated, no min_controller owed); min_controller only in a comment; a golden DIRECTORY named 0.287.0 with no bake log (the mkdir shape, R-410); a sibling with no golden (stated NOT CHECKED, never a pass of rule 3) - vs the facts: an unanchorable exception (regex, '/', '..'), an exception list with no gate, min_controller below 0.287.0, the newest baked golden below 0.287.0; and a genuine family app passes (decisions 63/64, finding F1)",
"onboarding": "a NEW template with no record; a record missing an id, or carrying it only inside an HTML comment; a `done` whose path does not exist, is an EMPTY directory (the mkdir shape, R-410) or names an absent sibling-repo file; an `n/a` with an empty or two-word reason; an `open` row; `opened:` backdated before the checklist; the template a new app copies lacking a new id - vs a complete record, an id added after `opened:`, and an exempt app's record with open rows (NEW-APP-CHECKLIST.md)",
"db-credentials": "the password variable only in a COMMENT; the same reference in the APP service; a redis `REDIS_PASSWORD`; a literal DB password - vs the facts: a DB password fed by a variable with no deploy field, by a `type: password` field, in list form and in map form (R-1106)",
"mem-limit-sum": "the right figure only in a COMMENT (the compose header's 'mem_limit: 640M', the .felhom.yml arithmetic) while the field is wrong; a `memory:` under reservations: (not a limit) making the sum come out right; a `mem_limit:` outside resources:; a steps/ file with the old figure (not judged) - vs the facts: a field under the sum, a service with no limit, an unreadable size (R-758)",
"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)",
"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)",
"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)",
"upstream": "R-1303: the upstream line only in a COMMENT, under ANOTHER key (description:), keyed by a DIFFERENT image (a typo), a `gap:` with no reason, an unknown source kind; an image added to the compose with no line - vs the facts: every image named, a gap with a reason",
"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",
"redis-persistence": "`--appendonly yes` only in a COMMENT, or only in a steps/ file (a tested step definition, not judged on purpose) - each passes; vs the facts: AOF in string form, in a flow list, in a block list, on a valkey image - each refused naming the app; image default (no command) and `--appendonly no` pass; no templates/ is rc 3 (R-1096)",
"privileges": "a dangerous key only in a COMMENT, `privileged: false`, `no-new-privileges:true`, a ${HDD_PATH} bind, the docker socket only in a comment, homepage's read-only socket on a test list carrying its old entry - each passes; vs the facts: privileged true, cap_add, a host-root bind, a ${OTHER} bind, homepage's socket on the REAL list (R-981: no exception), app a binding app b's appdata folder or the whole appdata/ or a look-alike name, a folder entry that is a path (R-1142; paperless-ngx's listed appdata/paperless passes), homepage's socket READ-WRITE, the same socket in ANOTHER app or under ANOTHER image or with an added entrypoint or a changed healthcheck, a second service extending it, a YAML merge key, a variable in a bind's options, gpus / provider / a privileged post_start, network_mode host, a driver_opts bind volume, a ${VAR} in a privileged key, the same in a steps/ file, an allow-list copy that differs from the controller's - each refused naming the setting; no templates/ is rc 3; and the stdlib reader equals PyYAML on every catalog file (R-971)",
"download-binds": "the download target `/downloads` only in a COMMENT, `class: excluded` only in a COMMENT while the field says optional, the folder bound only in a steps/ file (not judged on purpose), a library bind at /media (not a download target) - vs the facts: a download folder optional, mandatory, UNLISTED (the controller classes it mandatory), a `/watch` sub-folder optional under an excluded parent, a target below /downloads - each refused naming the app; excluded passes; no templates/ and no download bind at all are rc 3, never a pass (R-1019)",
"gate-decoys": "this suite, run as a gate of the full run (R-1115): every case above is a decoy of its own gate, and ONE case that stops convicting turns the whole run red - measured 2026-10-17, when the credential-token case had lost its premise (gokapi's login line removed by 326f846) the suite printed FAIL and exited 1; the copy-i18n credential cases now edit an EXISTING line, so a removed premise stops the suite (`edit` raises) instead of passing",
}
fails = []
@@ -312,6 +323,8 @@ def strip_ladder(t):
return t
DROP = object() # a key a decoy leaves OUT of a security_fix entry
# ── test record (09 §3 decision 13) ────────────────────────────────────────────────────────────
TR_D1 = "sha256:" + "a" * 64
TR_D2 = "sha256:" + "b" * 64
@@ -420,6 +433,53 @@ def test_record_cases(clone):
(), table)
case_tr_move("DECOY: a ref moves in a compose COMMENT only", clone,
[(NC, lambda t: t + "\n# was: deluan/navidrome:0.63.2\n")], 0, (), table)
# ── D39 = B (`09` §3 decision 255): the security-fix step — box walk required, bench optional ──────────────
print("-- test-record-move: a SECURITY-FIX step (D39 = B)")
def sec(frm_, to_, digest_, **over):
e = {"verdict": "security_fix", "harness_version": None, "evidence": None,
"box_evidence": "felhom.eu/documentation/audits/x/box/", "memory_peak_pct": 12.5, "memory_basis": "box_soak",
"security": {"ids": ["CVE-2026-96652", "GHSA-2c4m-59x9-fr2g"],
"advisory": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog", "fixed_in": "1.43.3.10861"},
"seed": "none"}
e.update(over)
drop = [k for k, v in over.items() if v is DROP]
line = tr_entry(frm_, to_, digest_, **{k: v for k, v in e.items() if k not in drop and k != "verdict"},
verdict="security_fix")
return line
case_tr_move("GENUINE: a security_fix step, box only, digest served", clone,
[move, (NF, tr_append(sec(frm, to, {"navidrome": TR_D1})))], 0, ("test-record-move gate",), table)
case_tr_move("DECOY: the CVE ids only in a `note`, no security block", clone,
[move, (NF, tr_append(sec(frm, to, {"navidrome": TR_D1}, security=DROP,
note="fixes CVE-2026-96652, see https://www.cisa.gov/kev")))], 1,
("needs a security block",), table)
case_tr_move("FACT: an id that is neither CVE nor GHSA", clone,
[move, (NF, tr_append(sec(frm, to, {"navidrome": TR_D1},
security={"ids": ["OSV-2026-1"], "advisory": "https://osv.dev/x", "fixed_in": "1.0"})))], 1,
("are not CVE-YYYY-NNNN or GHSA",), table)
case_tr_move("FACT: the advisory is http://, not https://", clone,
[move, (NF, tr_append(sec(frm, to, {"navidrome": TR_D1},
security={"ids": ["CVE-2026-96652"], "advisory": "http://www.cisa.gov/kev", "fixed_in": "1.0"})))], 1,
("must be the notice's https://",), table)
case_tr_move("FACT: seed is missing", clone,
[move, (NF, tr_append(sec(frm, to, {"navidrome": TR_D1}, seed=DROP)))], 1,
("seed is None",), table)
case_tr_move("FACT: a security_fix carrying digest_from (a same-tag re-test)", clone,
[move, (NF, tr_append(sec(frm, to, {"navidrome": TR_D1}, digest_from={"navidrome": TR_D2})))], 1,
("may not carry digest_from",), table)
case_tr_move("FACT: a security_fix citing a FAILED bench run", clone,
[move, (NF, tr_append(sec(frm, to, {"navidrome": TR_D1}, evidence="felhom.eu/x/bench/",
bench_verdict="failed", harness_version=3)))], 1,
("needs that run PROVEN",), table)
DC, DF = "templates/docmost/docker-compose.yml", "templates/docmost/.felhom.yml"
dfrm = {s_: cur_image(clone, DC, s_) for s_ in ("docmost", "docmost-postgres", "docmost-redis")}
pg_old = dfrm["docmost-postgres"]
pg_new = "postgres:%d-alpine" % (int(pg_old.split(":")[1].split("-")[0]) + 1) # READ, then one major up
dto = dict(dfrm, **{"docmost-postgres": pg_new})
case_tr_move("FACT: a security_fix that crosses a PostgreSQL major", clone,
[(DC, swap_image("docmost-postgres", pg_old, pg_new)),
(DF, tr_append(sec(dfrm, dto, {s_: TR_D1 for s_ in dto})))], 1,
("may not cross a database engine major",), {r: TR_D1 for r in dto.values()})
print("-- test-record (static): the newest step IS the compose")
def ladder_of(*lines):
"""Replace the template's ladder with exactly these entry lines."""
@@ -433,6 +493,13 @@ def test_record_cases(clone):
case_tr_static("FACT: a gap between steps", clone,
[(NF, ladder_of(tr_entry({"navidrome": "deluan/navidrome:0.0.1"}, {"navidrome": "deluan/navidrome:0.0.2"}, {"navidrome": TR_D1}), head))],
1, ("the ladder has a gap",))
case_tr_static("WARN: the head is a security_fix with no bench test", clone,
[(NF, ladder_of(tr_entry({"navidrome": prev}, frm, {"navidrome": TR_D1}, verdict="security_fix",
harness_version=None, evidence=None, box_evidence="felhom.eu/x/box/",
memory_basis="box_soak", seed="none",
security={"ids": ["CVE-2026-96652"], "advisory": "https://www.cisa.gov/kev",
"fixed_in": "1.43.3.10861"})))],
0, ("WARN navidrome: security-fix step %s has no bench test (since 2026-09-23T22:00:00Z)" % old,))
case_tr_static("FACT: a failed verdict sits in the ladder", clone,
[(NF, ladder_of(tr_entry({"navidrome": prev}, frm, {"navidrome": TR_D1}, verdict="failed")))],
1, ("not allowed in a ladder",))
@@ -687,6 +754,337 @@ def family_gate_cases():
run("FACT: min_controller below the release", lambda: (app(GOOD.replace('0.287.0', '0.286.1')), golden("0.287.0")), 1, ("needs min_controller",))
run("FACT: newest baked golden below the release", lambda: (app(GOOD), golden("0.286.1")), 1, ("publish the app OPEN",))
run("FACT: a golden DIRECTORY 0.287.0 with no bake log (a name is not a bake)", lambda: (app(GOOD), golden("0.286.1"), golden("0.287.0", baked=False)), 1, ("0.286.1",))
# Rule 4 (R-782, decision 221): an app the operator RULED family-gated loses its gate -> refused.
run("FACT: glance (ruled family-gated, decision 221) without family_gate", lambda: (app("min_controller: \"0.287.0\"\n", name="glance"), golden("0.287.0")), 1, ("ruled family-gated",))
run("FACT: glance with family_gate only in a COMMENT (the label without the fact)", lambda: (app("# family_gate: true\nmin_controller: \"0.287.0\"\n", name="glance"), golden("0.287.0")), 1, ("ruled family-gated",))
run("FACT: grimmory (ruled, decisions 63/64) with family_gate: false", lambda: (app('family_gate: false\nmin_controller: "0.287.0"\n', name="grimmory"), golden("0.287.0")), 1, ("ruled family-gated",))
run("GENUINE: glance gated, no exceptions", lambda: (app('family_gate: true\nmin_controller: "0.287.0"\n', name="glance"), golden("0.287.0")), 0, ("family-gate gate OK",))
finally:
shutil.rmtree(ws, ignore_errors=True)
def login_kind_cases():
"""check-login-kind.py reads templates/*/.felhom.yml under --root (controller 0.320.0)."""
global ran
ws = tempfile.mkdtemp(prefix="catalog-loginkind-")
try:
def run(name, felhom, 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:
p = os.path.join(cat, "templates", "demo", ".felhom.yml")
os.makedirs(os.path.dirname(p))
io.open(p, "w", encoding="utf-8").write(felhom)
r = sh([sys.executable, os.path.join(ROOT, "scripts", "check-login-kind.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:]))
head = 'display_name: "D"\n'
print("\n-- login-kind: genuine and decoys")
for v in ("first_visit", "email", "none"):
run("GENUINE: login_kind %s" % v, head + "app_info:\n tagline: x\n login_kind: %s\n" % v, 0, ("1 login_kind",))
run("GENUINE: quoted value", head + "app_info:\n login_kind: \"email\"\n", 0, ("1 login_kind",))
run("DECOY: a bad value only in a COMMENT", head + "app_info:\n # login_kind: magic\n tagline: x\n", 0, ("0 login_kind",))
run("DECOY: a bad value only in the English block", head + "app_info:\n tagline: x\ni18n:\n en:\n app_info:\n login_kind: magic\n", 0, ("0 login_kind",))
run("DECOY: the key under ANOTHER mapping", head + "resources:\n login_kind: magic\napp_info:\n tagline: x\n", 0, ("0 login_kind",))
print("-- login-kind: the facts (each MUST be refused)")
run("FACT: an unknown value", head + "app_info:\n login_kind: magic\n", 1, ("'magic' is not one of",))
run("FACT: a wrong case", head + "app_info:\n login_kind: EMAIL\n", 1, ("'EMAIL' is not one of",))
run("FACT: the key twice", head + "app_info:\n login_kind: email\n login_kind: none\n", 1, ("appears 2 times",))
run("FACT: no templates/ at all (nothing to judge)", "", 3, ("nothing to judge",), no_templates=True)
finally:
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 redis_persistence_cases():
"""check-redis-persistence.py reads templates/*/docker-compose.yml under --root; steps/ deliberately not (R-1096)."""
global ran
ws = tempfile.mkdtemp(prefix="catalog-redis-")
try:
def compose(cmd_lines, image="redis:7-alpine", comment=""):
return ("services:\n app:\n image: example/app:1.0\n app-redis:\n image: %s\n%s%s"
" volumes:\n - app_redis:/data\nvolumes:\n app_redis:\n" % (image, comment, cmd_lines))
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-redis-persistence.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:]))
rdb = " command: redis-server --appendonly no\n"
aof = " command: redis-server --appendonly yes\n"
print("\n-- redis-persistence: genuine and decoys (each passes)")
run("GENUINE: --appendonly no", {"a/docker-compose.yml": compose(rdb)}, 0, ("1 Redis service",))
run("GENUINE: no command (the image default is RDB)", {"a/docker-compose.yml": compose("")}, 0, ("1 Redis service",))
run("DECOY: --appendonly yes only in a COMMENT", {"a/docker-compose.yml": compose(rdb, comment=" # command: redis-server --appendonly yes\n")}, 0, ("none append-only",))
run("DECOY: AOF only in a steps/ file (a tested step, not judged)", {"a/docker-compose.yml": compose(rdb), "a/steps/0123456789abcdef.yml": compose(aof)}, 0, ("none append-only",))
print("-- redis-persistence: the facts (each MUST be refused)")
run("FACT: AOF in string form", {"a/docker-compose.yml": compose(aof)}, 1, ("a/docker-compose.yml", "app-redis"))
run("FACT: AOF in a flow list", {"a/docker-compose.yml": compose(' command: ["redis-server", "--save", "60", "1", "--appendonly", "yes"]\n')}, 1, ("app-redis",))
run("FACT: AOF in a block list", {"a/docker-compose.yml": compose(" command:\n - redis-server\n - --appendonly\n - \"yes\"\n")}, 1, ("app-redis",))
run("FACT: AOF on a valkey image", {"a/docker-compose.yml": compose(" command: valkey-server --appendonly yes\n", image="valkey/valkey:8-alpine")}, 1, ("valkey",))
run("FACT: no templates/ at all (nothing to judge)", {}, 3, ("nothing to judge",), no_templates=True)
finally:
shutil.rmtree(ws, ignore_errors=True)
def download_binds_cases():
"""check-download-binds.py reads templates/*/docker-compose.yml + .felhom.yml under --root; steps/ not (R-1019)."""
global ran
ws = tempfile.mkdtemp(prefix="catalog-dlbinds-")
try:
def compose(binds, comment=""):
return ("services:\n dl:\n image: example/dl:1.0\n volumes:\n - dl_config:/config\n%s%s"
"volumes:\n dl_config:\n" % (comment, "".join(" - %s\n" % b for b in binds)))
def felhom(entries, comment=""):
body = "".join(" - path: %s\n class: %s\n" % (p, c) for p, c in entries)
return ("display_name: \"DL\"\nbackup:\n volumes:\n - name: dl_config\n class: important\n"
" userdata:\n%s%s" % (body, comment))
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:
os.makedirs(os.path.join(cat, "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-download-binds.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:]))
dl = "${USERDATA_PATH}/media/dl:/downloads"
print("\n-- download-binds: genuine and decoys (each passes)")
run("GENUINE: the download folder excluded", {"dl/docker-compose.yml": compose([dl]), "dl/.felhom.yml": felhom([("media/dl", "excluded")])}, 0, ("every one `excluded`",))
run("DECOY: /downloads only in a COMMENT (the field binds /media)", {"dl/docker-compose.yml": compose(["${USERDATA_PATH}/media:/media:ro", "${USERDATA_PATH}/media/dl:/downloads"][:1], comment=" # - ${USERDATA_PATH}/media/dl:/downloads\n") , "dl/.felhom.yml": felhom([("media", "excluded")])}, 3, ("nothing to judge",))
run("DECOY: the folder bound only in a steps/ file (not judged)", {"dl/docker-compose.yml": compose([dl]), "dl/.felhom.yml": felhom([("media/dl", "excluded")]), "dl/steps/0123456789abcdef.yml": compose(["${USERDATA_PATH}/media/other:/downloads"])}, 0, ("1 download folder",))
print("-- download-binds: the facts (each MUST be refused)")
run("FACT: the download folder optional", {"dl/docker-compose.yml": compose([dl]), "dl/.felhom.yml": felhom([("media/dl", "optional")])}, 1, ("templates/dl", "media/dl", "optional"))
run("FACT: the download folder mandatory", {"dl/docker-compose.yml": compose([dl]), "dl/.felhom.yml": felhom([("media/dl", "mandatory")])}, 1, ("mandatory",))
run("FACT: the download folder UNLISTED (mandatory by default)", {"dl/docker-compose.yml": compose([dl]), "dl/.felhom.yml": felhom([("media/other", "excluded")])}, 1, ("UNLISTED",))
run("FACT: `class: excluded` only in a COMMENT, the field optional", {"dl/docker-compose.yml": compose([dl]), "dl/.felhom.yml": felhom([("media/dl", "optional")], comment=" # - path: media/dl\n # class: excluded\n")}, 1, ("optional",))
run("FACT: a /watch sub-folder optional under an excluded parent", {"dl/docker-compose.yml": compose([dl, "${USERDATA_PATH}/media/dl/watch:/watch"]), "dl/.felhom.yml": felhom([("media/dl", "excluded"), ("media/dl/watch", "optional")])}, 1, ("media/dl/watch",))
run("FACT: a target below /downloads", {"dl/docker-compose.yml": compose(["${USERDATA_PATH}/media/done:/downloads/complete"]), "dl/.felhom.yml": felhom([("media/done", "optional")])}, 1, ("media/done",))
mt = "${USERDATA_PATH}/media/metube:/downloads"
run("GENUINE (R-1283): metube's folder optional by ruling", {"metube/docker-compose.yml": compose([mt]), "metube/.felhom.yml": felhom([("media/metube", "optional")])}, 0, ("every one",))
run("FACT (R-1283): metube's folder mandatory — the ruling allows optional only", {"metube/docker-compose.yml": compose([mt]), "metube/.felhom.yml": felhom([("media/metube", "mandatory")])}, 1, ("templates/metube", "mandatory"))
run("FACT (R-1283): metube's folder UNLISTED", {"metube/docker-compose.yml": compose([mt]), "metube/.felhom.yml": felhom([("media/other", "excluded")])}, 1, ("UNLISTED",))
run("FACT: no download bind anywhere (nothing to judge)", {"dl/docker-compose.yml": compose(["${USERDATA_PATH}/media:/media:ro"]), "dl/.felhom.yml": felhom([("media", "excluded")])}, 3, ("nothing to judge",))
run("FACT: no templates/ at all (nothing to judge)", {}, 3, ("nothing to judge",), no_templates=True)
finally:
shutil.rmtree(ws, ignore_errors=True)
def privileges_cases():
"""check-privileges.py reads templates/*/docker-compose.yml AND steps/*.yml under --root (R-971)."""
global ran
ws = tempfile.mkdtemp(prefix="catalog-privileges-")
allow = io.open(os.path.join(ROOT, "scripts", "privilege-allowlist.json"), encoding="utf-8").read()
try:
def compose(extra="", vol=""):
return ("services:\n app:\n image: example/app:1.0\n%s volumes:\n - app_data:/data\n%s"
"volumes:\n app_data:\n" % (extra, vol))
homepage = ("services:\n homepage:\n image: ghcr.io/gethomepage/homepage:v1.13.2\n volumes:\n"
" - homepage_config:/app/config\n - /var/run/docker.sock:/var/run/docker.sock:ro\n"
" healthcheck:\n test: [\"CMD\", \"wget\", \"--spider\", \"-q\", \"http://127.0.0.1:3000\"]\n"
"volumes:\n homepage_config:\n")
# The compiled list is EMPTY since R-981 (2026-10-18); the entry-binding rules are still exercised on a list
# that carries the old homepage entry, so a future entry is held to them.
hp_list = json.dumps({"version": 2, "entries": [{"app": "homepage", "service": "homepage",
"setting": "bind /var/run/docker.sock -> /var/run/docker.sock ro",
"image": "ghcr.io/gethomepage/homepage",
"healthcheck": json.dumps(["CMD", "wget", "--spider", "-q", "http://127.0.0.1:3000"], separators=(",", ":"))}],
"appdata_folders": {"paperless-ngx": "paperless"}})
def run(name, files, expect_rc, must=(), no_templates=False, list_body=None, controller_copy=None):
global ran
cat = os.path.join(ws, "cat")
shutil.rmtree(cat, ignore_errors=True)
os.makedirs(os.path.join(cat, "scripts"))
io.open(os.path.join(cat, "scripts", "privilege-allowlist.json"), "w", encoding="utf-8").write(list_body or allow)
if controller_copy is not None:
cc = os.path.join(ws, "felhom-controller", "controller", "internal", "privpolicy")
os.makedirs(cc, exist_ok=True)
io.open(os.path.join(cc, "allowlist.json"), "w", encoding="utf-8").write(controller_copy)
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-privileges.py"), "--root=" + cat], ROOT)
shutil.rmtree(os.path.join(ws, "felhom-controller"), ignore_errors=True)
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:]))
print("\n-- privileges: genuine and decoys (each passes)")
run("GENUINE: a named volume and a ${HDD_PATH} bind", {"a/docker-compose.yml": compose(vol=" - ${HDD_PATH}/appdata/a:/config\n")}, 0, ("every class-setting",))
run("DECOY: privileged: true only in a COMMENT", {"a/docker-compose.yml": compose(" # privileged: true\n")}, 0)
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",))
run("FACT: cap_add", {"a/docker-compose.yml": compose(" cap_add: [SYS_ADMIN]\n")}, 1, ("cap_add SYS_ADMIN",))
run("FACT: the host root bound", {"a/docker-compose.yml": compose(vol=" - /:/host\n")}, 1, ("bind / -> /host rw",))
run("FACT: a bind through another variable", {"a/docker-compose.yml": compose(vol=" - ${OTHER}/x:/x\n")}, 1, ("bind ${OTHER}/x",))
run("FACT: homepage's socket READ-WRITE", {"homepage/docker-compose.yml": homepage.replace("docker.sock:ro", "docker.sock")}, 1, ("docker.sock rw",), list_body=hp_list)
run("FACT: the allowed socket in ANOTHER app", {"glance/docker-compose.yml": homepage}, 1, ("glance/docker-compose.yml",), list_body=hp_list)
run("FACT: network_mode host", {"a/docker-compose.yml": compose(" network_mode: host\n")}, 1, ("network_mode host",))
run("FACT: a driver_opts bind volume", {"a/docker-compose.yml": compose().replace("volumes:\n app_data:\n", "volumes:\n app_data:\n driver_opts:\n type: none\n o: bind\n device: /\n")}, 1, ("volume app_data driver_opts",))
run("FACT: a ${VAR} in a privileged key", {"a/docker-compose.yml": compose(" privileged: ${PRIV}\n")}, 1, ("interpolated privileged",))
run("FACT: privileged in a steps/ file", {"a/docker-compose.yml": compose(), "a/steps/0123456789abcdef.yml": compose(" privileged: true\n")}, 1, ("a/steps/0123456789abcdef.yml",))
run("FACT: homepage's socket under ANOTHER image", {"homepage/docker-compose.yml": homepage.replace("ghcr.io/gethomepage/homepage", "docker.io/evil/homepage")}, 1, ("allowed only for image",), list_body=hp_list)
run("FACT: homepage's socket with an added entrypoint", {"homepage/docker-compose.yml": homepage.replace(" volumes:", " entrypoint: [sh, -c, id]\n volumes:", 1)}, 1, ("own entrypoint",), list_body=hp_list)
run("FACT: gpus / a provider service / a privileged post_start", {"a/docker-compose.yml": compose(" gpus: all\n provider:\n type: model\n post_start:\n - command: id\n privileged: true\n")}, 1, ("gpus all", "provider", "post_start"))
run("FACT: a second service EXTENDS homepage (inherits the socket)", {"homepage/docker-compose.yml": homepage.replace("volumes:\n homepage_config:", " evil:\n image: evil/x:1\n extends:\n service: homepage\nvolumes:\n homepage_config:")}, 1, ("extends homepage",), list_body=hp_list)
run("FACT: homepage's healthcheck runs a shell", {"homepage/docker-compose.yml": homepage.replace('["CMD", "wget", "--spider", "-q", "http://127.0.0.1:3000"]', '["CMD-SHELL", "id"]')}, 1, ("healthcheck the list names",), list_body=hp_list)
run("FACT: a YAML merge key (the box expands it, the reader does not)", {"a/docker-compose.yml": "x-base: &base\n privileged: true\n" + compose(" <<: *base\n")}, 1, ("anchor",))
run("FACT: the drive's backups/ through ${HDD_PATH} (not appdata/)", {"a/docker-compose.yml": compose(vol=" - ${HDD_PATH}/backups:/b\n")}, 1, ("bind /mnt/felhom-drives/check/felhom-data/backups",))
run("FACT: a variable in a bind's options", {"a/docker-compose.yml": compose(vol=" - ${HDD_PATH}/a:/a:${MODE}\n")}, 1, ("variable in its target or options",))
run("GENUINE: homepage bumped to a new tag of the same image", {"homepage/docker-compose.yml": homepage.replace("homepage:v1.13.2", "homepage:v1.14.0")}, 0, list_body=hp_list)
run("FACT: the list copy differs from the controller's", {"a/docker-compose.yml": compose()}, 1, ("differs",), controller_copy=allow.replace("homepage", "glance"))
run("FACT: no templates/ at all (nothing to judge)", {}, 3, ("nothing to judge",), no_templates=True)
# R-981: on the REAL list homepage's socket is refused like any other app's.
run("FACT: homepage's socket on the real list (R-981: no exception)", {"homepage/docker-compose.yml": homepage}, 1, ("docker.sock ro",))
# R-1142: under ${HDD_PATH}/appdata/ an app reaches its OWN folder only.
run("FACT: app a binds app b's appdata folder (R-1142)", {"a/docker-compose.yml": compose(vol=" - ${HDD_PATH}/appdata/b:/config\n")}, 1, ("bind /mnt/felhom-drives/check/felhom-data/appdata/b",))
run("FACT: a name that only STARTS like its own (R-1142)", {"a/docker-compose.yml": compose(vol=" - ${HDD_PATH}/appdata/a-other:/config\n")}, 1, ("appdata/a-other",))
run("FACT: the whole appdata/ (R-1142)", {"a/docker-compose.yml": compose(vol=" - ${HDD_PATH}/appdata:/all\n")}, 1, ("appdata -> /all",))
run("GENUINE: paperless-ngx's listed folder appdata/paperless (R-1142)", {"paperless-ngx/docker-compose.yml": compose(vol=" - ${HDD_PATH}/appdata/paperless/media:/m\n")}, 0)
run("FACT: paperless-ngx binds appdata/paperless-ngx (the slug, where a folder is listed)", {"paperless-ngx/docker-compose.yml": compose(vol=" - ${HDD_PATH}/appdata/paperless-ngx:/m\n")}, 1, ("appdata/paperless-ngx",))
run("FACT: a template NAMED like paperless-ngx's folder binds it (security review 2026-10-18)", {"paperless/docker-compose.yml": compose(vol=" - ${HDD_PATH}/appdata/paperless/media:/m\n")}, 1, ("appdata/paperless/media",))
run("FACT: one appdata folder given to two apps", {"a/docker-compose.yml": compose()}, 1, ("given to two apps",), list_body=allow.replace('"paperless-ngx": "paperless"', '"paperless-ngx": "paperless", "x": "paperless"'))
run("FACT: an appdata folder that is a path (R-1142)", {"a/docker-compose.yml": compose()}, 1, ("not one folder name",), list_body=allow.replace('"paperless-ngx": "paperless"', '"paperless-ngx": "../backups"'))
# The stdlib reader against PyYAML on every catalog file (this suite needs PyYAML anyway).
import importlib.util
import yaml
spec = importlib.util.spec_from_file_location("check_privileges", os.path.join(ROOT, "scripts", "check-privileges.py"))
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
_, files = m.judge_files(ROOT)
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
# 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)))
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
import tempfile
ws = tempfile.mkdtemp(prefix="catalog-uncleanboot-")
try:
OLD, NEW = "ghcr.io/immich-app/immich-server:v3.2.4", "ghcr.io/immich-app/immich-server:v3.3.0"
def compose(server=OLD, ml="ghcr.io/immich-app/immich-machine-learning:v3.2.4", comment=""):
return ("# header\n%s\nservices:\n immich-server:\n image: %s\n container_name: immich-server\n"
" immich-machine-learning:\n image: %s\nvolumes:\n x:\n" % (comment, server, ml))
def block(images='["%s"]' % OLD, service="immich-server", commented=False):
b = ("after_unclean_boot:\n service: %s\n images: %s\n empty_files:\n under: \"${HDD_PATH}/t\"\n"
" repair:\n success: OK\n" % (service, images))
if commented:
b = "".join("# " + ln + "\n" for ln in b.splitlines())
return 'display_name: "Immich"\n' + b + "resources:\n mem_limit: 1M\n"
def run(name, files, expect_rc, must=()):
global ran
cat = os.path.join(ws, "cat")
shutil.rmtree(cat, ignore_errors=True)
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-unclean-boot-images.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:]))
print("\n-- unclean-boot-images: genuine and decoys")
run("GENUINE: the block lists the server's image", {"immich/.felhom.yml": block(), "immich/docker-compose.yml": compose()}, 0, ("1 after_unclean_boot",))
run("GENUINE: bumped AND the list updated (flow list)", {"immich/.felhom.yml": block('["%s", "%s"]' % (OLD, NEW)), "immich/docker-compose.yml": compose(NEW)}, 0, ("gate OK",))
run("GENUINE: bumped AND the list updated (block list)", {"immich/.felhom.yml": block('\n - "%s" # proven 2026-10-20\n - %s' % (OLD, NEW)), "immich/docker-compose.yml": compose(NEW)}, 0, ("gate OK",))
run("DECOY: the new image only in a compose COMMENT", {"immich/.felhom.yml": block(), "immich/docker-compose.yml": compose(comment="# image: " + NEW)}, 0, ("gate OK",))
run("DECOY: ANOTHER service bumped (machine-learning)", {"immich/.felhom.yml": block(), "immich/docker-compose.yml": compose(ml="ghcr.io/immich-app/immich-machine-learning:v3.3.0")}, 0, ("gate OK",))
run("DECOY: the block COMMENTED OUT, server bumped (no block, nothing owed)", {"immich/.felhom.yml": block(commented=True), "immich/docker-compose.yml": compose(NEW)}, 0, ("0 after_unclean_boot",))
run("DECOY: a template with no block", {"demo/.felhom.yml": 'display_name: "D"\n', "demo/docker-compose.yml": compose(NEW)}, 0, ("0 after_unclean_boot",))
print("-- unclean-boot-images: the facts (each MUST be refused)")
run("FACT: the server bumped, the list unchanged", {"immich/.felhom.yml": block(), "immich/docker-compose.yml": compose(NEW)}, 1, ("was proven on " + OLD, "the compose now runs " + NEW, "Re-prove the repair on 9202"))
run("FACT: the same in a steps/ file (the ladder)", {"immich/.felhom.yml": block(), "immich/docker-compose.yml": compose(),
"immich/steps/abc.felhom.yml": block(), "immich/steps/abc.yml": compose(NEW)}, 1, ("steps/abc.felhom.yml",))
run("FACT: the block names a service the compose does not run", {"immich/.felhom.yml": block(service="immich"), "immich/docker-compose.yml": compose()}, 1, ("does not run",))
run("FACT: the block lists no images", {"immich/.felhom.yml": block("[]"), "immich/docker-compose.yml": compose()}, 1, ("proven on nothing",))
finally:
shutil.rmtree(ws, ignore_errors=True)
@@ -876,7 +1274,7 @@ def volume_persistence_cases():
empty = os.path.join(ws, "nobin")
os.makedirs(empty)
def run(name, expect_rc, must=(), path=stub, templates=True):
def run(name, expect_rc, must=(), path=stub, templates=True, scratch=True):
global ran
cat = os.path.join(ws, "cat")
shutil.rmtree(cat, ignore_errors=True)
@@ -889,7 +1287,7 @@ def volume_persistence_cases():
"services:\n demo:\n image: example.org/demo:1.0\n volumes:\n - demo_data:/data\n"
"volumes:\n demo_data:\n")
r = subprocess.run([sys.executable, os.path.join(cat, "scripts", "check-volume-persistence.py")],
cwd=cat, env={"PATH": path}, capture_output=True, text=True, input="", timeout=300)
cwd=cat, env=dict({"PATH": path}, **({"FELHOM_SCRATCH_HOST": "1"} if scratch else {})), capture_output=True, text=True, input="", timeout=300)
out = r.stdout + r.stderr
ran += 1
miss = [m for m in must if m not in out]
@@ -902,6 +1300,8 @@ def volume_persistence_cases():
run("LABEL: a runtime that answers nothing", 3, ("HARNESS REFUSED", "failed its canary"))
run("LABEL: no docker at all", 3, ("HARNESS REFUSED",), path=empty)
run("LABEL: nothing to judge", 3, ("HARNESS REFUSED",), templates=False)
# R-896: a host that does not say it is a scratch host (DooPlex) — refused before the canary is even built.
run("LABEL: not a scratch host", 3, ("HARNESS REFUSED", "not a scratch host"), scratch=False)
finally:
shutil.rmtree(ws, ignore_errors=True)
@@ -966,6 +1366,61 @@ def mem_sum_cases():
shutil.rmtree(ws, ignore_errors=True)
def db_cred_cases():
"""check-db-credentials.py reads templates/*/docker-compose.yml + .felhom.yml via --root (R-1106)."""
global ran
import tempfile
ws = tempfile.mkdtemp(prefix="catalog-dbcred-")
try:
COMPOSE = (
"# header: POSTGRES_PASSWORD=${NOT_A_FIELD} is a comment\n"
"services:\n"
" demo:\n image: demo/demo:1.0\n environment:\n"
" - DATABASE_URL=postgres://demo:${DB_PASSWORD}@demo-db/demo\n - POSTGRES_PASSWORD=${APP_ONLY}\n"
" demo-db:\n image: postgres:16-alpine\n environment:\n"
" - POSTGRES_USER=demo\n - POSTGRES_PASSWORD=${DB_PASSWORD} # ${ALSO_COMMENT}\n"
" demo-cache:\n image: redis:7-alpine\n environment:\n - REDIS_PASSWORD=${CACHE_PW}\n"
" demo-maria:\n image: mariadb:11.4\n environment:\n"
" MARIADB_ROOT_PASSWORD: \"${DB_ROOT_PASSWORD:-x}\"\n MARIADB_PASSWORD: literal\n")
META = ('display_name: "Demo"\ndeploy_fields:\n'
' - env_var: DB_PASSWORD\n label: DB\n type: secret\n'
' - env_var: DB_ROOT_PASSWORD\n label: Root\n type: secret\n'
' - env_var: ADMIN_PASSWORD\n label: Admin\n type: password\n')
def run(name, compose, meta, expect_rc, must=()):
global ran
cat = os.path.join(ws, "cat")
shutil.rmtree(cat, ignore_errors=True)
d = os.path.join(cat, "templates", "demo")
os.makedirs(d)
io.open(os.path.join(d, "docker-compose.yml"), "w", encoding="utf-8").write(compose)
io.open(os.path.join(d, ".felhom.yml"), "w", encoding="utf-8").write(meta)
r = sh([sys.executable, os.path.join(ROOT, "scripts", "check-db-credentials.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:]))
print("\n-- db-credentials: genuine and decoys")
run("GENUINE + DECOYS: comment, app-service ref, redis, literal - all not judged", COMPOSE, META, 0,
("db-credentials gate OK", "2 database password reference(s)"))
print("-- db-credentials: the facts (each MUST be refused)")
run("FACT: list form, the variable has no deploy field",
COMPOSE.replace("POSTGRES_PASSWORD=${DB_PASSWORD} #", "POSTGRES_PASSWORD=${PG_SECRET} #"), META, 1,
("no deploy field PG_SECRET",))
run("FACT: list form, fed by a `type: password` field",
COMPOSE.replace("POSTGRES_PASSWORD=${DB_PASSWORD} #", "POSTGRES_PASSWORD=${ADMIN_PASSWORD} #"), META, 1,
("type 'password'",))
run("FACT: map form, the variable has no deploy field",
COMPOSE, META.replace(" - env_var: DB_ROOT_PASSWORD\n label: Root\n type: secret\n", ""), 1,
("no deploy field DB_ROOT_PASSWORD",))
finally:
shutil.rmtree(ws, ignore_errors=True)
def data_key_cases():
"""check-data-key.py reads templates/*/.felhom.yml via --root (R-127 leg a)."""
global ran
@@ -1020,6 +1475,261 @@ def data_key_cases():
shutil.rmtree(ws, ignore_errors=True)
# ── the user guide (2026-10-15): copy-i18n's guide rules and the advisory guide-version gate ─────────
#
# A self-contained decoy APP (templates/guidedecoy), admitted to the CLONE's freeze by the gate's own
# copy_strings — so the cases judge the guide rules and keep working whatever guides the real catalog
# carries later (a case keyed to a real template's guide rots the day that guide is rewritten).
GD_YML = "templates/guidedecoy/.felhom.yml"
GD_COMPOSE = "templates/guidedecoy/docker-compose.yml"
GD_HU_GUIDE = """ guide:
checked_version: "4.0.20"
sections:
- title: "Első sorozat hozzáadása"
intro: "Így kerül be egy sorozat."
steps:
- "Kattints a „Series” menüre"
- "Válaszd az „Add New” gombot"
- title: "Telefonos app"
steps:
- "Töltsd le az appot"
faq:
- q: "Hol vannak a fájlok?"
a: "A meghajtódon, a media mappában."
"""
GD_EN_GUIDE = """ guide:
sections:
- title: "Add your first series"
intro: "This is how a series gets in."
steps:
- "Select the „Series” menu"
- "Choose „Add New”"
- title: "Phone app"
steps:
- "Get the app"
faq:
- q: "Where are the files?"
a: "On your drive, in the media folder."
"""
GD_COMPOSE_TEXT = """services:
guidedecoy:
image: example.invalid/decoy:%s
container_name: guidedecoy
guidedecoy-db:
image: example.invalid/db:%s
"""
def gd_yaml(hu=GD_HU_GUIDE, en=GD_EN_GUIDE, head=""):
return ("%sdisplay_name: \"Guidedecoy\"\ndescription: \"Próba alkalmazás\"\nslug: \"guidedecoy\"\n"
"app_info:\n tagline: \"Próba\"\n docs_url: \"https://example.invalid/docs\"\n%s"
"i18n:\n en:\n description: \"A test app\"\n app_info:\n tagline: \"A test\"\n%s"
% (head, hu, en))
def _copy_gate_module():
import importlib.util
spec = importlib.util.spec_from_file_location("copy_gate", os.path.join(ROOT, "scripts", "check-copy-i18n.py"))
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
return m
def gd_freeze(yml_text):
"""Admit the decoy app's Hungarian to the clone's freeze, computed by the gate's OWN walker — the same
thing `--add-app` does, so the freeze cannot drift from what the gate counts."""
import yaml
strings = _copy_gate_module().copy_strings(yaml.safe_load(yml_text))
def fn(t):
data = json.loads(t)
data["apps"]["guidedecoy"] = strings
return json.dumps(data, ensure_ascii=False, indent=1, sort_keys=True) + "\n"
return ("scripts/copy_freeze/hu.json", fn)
def gd_app(yml_text, freeze=True, tag="4.0.20", db="16"):
edits = [(GD_YML, lambda t: yml_text), (GD_COMPOSE, lambda t: GD_COMPOSE_TEXT % (tag, db))]
if freeze:
edits.append(gd_freeze(yml_text))
return edits
def case_gv(name, clone, edits, must_contain=(), must_not=()):
"""guide-version is ADVISORY: every case expects exit 0, and is judged on what it PRINTS."""
global ran
ran += 1
base = sh(["git", "rev-parse", "HEAD"], cwd=clone).stdout.strip()
try:
for relpath, fn in edits:
edit(clone, relpath, fn)
r = sh([sys.executable, os.path.join(ROOT, "scripts", "check-guide-version.py"), "--root", clone,
"guidedecoy"], cwd=clone)
out = r.stdout + r.stderr
bad = [m for m in must_contain if m not in out] + ["UNWANTED " + m for m in must_not if m in out]
if r.returncode == 0 and not bad:
print(" ok %-52s rc=0 (advisory)" % name)
else:
fails.append("%s: rc=%d (advisory gate must exit 0); %s\n%s" % (name, r.returncode, bad, out[-700:]))
finally:
sh(["git", "checkout", "-q", "--", "."], cwd=clone)
sh(["git", "clean", "-qfd"], cwd=clone)
sh(["git", "reset", "-q", "--hard", base], cwd=clone)
def guide_cases(clone):
print("\n-- copy-i18n: the user guide (each FACT must be refused, naming the key)")
Y = gd_yaml()
# Scenario A — the genuine guide passes, and every guide string is COUNTED as copy: description, tagline,
# 2 titles, 1 intro, 3 steps, 1 question, 1 answer = 10.
case_copy("GENUINE: a full Hungarian guide with its English overlay", clone, gd_app(Y),
expect_rc=0, must_contain=("copy-i18n: OK", "guidedecoy 10/10"))
# the app IS frozen, but from before its guide existed: every guide string is NEW Hungarian
case_copy("FACT: guide strings that are not in the freeze", clone,
gd_app(Y, freeze=False) + [gd_freeze(gd_yaml(hu=""))],
expect_rc=1, must_contain=("guidedecoy: NEW Hungarian string app_info.guide.sections[0].title",
"NEW Hungarian string app_info.guide.faq[0].a"))
# Scenario B
case_copy("FACT: checked_version in the English block", clone,
gd_app(gd_yaml(en=GD_EN_GUIDE.replace(" guide:\n", " guide:\n checked_version: \"4.0.20\"\n"))),
expect_rc=1, must_contain=("guidedecoy: app_info.guide.checked_version in the English block",))
case_copy("FACT: a section with an empty steps list", clone,
gd_app(gd_yaml(hu=GD_HU_GUIDE.replace(" steps:\n - \"Töltsd le az appot\"\n", " steps: []\n"),
en=GD_EN_GUIDE.replace(" steps:\n - \"Get the app\"\n", " steps: []\n"))),
expect_rc=1, must_contain=("guidedecoy: app_info.guide.sections[1].steps is missing or empty",))
case_copy("FACT: an FAQ entry with a question and no answer", clone,
gd_app(gd_yaml(hu=GD_HU_GUIDE.replace(" a: \"A meghajtódon, a media mappában.\"\n", ""))),
expect_rc=1, must_contain=("guidedecoy: app_info.guide.faq[0].a is missing or empty",))
case_copy("FACT: an unquoted checked_version (YAML reads 4.10 as 4.1)", clone,
gd_app(gd_yaml(hu=GD_HU_GUIDE.replace("checked_version: \"4.0.20\"", "checked_version: 4.10"))),
expect_rc=1, must_contain=("guidedecoy: app_info.guide.checked_version must be a QUOTED string",))
case_copy("FACT: more English sections than Hungarian", clone,
gd_app(gd_yaml(en=GD_EN_GUIDE.replace(" faq:\n", " - title: \"Extra\"\n steps:\n - \"One more\"\n faq:\n"))),
expect_rc=1, must_contain=("guidedecoy: app_info.guide.sections has 3 entries, Hungarian has 2",))
case_copy("FACT: an English section with a different step count", clone,
gd_app(gd_yaml(en=GD_EN_GUIDE.replace(" - \"Choose „Add New”\"\n", ""))),
expect_rc=1, must_contain=("guidedecoy: app_info.guide.sections[0].steps has 1 entries, Hungarian has 2",))
case_copy("FACT: an English guide with no Hungarian guide", clone,
gd_app(gd_yaml(hu="")),
expect_rc=1, must_contain=("guidedecoy: app_info.guide is translated but the Hungarian has no guide",))
# Scenario E — a download source named in a guide, in either language
case_copy("FACT: a tracker named in an English step", clone,
gd_app(gd_yaml(en=GD_EN_GUIDE.replace("Get the app", "Get films from 1337x"))),
expect_rc=1, must_contain=("app_info.guide.sections[1].steps[0] names a download source ('1337x')",))
case_copy("FACT: a tracker named in a Hungarian answer (folded, any case)", clone,
gd_app(gd_yaml(hu=GD_HU_GUIDE.replace("A meghajtódon, a media mappában.", "Az nCore oldalról töltsd le."))),
expect_rc=1, must_contain=("guidedecoy: app_info.guide.faq[0].a names a download source ('ncore')",))
case_copy("DECOY: a tracker named only in a YAML comment", clone,
gd_app(gd_yaml(head="# not copy: 1337x, nCore, rarbg\n")),
expect_rc=0, must_contain=("copy-i18n: OK",))
case_copy("DECOY: a source-like word only in docs_url (configuration)", clone,
gd_app(gd_yaml().replace("https://example.invalid/docs", "https://example.invalid/rarbg-docs")),
expect_rc=0, must_contain=("copy-i18n: OK",))
print("\n-- guide-version (ADVISORY: WARN on the fact, silent on the label, exit 0 always)")
case_gv("FACT: the app's image moved off the checked tag (4.0.20 -> 4.0.21)", clone,
gd_app(Y, tag="4.0.21"), must_contain=("WARN guidedecoy", "4.0.20", "guidedecoy=4.0.21", "1 may be STALE"))
case_gv("GENUINE: the guide is current", clone, gd_app(Y),
must_contain=("1 guide(s) current",), must_not=("WARN",))
case_gv("DECOY: the checked tag survives only on a SIDECAR", clone, gd_app(Y, tag="4.0.21", db="4.0.20"),
must_contain=("WARN guidedecoy", "1 may be STALE"))
case_gv("DECOY: checked_version only in a COMMENT", clone,
gd_app(gd_yaml(hu=GD_HU_GUIDE.replace(" guide:\n checked_version: \"4.0.20\"\n", " # guide:\n # checked_version: \"4.0.20\"\n guidex:\n"))),
must_contain=("1 without a guide",), must_not=("WARN", "1 guide(s) current"))
case_gv("DECOY: checked_version only inside the English block", clone,
gd_app(gd_yaml(hu="", en=GD_EN_GUIDE.replace(" guide:\n", " guide:\n checked_version: \"4.0.21\"\n")), tag="4.0.20"),
must_contain=("1 without a guide",), must_not=("WARN",))
case_gv("FACT: an empty checked_version is HIDDEN and named", clone,
gd_app(gd_yaml(hu=GD_HU_GUIDE.replace("checked_version: \"4.0.20\"", "checked_version: \"\""))),
must_contain=("1 hidden", "hidden — guidedecoy"), must_not=("WARN",))
def security_scan_cases():
"""R-986: the shared scanner's decoys, the wrapper on this tree, and the wrapper with the shared gate missing."""
global ran
shared_dir = os.path.join(os.path.dirname(ROOT), "felhom.eu", "scripts")
wrapper = os.path.join(ROOT, "scripts", "check-security-scan.py")
suite = os.path.join(shared_dir, "test_security_scan_gate.py")
if not os.path.isfile(suite):
fails.append("security-scan: the shared decoy suite is MISSING (tried %s) - a failure, never a skip" % suite)
return
for name, argv, want_rc, must in (
("security-scan: the shared gate's 8 decoys", [sys.executable, suite], 0, "all 8 cases passed"),
("security-scan: GENUINE: the wrapper on this tree", [sys.executable, wrapper], 0, "security-scan:")):
ran += 1
p = subprocess.run(argv, cwd=ROOT, capture_output=True, text=True, input="")
if p.returncode != want_rc or must not in p.stdout + p.stderr:
fails.append("%s: rc=%d (want %d), %r missing\n%s" % (name, p.returncode, want_rc, must, (p.stdout + p.stderr)[-700:]))
else:
print(" ok %s" % name)
# The wrapper copied next to an EMPTY felhom.eu: the shared gate is missing → exit 1, never a skip.
ran += 1
tmp = tempfile.mkdtemp(prefix="secscan-missing-")
try:
os.makedirs(os.path.join(tmp, "app-catalog-felhom.eu", "scripts"))
os.makedirs(os.path.join(tmp, "felhom.eu", "scripts"))
w2 = os.path.join(tmp, "app-catalog-felhom.eu", "scripts", "check-security-scan.py")
shutil.copy(wrapper, w2)
p = subprocess.run([sys.executable, w2], cwd=tmp, capture_output=True, text=True, input="")
if p.returncode != 1 or "MISSING" not in p.stdout:
fails.append("security-scan: FACT: the shared gate missing - rc=%d, want 1 naming MISSING - LIVE HOLE\n%s"
% (p.returncode, p.stdout[-400:]))
else:
print(" ok security-scan: FACT: the shared gate missing is a failure")
finally:
shutil.rmtree(tmp, ignore_errors=True)
def upstream_cases():
"""check-upstream.py (the SHARED felhom.eu rule) reads FILES: templates/*/docker-compose.yml + .felhom.yml (R-1303)."""
global ran
import tempfile
ws = tempfile.mkdtemp(prefix="catalog-upstream-")
try:
COMPOSE = ("services:\n demo:\n image: demo/demo:1.0\n demo-db:\n image: postgres:16-alpine\n")
META = ('display_name: "Demo"\ndescription: "github:demo/demo"\n'
'upstream:\n demo/demo: "github:demo/demo"\n postgres: "gap:PostgreSQL announces on postgresql.org only"\n')
def run(name, compose, meta, expect_rc, must=()):
global ran
cat = os.path.join(ws, "cat")
shutil.rmtree(cat, ignore_errors=True)
d = os.path.join(cat, "templates", "demo")
os.makedirs(d)
io.open(os.path.join(d, "docker-compose.yml"), "w", encoding="utf-8").write(compose)
io.open(os.path.join(d, ".felhom.yml"), "w", encoding="utf-8").write(meta)
r = sh([sys.executable, os.path.join(ROOT, "scripts", "check-upstream.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:]))
print("\n-- upstream: genuine and decoys")
run("GENUINE: both images named, the gap has a reason", COMPOSE, META, 0, ("upstream gate OK", "1 stated gaps"))
print("-- upstream: the facts (each MUST be refused)")
run("FACT: the line only in a COMMENT", COMPOSE,
META.replace(' demo/demo: "github:demo/demo"\n', ' # demo/demo: "github:demo/demo"\n'), 1, ("demo/demo", "no upstream line"))
run("FACT: the source only under ANOTHER key (description:)", COMPOSE,
META.replace(' demo/demo: "github:demo/demo"\n', ''), 1, ("no upstream line",))
run("FACT: keyed by a DIFFERENT image (a typo)", COMPOSE,
META.replace(' demo/demo:', ' demo/dmeo:'), 1, ("demo/demo", "no upstream line"))
run("FACT: a gap with no reason", COMPOSE, META.replace("gap:PostgreSQL announces on postgresql.org only", "gap:"),
1, ("gap without a reason",))
run("FACT: an unknown source kind", COMPOSE, META.replace('"github:demo/demo"', '"gitlab:demo/demo"'),
1, ("unknown source kind",))
run("FACT: an image added to the compose with no line", COMPOSE + " cache:\n image: redis:7-alpine\n", META,
1, ("redis", "no upstream line"))
finally:
shutil.rmtree(ws, ignore_errors=True)
def main():
gate = os.path.join(ROOT, "scripts", "check-engine-major.py")
if not os.path.isfile(gate):
@@ -1216,6 +1926,10 @@ i18n:
[(PB, lambda t: t.replace("Titkosított jegyzet és szöveg megosztás",
"Titkosított jegyzet- és szövegmegosztás"))],
expect_rc=1, must_contain=("Hungarian CHANGED", "privatebin", "description"))
case_copy("FACT: an em dash in a Hungarian string (R-932)", clone,
[(PB, lambda t: t.replace("Titkosított jegyzet és szöveg megosztás",
"Titkosított jegyzet \u2014 szöveg megosztás"))],
expect_rc=1, must_contain=("em dash in customer Hungarian", "privatebin"))
case_copy("FACT: a Hungarian first_step removed", clone,
[(PB, lambda t: t.replace(" - 'Oszd meg a generált linket - a titkosítási kulcs az URL-ben van'\n", ""))],
expect_rc=1, must_contain=("REMOVED", "first_steps"))
@@ -1274,16 +1988,22 @@ i18n:
[(PB, en_with(*PROMISE)),
(AL, allow(("privatebin", "app_info.use_cases[4]", "can still be restored", "it's fine")))],
expect_rc=1, must_contain=("no reason worth the name", "retrieval promise the Hungarian does not make"))
# A credential is a LOGIN, not prose: gokapi's default_creds carries admin / adminadmin.
GK = "templates/gokapi/.felhom.yml"
# A credential is a LOGIN, not prose: wger's default_creds carries admin / adminadmin.
# The case REWRITES the existing English line in place (R-1115, 2026-10-17). It used to APPEND a
# second `i18n:` block to gokapi; commit 326f846 (R-1102) removed gokapi's Hungarian login line, so
# the case kept running against a template with no login to compare and the gate rightly said OK.
# An in-place replace cannot rot that way: when the line is gone, `edit` stops the suite.
WG = "templates/wger/.felhom.yml"
case_copy("FACT: a credential token rewritten in translation", clone,
[(GK, lambda t: t.rstrip("\n") + """
i18n:
en:
app_info:
default_creds: "Sign in: administrator / hunter2"
""")],
expect_rc=1, must_contain=("credential token",))
[(WG, lambda t: t.replace(" default_creds: 'admin / adminadmin'",
" default_creds: 'Sign in: administrator / hunter2'"))],
expect_rc=1, must_contain=("credential token 'admin'", "wger"))
# The value itself reworded (a digit token, CRED_TOKEN), with the account word kept.
CW = "templates/calibre-web/.felhom.yml"
case_copy("FACT: a credential value reworded in translation (one digit added)", clone,
[(CW, lambda t: t.replace(" default_creds: 'admin / admin123'",
" default_creds: 'admin / admin1234'"))],
expect_rc=1, must_contain=("credential token 'admin123'", "calibre-web"))
case_copy("FACT: an i18n block for a language the controller does not render", clone,
[(PB, lambda t: t.rstrip("\n") + "\ni18n:\n de:\n description: \"Verschluesselte Notizen\"\n")],
expect_rc=1, must_contain=("renders en only",))
@@ -1306,10 +2026,16 @@ i18n:
must_contain=("English coverage", "BELOW"),
extra_args=("--expect-missing", "999999"))
# THE GENUINE ARTICLE — must pass.
# THE GENUINE ARTICLE — must pass. The denominator is MEASURED (2026-10-15): privatebin carries a user guide
# since the app-guides night, whose Hungarian strings GENUINE_EN (written before it) does not translate — a
# literal 14/14 would make this case fail on its own premise, the R-663 shape.
def pb_hu_total(c):
import yaml
with io.open(os.path.join(c, PB), encoding="utf-8") as fh:
return len(_copy_gate_module().copy_strings(yaml.safe_load(fh)))
case_copy("GENUINE: a correct English block on privatebin", clone,
[(PB, add_en())], expect_rc=0,
must_contain=("copy-i18n: OK", "privatebin 14/14"))
must_contain=("copy-i18n: OK", "privatebin %d/%d" % (PB_EN, pb_hu_total(clone))))
# The ratchet is a fact about the CATALOG, not about how the gate was invoked. Naming one
# app must not change the count — the first version of this gate counted coverage only for
@@ -1526,6 +2252,7 @@ i18n:
case_pm("probe-measured: 'read upstream' is not a measurement", [(KOMGA, lambda t: drop_note(t).replace(
"\nsetup_done_probe:", "\n# read upstream 2026-09-29: isClaimed false -> true\nsetup_done_probe:"))], 1, ("measured",))
guide_cases(clone)
finally:
shutil.rmtree(clone, ignore_errors=True)
@@ -1535,7 +2262,16 @@ i18n:
onboarding_cases()
family_gate_cases()
mem_sum_cases()
upstream_cases()
db_cred_cases()
data_key_cases()
unclean_boot_cases()
login_kind_cases()
image_volumes_cases()
redis_persistence_cases()
privileges_cases()
download_binds_cases()
security_scan_cases()
if fails:
print()
+114
View File
@@ -227,5 +227,119 @@ class WriterTest(unittest.TestCase):
self.assertEqual(rc, 1); self.assertIn("re-run", out)
# ── D39 = B (`09` §3 decision 255): the security-fix step — box walk required, bench optional ──────────────────
SEC_IDS = "CVE-2026-96652,CVE-2026-96654"
SEC_URL = "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
def box_walk_record(app, frm, to, verdict="proven", digest=D, peak=12.5, seed="none", walk="security"):
return {"app": app, "walk": walk, "verdict": verdict, "from": frm, "to": to,
"to_digests": {s: digest for s in to}, "measured_at": "2026-10-23T12:00:00Z", "seed": seed,
"memory": {"peak_pct": peak, "soak_s": 600}}
class SecurityWriterTest(unittest.TestCase):
def setUp(self):
self.tmp = tempfile.mkdtemp(prefix="ladder-security-")
for app in ("navidrome", "docmost"):
shutil.copytree(os.path.join(ROOT, "templates", app), os.path.join(self.tmp, "templates", app))
fy = os.path.join(self.tmp, "templates", app, ".felhom.yml")
text = open(fy).read()
if "update_ladder:" in text:
open(fy, "w").write(text[:text.index("\n# update_ladder")] + "\n")
shutil.rmtree(os.path.join(self.tmp, "templates", app, "steps"), ignore_errors=True)
self.fy = os.path.join(self.tmp, "templates", "navidrome", ".felhom.yml")
self.comp = os.path.join(self.tmp, "templates", "navidrome", "docker-compose.yml")
self._orig = image_digest.resolve
image_digest.resolve = lambda ref: (D, None)
self.frm = {"navidrome": "deluan/navidrome:" + LIVE}
self.to = {"navidrome": "deluan/navidrome:" + NEXT}
def tearDown(self):
image_digest.resolve = self._orig
shutil.rmtree(self.tmp, ignore_errors=True)
def run_sec(self, box, bench_rec=None, drop=(), over=None):
xp = os.path.join(self.tmp, "box.json")
json.dump(box, open(xp, "w"))
args = {"--ids": SEC_IDS, "--advisory": SEC_URL, "--fixed-in": "1.43.3.10861", "--box": xp,
"--box-evidence": "felhom.eu/documentation/audits/x/box/", "--catalog": self.tmp}
args.update(over or {})
argv = ["--security"]
for k, v in args.items():
if k not in drop:
argv += [k, v]
if bench_rec is not None:
bp = os.path.join(self.tmp, "bench.json")
json.dump(bench_rec, open(bp, "w"))
argv += [bp, "--evidence", "felhom.eu/documentation/audits/x/bench/"]
buf = io.StringIO()
with redirect_stdout(buf):
rc = ut.write_ladder(argv)
return rc, buf.getvalue()
def gate(self, app="navidrome"):
import subprocess
return subprocess.run([sys.executable, os.path.join(HERE, "check-test-record.py"), "--root", self.tmp, app],
capture_output=True, text=True)
def test_writes_a_box_only_step_the_gate_accepts_and_warns_about(self):
rc, out = self.run_sec(box_walk_record("navidrome", self.frm, self.to))
self.assertEqual(rc, 0, out)
e = ladder.parse(open(self.fy).read())[0][-1]
self.assertEqual(e["verdict"], "security_fix")
self.assertEqual(e["security"]["ids"], ["CVE-2026-96652", "CVE-2026-96654"])
self.assertIsNone(e["evidence"]); self.assertIsNone(e["harness_version"])
self.assertEqual((e["seed"], e["memory_peak_pct"], e["memory_basis"]), ("none", 12.5, "box_soak"))
self.assertEqual(ladder.check_entry(e), [])
self.assertEqual(ladder.images_in(open(self.comp).read()), self.to) # the compose moved
r = self.gate()
self.assertEqual(r.returncode, 0, r.stdout)
self.assertIn("WARN navidrome: security-fix step deluan/navidrome:%s has no bench test (since 2026-10-23T12:00:00Z)" % NEXT, r.stdout)
def test_a_proven_bench_rides_with_it_and_silences_the_warning(self):
rc, out = self.run_sec(box_walk_record("navidrome", self.frm, self.to), bench_rec=bench())
self.assertEqual(rc, 0, out)
e = ladder.parse(open(self.fy).read())[0][-1]
self.assertEqual((e["bench_verdict"], e["harness_version"]), ("proven", 3))
self.assertNotIn("WARN", self.gate().stdout)
def test_refuses_a_box_walk_that_is_not_proven(self):
for v in ("failed", "inconclusive"):
rc, out = self.run_sec(box_walk_record("navidrome", self.frm, self.to, verdict=v))
self.assertEqual(rc, 1); self.assertIn("only a PROVEN `box_walk.py --security` walk", out)
rc, out = self.run_sec(box_walk_record("navidrome", self.frm, self.to, walk="retest"))
self.assertEqual(rc, 1); self.assertIn("only a PROVEN", out)
self.assertNotIn("update_ladder:", open(self.fy).read())
def test_refuses_a_bench_that_is_given_and_not_proven(self):
rc, out = self.run_sec(box_walk_record("navidrome", self.frm, self.to), bench_rec=bench(verdict="failed"))
self.assertEqual(rc, 1); self.assertIn("a bench given must be PROVEN", out)
def test_refuses_when_the_template_is_not_at_the_walks_from(self):
rc, out = self.run_sec(box_walk_record("navidrome", {"navidrome": "deluan/navidrome:0.0.1"}, self.to))
self.assertEqual(rc, 1); self.assertIn("the box walk started FROM", out)
def test_refuses_a_digest_that_moved_since_the_walk(self):
rc, out = self.run_sec(box_walk_record("navidrome", self.frm, self.to, digest="sha256:" + "9" * 64))
self.assertEqual(rc, 1); self.assertIn("walk again", out)
def test_refuses_a_database_engine_major(self):
dc = os.path.join(self.tmp, "templates", "docmost", "docker-compose.yml")
frm = ladder.images_in(open(dc).read())
to = dict(frm); to["docmost-postgres"] = "postgres:19-alpine"
self.assertEqual(frm["docmost-postgres"].split(":")[1].split("-")[0], "18") # READ: the live engine major
rc, out = self.run_sec(box_walk_record("docmost", frm, to))
self.assertEqual(rc, 1); self.assertIn("may not cross a database engine major", out)
def test_refuses_a_missing_field_and_a_bad_id(self):
rc, out = self.run_sec(box_walk_record("navidrome", self.frm, self.to), drop=("--advisory",))
self.assertEqual(rc, 1); self.assertIn("['--advisory']", out)
rc, out = self.run_sec(box_walk_record("navidrome", self.frm, self.to), over={"--ids": "OSV-2026-1"})
self.assertEqual(rc, 1); self.assertIn("are not CVE-YYYY-NNNN or GHSA", out)
rc, out = self.run_sec(box_walk_record("navidrome", self.frm, self.to, seed=None))
self.assertEqual(rc, 1); self.assertIn("seed is None", out)
if __name__ == "__main__":
unittest.main(verbosity=2)
+87
View File
@@ -0,0 +1,87 @@
#!/usr/bin/env python3
"""R-1338 (2026-10-28 night): the update test's memory figure counts only the memory the app still holds.
Measured on the bench (felhom.eu audits/night-2026-10-28/r1338/): Wanderer's Meilisearch read `anon` 382 MB of its
384 MB limit for ten minutes, while 297 MB sat on the inactive FILE list with only 1 MB of real file cache — pages the
allocator gave back (MADV_FREE), which the kernel reclaims first (0 kills). The mark read 95–96 % on every venue; the
live figure is ~86 MB (22 %). These tests use those numbers.
Run: python3 test_memory_live.py (pure Python; no Docker)."""
import importlib.util
import os
import sys
import unittest
HERE = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, HERE)
from memfigure import anon_live # noqa: E402
MB = 1000 * 1000
def _load_upgrade_test():
spec = importlib.util.spec_from_file_location("upgrade_test_mod", os.path.join(HERE, "upgrade-test.py"))
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
return mod
class AnonLive(unittest.TestCase):
def test_the_measured_spike(self):
# The cap run's sample at +112 s (bench, MB = 10^6 B): estimate (a) 86 MB, the anon lists (b) 99 MB → 99 MB.
# RED-PROOF: return stat["anon"] → 382 MB → FAILS.
self.assertEqual(anon_live({"anon": 382 * MB, "file": 1 * MB, "active_file": 0, "inactive_file": 297 * MB,
"active_anon": 99 * MB, "inactive_anon": 0, "shmem": 0}), 99 * MB)
# without the anon-list fields: estimate (a) alone
self.assertEqual(anon_live({"anon": 382 * MB, "file": 1 * MB, "active_file": 0, "inactive_file": 297 * MB}), 86 * MB)
def test_it_errs_high_never_above_anon(self):
# RED-PROOF: drop the max(a, b) → 86 MB → FAILS; drop the cap → 69 MB above anon's 59 → FAILS.
self.assertEqual(anon_live({"anon": 300 * MB, "file": 0, "active_file": 0, "inactive_file": 214 * MB,
"active_anon": 100 * MB, "inactive_anon": 0, "shmem": 0}), 100 * MB)
self.assertEqual(anon_live({"anon": 59 * MB, "file": 1 * MB, "active_file": 0, "inactive_file": 0,
"active_anon": 69 * MB, "inactive_anon": 0, "shmem": 0}), 59 * MB)
def test_before_the_spike_nothing_is_given_back(self):
self.assertEqual(anon_live({"anon": 59 * MB, "file": 1 * MB, "active_file": 0, "inactive_file": 0}), 59 * MB)
def test_real_file_cache_is_not_subtracted(self):
# a page cache of 200 MB on the file lists (file == the lists): nothing is given-back anon
self.assertEqual(anon_live({"anon": 300 * MB, "file": 200 * MB, "active_file": 120 * MB, "inactive_file": 80 * MB}), 300 * MB)
def test_missing_anon_is_unknown(self):
self.assertIsNone(anon_live({"file": 1}))
class SoakSummary(unittest.TestCase):
def test_the_mark_reads_the_live_figure(self):
os.environ.setdefault("TARGET", "9202")
import box_walk
lim = 402653184
samples = [
{"c": "wanderer-search", "anon": 59 * MB, "file": 1 * MB, "active_file": 0, "inactive_file": 0, "max": str(lim),
"peak": 76 * MB, "oom_kill": 0, "restarts": 0, "running": "true", "started": "s", "oomkilled": "false", "cg": "x"},
{"c": "wanderer-search", "anon": 382 * MB, "file": 1 * MB, "active_file": 0, "inactive_file": 297 * MB,
"active_anon": 99 * MB, "inactive_anon": 0, "shmem": 0, "max": str(lim),
"peak": lim, "oom_kill": 0, "restarts": 0, "running": "true", "started": "s", "oomkilled": "false", "cg": "x"},
]
r = box_walk.soak_summary(samples, 20, 10)
c = r["containers"]["wanderer-search"]
# RED-PROOF: let peaks take anon_peak_pct again → peak_pct 94.9 → FAILS.
self.assertEqual(r["peak_pct"], round(100.0 * 99 * MB / lim, 1))
self.assertEqual(c["anon_peak_pct"], round(100.0 * 382 * MB / lim, 1))
self.assertEqual(r["peak_basis"], "anon_live")
class TightMark(unittest.TestCase):
def test_the_bench_mark_prefers_the_live_figure(self):
ut = _load_upgrade_test()
per = {"search": {"anon_live_peak_pct": 0.224, "anon_peak_pct": 0.995, "peak_pct": 1.0},
"old": {"anon_peak_pct": 0.95, "peak_pct": 1.0}, # a record without the live figure: decision 22 stands
"small": {"anon_live_peak_pct": 0.10, "anon_peak_pct": 0.12, "peak_pct": 0.5}}
# RED-PROOF: look up anon_peak_pct before anon_live_peak_pct → "search" is tight → FAILS.
self.assertEqual(ut.tight_containers(per, 0.80), ["old"])
if __name__ == "__main__":
unittest.main()
+48 -5
View File
@@ -312,6 +312,15 @@ class BoxAdminSeedGuard(unittest.TestCase):
self.assertFalse(ok, want)
self.assertIn(want, why)
def test_the_drill_mirror_counts_as_the_drill(self):
# Every walk since R-992 reads the drill through a local mirror; the guard knew only the repo's name, so vaultwarden's
# walk on 9202 stopped at „the box is not on the drill catalog" (2026-11-02, seen live, the red of this test).
w = FakeBoxWalk()
w.guest = lambda script: "git:\n branch: main\n repo_url: file:///opt/docker/felhom-controller/drill-catalog.git\n"
self.assertEqual(self.allowed(w, self.ENV), (True, ""))
w.guest = lambda script: "git:\n branch: main\n repo_url: https://gitea.dooplex.hu/admin/app-catalog-felhom.eu.git\n"
self.assertIn("drill catalog", self.allowed(w, self.ENV)[1])
def seed(self, w, env):
with mock.patch.dict(os.environ, env, clear=False):
if "FELHOM_BOX_ADMIN_SEED" not in env:
@@ -409,15 +418,19 @@ class BoxWalkTargets(unittest.TestCase):
sys.modules.pop("box_walk", None)
return importlib.import_module("box_walk")
# 9202 takes its address by DHCP (.114 until 2026-10-19, then .121), so its row names none and box_walk reads it from
# the guest at start (resolve_base). These tests pass BASE so the import asks no box (2026-10-23: they pinned .114).
def test_every_row_is_complete(self):
bw = self.load({})
bw = self.load({"BASE": "https://192.0.2.1"})
for name, row in bw.TARGETS.items():
self.assertEqual(set(row), {"hp", "ssh", "jump", "guest", "base", "domain"}, name)
self.assertTrue(row["base"].startswith("https://"), name)
self.assertTrue(row["base"] is None or row["base"].startswith("https://"), name)
for dhcp in ("9202", "tester-1"): # Tester 1's guest moved .101 -> .148 on 2026-10-23
self.assertIsNone(bw.TARGETS[dhcp]["base"], "%s is DHCP: its address is read from the guest, never typed" % dhcp)
def test_the_default_stays_scratch_9202(self):
bw = self.load({})
self.assertEqual((bw.HP, bw.GUEST, bw.BASE), ("demo-hp", "9202", "https://192.168.0.114"))
bw = self.load({"BASE": "https://192.0.2.1"})
self.assertEqual((bw.HP, bw.GUEST, bw.BASE), ("demo-hp", "9202", "https://192.0.2.1"))
self.assertEqual(bw.ssh_args()[-1], "demo-hp")
self.assertNotIn("-J", bw.ssh_args())
@@ -426,13 +439,43 @@ class BoxWalkTargets(unittest.TestCase):
self.assertEqual((bw.HP, bw.GUEST, bw.BASE), ("demo-hp", "9201", "https://192.168.0.155"))
def test_the_tester_1_box_is_reached_through_the_hp_box(self):
bw = self.load({"TARGET": "tester-1"})
bw = self.load({"TARGET": "tester-1", "BASE": "https://192.0.2.1"})
self.assertEqual((bw.HP, bw.GUEST, bw.DOMAIN), ("tester-1", "9201", "enkicsifelhom.hu"))
a = bw.ssh_args()
self.assertEqual(a[a.index("-J") + 1], "demo-hp")
self.assertEqual(a[-1], "root@192.168.0.154")
self.assertIn(("tester-1", "9201"), fxbox.BOX_ADMIN_SEED_GUESTS)
def test_hdd_path_is_the_drive_itself(self):
"""R-839: the deploy API refuses an HDD_PATH that is a folder inside a registered drive (409, measured
2026-10-24 on 9202 with DRIVE/qbittorrent). The walk sends the drive and makes no folder for it; another
path field still gets its own folder. RED-PROOF: send DRIVE/<app> for HDD_PATH again → fails."""
bw = self.load({"BASE": "https://192.0.2.1"})
fields = [{"env_var": "HDD_PATH", "type": "path", "required": True},
{"env_var": "MEDIA_DIR", "type": "path", "required": True}]
made = []
with mock.patch.object(bw, "ctl", return_value=("200", {"data": {"metadata": {"deploy_fields": fields}}})), \
mock.patch.object(bw, "guest", side_effect=lambda script, timeout=600: made.append(script) or ""), \
mock.patch.object(bw, "say"):
v = bw.deploy_values("qbittorrent", "x")
self.assertEqual(v["HDD_PATH"], "/mnt/felhom-drives/scratch_hdd")
self.assertEqual(v["MEDIA_DIR"], bw.DRIVE + "/qbittorrent")
self.assertEqual(len(made), 1)
self.assertNotIn("scratch_hdd ", made[0] + " ") # the drive root itself is never mkdir-ed
def test_remove_looks_for_the_install_record_not_the_template_folder(self):
"""/opt/docker/stacks/<app> is the catalog's template copy and stays after a clean remove; app.yaml is the
install's record. RED-PROOF: check the folder again → fails."""
bw = self.load({"BASE": "https://192.0.2.1"})
seen = []
with mock.patch.object(bw, "ctl", return_value=("200", {"ok": True})), \
mock.patch.object(bw, "stack", return_value={"deployed": False}), \
mock.patch.object(bw, "guest", side_effect=lambda script, timeout=600: seen.append(script) or ""), \
mock.patch.object(bw, "say"), mock.patch.object(bw.time, "sleep"):
bw.remove("qbittorrent")
check = [c for c in seen if "/opt/docker/stacks/" in c]
self.assertTrue(check and "/opt/docker/stacks/qbittorrent/app.yaml" in check[-1], seen)
def test_an_unknown_target_is_refused(self):
with self.assertRaises(SystemExit):
self.load({"TARGET": "ep0"})
+193 -59
View File
@@ -48,6 +48,7 @@ Usage: python3 upgrade-test.py [--soak SECONDS] <edge-id> [<edge-id> …] (se
Layout: templates under /opt/upg/templates, evidence under /opt/upg/evidence
"""
import importlib.util, json, os, re, shutil, subprocess, sys, time
from memfigure import anon_live # R-1338: the mark's memory figure, shared with box_walk.py
from datetime import datetime, timezone
from pathlib import Path
@@ -162,9 +163,9 @@ LOAD_CONCURRENCY = 4
# only address it reads — measured in the v0.20.0 and v0.21.0 images), which the bench has no name or certificate for;
# on a box traefik answers it. The bench points it at the database's own container instead. Every verdict that used an
# override carries it (`bench_overrides`), so the difference from a box is on the record, never silent.
BENCH_ENV_OVERRIDES = {
"wanderer": {"wanderer": {"PUBLIC_POCKETBASE_URL": "http://wanderer-db:8090"}},
}
# 2026-10-28 (felhom.eu R-1335): wanderer's TEMPLATE now points PUBLIC_POCKETBASE_URL at its database container (no
# public PocketBase), so the bench needs no override for it any more — the bench and the box run the same definition.
BENCH_ENV_OVERRIDES = {}
def apply_bench_overrides(app: str, compose_text: str) -> str:
@@ -193,7 +194,7 @@ def render(app: str, images: dict, workdir: Path, env: dict, template: str = Non
Substitution is per service and only on that service's own `image:` line — never a blind
string replace, which would also rewrite an image name that appears in a comment or an env var.
"""
src = (TEMPLATES / (template or app) / "docker-compose.yml").read_text()
src = (TEMPLATES / (template or app) / "docker-compose.yml").read_text(encoding="utf-8")
out, cur = [], None
for line in src.splitlines():
m = re.match(r"^ ([A-Za-z0-9_-]+):\s*$", line)
@@ -204,7 +205,7 @@ def render(app: str, images: dict, workdir: Path, env: dict, template: str = Non
line = mi.group(1) + images[cur]
out.append(line)
workdir.mkdir(parents=True, exist_ok=True)
(workdir / "docker-compose.yml").write_text(apply_bench_overrides(app, pg_mounts_for("\n".join(out) + "\n")))
(workdir / "docker-compose.yml").write_text(apply_bench_overrides(app, pg_mounts_for("\n".join(out) + "\n")), encoding="utf-8")
write_secret_file(workdir / ".env", "".join(f"{k}={v}\n" for k, v in env.items()))
return workdir / "docker-compose.yml"
@@ -441,6 +442,29 @@ def _stat_anon(cg: str):
return None
def _stat_fields(cg: str):
out = {}
try:
for line in open(os.path.join(cg, "memory.stat")):
k, _, v = line.partition(" ")
if k in ("anon", "file", "active_file", "inactive_file", "active_anon", "inactive_anon", "shmem"):
out[k] = int(v)
except (OSError, ValueError):
return {}
return out
def tight_containers(per: dict, limit_frac: float):
"""The containers the memory_tight mark names: the live anon figure (R-1338) where measured, else anon (decision
22), else the cgroup peak — each as a fraction of the limit, above limit_frac."""
def pct(p):
for k in ("anon_live_peak_pct", "anon_peak_pct", "peak_pct"):
if p.get(k) is not None:
return p[k]
return None
return [n for n, p in per.items() if pct(p) is not None and pct(p) > limit_frac]
def venue_swap_bytes(meminfo: str | None = None):
"""R-733: the venue's own swap (SwapTotal of /proc/meminfo, in bytes) — None when it cannot be read.
The bench guest had NONE while every box guest reads `swap: 512`: immich passed on 9202 by swapping
@@ -483,6 +507,8 @@ def memory_snapshot(project: str, workdir: Path):
# too, which the kernel reclaims before it kills anything (night 2026-09-23, nextcloud
# read 100 % with 0 kills). Reported, not yet used for the verdict or the mark.
"anon": _stat_anon(cg) if cg else None,
# R-1338: the anon pages the app has NOT given back (MADV_FREE pages excluded) — the mark's figure.
"anon_live": anon_live(_stat_fields(cg)) if cg else None,
# R-733: swap beside anon — a box guest has 512 MiB swap, the bench had none.
"swap": _read_int(os.path.join(cg, "memory.swap.current")) if cg else None,
"swap_peak": _read_int(os.path.join(cg, "memory.swap.peak")) if cg else None,
@@ -509,7 +535,7 @@ def memory_watch(app: str, project: str, workdir: Path, seconds: int, say, ev: P
scheme = "http"
if native is None and boxport is not None:
# a box-fixture app: load the container traefik routes `/` to, at its own port
rts = boxport.routes((workdir / "docker-compose.yml").read_text())
rts = boxport.routes((workdir / "docker-compose.yml").read_text(encoding="utf-8"))
root = [r for r in rts if not r[0]] or rts
if root:
cname, port = root[0][1], root[0][2]
@@ -525,7 +551,7 @@ def memory_watch(app: str, project: str, workdir: Path, seconds: int, say, ev: P
opener = urllib.request.build_opener(_NoRedirect, urllib.request.HTTPSHandler(context=ssl._create_unverified_context()))
host = None
try:
envtxt = (workdir / ".env").read_text()
envtxt = (workdir / ".env").read_text(encoding="utf-8")
sub = re.search(r"^SUBDOMAIN=(.*)$", envtxt, re.M)
dom = re.search(r"^DOMAIN=(.*)$", envtxt, re.M)
if sub and dom:
@@ -589,23 +615,28 @@ def memory_watch(app: str, project: str, workdir: Path, seconds: int, say, ev: P
b = base0.get(n, {})
pk, lim = v["peak"], v["limit"]
anon_max = max([smp["containers"].get(n, {}).get("anon") or 0 for smp in samples] + [v.get("anon") or 0])
lives = [x for x in [smp["containers"].get(n, {}).get("anon_live") for smp in samples] + [v.get("anon_live")] if x is not None]
live_max = max(lives) if lives else None
per[n] = {"limit": lim, "peak": pk,
"peak_pct": round(pk / lim, 3) if (pk and lim) else None,
"anon_peak_sampled": anon_max or None,
"anon_peak_pct": round(anon_max / lim, 3) if (anon_max and lim) else None,
"anon_live_peak_sampled": live_max,
"anon_live_peak_pct": round(live_max / lim, 3) if (live_max is not None and lim) else None,
"swap_peak": swap_peak_of(samples, n, v),
"oom_kills": None if v["oom_kill"] is None else v["oom_kill"] - (b.get("oom_kill") or 0),
"restarts": (v["restarts"] or 0) - (b.get("restarts") or 0),
"oomkilled_flag": v["oomkilled_flag"], "measured": v["cgroup"]}
(ev / "memory-samples.json").write_text(json.dumps(samples, indent=2))
(ev / "memory-samples.json").write_text(json.dumps(samples, indent=2), encoding="utf-8")
killed = any((p["oom_kills"] or 0) > 0 or p["restarts"] > 0 or p["oomkilled_flag"] for p in per.values())
# DECIDED 2026-09-23 night (CC, unattended — operator may reverse; `09` §3 decision 22): the mark
# reads the APP's own memory (anon, sampled) where it was measured. memory.peak counts the file cache,
# which the kernel drops before it kills anything: nextcloud and immich's postgres read 100 % with 0
# kills. The cgroup peak stays in the record; a kill or a restart still FAILS the edge either way.
def _tight_pct(p):
return p.get("anon_peak_pct") if p.get("anon_peak_pct") is not None else p["peak_pct"]
tight = [n for n, p in per.items() if _tight_pct(p) is not None and _tight_pct(p) > MEMORY_TIGHT]
# R-1338 (2026-10-28 night, the brief's „the gate reads the right figure"): the live anon figure — `anon` without the
# pages the app already gave back (MADV_FREE), which the kernel reclaims first. anon and the cgroup peak stay in the
# record beside it.
tight = tight_containers(per, MEMORY_TIGHT)
rec = {"soak_s": round(time.time() - t0, 1), "requested_s": seconds, "requests": hits["n"],
"codes": hits["codes"], "first_kill": first_bad, "containers": per,
"unmeasured": [n for n, p in per.items() if not p["measured"]],
@@ -906,7 +937,7 @@ def bench_convert(conv, e, app, project, workdir, env, ev, say):
cvp._sh(["docker", "start", cid])
pg_wait(cid, user)
before = pg_check(cid, user)
(ev / "convert-check-before.txt").write_text("\n".join(before) + "\n")
(ev / "convert-check-before.txt").write_text("\n".join(before) + "\n", encoding="utf-8")
# the dump carries the app's rows and its roles' password hashes: it stays in the WORK dir (removed with the
# edge), never in the evidence that is copied off the bench and committed.
dump = workdir / "convert-dumpall.sql"
@@ -914,7 +945,7 @@ def bench_convert(conv, e, app, project, workdir, env, ev, say):
with open(dump, "w") as f:
r = subprocess.run(["docker", "exec", cid, "pg_dumpall", "-h", "127.0.0.1", "-U", user], stdout=f,
stderr=subprocess.PIPE, text=True, timeout=7200)
if r.returncode != 0 or PG_DUMPALL_DONE not in dump.read_text()[-4096:]:
if r.returncode != 0 or PG_DUMPALL_DONE not in dump.read_text(encoding="utf-8")[-4096:]:
raise RuntimeError(f"pg_dumpall rc={r.returncode} / no completion line: {r.stderr[-300:]}")
rec["dump_s"], rec["dump_bytes"] = round(time.time() - td, 2), dump.stat().st_size
vols = json.loads(cvp._sh(["docker", "inspect", cid, "--format", "{{json .Mounts}}"]).stdout or "[]")
@@ -938,16 +969,16 @@ def bench_convert(conv, e, app, project, workdir, env, ev, say):
_psql(cid2, user, "postgres", f'DROP DATABASE "{db}"')
dropped.append(db)
skip = {f"CREATE ROLE {r};" for r in _psql(cid2, user, "postgres", "select quote_ident(rolname) from pg_roles where rolname !~ '^pg_'")}
body = "".join(l for l in dump.read_text().splitlines(True) if l.rstrip("\r\n") not in skip)
body = "".join(l for l in dump.read_text(encoding="utf-8").splitlines(True) if l.rstrip("\r\n") not in skip)
tl = time.time()
r = subprocess.run(["docker", "exec", "-i", cid2, "psql", "-h", "127.0.0.1", "-U", user, "-d", "postgres",
"-v", "ON_ERROR_STOP=1", "-q"], input=body, capture_output=True, text=True, timeout=7200)
(ev / "convert-load.err").write_text(r.stderr)
(ev / "convert-load.err").write_text(r.stderr, encoding="utf-8")
if r.returncode != 0:
raise RuntimeError(f"the load stopped (rc={r.returncode}): {r.stderr.strip()[:400]}")
rec["load_s"], rec["dropped"], rec["skipped_create_role"] = round(time.time() - tl, 2), dropped, sorted(skip)
after = pg_check(cid2, user)
(ev / "convert-check-after.txt").write_text("\n".join(after) + "\n")
(ev / "convert-check-after.txt").write_text("\n".join(after) + "\n", encoding="utf-8")
if after != before:
raise RuntimeError("the check differs after the load: " + "; ".join(sorted(set(before) ^ set(after)))[:400])
ver = cvp._sh(["docker", "exec", cid2, "sh", "-c", 'cat "$PGDATA/PG_VERSION"']).stdout.strip()
@@ -970,8 +1001,8 @@ def run_edge(edge_id: str) -> dict:
shutil.rmtree(workdir, ignore_errors=True)
tdir = e.get("template") or app
felhom = (TEMPLATES / tdir / ".felhom.yml").read_text()
compose_text = (TEMPLATES / tdir / "docker-compose.yml").read_text()
felhom = (TEMPLATES / tdir / ".felhom.yml").read_text(encoding="utf-8")
compose_text = (TEMPLATES / tdir / "docker-compose.yml").read_text(encoding="utf-8")
env = cvp.build_env(app, felhom, compose_text)
rec = {"harness_version": HARNESS_VERSION, "edge": edge_id, "app": app, "note": e["note"],
@@ -1037,9 +1068,9 @@ def run_edge(edge_id: str) -> dict:
return rec
files_before = bind_tree_hash(project, workdir)
(ev / "files-before.json").write_text(json.dumps(files_before, indent=2))
(ev / "files-before.json").write_text(json.dumps(files_before, indent=2), encoding="utf-8")
detail_before = bind_tree_files(project, workdir)
(ev / "files-before-detail.json").write_text(json.dumps(detail_before, indent=2))
(ev / "files-before-detail.json").write_text(json.dumps(detail_before, indent=2), encoding="utf-8")
# --- 4. TO ---
swap_at = datetime.now(timezone.utc).replace(microsecond=0).isoformat().replace("+00:00", "Z")
@@ -1061,7 +1092,7 @@ def run_edge(edge_id: str) -> dict:
rec["healthy_after"] = ok2
rec["duration_s"] = secs2
say(f"TO settled={ok2} in {secs2}s :: {json.dumps(states2)}")
(ev / "to-states.json").write_text(json.dumps(states2, indent=2))
(ev / "to-states.json").write_text(json.dumps(states2, indent=2), encoding="utf-8")
# CAPTURE THE WHOLE TO-STEP LOG *NOW*, not at the end.
# `docker compose logs` only shows the CONTAINERS THAT EXIST, and the abort below replaces
@@ -1070,17 +1101,17 @@ def run_edge(edge_id: str) -> dict:
# skipped") survived only because it had already been extracted. Same class as R-320: the
# intermediate teardown is the one that loses the evidence.
full_to = compose(workdir, project, "logs", "--no-color", timeout=180)
(ev / "to-full.log").write_text((full_to.stdout + full_to.stderr)[-400000:])
(ev / "to-full.log").write_text((full_to.stdout + full_to.stderr)[-400000:], encoding="utf-8")
rec["engine_state_after"] = engine_state(e["to"]) or None
if rec["engine_state_after"]:
for svc, st in rec["engine_state_after"].items():
say(f"engine state {svc}: {st['answer'][:180]}")
(ev / "engine-state.json").write_text(json.dumps(rec["engine_state_after"], indent=2))
(ev / "engine-state.json").write_text(json.dumps(rec["engine_state_after"], indent=2), encoding="utf-8")
mig = migration_lines(project, workdir, swap_at)
rec["migration_observed"] = mig[0] if mig else None
(ev / "migration-lines.txt").write_text("\n".join(mig))
(ev / "migration-lines.txt").write_text("\n".join(mig), encoding="utf-8")
say(f"migration lines observed: {len(mig)}")
# --- 5. THE RESULT ---
@@ -1090,11 +1121,11 @@ def run_edge(edge_id: str) -> dict:
# --- 5a. did the update rewrite the household's FILES? (decision 13's `files may change`) ---
files_after = bind_tree_hash(project, workdir)
(ev / "files-after.json").write_text(json.dumps(files_after, indent=2))
(ev / "files-after.json").write_text(json.dumps(files_after, indent=2), encoding="utf-8")
rec["files_changed"] = sorted(k for k in set(files_before) | set(files_after)
if files_before.get(k) != files_after.get(k))
detail_after = bind_tree_files(project, workdir)
(ev / "files-after-detail.json").write_text(json.dumps(detail_after, indent=2))
(ev / "files-after-detail.json").write_text(json.dumps(detail_after, indent=2), encoding="utf-8")
rec["files_changed_detail"] = changed_files(detail_before, detail_after)[:200]
counted, ignored = classify_changes(app, detail_before, detail_after)
rec["files_ignored"] = ignored[:200] # R-734: app-owned markers taken away, each with its reason
@@ -1125,12 +1156,12 @@ def run_edge(edge_id: str) -> dict:
render(app, e["frm"], workdir, env, e.get("template"))
up3 = compose(workdir, project, "up", "-d")
ok3, secs3, states3 = settle(project, workdir, wait=180)
(ev / "abort-states.json").write_text(json.dumps(states3, indent=2))
(ev / "abort-states.json").write_text(json.dumps(states3, indent=2), encoding="utf-8")
if not ok3:
rec["abort"] = "refuses"
lg = compose(workdir, project, "logs", "--tail", "40", "--no-color", timeout=120)
tail = (lg.stdout + lg.stderr).strip()
(ev / "abort-refusal.txt").write_text(tail)
(ev / "abort-refusal.txt").write_text(tail, encoding="utf-8")
rec["abort_detail"] = tail[-900:]
say(f"ABORT: the app did NOT come back (rc={up3.returncode}, {secs3}s)")
else:
@@ -1145,10 +1176,10 @@ def run_edge(edge_id: str) -> dict:
rec["total_s"] = round(time.time() - t0, 1)
# EVIDENCE FIRST, TEARDOWN SECOND (R-320): the intermediate teardown is the one that gets
# forgotten, so everything is written before a single container is removed.
(ev / "run.log").write_text("\n".join(log))
(ev / "run.log").write_text("\n".join(log), encoding="utf-8")
lg = compose(workdir, project, "logs", "--no-color", timeout=180)
(ev / "compose-final.log").write_text((lg.stdout + lg.stderr)[-400000:]) # post-abort state only — see to-full.log
(ev / "verdict.json").write_text(json.dumps(rec, indent=2))
(ev / "compose-final.log").write_text((lg.stdout + lg.stderr)[-400000:], encoding="utf-8") # post-abort state only — see to-full.log
(ev / "verdict.json").write_text(json.dumps(rec, indent=2), encoding="utf-8")
compose(workdir, project, "down", "-v", "--remove-orphans", timeout=900)
# R-624: no evidence file keeps a secret this run made, and the run's .env does not outlive it.
held = redact_tree(ev, secrets_)
@@ -1164,7 +1195,7 @@ def template_images(app: str, template_dir: Path) -> dict:
"""{service: image} of a catalog template — the per-service reading every gate makes."""
sys.path.insert(0, str(Path(__file__).resolve().parent))
import ladder
return ladder.images_in((template_dir / app / "docker-compose.yml").read_text())
return ladder.images_in((template_dir / app / "docker-compose.yml").read_text(encoding="utf-8"))
def add_move_edge(app: str, moves: list) -> str:
@@ -1192,7 +1223,7 @@ def add_definition_edge(app: str, to_dir: str) -> str:
The FROM side is still read from the catalog, never typed. --write-ladder --to-definition writes such a step."""
frm = template_images(app, TEMPLATES)
to = template_images(to_dir, TEMPLATES)
if not to or to == frm and (TEMPLATES / to_dir / "docker-compose.yml").read_text() == (TEMPLATES / app / "docker-compose.yml").read_text():
if not to or to == frm and (TEMPLATES / to_dir / "docker-compose.yml").read_text(encoding="utf-8") == (TEMPLATES / app / "docker-compose.yml").read_text(encoding="utf-8"):
raise SystemExit(f"--move-to: {to_dir} defines nothing new against {app}")
eid = f"MV-{app}"
EDGES[eid] = dict(app=app, note=f"definition step to {to_dir}", frm=frm, to=to, to_template=to_dir)
@@ -1216,7 +1247,7 @@ def add_retest_edge(app: str, services: list) -> str:
sys.path.insert(0, str(Path(__file__).resolve().parent))
import ladder, image_digest
frm = template_images(app, TEMPLATES)
entries, _, errs = ladder.parse((TEMPLATES / app / ".felhom.yml").read_text())
entries, _, errs = ladder.parse((TEMPLATES / app / ".felhom.yml").read_text(encoding="utf-8"))
if errs or not entries or entries[-1].get("to") != frm:
raise SystemExit(f"--retest {app}: the template has no ladder whose newest entry is its compose ({errs or 'no entry'})")
tested = entries[-1].get("digest") or {}
@@ -1254,11 +1285,13 @@ def write_ladder(argv) -> int:
import datetime as _dt
sys.path.insert(0, str(Path(__file__).resolve().parent))
import ladder, image_digest
if "--security" in argv:
return write_security_step(argv)
def arg(name, default=None):
return argv[argv.index(name) + 1] if name in argv else default
bench = json.loads(Path(argv[0]).read_text())
box = json.loads(Path(arg("--box")).read_text())
bench = json.loads(Path(argv[0]).read_text(encoding="utf-8"))
box = json.loads(Path(arg("--box")).read_text(encoding="utf-8"))
cat = Path(arg("--catalog"))
app = bench["app"]
if bench.get("verdict") != "proven" or box.get("verdict") != "proven":
@@ -1270,7 +1303,7 @@ def write_ladder(argv) -> int:
return 1
tdir = cat / "templates" / app
comp_p, fy_p = tdir / "docker-compose.yml", tdir / ".felhom.yml"
comp = comp_p.read_text()
comp = comp_p.read_text(encoding="utf-8")
cur = ladder.images_in(comp)
bfrom, bto = plain_refs(bench["from"]), plain_refs(bench["to"])
retest = bfrom == bto # `09` §3 decision 52: the same tags, tested at a new digest
@@ -1296,7 +1329,9 @@ def write_ladder(argv) -> int:
return 1
digests[svc] = d
conts = (bench["memory"].get("containers") or {}).values()
anon = [c.get("anon_peak_pct") for c in conts if isinstance(c.get("anon_peak_pct"), (int, float))]
live = [c.get("anon_live_peak_pct") for c in conts if isinstance(c.get("anon_live_peak_pct"), (int, float))]
anon_raw = [c.get("anon_peak_pct") for c in conts if isinstance(c.get("anon_peak_pct"), (int, float))]
anon = live or anon_raw # R-1338: the live figure where the watch measured it
cg = [c.get("peak_pct") for c in conts if isinstance(c.get("peak_pct"), (int, float))]
# the watch records FRACTIONS of the limit (0.81); the ladder carries PERCENT. memory_peak_pct is the
# figure the mark is judged on: the app's own memory (anon) when the watch measured it (decision 22),
@@ -1323,14 +1358,14 @@ def write_ladder(argv) -> int:
entry = {"from": bfrom, "to": bto, "digest": digests, "verdict": "proven",
"tested_at": bench["measured_at"], "harness_version": bench["harness_version"],
"evidence": arg("--evidence"), "box_evidence": arg("--box-evidence"),
"memory_peak_pct": peak, "memory_basis": "anon" if anon else "cgroup_peak",
"memory_peak_pct": peak, "memory_basis": ("anon_live" if live else "anon") if anon else "cgroup_peak",
"memory_cgroup_peak_pct": cg_peak,
"marks": {"files_may_change": "files_may_change" in marks,
"needs_person": None, "memory_tight": peak > ladder.MEMORY_TIGHT_PCT}}
if conv:
entry["engine_conversion"] = {k: conv[k] for k in ("service", "engine", "from", "to")}
if retest:
head = (ladder.parse(fy_p.read_text())[0] or [{}])[-1]
head = (ladder.parse(fy_p.read_text(encoding="utf-8"))[0] or [{}])[-1]
entry["digest_from"] = {s: (ref_digest(bench["from"][s]) or (head.get("digest") or {}).get(s)) for s in bto}
if head.get("to") != bto:
print(f"REFUSED {app}: a re-test must follow an entry that names the same refs (the head is {head.get('to')})")
@@ -1339,32 +1374,42 @@ def write_ladder(argv) -> int:
if probs:
print(f"REFUSED {app}: the entry would not be well-formed: {probs}")
return 1
return apply_entry(app, tdir, comp, cur, bfrom, bto, entry, conv, retest, peak, digests, arg("--to-definition"))
def apply_entry(app, tdir, comp, cur, bfrom, bto, entry, conv, retest, peak, digests, todef):
"""The writer's one tail, shared by every step kind (proven, re-test, security_fix — D39 = B reuses it, never forks
it): keep the superseded step's own definition, move the compose (or write the definition step), set
`catalog_since`, append the entry."""
import datetime as _dt
sys.path.insert(0, str(Path(__file__).resolve().parent))
import ladder
comp_p, fy_p = tdir / "docker-compose.yml", tdir / ".felhom.yml"
# `09` §6.4 part 5: the step being SUPERSEDED keeps its own definition. When the ladder's head is the
# compose as it stands, that compose — the head's images with every fix that flowed since — becomes
# steps/<step_key(head.to)>.yml, the file a box one step behind will pin (check-test-record.py rule 4).
prior, _, _ = ladder.parse(fy_p.read_text())
prior, _, _ = ladder.parse(fy_p.read_text(encoding="utf-8"))
if prior and prior[-1].get("to") == cur:
sp = tdir / ladder.step_file(cur)
if not sp.exists():
sp.parent.mkdir(parents=True, exist_ok=True)
sp.write_text(comp)
sp.write_text(comp, encoding="utf-8")
print(f"STEP {app}: the superseded step {cur} keeps its definition at {ladder.step_file(cur)}")
smp = tdir / ladder.step_meta_file(cur)
if not smp.exists(): # R-664: and its own .felhom.yml, without the ladder
smp.write_text(ladder.strip_ladder_block(fy_p.read_text()))
smp.write_text(ladder.strip_ladder_block(fy_p.read_text(encoding="utf-8")))
print(f"STEP {app}: … and its .felhom.yml at {ladder.step_meta_file(cur)}")
todef = arg("--to-definition")
if todef:
# R-762: a definition step (a new service): the TO compose is that definition as a whole, and its images must
# be exactly what the bench tested TO. Never a hand edit — the file the bench ran is the file written.
newc = (Path(todef) / "docker-compose.yml").read_text()
newc = (Path(todef) / "docker-compose.yml").read_text(encoding="utf-8")
if ladder.images_in(newc) != bto:
print(f"REFUSED {app}: the definition names {ladder.images_in(newc)}, the bench tested TO {bto}")
return 1
comp_p.write_text(newc)
fy = fy_p.read_text()
comp_p.write_text(newc, encoding="utf-8")
fy = fy_p.read_text(encoding="utf-8")
fy = re.sub(r'^catalog_since:.*$', 'catalog_since: "%s"' % _dt.date.today().isoformat(), fy, count=1, flags=re.M)
fy_p.write_text(ladder.append_entry(fy, entry))
fy_p.write_text(ladder.append_entry(fy, entry), encoding="utf-8")
print(f"WROTE {app}: DEFINITION STEP {bfrom} -> {bto} peak {peak}% marks {entry['marks']}")
return 0
# move the compose, per service, on that service's own image: line
@@ -1377,19 +1422,108 @@ def write_ladder(argv) -> int:
if mi and svc in bto and mi.group(2) == bfrom[svc]:
line = mi.group(1) + bto[svc]
out.append(line)
comp_p.write_text(pg_mounts_for("\n".join(out) + "\n") if conv else "\n".join(out) + "\n")
if ladder.images_in(comp_p.read_text()) != bto:
comp_p.write_text(comp)
comp_p.write_text(pg_mounts_for("\n".join(out) + "\n") if conv else "\n".join(out) + "\n", encoding="utf-8")
if ladder.images_in(comp_p.read_text(encoding="utf-8")) != bto:
comp_p.write_text(comp, encoding="utf-8")
print(f"REFUSED {app}: the compose could not be moved line by line — restored")
return 1
fy = fy_p.read_text()
fy = fy_p.read_text(encoding="utf-8")
fy = re.sub(r'^catalog_since:.*$', 'catalog_since: "%s"' % _dt.date.today().isoformat(), fy, count=1, flags=re.M)
fy_p.write_text(ladder.append_entry(fy, entry))
fy_p.write_text(ladder.append_entry(fy, entry), encoding="utf-8")
print(f"WROTE {app}: {'RE-TEST ' if retest else ''}{bfrom} -> {bto} peak {peak}% marks {entry['marks']}"
+ (f" digest {entry['digest_from']} -> {digests}" if retest else ""))
return 0
SECURITY_VALUE_FLAGS = ("--ids", "--advisory", "--fixed-in", "--box", "--box-evidence", "--catalog", "--evidence")
def write_security_step(argv) -> int:
"""`--write-ladder --security --ids <id,…> --advisory <url> --fixed-in <v> --box <box.json> --box-evidence <rel>
--catalog <checkout> [<bench.json> --evidence <rel>]` — the writer of a SECURITY-FIX step (`09` §3 decision 255,
D39 = B). The box walk (`box_walk.py --security`) is the required venue; a bench run is optional and, when given,
must be proven. It refuses: the box not proven; a bench given and not proven, or naming another edge; the template
not at the box walk's FROM; a digest that moved since the walk; a database engine major; a field the entry needs.
The rest — the superseded step's own definition, the compose move, `catalog_since`, the append — is apply_entry,
the one tail every step kind shares."""
sys.path.insert(0, str(Path(__file__).resolve().parent))
import ladder, image_digest
def arg(name, default=None):
return argv[argv.index(name) + 1] if name in argv and argv.index(name) + 1 < len(argv) else default
values = {argv[i + 1] for i, a in enumerate(argv) if a in SECURITY_VALUE_FLAGS and i + 1 < len(argv)}
positional = [a for a in argv if not a.startswith("--") and a not in values]
need = {"--ids": arg("--ids"), "--advisory": arg("--advisory"), "--fixed-in": arg("--fixed-in"),
"--box": arg("--box"), "--box-evidence": arg("--box-evidence"), "--catalog": arg("--catalog")}
missing = sorted(k for k, v in need.items() if not v)
if missing:
print(f"REFUSED: a security-fix step needs {missing}")
return 1
box = json.loads(Path(need["--box"]).read_text(encoding="utf-8"))
app = box.get("app")
if box.get("walk") != "security" or box.get("verdict") != "proven":
print(f"REFUSED {app}: the box walk is {box.get('walk')!r} with verdict {box.get('verdict')!r} — only a PROVEN "
"`box_walk.py --security` walk is written as a security-fix step")
return 1
bench = json.loads(Path(positional[0]).read_text(encoding="utf-8")) if positional else None
bfrom, bto = plain_refs(box.get("from")), plain_refs(box.get("to"))
if bench is not None:
if bench.get("verdict") != "proven" or (bench.get("harness_version") or 0) < 2 or not arg("--evidence"):
print(f"REFUSED {app}: a bench run was given with verdict {bench.get('verdict')!r} (harness "
f"{bench.get('harness_version')!r}, evidence {arg('--evidence')!r}) — a bench given must be PROVEN, "
"with the memory watch and its evidence path")
return 1
if plain_refs(bench.get("from")) != bfrom or plain_refs(bench.get("to")) != bto:
print(f"REFUSED {app}: the bench tested {bench.get('from')} -> {bench.get('to')}, the box walked {bfrom} -> {bto}")
return 1
tdir = Path(need["--catalog"]) / "templates" / app
comp = (tdir / "docker-compose.yml").read_text(encoding="utf-8")
cur = ladder.images_in(comp)
if cur != bfrom:
print(f"REFUSED {app}: the template is at {cur}, the box walk started FROM {bfrom}")
return 1
crossed = ladder.engine_majors_crossed(bfrom, bto)
if crossed:
print(f"REFUSED {app}: a security-fix step may not cross a database engine major: {crossed}")
return 1
digests = {}
walked = box.get("to_digests") or {}
for svc, ref in sorted(bto.items()):
d, why = image_digest.resolve(ref)
if not d:
print(f"INCONCLUSIVE {app}: {svc} {ref}: {why}")
return 2
if walked.get(svc) != d:
print(f"REFUSED {app}: {svc} {ref}: the box walk ran {str(walked.get(svc))[:19]}, the registry serves "
f"{d[:19]} now — the image that was walked is not the image a box would pull; walk again")
return 1
digests[svc] = d
peak = (box.get("memory") or {}).get("peak_pct")
if not isinstance(peak, (int, float)) or isinstance(peak, bool):
print(f"REFUSED {app}: the box walk recorded no memory soak peak")
return 1
marks = set((bench or {}).get("marks") or [])
entry = {"from": bfrom, "to": bto, "digest": digests, "verdict": ladder.SECURITY_FIX,
"tested_at": box["measured_at"],
"harness_version": bench["harness_version"] if bench else None,
"evidence": arg("--evidence") if bench else None,
"box_evidence": need["--box-evidence"],
"memory_peak_pct": peak, "memory_basis": "box_soak",
# files_may_change is a BENCH measurement; with no bench the step says false and decision 255 says why
"marks": {"files_may_change": "files_may_change" in marks, "needs_person": None,
"memory_tight": peak > ladder.MEMORY_TIGHT_PCT},
"security": {"ids": [i.strip() for i in need["--ids"].split(",") if i.strip()],
"advisory": need["--advisory"], "fixed_in": need["--fixed-in"]},
"seed": box.get("seed")}
if bench:
entry["bench_verdict"] = bench["verdict"]
probs = ladder.check_entry(entry)
if probs:
print(f"REFUSED {app}: the entry would not be well-formed: {probs}")
return 1
return apply_entry(app, tdir, comp, cur, bfrom, bto, entry, None, False, peak, digests, None)
def write_restep(argv) -> int:
"""`--restep <bench verdict.json> --definition <dir> --catalog <checkout> --evidence <rel>` — rewrite ONE
superseded step's own definition (`steps/<key>.yml` + `steps/<key>.felhom.yml`) from a bench re-proof of THAT
@@ -1405,7 +1539,7 @@ def write_restep(argv) -> int:
def arg(name, default=None):
return argv[argv.index(name) + 1] if name in argv else default
bench = json.loads(Path(argv[0]).read_text())
bench = json.loads(Path(argv[0]).read_text(encoding="utf-8"))
dfn, cat, evid = Path(arg("--definition")), Path(arg("--catalog")), arg("--evidence")
app = bench["app"]
if bench.get("verdict") != "proven" or not bench.get("memory") or (bench.get("harness_version") or 0) < 2:
@@ -1416,7 +1550,7 @@ def write_restep(argv) -> int:
print(f"REFUSED {app}: the memory watch saw OOM kills in {kills}")
return 1
tdir = cat / "templates" / app
entries, _, errs = ladder.parse((tdir / ".felhom.yml").read_text())
entries, _, errs = ladder.parse((tdir / ".felhom.yml").read_text(encoding="utf-8"))
idx = [i for i, e in enumerate(entries or []) if e.get("from") == bench["from"] and e.get("to") == bench["to"]]
if not idx:
print(f"REFUSED {app}: no ladder entry is {bench['from']} -> {bench['to']}")
@@ -1425,7 +1559,7 @@ def write_restep(argv) -> int:
print(f"REFUSED {app}: that entry is the HEAD — its definition is the compose (use --write-ladder)")
return 1
e = entries[idx[-1]]
comp = (dfn / "docker-compose.yml").read_text()
comp = (dfn / "docker-compose.yml").read_text(encoding="utf-8")
if ladder.images_in(comp) != e["to"]:
print(f"REFUSED {app}: the definition names {ladder.images_in(comp)}, the step is {e['to']}")
return 1
@@ -1435,8 +1569,8 @@ def write_restep(argv) -> int:
return 1
head = (f"# RE-PROVEN {_dt.date.today().isoformat()} on the bench on THIS definition (upgrade-test.py --restep): "
f"{evid} — definition sha256 {hashlib.sha256(comp.encode()).hexdigest()[:16]}\n")
sp.write_text(head + comp)
smp.write_text(head + ladder.strip_ladder_block((dfn / ".felhom.yml").read_text()))
sp.write_text(head + comp, encoding="utf-8")
smp.write_text(head + ladder.strip_ladder_block((dfn / ".felhom.yml").read_text(encoding="utf-8")))
peaks = {n: c.get("anon_peak_pct") for n, c in (bench["memory"].get("containers") or {}).items()}
print(f"RESTEP {app}: {ladder.step_file(e['to'])} and its .felhom.yml rewritten from {dfn} (anon peaks {peaks})")
return 0
@@ -1470,7 +1604,7 @@ def main(argv):
rec = run_edge(edge_id)
results.append(rec)
print(json.dumps(rec, indent=2), flush=True)
(EVIDENCE / "summary.json").write_text(json.dumps(results, indent=2))
(EVIDENCE / "summary.json").write_text(json.dumps(results, indent=2), encoding="utf-8")
return 0
+405
View File
@@ -559,6 +559,406 @@ class Romm:
return ok
class QBittorrent:
"""qBittorrent's own WebAPI makes a category and adds a torrent; the same API proves both
survived. The admin password is read from the container's OWN environment - it is the value the
deploy handed the app, not a planted one, and it never leaves the container.
Why a category AND a torrent: the category lives in the config store, the torrent in the resume
data (BT_backup/*.fastresume). An upgrade that loses either loses something a household notices.
No bytes need to move: a magnet is in the list the moment it is accepted."""
port = 8080
container = "qbittorrent"
# Big Buck Bunny (Blender Foundation, CC BY) - a hash that exists, so nothing here is made up
MAGNET = ("magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny")
def _in(self, args, timeout=60):
return _sh(["docker", "exec", self.container, "sh", "-c", args], timeout=timeout)
def _api(self, path, *curl_extra, body=None):
"""One call to the app's own API from inside its container, with its own credentials."""
q = " ".join(curl_extra)
data = f"--data-binary '{body}'" if body else ""
cmd = (
'curl -s -c /tmp/fxck -o /dev/null -X POST '
'-d "username=admin&password=$QBT_ADMIN_PASSWORD" '
'-H "Referer: http://127.0.0.1:8080" http://127.0.0.1:8080/api/v2/auth/login; '
f'curl -s -b /tmp/fxck -w "\n%{{http_code}}" -H "Referer: http://127.0.0.1:8080" '
f'{q} {data} http://127.0.0.1:8080{path}'
)
r = self._in(cmd)
out = r.stdout or ""
body_, _, code = out.rpartition("\n")
return r.returncode, code.strip(), body_
def seed(self, ipfn, say):
cat = "felhom" + secrets.token_hex(4)
rc, code, out = self._api("/api/v2/torrents/createCategory",
f'-d "category={cat}"')
say(f" qbittorrent: createCategory {cat} http={code}")
if rc != 0 or code != "200":
say(f" qbittorrent: the app refused the category ({out[:160]})")
return None
rc, code, out = self._api("/api/v2/torrents/add",
f'-F "urls={self.MAGNET}" -F "category={cat}"')
say(f" qbittorrent: torrents/add http={code}")
if rc != 0 or code != "200":
say(f" qbittorrent: the app refused the torrent ({out[:160]})")
return None
return {"category": cat, "hash": "dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c"}
def verify(self, ipfn, seeded, say):
rc, code, out = self._api("/api/v2/torrents/categories", "-X GET")
if rc != 0 or code != "200":
say(f" qbittorrent: the app would not list categories (http={code})")
return False
# negative control first: a name that was never created must be absent
ghost = "felhom" + secrets.token_hex(4)
if ghost in out:
say(" qbittorrent: READBACK IS UNUSABLE - a category nobody created is present")
return False
if seeded["category"] not in out:
say(f" qbittorrent: the seeded category {seeded['category']} is GONE")
return False
rc, code, out = self._api("/api/v2/torrents/info", "-X GET")
ok = rc == 0 and code == "200" and seeded["hash"] in out
say(f" qbittorrent: category kept, torrent present={ok}")
return ok
class Transmission:
"""Transmission's own RPC sets a distinctive speed limit and adds a torrent; the same RPC proves
both survived. The password comes from the container's own PASS variable. The CSRF token
(X-Transmission-Session-Id) is taken the way every client takes it: from the 409 the first call
answers."""
port = 9091
container = "transmission"
MAGNET = ("magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny")
def _rpc(self, payload, timeout=60):
"""One RPC call, with the payload on STDIN and the session id taken by an anchored sed.
Measured on the bench 2026-10-12: an `awk "/Session-Id/ {print $2}"` over the headers picks
up the header NAME from a later line too, so the id goes out as two values joined and
Transmission answers 400 to every call - which reads exactly like "the app has no API"."""
script = (
'SID=$(curl -s -u "admin:$PASS" -D - -o /dev/null '
'http://127.0.0.1:9091/transmission/rpc | tr -d "\\r" '
"| sed -n 's/^[Xx]-[Tt]ransmission-[Ss]ession-[Ii]d: //p')\n"
'curl -s -u "admin:$PASS" -H "X-Transmission-Session-Id: $SID" '
"-w '\\n%{http_code}' -d @- http://127.0.0.1:9091/transmission/rpc <<'FELHOMJSON'\n"
+ payload + "\nFELHOMJSON\n"
)
r = _sh(["docker", "exec", "-i", self.container, "sh", "-s"], timeout=timeout, inp=script)
out = r.stdout or ""
body, _, code = out.rpartition("\n")
return r.returncode, code.strip(), body
def seed(self, ipfn, say):
limit = 300 + secrets.randbelow(600) # a number nothing else would choose
rc, code, out = self._rpc('{"method":"session-set","arguments":'
'{"speed-limit-down":%d,"speed-limit-down-enabled":true}}' % limit)
say(f" transmission: session-set speed-limit-down={limit} http={code}")
if rc != 0 or code != "200" or '"success"' not in out:
say(f" transmission: the app refused the setting ({out[:160]})")
return None
rc, code, out = self._rpc('{"method":"torrent-add","arguments":{"filename":"%s"}}' % self.MAGNET)
ok = rc == 0 and code == "200" and '"success"' in out
say(f" transmission: torrent-add http={code} ok={ok}")
if not ok:
say(f" transmission: {out[:160]}")
return None
return {"limit": limit, "hash": "dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c"}
def verify(self, ipfn, seeded, say):
rc, code, out = self._rpc('{"method":"session-get","arguments":'
'{"fields":["speed-limit-down","speed-limit-down-enabled"]}}')
if rc != 0 or code != "200":
say(f" transmission: the app would not answer session-get (http={code})")
return False
want = '"speed-limit-down":%d' % seeded["limit"]
ghost = '"speed-limit-down":%d' % (seeded["limit"] + 1)
if ghost in out:
say(" transmission: READBACK IS UNUSABLE - the app reports a limit nobody set")
return False
if want not in out:
say(f" transmission: the seeded limit {seeded['limit']} is GONE ({out[:160]})")
return False
rc, code, out = self._rpc('{"method":"torrent-get","arguments":{"fields":["hashString"]}}')
ok = rc == 0 and code == "200" and seeded["hash"] in out
say(f" transmission: limit kept, torrent present={ok}")
return ok
# The NZB both Usenet fixtures seed with. It names articles that do not exist, which is exactly
# right: without a paid provider nothing can be fetched anyway, and what the fixture is measuring is
# the QUEUE - the store an upgrade must not lose. Nothing here downloads a byte.
FELHOM_NZB = (
'<?xml version="1.0" encoding="iso-8859-1" ?>\n'
'<nzb xmlns="http://www.newzbin.com/DTD/2003/nzb">\n'
'<head><meta type="title">%(name)s</meta></head>\n'
'<file poster="felhom@example.invalid" date="1760000000" '
'subject="%(name)s [1/1] - &quot;%(name)s.bin&quot; yEnc (1/1)">\n'
'<groups><group>alt.binaries.test</group></groups>\n'
'<segments><segment bytes="1024" number="1">%(name)s-1@example.invalid</segment></segments>\n'
'</file>\n</nzb>\n'
)
class SABnzbd:
"""SABnzbd's own API queues an NZB and creates a category; the same API proves both survived.
Two stores, because they are different files: the queue index lives in /config/admin
(queue10.sab, history1.db) and the category in sabnzbd.ini. An upgrade that loses either loses
something the household set. The API key is read from the container's OWN environment - it is
the value the deploy handed the app.
No Usenet provider is configured and none is needed: the job sits in the queue unfetchable,
which is what is being measured. What CANNOT be measured this way, and is not claimed anywhere,
is the download chain itself (connect, par2 repair, unpack)."""
port = 8080
container = "sabnzbd"
def _api(self, query, timeout=60, extra=""):
"""One call to the app's own API from inside its container, with its own key."""
cmd = ('curl -s -w "\\n%{http_code}" ' + extra +
' "http://127.0.0.1:8080/api?output=json&apikey=$SAB_API_KEY&' + query + '"')
r = _sh(["docker", "exec", self.container, "sh", "-c", cmd], timeout=timeout)
out = r.stdout or ""
body_, _, code = out.rpartition("\n")
return r.returncode, code.strip(), body_
def seed(self, ipfn, say):
name = "felhom" + secrets.token_hex(4)
# the NZB goes in through the app's own upload endpoint, written inside the container
script = ("cat > /tmp/%s.nzb <<'FELHOMNZB'\n%s\nFELHOMNZB\n"
% (name, FELHOM_NZB % {"name": name}))
script += ('curl -s -w "\\n%{http_code}" -F "name=@/tmp/' + name + '.nzb" '
'-F "nzbname=' + name + '" '
'"http://127.0.0.1:8080/api?mode=addfile&output=json&apikey=$SAB_API_KEY"' + "\n")
r = _sh(["docker", "exec", "-i", self.container, "sh", "-s"], timeout=90, inp=script)
out = (r.stdout or "")
body_, _, code = out.rpartition("\n")
ok = r.returncode == 0 and code.strip() == "200" and '"status": true' in body_.replace('"status":true', '"status": true')
say(f" sabnzbd: addfile {name} http={code.strip()} ok={ok}")
if not ok:
say(f" sabnzbd: the app refused the NZB ({body_[:160]})")
return None
rc, code, out = self._api("mode=set_config&section=categories&keyword=%s&name=%s&dir=%s"
% (name, name, name))
if rc != 0 or code != "200":
say(f" sabnzbd: the app refused the category (http={code}, {out[:160]})")
return None
say(f" sabnzbd: category {name} created")
return {"name": name}
def verify(self, ipfn, seeded, say):
name = seeded["name"]
rc, code, out = self._api("mode=queue")
if rc != 0 or code != "200":
say(f" sabnzbd: the app would not answer mode=queue (http={code})")
return False
ghost = "felhom" + secrets.token_hex(4)
if ghost in out:
say(" sabnzbd: READBACK IS UNUSABLE - a job nobody queued is present")
return False
if name not in out:
say(f" sabnzbd: the queued job {name} is GONE ({out[:200]})")
return False
rc, code, out = self._api("mode=get_config&section=categories")
ok = rc == 0 and code == "200" and name in out
say(f" sabnzbd: job kept, category present={ok}")
return ok
class NZBGet:
"""NZBGet's own JSON-RPC queues an NZB (paused) and the same RPC proves it survived.
The queue lives in the config volume because this template moves MainDir there - the app ships
with MainDir=/downloads, which would put the queue on the household's drive, the one place the
backup classification calls "optional, fetchable again" (measured on the bench 2026-10-12).
THE CALLS COME FROM THE HARNESS HOST, at the container's own IP. This image carries no curl -
only busybox wget, python3 and openssl - so a call from inside produced nothing and the harness
read that as "no seed route", twice, before this was measured. The password is still the app's
own: read out of the container's environment with printenv, which busybox does have.
No Usenet provider is configured and none is needed; the download chain itself is therefore NOT
measured, and no record claims it is."""
port = 6789
container = "nzbget"
def _pw(self):
r = _sh(["docker", "exec", self.container, "printenv", "NZBGET_PASS"], timeout=30)
return (r.stdout or "").strip()
def _base(self, ipfn):
ip = ipfn(self.container)
return f"http://{ip}:{self.port}" if ip else ""
def _rpc(self, base, pw, payload=None, path="", timeout=60):
url = f"{base}/jsonrpc" + (f"/{path}" if path else "")
extra = ["-u", f"admin:{pw}"]
if payload is not None:
extra += ["-H", "Content-Type: application/json"]
return _curl(url, *extra, data=payload, timeout=timeout)
def seed(self, ipfn, say):
base, pw = self._base(ipfn), self._pw()
if not base or not pw:
say(f" nzbget: no container IP ({bool(base)}) or no password in its environment ({bool(pw)})")
return None
if not _wait_http(base + "/", {"200", "401"}, say=say):
return None
name = "felhom" + secrets.token_hex(4)
nzb = FELHOM_NZB % {"name": name}
payload = json.dumps({"method": "append",
"params": [name + ".nzb", base64.b64encode(nzb.encode()).decode(), "",
0, False, True, "", 0, "SCORE", []],
"id": 1})
rc, code, out = self._rpc(base, pw, payload=payload)
# the app answers the new NZBID on success and -1 on failure
ok = rc == 0 and code == "200" and '"result" : -1' not in out and '"result":-1' not in out
say(f" nzbget: append {name} http={code} ok={ok}")
if not ok:
say(f" nzbget: the app refused the NZB ({out[:200]})")
return None
return {"name": name}
def verify(self, ipfn, seeded, say):
base, pw = self._base(ipfn), self._pw()
if not base or not pw:
say(" nzbget: the app's IP or password is not readable after the step")
return False
if not _wait_http(base + "/", {"200", "401"}, say=say):
return False
name = seeded["name"]
rc, code, out = self._rpc(base, pw, path="listgroups")
if rc != 0 or code != "200":
say(f" nzbget: the app would not answer listgroups (http={code})")
return False
ghost = "felhom" + secrets.token_hex(4)
if ghost in out:
say(" nzbget: READBACK IS UNUSABLE - a job nobody queued is present")
return False
if name not in out:
say(f" nzbget: the queued job {name} is GONE ({out[:200]})")
return False
# and the nzb file the app saved for it, in the config volume this template moved it to
r = _sh(["docker", "exec", self.container, "sh", "-c", "ls /config/data/nzb"], timeout=30)
kept = name in (r.stdout or "")
say(f" nzbget: the queued job is present, its saved nzb file present={kept}")
return True
class Plex:
"""Plex's own HTTP API makes a library section and the same API proves it survived (felhom.eu R-1238).
NO plex.tv ACCOUNT. An UNCLAIMED Plex answers a request from a private address with no token (felhom.eu
`architecture/13-threat-model.md`, the R-1045 row) - the harness calls from the bench host at the container's own
IP, so the caller is the docker bridge gateway (172.x.0.1), a private address. Measured on the bench 2026-10-28
night (felhom.eu audits/night-2026-10-28/bench/plex/): POST /library/sections answered 201 with the new section;
GET read it back before and after 1.41.4.9463 -> 1.43.5.11029, with PLEX_CLAIM absent AND with a junk PLEX_CLAIM
(the image's first-run claim exchange fails and the server stays unclaimed). A CLAIMED server would answer 401 to
this route - seed() then records why and returns None, it never reads that as "no data".
The server says it is ready only when /identity carries no `startState`: the healthcheck (curl -f /identity) is
healthy while `startState` is `startingPlugins`, and a POST then answers 400 "the server is still starting up"
(measured, the first spike attempt). JSON only with `Accept: application/json` - XML otherwise.
What is proven: the section (its name, uuid and folder) lives in Plex's own database in the config volume. No media
is scanned; the scanner and the metadata agents are NOT measured, and no record claims they are."""
port = 32400
container = "plex"
J = ("-H", "Accept: application/json")
def _base(self, ipfn):
ip = ipfn(self.container)
return f"http://{ip}:{self.port}" if ip else ""
def _ready(self, base, say, tries=90, delay=4):
"""(True, identity) once /identity answers 200 JSON with no startState; (False, last answer) otherwise."""
last = ""
for _ in range(tries):
rc, code, out = _curl(base + "/identity", *self.J, timeout=15)
last = f"rc={rc} http={code} {out[:160]}"
if rc == 0 and code == "200":
try:
mc = json.loads(out).get("MediaContainer") or {}
except ValueError:
mc = {}
if "claimed" in mc and "startState" not in mc:
return True, mc
time.sleep(delay)
say(f" plex: never finished starting ({last})")
return False, None
def _sections(self, base):
rc, code, out = _curl(base + "/library/sections", *self.J, timeout=30)
if rc != 0 or code != "200":
return None, f"rc={rc} http={code} {out[:160]}"
try:
return (json.loads(out).get("MediaContainer") or {}).get("Directory") or [], out
except ValueError:
return None, f"non-JSON http={code} {out[:160]}"
def seed(self, ipfn, say):
base = self._base(ipfn)
if not base:
say(" plex: no container IP")
return None
ok, ident = self._ready(base, say)
if not ok:
return None
if ident.get("claimed") is not False:
self.tried = "the unclaimed private-address route: the server reports claimed=%r" % ident.get("claimed")
say(f" plex: {self.tried} - this route needs an UNCLAIMED server")
return None
name = "felhom" + secrets.token_hex(4)
q = ("name=%s&type=movie&agent=tv.plex.agents.movie&scanner=Plex%%20Movie&language=en-US&location=%%2Fmedia" % name)
rc, code, out = _curl(base + "/library/sections?" + q, *self.J, method="POST", timeout=60)
say(f" plex: POST /library/sections {name} http={code} (server {ident.get('version')}, claimed=false)")
if rc != 0 or code not in ("200", "201"):
self.tried = f"POST /library/sections answered rc={rc} http={code}: {out[:160]}"
say(f" plex: the app refused the section ({out[:160]})")
return None
try:
made = [d for d in (json.loads(out).get("MediaContainer") or {}).get("Directory") or [] if d.get("title") == name]
except ValueError:
made = []
if not made or not made[0].get("uuid"):
say(f" plex: the create answer does not carry the section ({out[:160]})")
return None
say(f" plex: seeded library section {name} key={made[0].get('key')} uuid={made[0]['uuid']}")
return {"name": name, "uuid": made[0]["uuid"]}
def verify(self, ipfn, seeded, say):
base = self._base(ipfn)
if not base:
return False
ok, ident = self._ready(base, say)
if not ok:
return False
secs, out = self._sections(base)
if secs is None:
say(f" plex: the app would not list its sections ({out})")
return False
# negative control first: a name nobody created must be absent
ghost = "felhom" + secrets.token_hex(4)
if any(d.get("title") == ghost for d in secs) or ghost in out:
say(" plex: READBACK IS UNUSABLE - a section nobody created is present")
return False
hit = [d for d in secs if d.get("title") == seeded["name"]]
if not hit:
say(f" plex: the seeded section {seeded['name']} is GONE ({len(secs)} section(s) listed)")
return False
same = hit[0].get("uuid") == seeded["uuid"]
locs = [l.get("path") for l in hit[0].get("Location") or []]
say(f" plex: section {seeded['name']} read back (server {ident.get('version')}), same uuid={same}, folders={locs}")
return same and "/media" in locs
FIXTURES = {
"privatebin": PrivateBin(),
"docmost": Docmost(),
@@ -568,4 +968,9 @@ FIXTURES = {
"audiobookshelf": AudiobookShelf(),
"vikunja": Vikunja(),
"romm": Romm(),
"qbittorrent": QBittorrent(),
"transmission": Transmission(),
"sabnzbd": SABnzbd(),
"nzbget": NZBGet(),
"plex": Plex(),
}
File diff suppressed because it is too large. Load diff
+116 -18
View File
@@ -129,7 +129,7 @@ class GrampsWeb:
# ── homebox — its own registration + item API ────────────────────────────────────────────────────
class Homebox:
sub = "homebox"; route = "its own /api/v1/users/register + /api/v1/locations"
sub = "homebox"; route = "its own /api/v1/users/register + /api/v1/locations (0.26+: /api/v1/entities)"
def seed(self, w, sub, say):
if not w.wait_app(sub, "/", want=("200", "302")):
@@ -152,15 +152,18 @@ class Homebox:
say(f" homebox: login -> {code} {out[:150]}")
return None
name = "drillloc" + secrets.token_hex(4)
rc, code, out = w.app_curl(sub, "/api/v1/locations", "-H", f"Authorization: {tokv}",
"-H", "Content-Type: application/json",
data=json.dumps({"name": name, "description": "drill"}),
method="POST")
# 0.26 folded locations and items into ONE /api/v1/entities API (measured on the bench 2026-10-27, 0.26.2's
# swagger: no /v1/locations, `repo.EntityCreate` needs only `name`); older versions keep /api/v1/locations.
for path in ("/api/v1/locations", "/api/v1/entities"):
rc, code, out = w.app_curl(sub, path, "-H", f"Authorization: {tokv}", "-H", "Content-Type: application/json",
data=json.dumps({"name": name, "description": "drill"}), method="POST")
if code != "404":
break
if code not in ("200", "201"):
self.tried = f"POST /api/v1/locations -> {code} {out[:150]}"
self.tried = f"POST {path} -> {code} {out[:150]}"
say(f" homebox: create location -> {code} {out[:150]}")
return None
say(f" homebox: seeded location {name}")
say(f" homebox: seeded location {name} through {path}")
return {"name": name, "tok": tokv, "u": u, "pw": pw}
def verify(self, w, sub, t, say):
@@ -172,6 +175,8 @@ class Homebox:
except Exception:
tokv = t["tok"]
rc, code, out = w.app_curl(sub, "/api/v1/locations", "-H", f"Authorization: {tokv}")
if code == "404": # 0.26+: the entities list (locations and items in one)
rc, code, out = w.app_curl(sub, "/api/v1/entities?pageSize=500", "-H", f"Authorization: {tokv}")
found = t["name"] in (out or "")
absent = ("nope" + secrets.token_hex(6)) not in (out or "")
if not absent:
@@ -181,9 +186,86 @@ class Homebox:
return found
class Securo:
"""Securo (onboarded 2026-11-15). The household's own first step: the open setup call makes the first admin
(api/setup.py), then the app's own form sign-in, an account and a transaction through the API the web page
calls. The read-back signs in again and finds BOTH rows; a wrong password must be refused."""
sub = "finance"; route = "its own /api/setup/create-admin, /api/auth/login, /api/accounts, /api/transactions"
def _login(self, w, sub, u, pw):
from urllib.parse import urlencode
rc, code, out = w.app_curl(sub, "/api/auth/login", "-H", "Content-Type: application/x-www-form-urlencoded",
data=urlencode({"username": u, "password": pw}), method="POST")
try:
return json.loads(out)["access_token"], code
except Exception:
return None, code
def seed(self, w, sub, say):
if not w.wait_app(sub, "/api/health", want=("200",)):
return None
# email-validator refuses special-use domains (`.invalid`, `.test`): measured 422 on 9202, 2026-11-15
u = "drill" + secrets.token_hex(4) + "@drill.felhom.eu"
pw = "Drill-" + secrets.token_hex(8) + "!aA"
rc, code, out = w.app_curl(sub, "/api/setup/create-admin", "-H", "Content-Type: application/json",
data=json.dumps({"email": u, "password": pw, "currency": "HUF",
"name": "drill", "language": "hu"}), method="POST")
if code not in ("200", "201"):
self.tried = f"POST /api/setup/create-admin -> {code} {out[:150]}"
say(f" securo: create-admin -> {code} {out[:150]}")
return None
tok, code = self._login(w, sub, u, pw)
if not tok:
self.tried = f"POST /api/auth/login (form) -> {code}"
say(f" securo: login -> {code}")
return None
auth = ["-H", f"Authorization: Bearer {tok}", "-H", "Content-Type: application/json"]
acct = "drillacct" + secrets.token_hex(4)
rc, code, out = w.app_curl(sub, "/api/accounts", *auth, method="POST",
data=json.dumps({"name": acct, "type": "checking", "currency": "HUF",
"balance": "1000.00"}))
try:
acct_id = json.loads(out)["id"]
except Exception:
self.tried = f"POST /api/accounts -> {code} {out[:150]}"
say(f" securo: create account -> {code} {out[:150]}")
return None
desc = "drilltx" + secrets.token_hex(4)
rc, code, out = w.app_curl(sub, "/api/transactions", *auth, method="POST",
data=json.dumps({"account_id": acct_id, "description": desc, "amount": "123.45",
"date": "2026-11-15", "type": "debit"}))
if code not in ("200", "201"):
self.tried = f"POST /api/transactions -> {code} {out[:150]}"
say(f" securo: create transaction -> {code} {out[:150]}")
return None
say(f" securo: seeded account {acct} and transaction {desc}")
return {"u": u, "pw": pw, "acct": acct, "desc": desc}
def verify(self, w, sub, t, say):
bad, bcode = self._login(w, sub, t["u"], t["pw"] + "x")
if bad:
say(f" securo: a WRONG password signed in ({bcode}) — readback unusable")
return None
tok, code = self._login(w, sub, t["u"], t["pw"])
if not tok:
say(f" securo: the seeded user cannot sign in ({code})")
return False
auth = ["-H", f"Authorization: Bearer {tok}"]
rc, c1, accts = w.app_curl(sub, "/api/accounts", *auth)
rc, c2, txs = w.app_curl(sub, "/api/transactions?q=" + t["desc"], *auth)
absent = ("nope" + secrets.token_hex(6)) not in (accts or "") + (txs or "")
if not absent:
say(" securo: READBACK UNUSABLE")
return None
found = t["acct"] in (accts or "") and t["desc"] in (txs or "")
say(f" securo: readback found={found} (accounts {c1}, transactions {c2}; wrong password refused {bcode}, "
"control passed)")
return found
FIXTURES28 = {
"radarr": Radarr(), "sonarr": Sonarr(), "kimai": Kimai(),
"gramps-web": GrampsWeb(), "homebox": Homebox(),
"gramps-web": GrampsWeb(), "homebox": Homebox(), "securo": Securo(),
}
@@ -344,12 +426,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 +448,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):
+96 -1
View File
@@ -15,7 +15,7 @@ subdomain: "budget"
slug: "actualbudget"
# 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-11-03"
# --- Resource hints (displayed on deploy screen) ---
resources:
@@ -66,6 +66,51 @@ app_info:
- 'Hozz létre egy jelszót az első megnyitáskor'
- 'Hozd létre a költségvetési kategóriákat (pl. élelmiszer, közlekedés)'
- 'Adj hozzá számlákat és kezdd el rögzíteni a tranzakciókat'
guide:
checked_version: "26.9.0"
sections:
- title: "Banki kivonat betöltése"
intro: "Nem kell minden tételt kézzel beírnod: a netbankból letöltött fájlt az Actual be tudja olvasni."
steps:
- "A netbankodban töltsd le a számla tételeit CSV, OFX, QFX, QIF vagy CAMT fájlként."
- "Az ActualBudget bal oldali sávjában kattints a számla nevére."
- "Kattints az „Import” (Importálás) gombra, és válaszd ki a letöltött fájlt."
- "CSV fájlnál párosítsd az oszlopokat (dátum, partner, összeg), és nézd meg, jól olvassa-e a dátumot."
- "Indítsd az importálást az ablak alján lévő gombbal. A már meglévő tételeket az Actual nem veszi fel újra."
- title: "A havi keret beosztása"
intro: "Minden forintnak adj feladatot: a bevételt szétosztod a kategóriák között."
steps:
- "A bal oldali sávban nyisd meg a „Budget” (Költségvetés) oldalt."
- "Egy kategória sorában kattints a „Budgeted” (Betervezett) oszlopba, és írd be, mennyit szánsz rá ebben a hónapban."
- "Folytasd a többi kategóriával, amíg a „To Budget” (Beosztandó) összeg nulla nem lesz."
- "A „Spent” (Elköltött) oszlop mutatja, mennyit költöttél, a „Balance” (Egyenleg) pedig, mennyi maradt."
- title: "Rendszeres számlák felvétele"
intro: "A havonta visszatérő tételeket, például a lakbért vagy a villanyszámlát, előre beállíthatod."
steps:
- "A bal oldali sávban nyisd meg a „Schedules” (Ütemezések) oldalt."
- "Kattints az „Add new schedule” (Új ütemezés) gombra."
- "Töltsd ki a „Payee” (Partner), az „Account” (Számla), az „Amount” (Összeg) és a „Date” (Dátum) mezőt."
- "Jelöld be a „Repeats” (Ismétlődik) jelölőt, és válaszd ki, milyen gyakran jön a tétel."
- "Kattints az „Add” (Hozzáadás) gombra. A közelgő tételeket a számla listájában is látod."
- title: "Telefonon és a családdal"
intro: "A háztartás minden tagja ugyanazt a költségvetést látja, bármelyik eszközről."
steps:
- "A telefonon nyisd meg a budget.DOMAIN címet a böngészőben."
- "Írd be a szerver jelszavát, és kattints a „Sign in” (Bejelentkezés) gombra."
- "Válaszd ki a költségvetési fájlt. Amit bárki módosít, az a többi eszközre is átkerül."
- "A böngésző menüjében add hozzá az oldalt a kezdőképernyőhöz, így appként indul."
- "A jelszót jobb felül, a szerver állapotára kattintva, a „Change password” (Jelszó módosítása) ponttal cserélheted le."
faq:
- q: "Hol látom, mire ment el a pénz?"
a: "A bal oldali sávban a „Reports” (Kimutatások) oldalon. Itt van a „Cash Flow” (Pénzmozgás) és a „Net Worth” (Nettó vagyon) grafikon is."
- q: "Össze tudom kötni a bankommal?"
a: "Az Actual néhány külső banki szolgáltatással tud kapcsolódni, ehhez saját fiók kell náluk; a doboz ezt nem állítja be. A legegyszerűbb a netbankból letöltött fájl betöltése."
- q: "Kaphat mindenki saját belépést?"
a: "Alapból nem: az egész háztartás ugyanazzal a szerverjelszóval lép be, és ugyanazt a fájlt látja. Külön felhasználókhoz az Actual külső bejelentkező szolgáltatást kér, ezt a doboz nem állítja be."
- q: "Működik internet nélkül is?"
a: "Igen. Az Actual a te eszközödön is tárolja az adatokat, és amikor a doboz újra elérhető, szinkronizál."
- q: "Hogyan mentek ki egy példányt a költségvetésről?"
a: "A „Settings” (Beállítások) oldalon az „Export data” (Adatok exportálása) gomb egy zip fájlba menti. A doboz saját mentéseit a vezérlőpulton, az „Adatok és mentés” fülön látod."
# --- Controller-side health probe ---
healthcheck:
@@ -92,6 +137,50 @@ i18n:
- 'Set a password the first time you open it'
- 'Create your budget categories (food, transport and so on)'
- 'Add your accounts and start entering transactions'
guide:
sections:
- title: "Load a bank statement"
intro: "You do not have to type in every item by hand: Actual can read the file you download from your online bank."
steps:
- "In your online bank, download the account items as a CSV, OFX, QFX, QIF or CAMT file."
- "In the ActualBudget sidebar on the left, select the name of the account."
- "Select „Import” and choose the file you downloaded."
- "For a CSV file, match the columns (date, payee, amount) and check that the date reads correctly."
- "Start the import with the button at the bottom of the window. Actual does not add items it already has."
- title: "Plan the month"
intro: "Give every unit of money a job: you share your income out between the categories."
steps:
- "In the sidebar on the left, open the „Budget” page."
- "In the row of a category, select the „Budgeted” column and type how much you set aside for it this month."
- "Go on with the other categories until the „To Budget” amount is zero."
- "The „Spent” column shows what you spent, and „Balance” shows what is left."
- title: "Add regular bills"
intro: "You can set up items that come back every month, such as the rent or the electricity bill, in advance."
steps:
- "In the sidebar on the left, open the „Schedules” page."
- "Select „Add new schedule”."
- "Fill in the „Payee”, „Account”, „Amount” and „Date” fields."
- "Tick „Repeats” and choose how often the item comes."
- "Select „Add”. You also see the upcoming items in the account's list."
- title: "On a phone and with the family"
intro: "Everyone in the household sees the same budget, from any device."
steps:
- "On the phone, open budget.DOMAIN in the browser."
- "Type the server password and select „Sign in”."
- "Choose the budget file. What anyone changes reaches the other devices too."
- "In the browser's menu, add the page to the home screen so it starts like an app."
- "To change the password, select the server status at the top right and choose „Change password”."
faq:
- q: "Where do I see what the money went on?"
a: "On the „Reports” page in the sidebar on the left. The „Cash Flow” and „Net Worth” graphs are there too."
- q: "Can I connect it to my bank?"
a: "Actual can connect through a few outside bank services, and you need your own account with them; the box does not set this up. The simplest way is to load the file from your online bank."
- q: "Can everyone have their own login?"
a: "Not by default: the whole household signs in with the same server password and sees the same file. For separate users Actual needs an outside sign-in service, and the box does not set that up."
- q: "Does it work without the internet?"
a: "Yes. Actual also keeps the data on your own device, and it syncs when the box can be reached again."
- q: "How do I save a copy of the budget?"
a: "On the „Settings” page, „Export data” saves it into a zip file. You see the box's own backups on the dashboard, on the „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -105,3 +194,9 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"actualbudget": "actualbudget/actual-server:26.7.0"}, "to": {"actualbudget": "actualbudget/actual-server:26.9.0"}, "digest": {"actualbudget": "sha256:552beab3dec8c93d46b8b9245612d63c3f123b8a45063a474f53e229b17621d3"}, "verdict": "proven", "tested_at": "2026-09-21T18:37:49.287537+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/actualbudget/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 2060032; 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": {"actualbudget": "actualbudget/actual-server:26.9.0"}, "to": {"actualbudget": "actualbudget/actual-server:26.11.0"}, "digest": {"actualbudget": "sha256:06cf186569cf58d93e12659ff1a517b65b5b0ebee7050a3991d4bd8a1d398da6"}, "verdict": "security_fix", "tested_at": "2026-11-02T22:41:43Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/security-2026-11-02/walks/actualbudget", "memory_peak_pct": 16.8, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nvd.nist.gov/vuln/detail/CVE-2026-111497", "fixed_in": "26.11.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).
upstream:
actualbudget/actual-server: "github:actualbudget/actual"
+1 -1
View File
@@ -11,7 +11,7 @@
services:
actualbudget:
image: actualbudget/actual-server:26.9.0
image: actualbudget/actual-server:26.11.0
container_name: actualbudget
restart: unless-stopped
environment:
@@ -0,0 +1,190 @@
# =============================================================================
# .felhom.yml — App metadata for felhom-controller
# =============================================================================
# Place alongside docker-compose.yml in each stack directory:
# /opt/docker/stacks/actualbudget/.felhom.yml
# =============================================================================
# --- Display info (shown on dashboard) ---
display_name: "ActualBudget"
description: "Személyes pénzügyek és költségvetés kezelése"
category: "finance"
subdomain: "budget"
# --- Asset slug ---
slug: "actualbudget"
# 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 ---
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: "budget"
required: true
locked_after_deploy: true
description: "Az alkalmazás aldomainje"
# --- The setup gate (controller >= 0.281.0, `09` §3 decisions 46-47) ---
# The first visitor would create the admin; a fresh install is closed to everyone but the household until the first setup is done.
setup_gate: true
# measured on 9202 2026-09-29: data.bootstrapped false -> true once the server password is set.
setup_done_probe:
url: http://actualbudget:5006/account/needs-bootstrap
field: data.bootstrapped
done: "true"
# --- App info (info page content) ---
app_info:
tagline: 'Költségvetés tervező - pénzügyeid kézben tartása egyszerűen'
docs_url: 'https://actualbudget.org/docs/'
use_cases:
- 'Havi költségvetés tervezése és követése envelope módszerrel'
- 'Bankszámla tranzakciók importálása és kategorizálása'
- 'Riportok és grafikonok a kiadásokról és bevételekről'
- 'Több felhasználó - közös háztartási pénzügyek kezelése'
- 'Offline is működik, szinkronizálás a szerver és eszközök között'
first_steps:
- 'Nyisd meg a budget.DOMAIN címet a böngészőben'
- 'Hozz létre egy jelszót az első megnyitáskor'
- 'Hozd létre a költségvetési kategóriákat (pl. élelmiszer, közlekedés)'
- 'Adj hozzá számlákat és kezdd el rögzíteni a tranzakciókat'
guide:
checked_version: "26.9.0"
sections:
- title: "Banki kivonat betöltése"
intro: "Nem kell minden tételt kézzel beírnod: a netbankból letöltött fájlt az Actual be tudja olvasni."
steps:
- "A netbankodban töltsd le a számla tételeit CSV, OFX, QFX, QIF vagy CAMT fájlként."
- "Az ActualBudget bal oldali sávjában kattints a számla nevére."
- "Kattints az „Import” (Importálás) gombra, és válaszd ki a letöltött fájlt."
- "CSV fájlnál párosítsd az oszlopokat (dátum, partner, összeg), és nézd meg, jól olvassa-e a dátumot."
- "Indítsd az importálást az ablak alján lévő gombbal. A már meglévő tételeket az Actual nem veszi fel újra."
- title: "A havi keret beosztása"
intro: "Minden forintnak adj feladatot: a bevételt szétosztod a kategóriák között."
steps:
- "A bal oldali sávban nyisd meg a „Budget” (Költségvetés) oldalt."
- "Egy kategória sorában kattints a „Budgeted” (Betervezett) oszlopba, és írd be, mennyit szánsz rá ebben a hónapban."
- "Folytasd a többi kategóriával, amíg a „To Budget” (Beosztandó) összeg nulla nem lesz."
- "A „Spent” (Elköltött) oszlop mutatja, mennyit költöttél, a „Balance” (Egyenleg) pedig, mennyi maradt."
- title: "Rendszeres számlák felvétele"
intro: "A havonta visszatérő tételeket, például a lakbért vagy a villanyszámlát, előre beállíthatod."
steps:
- "A bal oldali sávban nyisd meg a „Schedules” (Ütemezések) oldalt."
- "Kattints az „Add new schedule” (Új ütemezés) gombra."
- "Töltsd ki a „Payee” (Partner), az „Account” (Számla), az „Amount” (Összeg) és a „Date” (Dátum) mezőt."
- "Jelöld be a „Repeats” (Ismétlődik) jelölőt, és válaszd ki, milyen gyakran jön a tétel."
- "Kattints az „Add” (Hozzáadás) gombra. A közelgő tételeket a számla listájában is látod."
- title: "Telefonon és a családdal"
intro: "A háztartás minden tagja ugyanazt a költségvetést látja, bármelyik eszközről."
steps:
- "A telefonon nyisd meg a budget.DOMAIN címet a böngészőben."
- "Írd be a szerver jelszavát, és kattints a „Sign in” (Bejelentkezés) gombra."
- "Válaszd ki a költségvetési fájlt. Amit bárki módosít, az a többi eszközre is átkerül."
- "A böngésző menüjében add hozzá az oldalt a kezdőképernyőhöz, így appként indul."
- "A jelszót jobb felül, a szerver állapotára kattintva, a „Change password” (Jelszó módosítása) ponttal cserélheted le."
faq:
- q: "Hol látom, mire ment el a pénz?"
a: "A bal oldali sávban a „Reports” (Kimutatások) oldalon. Itt van a „Cash Flow” (Pénzmozgás) és a „Net Worth” (Nettó vagyon) grafikon is."
- q: "Össze tudom kötni a bankommal?"
a: "Az Actual néhány külső banki szolgáltatással tud kapcsolódni, ehhez saját fiók kell náluk; a doboz ezt nem állítja be. A legegyszerűbb a netbankból letöltött fájl betöltése."
- q: "Kaphat mindenki saját belépést?"
a: "Alapból nem: az egész háztartás ugyanazzal a szerverjelszóval lép be, és ugyanazt a fájlt látja. Külön felhasználókhoz az Actual külső bejelentkező szolgáltatást kér, ezt a doboz nem állítja be."
- q: "Működik internet nélkül is?"
a: "Igen. Az Actual a te eszközödön is tárolja az adatokat, és amikor a doboz újra elérhető, szinkronizál."
- q: "Hogyan mentek ki egy példányt a költségvetésről?"
a: "A „Settings” (Beállítások) oldalon az „Export data” (Adatok exportálása) gomb egy zip fájlba menti. A doboz saját mentéseit a vezérlőpulton, az „Adatok és mentés” fülön látod."
# --- Controller-side health probe ---
healthcheck:
checks:
- type: http
port: 5006
# --- 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: 'Personal finances and budgeting'
app_info:
tagline: 'A budget planner - keep a simple hold on your money'
use_cases:
- 'Plan and follow a monthly budget, envelope style'
- 'Import bank transactions and sort them into categories'
- 'Reports and graphs of what came in and what went out'
- 'Several people - run the household''s money together'
- 'Works offline too, and syncs between the server and your devices'
first_steps:
- 'Open budget.DOMAIN in your browser'
- 'Set a password the first time you open it'
- 'Create your budget categories (food, transport and so on)'
- 'Add your accounts and start entering transactions'
guide:
sections:
- title: "Load a bank statement"
intro: "You do not have to type in every item by hand: Actual can read the file you download from your online bank."
steps:
- "In your online bank, download the account items as a CSV, OFX, QFX, QIF or CAMT file."
- "In the ActualBudget sidebar on the left, select the name of the account."
- "Select „Import” and choose the file you downloaded."
- "For a CSV file, match the columns (date, payee, amount) and check that the date reads correctly."
- "Start the import with the button at the bottom of the window. Actual does not add items it already has."
- title: "Plan the month"
intro: "Give every unit of money a job: you share your income out between the categories."
steps:
- "In the sidebar on the left, open the „Budget” page."
- "In the row of a category, select the „Budgeted” column and type how much you set aside for it this month."
- "Go on with the other categories until the „To Budget” amount is zero."
- "The „Spent” column shows what you spent, and „Balance” shows what is left."
- title: "Add regular bills"
intro: "You can set up items that come back every month, such as the rent or the electricity bill, in advance."
steps:
- "In the sidebar on the left, open the „Schedules” page."
- "Select „Add new schedule”."
- "Fill in the „Payee”, „Account”, „Amount” and „Date” fields."
- "Tick „Repeats” and choose how often the item comes."
- "Select „Add”. You also see the upcoming items in the account's list."
- title: "On a phone and with the family"
intro: "Everyone in the household sees the same budget, from any device."
steps:
- "On the phone, open budget.DOMAIN in the browser."
- "Type the server password and select „Sign in”."
- "Choose the budget file. What anyone changes reaches the other devices too."
- "In the browser's menu, add the page to the home screen so it starts like an app."
- "To change the password, select the server status at the top right and choose „Change password”."
faq:
- q: "Where do I see what the money went on?"
a: "On the „Reports” page in the sidebar on the left. The „Cash Flow” and „Net Worth” graphs are there too."
- q: "Can I connect it to my bank?"
a: "Actual can connect through a few outside bank services, and you need your own account with them; the box does not set this up. The simplest way is to load the file from your online bank."
- q: "Can everyone have their own login?"
a: "Not by default: the whole household signs in with the same server password and sees the same file. For separate users Actual needs an outside sign-in service, and the box does not set that up."
- q: "Does it work without the internet?"
a: "Yes. Actual also keeps the data on your own device, and it syncs when the box can be reached again."
- q: "How do I save a copy of the budget?"
a: "On the „Settings” page, „Export data” saves it into a zip file. You see the box's own backups on the dashboard, on the „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
description: 'The server domain name'
- env_var: SUBDOMAIN
label: 'Subdomain'
description: 'The subdomain this app answers on'
@@ -0,0 +1,46 @@
# ActualBudget - Personal Finance / Budgeting
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: None (file-based)
# RAM: ~50MB (mem_limit: 256M) | Pi-compatible: Yes
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
#
# First-time setup:
# Create a password on first visit, no default credentials.
services:
actualbudget:
image: actualbudget/actual-server:26.9.0
container_name: actualbudget
restart: unless-stopped
environment:
- TZ=Europe/Budapest
volumes:
- actualbudget_data:/data
networks:
- traefik-public
deploy:
resources:
limits:
memory: 256M
healthcheck:
test: ["CMD", "node", "-e", "const http = require('http'); http.get('http://127.0.0.1:5006/', (r) => { process.exit(r.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
labels:
- "traefik.enable=true"
- "traefik.http.routers.actualbudget.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.routers.actualbudget.entrypoints=websecure"
- "traefik.http.routers.actualbudget.tls=true"
- "traefik.http.routers.actualbudget.tls.certresolver=letsencrypt"
- "traefik.http.services.actualbudget.loadbalancer.server.port=5006"
volumes:
actualbudget_data:
networks:
traefik-public:
external: true
+95 -2
View File
@@ -10,11 +10,11 @@ subdomain: "travel"
slug: "adventurelog"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-09-27"
catalog_since: "2026-10-28"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "100M"
mem_request: "400M"
mem_limit: "896M" # the sum of the compose limits (384+256+256) — R-758; was "384M"
pi_compatible: true
needs_hdd: false
@@ -82,6 +82,49 @@ app_info:
- 'Hozd létre a fiókodat'
- 'Add hozzá az első utazásodat'
- 'Jelöld meg a meglátogatott helyeket a térképen'
guide:
checked_version: "v0.13.0"
sections:
- title: "Egy utazás megtervezése"
intro: "Egy dátumos gyűjtemény teljes útitervvé válik: helyek, szállás és közlekedés egy helyen."
steps:
- "A felső sávban nyisd meg a „Gyűjtemények” oldalt."
- "Kattints a jobb alsó sarokban a plusz gombra, és válaszd a „Gyűjtemény” pontot."
- "Add meg a „Név”, a „Kezdés dátuma” és a „Befejezés dátuma” mezőt, majd kattints a „Mentés” gombra."
- "Nyisd meg a gyűjteményt, és az „Új hozzáadása...” menüben vegyél fel helyet, „Szállás”, „Közlekedés” vagy „Ellenőrzőlista” tételt, például egy csomaglistát."
- "A gyűjtemény kártyájának menüjében a „PDF letöltése” ponttal nyomtatható, napokra bontott útitervet kapsz."
- title: "Fotók és látogatás egy helyhez"
intro: "Egy helyhez képeket és látogatásokat adhatsz, így lesz belőle emlék."
steps:
- "A hely kártyájának menüjében válaszd a „Hely szerkesztése” pontot."
- "A „Média” lépésben kattints a „Feltöltés eszközről” lehetőségre, és válaszd ki a fotókat."
- "A „Látogatások” lépésben add meg, mikor jártál ott, és írj hozzá jegyzetet."
- "Kattints a „Látogatás hozzáadása” gombra, majd a „Kész” gombra."
- title: "Meglátogatott országok és régiók"
intro: "A világtérképen látod, hol jártál már, és mennyi van még hátra."
steps:
- "A felső sávban nyisd meg a „Világutazás” oldalt."
- "Keresd meg az országot, és kattints a kártyájára."
- "A régiók listájában kattints a pipára („Megjelölés látogatottként”) mindenhol, ahol jártál."
- "Az ország kártyája mutatja, hány régióját láttad már."
- title: "Utazás megosztása a családdal"
intro: "Egy gyűjteményt megoszthatsz a család egy másik tagjával, így közösen tervezhettek."
steps:
- "A családtag a saját fiókjában nyissa meg a „Beállítások” oldalt, kapcsolja be a „Nyilvános profil” kapcsolót, és kattintson a „Frissítés” gombra."
- "Te a gyűjtemény kártyájának menüjében válaszd a „Megosztás” pontot."
- "Az „Elérhető felhasználók” listában kattints a családtag mellett a „Meghívás küldése” gombra."
- "A családtag a „Gyűjtemények” oldal „Meghívók” lapján kattint az „Elfogadás” gombra."
faq:
- q: "Hogyan kap fiókot a családtagom?"
a: "Idegen nem regisztrálhat: a doboz ezt lezárta. A vezérlőpulton nyisd meg a regisztrációt 15 percre, és a családtagod a saját címével regisztrál."
- q: "Látják mások a helyeimet?"
a: "Nem: egy új hely vagy gyűjtemény privát. Ha a gyűjteménynél bekapcsolod a „Nyilvános gyűjtemény” kapcsolót, a link birtokában bárki megnézheti."
- q: "Mi a különbség a tervezett és a látogatott hely között?"
a: "Ha egy helynek nincs látogatása, vagy csak jövőbeli, akkor tervezett. Amint van múltbeli dátumú látogatása, látogatottnak számít."
- q: "Át tudom állítani a nyelvet?"
a: "Igen. Az AdventureLog a böngésződ nyelvét követi, de a felső sáv menüjében a „Nyelv” pontnál másikat is választhatsz."
- q: "Hová kerülnek a feltöltött fotók?"
a: "A dobozra, az AdventureLog saját tárhelyére. A doboz mentéseit a vezérlőpulton, az „Adatok és mentés” fülön látod."
# --- Controller-side health probe ---
@@ -113,6 +156,48 @@ i18n:
- 'Create your account'
- 'Add your first trip'
- 'Mark the places you have been on the map'
guide:
sections:
- title: "Plan a trip"
intro: "A collection with dates becomes a full itinerary: places, lodging and transport in one place."
steps:
- "In the top bar, open the „Collections” page."
- "Select the plus button in the bottom right corner and choose „Collection”."
- "Fill in „Name”, „Start Date” and „End Date”, then select „Save”."
- "Open the collection, and in the „Add New...” menu add a place, „Lodging”, „Transportation” or a „Checklist”, for example a packing list."
- "In the menu of the collection's card, „Download PDF” gives you a printable itinerary, day by day."
- title: "Photos and a visit for a place"
intro: "You can add pictures and visits to a place, so it becomes a memory."
steps:
- "In the menu of the place's card, choose „Edit Location”."
- "In the „Media” step, select „Upload From Device” and choose the photos."
- "In the „Visits” step, give the dates you were there and add a note."
- "Select „Add Visit”, then „Done”."
- title: "Countries and regions you visited"
intro: "The world map shows where you have been and how much is still left."
steps:
- "In the top bar, open the „World Travel” page."
- "Find the country and select its card."
- "In the list of regions, select the tick („Mark Visited”) everywhere you have been."
- "The country's card shows how many of its regions you have seen."
- title: "Share a trip with the family"
intro: "You can share a collection with another family member, so you plan it together."
steps:
- "In their own account, the family member opens the „Settings” page, turns on „Public Profile” and selects „Update”."
- "In the menu of the collection's card, you choose „Share”."
- "In the „Available Users” list, select „Send Invite” next to the family member."
- "The family member selects „Accept” on the „Invites” tab of the „Collections” page."
faq:
- q: "How does a family member get an account?"
a: "Strangers cannot sign up: the box closed that. On the dashboard, open sign-up for 15 minutes, and your family member signs up with their own address."
- q: "Can others see my places?"
a: "No: a new place or collection is private. If you turn on „Public Collection” for a collection, anyone with the link can view it."
- q: "What is the difference between a planned and a visited place?"
a: "A place with no visit, or only a future one, is planned. As soon as it has a visit with a past date, it counts as visited."
- q: "Can I change the language?"
a: "Yes. AdventureLog follows your browser's language, but you can choose another one under „Language” in the menu of the top bar."
- q: "Where do the uploaded photos go?"
a: "Onto the box, into AdventureLog's own storage. You see the box's backups on the dashboard, on the „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -130,3 +215,11 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"adventurelog": "ghcr.io/seanmorley15/adventurelog-backend:v0.12.1", "adventurelog-postgres": "postgis/postgis:16-3.5-alpine", "adventurelog-frontend": "ghcr.io/seanmorley15/adventurelog-frontend:v0.12.1"}, "to": {"adventurelog": "ghcr.io/seanmorley15/adventurelog-backend:v0.13.0", "adventurelog-postgres": "postgis/postgis:16-3.5-alpine", "adventurelog-frontend": "ghcr.io/seanmorley15/adventurelog-frontend:v0.13.0"}, "digest": {"adventurelog": "sha256:0250d9cb0d745a8d768f31d3cdc68ac14bfa8b43dedfe0f550158e3861c12db7", "adventurelog-frontend": "sha256:51ee22428b4192f4372b54f84c8b90cd710311ad99993c5045f53b51717dd3f7", "adventurelog-postgres": "sha256:47e961a569fd52ff31f0fe205ed91eeab17d9f5fff6722e6d7ea6b588748b293"}, "verdict": "proven", "tested_at": "2026-09-27T10:29:35Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/version-travel-2026-09-26/C/apps/adventurelog/bench/evidence/MV-adventurelog/verdict.json", "box_evidence": "felhom.eu/documentation/audits/version-travel-2026-09-26/C/apps/adventurelog/box/box-verdict-adventurelog.json", "memory_peak_pct": 73.0, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 100.0}
- {"from": {"adventurelog": "ghcr.io/seanmorley15/adventurelog-backend:v0.13.0", "adventurelog-postgres": "postgis/postgis:16-3.5-alpine", "adventurelog-frontend": "ghcr.io/seanmorley15/adventurelog-frontend:v0.13.0"}, "to": {"adventurelog": "ghcr.io/seanmorley15/adventurelog-backend:v0.13.1", "adventurelog-postgres": "postgis/postgis:16-3.5-alpine", "adventurelog-frontend": "ghcr.io/seanmorley15/adventurelog-frontend:v0.13.1"}, "digest": {"adventurelog": "sha256:8c45e21f95875ccd35a6e68f7da72504df9e837d6ee703379512cb8de6a67082", "adventurelog-frontend": "sha256:568b1be1c42f456df066a8bb55be8ce0046b2c6fc96b1650db5d2162eb4f1ce9", "adventurelog-postgres": "sha256:47e961a569fd52ff31f0fe205ed91eeab17d9f5fff6722e6d7ea6b588748b293"}, "verdict": "security_fix", "tested_at": "2026-10-28T10:40:49Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/runtime-fixes-2026-10-28/walks/adventurelog/run4-proven-start-period-300", "memory_peak_pct": 73.8, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nvd.nist.gov/vuln/detail/CVE-2026-111497", "fixed_in": "v0.13.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).
upstream:
ghcr.io/seanmorley15/adventurelog-backend: "github:seanmorley15/AdventureLog"
postgis/postgis: "gap:the PostGIS image publishes no notices of its own; PostgreSQL announces on postgresql.org only"
ghcr.io/seanmorley15/adventurelog-frontend: "github:seanmorley15/AdventureLog"
+10 -4
View File
@@ -10,7 +10,7 @@
services:
adventurelog:
image: ghcr.io/seanmorley15/adventurelog-backend:v0.13.0
image: ghcr.io/seanmorley15/adventurelog-backend:v0.13.1
container_name: adventurelog
restart: unless-stopped
depends_on:
@@ -87,7 +87,9 @@ services:
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
# 300 s, not 30 s: after an update the backend runs its migrations and needs ~2 min 45 s before /api/ answers;
# with 30 s Docker marked it unhealthy for a minute every start (9202, 2026-10-28, v0.13.0 and v0.13.1 alike)
start_period: 300s
adventurelog-postgres:
image: postgis/postgis:16-3.5-alpine
container_name: adventurelog-postgres
@@ -113,7 +115,7 @@ services:
start_period: 20s
adventurelog-frontend:
image: ghcr.io/seanmorley15/adventurelog-frontend:v0.13.0
image: ghcr.io/seanmorley15/adventurelog-frontend:v0.13.1
container_name: adventurelog-frontend
restart: unless-stopped
environment:
@@ -139,7 +141,11 @@ services:
resources:
limits:
memory: 256M
# No healthcheck override (R-655): v0.12.1's image has none and keeps node at /nodejs/bin/node only;
healthcheck:
# start_period ONLY: Docker keeps the image's own test (/health, which needs the backend) and takes this field
# from here. The frontend waits for the backend's ~3 min after an update (9202, 2026-10-28).
start_period: 300s
# No test override (R-655): v0.12.1's image has none and keeps node at /nodejs/bin/node only;
# v0.13.0's image brings its own (`node` on the PATH, /usr/bin/node, fetching /health, which needs the
# backend). No single exec path works on both versions (measured 2026-09-27), and the old override
# (/nodejs/bin/node) left v0.13.0 unhealthy forever.
@@ -0,0 +1,211 @@
# =============================================================================
# .felhom.yml - App metadata for felhom-controller
# =============================================================================
# --- Display info (shown on dashboard) ---
display_name: "AdventureLog"
description: "Utazási napló és kalandtervező"
category: "travel"
subdomain: "travel"
slug: "adventurelog"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-09-27"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "400M"
mem_limit: "896M" # the sum of the compose limits (384+256+256) — R-758; was "384M"
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: "travel"
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
# Data-encrypting key: the app secures stored data with it, so it must NOT be regenerated on
# restore (that would render restored data unreadable). The recovery unit stays secret-free; at
# restore the controller recovers this key from the guest's own app.yaml (live, or via the PBS
# whole-guest snapshot) and FAILS CLOSED (refuse + warn) if it cannot — never silently restores.
data_key: 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
# 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/*$|auth/+browser/+v1/+auth/+signup|_allauth/+browser/+v1/+auth/+signup|accounts/+signup)`)"
# 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_CLOSED: "true"
# --- App info (info page content) ---
app_info:
tagline: "Utazási napló - utazások dokumentálása térképpel és fotókkal"
add_people: "Nyisd meg a regisztrációt 15 percre, és a családtagod a saját címével regisztrál."
docs_url: "https://adventurelog.app/docs/"
use_cases:
- 'Utazások dokumentálása képekkel és jegyzetekkel'
- 'Térképes megjelenítés a meglátogatott helyekről'
- 'Úti tervek készítése és szervezése'
- 'Statisztikák - meglátogatott országok, városok'
- 'Kalandok megosztása családdal és barátokkal'
first_steps:
- 'Nyisd meg a travel.DOMAIN címet a böngészőben'
- 'Hozd létre a fiókodat'
- 'Add hozzá az első utazásodat'
- 'Jelöld meg a meglátogatott helyeket a térképen'
guide:
checked_version: "v0.13.0"
sections:
- title: "Egy utazás megtervezése"
intro: "Egy dátumos gyűjtemény teljes útitervvé válik: helyek, szállás és közlekedés egy helyen."
steps:
- "A felső sávban nyisd meg a „Gyűjtemények” oldalt."
- "Kattints a jobb alsó sarokban a plusz gombra, és válaszd a „Gyűjtemény” pontot."
- "Add meg a „Név”, a „Kezdés dátuma” és a „Befejezés dátuma” mezőt, majd kattints a „Mentés” gombra."
- "Nyisd meg a gyűjteményt, és az „Új hozzáadása...” menüben vegyél fel helyet, „Szállás”, „Közlekedés” vagy „Ellenőrzőlista” tételt, például egy csomaglistát."
- "A gyűjtemény kártyájának menüjében a „PDF letöltése” ponttal nyomtatható, napokra bontott útitervet kapsz."
- title: "Fotók és látogatás egy helyhez"
intro: "Egy helyhez képeket és látogatásokat adhatsz, így lesz belőle emlék."
steps:
- "A hely kártyájának menüjében válaszd a „Hely szerkesztése” pontot."
- "A „Média” lépésben kattints a „Feltöltés eszközről” lehetőségre, és válaszd ki a fotókat."
- "A „Látogatások” lépésben add meg, mikor jártál ott, és írj hozzá jegyzetet."
- "Kattints a „Látogatás hozzáadása” gombra, majd a „Kész” gombra."
- title: "Meglátogatott országok és régiók"
intro: "A világtérképen látod, hol jártál már, és mennyi van még hátra."
steps:
- "A felső sávban nyisd meg a „Világutazás” oldalt."
- "Keresd meg az országot, és kattints a kártyájára."
- "A régiók listájában kattints a pipára („Megjelölés látogatottként”) mindenhol, ahol jártál."
- "Az ország kártyája mutatja, hány régióját láttad már."
- title: "Utazás megosztása a családdal"
intro: "Egy gyűjteményt megoszthatsz a család egy másik tagjával, így közösen tervezhettek."
steps:
- "A családtag a saját fiókjában nyissa meg a „Beállítások” oldalt, kapcsolja be a „Nyilvános profil” kapcsolót, és kattintson a „Frissítés” gombra."
- "Te a gyűjtemény kártyájának menüjében válaszd a „Megosztás” pontot."
- "Az „Elérhető felhasználók” listában kattints a családtag mellett a „Meghívás küldése” gombra."
- "A családtag a „Gyűjtemények” oldal „Meghívók” lapján kattint az „Elfogadás” gombra."
faq:
- q: "Hogyan kap fiókot a családtagom?"
a: "Idegen nem regisztrálhat: a doboz ezt lezárta. A vezérlőpulton nyisd meg a regisztrációt 15 percre, és a családtagod a saját címével regisztrál."
- q: "Látják mások a helyeimet?"
a: "Nem: egy új hely vagy gyűjtemény privát. Ha a gyűjteménynél bekapcsolod a „Nyilvános gyűjtemény” kapcsolót, a link birtokában bárki megnézheti."
- q: "Mi a különbség a tervezett és a látogatott hely között?"
a: "Ha egy helynek nincs látogatása, vagy csak jövőbeli, akkor tervezett. Amint van múltbeli dátumú látogatása, látogatottnak számít."
- q: "Át tudom állítani a nyelvet?"
a: "Igen. Az AdventureLog a böngésződ nyelvét követi, de a felső sáv menüjében a „Nyelv” pontnál másikat is választhatsz."
- q: "Hová kerülnek a feltöltött fotók?"
a: "A dobozra, az AdventureLog saját tárhelyére. A doboz mentéseit a vezérlőpulton, az „Adatok és mentés” fülön látod."
# --- Controller-side health probe ---
healthcheck:
checks:
- type: api
port: 8000
path: "/api/"
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: 'Travel journal and trip planner'
app_info:
tagline: 'Travel journal - keep your trips with a map and photos'
add_people: "Open sign-up for 15 minutes, and your family member signs up with their own address."
use_cases:
- 'Keep your trips with pictures and notes'
- 'See everywhere you have been on a map'
- 'Plan and organise trips before you go'
- 'Statistics - the countries and cities you have visited'
- 'Share your adventures with family and friends'
first_steps:
- 'Open travel.DOMAIN in your browser'
- 'Create your account'
- 'Add your first trip'
- 'Mark the places you have been on the map'
guide:
sections:
- title: "Plan a trip"
intro: "A collection with dates becomes a full itinerary: places, lodging and transport in one place."
steps:
- "In the top bar, open the „Collections” page."
- "Select the plus button in the bottom right corner and choose „Collection”."
- "Fill in „Name”, „Start Date” and „End Date”, then select „Save”."
- "Open the collection, and in the „Add New...” menu add a place, „Lodging”, „Transportation” or a „Checklist”, for example a packing list."
- "In the menu of the collection's card, „Download PDF” gives you a printable itinerary, day by day."
- title: "Photos and a visit for a place"
intro: "You can add pictures and visits to a place, so it becomes a memory."
steps:
- "In the menu of the place's card, choose „Edit Location”."
- "In the „Media” step, select „Upload From Device” and choose the photos."
- "In the „Visits” step, give the dates you were there and add a note."
- "Select „Add Visit”, then „Done”."
- title: "Countries and regions you visited"
intro: "The world map shows where you have been and how much is still left."
steps:
- "In the top bar, open the „World Travel” page."
- "Find the country and select its card."
- "In the list of regions, select the tick („Mark Visited”) everywhere you have been."
- "The country's card shows how many of its regions you have seen."
- title: "Share a trip with the family"
intro: "You can share a collection with another family member, so you plan it together."
steps:
- "In their own account, the family member opens the „Settings” page, turns on „Public Profile” and selects „Update”."
- "In the menu of the collection's card, you choose „Share”."
- "In the „Available Users” list, select „Send Invite” next to the family member."
- "The family member selects „Accept” on the „Invites” tab of the „Collections” page."
faq:
- q: "How does a family member get an account?"
a: "Strangers cannot sign up: the box closed that. On the dashboard, open sign-up for 15 minutes, and your family member signs up with their own address."
- q: "Can others see my places?"
a: "No: a new place or collection is private. If you turn on „Public Collection” for a collection, anyone with the link can view it."
- q: "What is the difference between a planned and a visited place?"
a: "A place with no visit, or only a future one, is planned. As soon as it has a visit with a past date, it counts as visited."
- q: "Can I change the language?"
a: "Yes. AdventureLog follows your browser's language, but you can choose another one under „Language” in the menu of the top bar."
- q: "Where do the uploaded photos go?"
a: "Onto the box, into AdventureLog's own storage. You see the box's backups on the dashboard, on the „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
description: 'The server domain name'
- env_var: SUBDOMAIN
label: 'Subdomain'
description: 'The subdomain this app answers on'
- env_var: DB_PASSWORD
label: 'Database password'
- env_var: SECRET_KEY
label: 'Encryption key'
@@ -0,0 +1,160 @@
# AdventureLog - Utazási napló és kalandtervező
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: postgres
# RAM: ~100M (mem_limit: 384M) | Pi-compatible: Yes
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
# SECRET_KEY - Titkosítási kulcs (auto-generated)
# DB_PASSWORD - Adatbázis jelszó (auto-generated)
services:
adventurelog:
image: ghcr.io/seanmorley15/adventurelog-backend:v0.13.0
container_name: adventurelog
restart: unless-stopped
depends_on:
adventurelog-postgres:
condition: service_healthy
environment:
# decision 47: the app's own sign-up switch — open until the box closes it after the first admin (after_setup)
- DISABLE_REGISTRATION=${SIGNUP_CLOSED:-false}
- DJANGO_SECRET_KEY=${SECRET_KEY}
- SECRET_KEY=${SECRET_KEY}
# R-482: the image defaults DEBUG to True (settings: getenv('DEBUG','True')), which serves full
# Django debug pages — settings, paths, tracebacks — on the internet-facing origin. Measured
# 2026-09-13 on demo-hp. Upstream's own compose sets it False; so do we.
- DEBUG=False
- PGHOST=adventurelog-postgres
- PGDATABASE=adventurelog
- PGUSER=adventurelog
- PGPASSWORD=${DB_PASSWORD}
- PUBLIC_URL=https://${SUBDOMAIN}.${DOMAIN}
- CSRF_TRUSTED_ORIGINS=https://${SUBDOMAIN}.${DOMAIN}
- FRONTEND_URL=https://${SUBDOMAIN}.${DOMAIN}
# `09` §3 decision 41 (R-655): the world-data download stays. v0.13.0 runs `download-countries` at EVERY
# start and fetches only when the file is ABSENT — a cut-off file from an interrupted download (v0.12.1
# ignored such failures) makes every start fail with `IncompleteJSONError`. Before the image's own
# entrypoint, a file that does not parse to its end is SET ASIDE (renamed, never deleted), so the
# command downloads it again. The same entrypoint and command as the image's (both versions, measured).
entrypoint:
- /bin/bash
- -c
- |
for f in /code/media/countries+regions+states-*.json; do
[ -s "$$f" ] || continue
if ! python3 -c 'import ijson,sys; [0 for _ in ijson.items(open(sys.argv[1],"rb"),"item")]' "$$f" 2>/dev/null; then
mv "$$f" "$$f.cutoff-$$(date +%Y%m%d%H%M%S)"
echo "felhom: $$f did not parse to its end - set aside, it is downloaded again" >&2
fi
done
exec /code/entrypoint.sh "$$@"
- --
command: ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
volumes:
- adventurelog_media:/code/media
networks:
- traefik-public
- adventurelog-internal
# R-483: the backend serves the uploaded photos (/media), Django's static files, the admin and the
# account pages ITSELF; the frontend does not proxy them. With every path routed to the frontend an
# uploaded photo rendered as a broken "Uploaded content" (measured 2026-09-13 on demo-hp; the
# operator's k3s install routes exactly these four prefixes to the backend and renders photos).
# Higher priority than the frontend router, same host.
labels:
- "traefik.enable=true"
- "traefik.http.routers.adventurelog-backend.rule=Host(`${SUBDOMAIN}.${DOMAIN}`) && (PathPrefix(`/media`) || PathPrefix(`/static`) || PathPrefix(`/admin`) || PathPrefix(`/accounts`))"
# 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.adventurelog-backend-xff.headers.customrequestheaders.X-Forwarded-For="
- "traefik.http.routers.adventurelog-backend.middlewares=adventurelog-backend-xff"
- "traefik.http.routers.adventurelog-backend.priority=20"
- "traefik.http.routers.adventurelog-backend.entrypoints=websecure"
- "traefik.http.routers.adventurelog-backend.tls=true"
- "traefik.http.routers.adventurelog-backend.tls.certresolver=letsencrypt"
- "traefik.http.routers.adventurelog-backend.service=adventurelog-backend"
# Port 80, not 8000: the backend image runs nginx in front of gunicorn, and Django answers a
# /media request with an X-Accel-Redirect that ONLY that nginx can serve — straight to gunicorn
# (8000) the photo comes back as a 200 with an empty body (measured 2026-09-13). The k3s
# service targets port 80 for the same reason.
- "traefik.http.services.adventurelog-backend.loadbalancer.server.port=80"
deploy:
resources:
limits:
memory: 384M
healthcheck:
test: ["CMD-SHELL", "python -c 'import urllib.request; urllib.request.urlopen(\"http://127.0.0.1:8000/api/\")'"]
interval: 30s
timeout: 10s
retries: 3
# 300 s, not 30 s: after an update the backend runs its migrations and needs ~2 min 45 s before /api/ answers;
# with 30 s Docker marked it unhealthy for a minute every start (9202, 2026-10-28, v0.13.0 and v0.13.1 alike)
start_period: 300s
adventurelog-postgres:
image: postgis/postgis:16-3.5-alpine
container_name: adventurelog-postgres
restart: unless-stopped
environment:
- POSTGRES_USER=adventurelog
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=adventurelog
- TZ=Europe/Budapest
volumes:
- adventurelog_postgres_data:/var/lib/postgresql/data
networks:
- adventurelog-internal
deploy:
resources:
limits:
memory: 256M
healthcheck:
test: ["CMD-SHELL", "pg_isready -U adventurelog -d adventurelog"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
adventurelog-frontend:
image: ghcr.io/seanmorley15/adventurelog-frontend:v0.13.0
container_name: adventurelog-frontend
restart: unless-stopped
environment:
- PUBLIC_SERVER_URL=http://adventurelog:8000
- BODY_SIZE_LIMIT=Infinity
- ORIGIN=https://${SUBDOMAIN}.${DOMAIN}
networks:
- traefik-public
- adventurelog-internal
labels:
- "traefik.enable=true"
- "traefik.http.routers.adventurelog.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.adventurelog-xff.headers.customrequestheaders.X-Forwarded-For="
- "traefik.http.routers.adventurelog.middlewares=adventurelog-xff"
- "traefik.http.routers.adventurelog.priority=10"
- "traefik.http.routers.adventurelog.entrypoints=websecure"
- "traefik.http.routers.adventurelog.tls=true"
- "traefik.http.routers.adventurelog.tls.certresolver=letsencrypt"
- "traefik.http.services.adventurelog.loadbalancer.server.port=3000"
deploy:
resources:
limits:
memory: 256M
healthcheck:
# start_period ONLY: Docker keeps the image's own test (/health, which needs the backend) and takes this field
# from here. The frontend waits for the backend's ~3 min after an update (9202, 2026-10-28).
start_period: 300s
# No test override (R-655): v0.12.1's image has none and keeps node at /nodejs/bin/node only;
# v0.13.0's image brings its own (`node` on the PATH, /usr/bin/node, fetching /health, which needs the
# backend). No single exec path works on both versions (measured 2026-09-27), and the old override
# (/nodejs/bin/node) left v0.13.0 unhealthy forever.
volumes:
adventurelog_media:
adventurelog_postgres_data:
networks:
traefik-public:
external: true
adventurelog-internal:
+88 -1
View File
@@ -10,7 +10,7 @@ subdomain: "audiobooks"
slug: "audiobookshelf"
# 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:
@@ -87,6 +87,47 @@ app_info:
prerequisites:
- 'Külső HDD szükséges a hangoskönyvek tárolásához'
- 'Hangoskönyvek mappákba rendezve (pl. Szerző/Könyv/)'
guide:
checked_version: "2.37.1"
sections:
- title: "Hangoskönyv feltöltése"
intro: "A könyveket a böngészőből is feltöltheted, nem kell a meghajtóhoz nyúlnod."
steps:
- "A felső sávban kattints az „Upload” (Feltöltés) ikonra."
- "Válaszd ki a „Library” (Könyvtár) és a „Folder” (Mappa) mezőben, hová kerüljön a könyv."
- "Kattints a „Choose a folder” (Mappa kiválasztása) gombra, és válaszd ki a könyv mappáját. Egy könyv egy mappa legyen."
- "Nézd át a címet és a szerzőt, majd kattints az „Upload” (Feltöltés) gombra."
- title: "Családtag hozzáadása"
intro: "Mindenki a saját fiókjával hallgat, így mindenkinek megvan, hol tart."
steps:
- "A felső sávban kattints a fogaskerékre („Settings”, Beállítások)."
- "A bal oldali menüben nyisd meg a „Users” (Felhasználók) oldalt, és kattints az „Add User” (Felhasználó hozzáadása) gombra."
- "Add meg a „Username” (Felhasználónév) és a „Password” (Jelszó) mezőt. Az „Account Type” (Fióktípus) maradjon „User” (Felhasználó)."
- "Kattints a „Submit” (Küldés) gombra, és add át a családtagnak a nevet és a jelszót."
- title: "Feliratkozás egy podcastra"
intro: "A podcast könyvtár magától letölti az új epizódokat."
steps:
- "Nyisd meg a podcast könyvtárat, és a bal oldali sávban kattints az „Add” (Hozzáadás) pontra."
- "Írd be a podcast nevét, és kattints a „Submit” (Küldés) gombra."
- "Válaszd ki a podcastot a találatok közül."
- "Kapcsold be az „Auto Download Episodes” (Epizódok automatikus letöltése) kapcsolót, és kattints a „Submit” gombra."
- title: "Rossz borító vagy cím javítása"
intro: "Ha egy könyv adatai hibásak, az Audiobookshelf megkeresi a helyeseket."
steps:
- "Nyisd meg a könyvet, és kattints a ceruza ikonra („Edit”, Szerkesztés)."
- "Válaszd a „Match” (Egyeztetés) lapot, és kattints a „Search” (Keresés) gombra."
- "Válaszd ki a helyes találatot, jelöld be, mit vegyen át, és kattints a „Submit” gombra."
faq:
- q: "Hol folytatom, ahol abbahagytam?"
a: "A „Home” (Kezdőlap) oldalon a „Continue Listening” (Hallgatás folytatása) sorban. A helyed a böngésző és a telefonos app között is szinkronban marad."
- q: "Hogyan kötöm be a telefonos appot?"
a: "Nyisd meg az Audiobookshelf appot, szerver címnek add meg az audiobooks.DOMAIN címet, majd a saját felhasználóneved és jelszavad."
- q: "Be tudom állítani, hogy elalvás előtt leálljon?"
a: "Igen: a lejátszó sávjában az ébresztőóra ikonra („Sleep timer”, Alvásidőzítő) kattintva megadhatod, mikor álljon le."
- q: "Átállíthatom magyarra?"
a: "Igen. A saját fiókod oldalán a „Language” (Nyelv) mezőben válaszd a „Magyar” nyelvet. Ez az útmutató az angol feliratokat mutatja."
- q: "Hová kerülnek a könyvek?"
a: "A meghajtód media/audiobooks, a podcastok a media/podcasts mappájába. A doboz mentéseit a vezérlőpulton, az „Adatok és mentés” fülön látod."
# --- Controller-side health probe ---
healthcheck:
@@ -120,6 +161,46 @@ i18n:
prerequisites:
- 'An external hard drive is needed to keep the audiobooks on'
- 'Audiobooks sorted into folders (Author/Book/, for example)'
guide:
sections:
- title: "Upload an audiobook"
intro: "You can upload books from the browser too, without touching the drive."
steps:
- "In the top bar, select the „Upload” icon."
- "In „Library” and „Folder”, choose where the book goes."
- "Select „Choose a folder” and choose the book's folder. Keep one book in one folder."
- "Check the title and the author, then select „Upload”."
- title: "Add a family member"
intro: "Everyone listens with their own account, so everyone keeps their own place."
steps:
- "In the top bar, select the gear („Settings”)."
- "In the menu on the left, open the „Users” page and select „Add User”."
- "Fill in „Username” and „Password”. Leave „Account Type” on „User”."
- "Select „Submit”, and give the family member the name and the password."
- title: "Subscribe to a podcast"
intro: "The podcast library downloads new episodes by itself."
steps:
- "Open the podcast library, and in the bar on the left select „Add”."
- "Type the name of the podcast and select „Submit”."
- "Choose the podcast from the results."
- "Turn on „Auto Download Episodes” and select „Submit”."
- title: "Fix a wrong cover or title"
intro: "If the details of a book are wrong, Audiobookshelf finds the right ones."
steps:
- "Open the book and select the pencil icon („Edit”)."
- "Choose the „Match” tab and select „Search”."
- "Choose the right result, tick what it takes over, and select „Submit”."
faq:
- q: "Where do I carry on where I stopped?"
a: "On the „Home” page, in the „Continue Listening” row. Your place stays in sync between the browser and the phone app."
- q: "How do I connect the phone app?"
a: "Open the Audiobookshelf app, give audiobooks.DOMAIN as the server address, then your own username and password."
- q: "Can I make it stop before I fall asleep?"
a: "Yes: in the player bar, select the alarm clock icon („Sleep timer”) and set when it stops."
- q: "Can I switch it to Hungarian?"
a: "Yes. On your own account page, choose Hungarian in the „Language” field. This guide shows the English labels."
- q: "Where do the books go?"
a: "Into the media/audiobooks folder of your drive, and the podcasts into media/podcasts. You see the box's backups on the dashboard, on the „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -138,3 +219,9 @@ i18n:
update_ladder:
- {"from": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.35.1"}, "to": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.36.1"}, "digest": {"audiobookshelf": "sha256:3528a93b6442ffe54bd46771bbbab7c97084e1101071586d9dc2254f30bb4358"}, "verdict": "proven", "tested_at": "2026-09-21T18:44:43.824636+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/audiobookshelf/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 6525b8e; 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": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.36.1"}, "to": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.37.1"}, "digest": {"audiobookshelf": "sha256:581d68b2a6fc7ebf58d81c878a9f387cbbc0d88ac9d37b298b9cee10168af85b"}, "verdict": "proven", "tested_at": "2026-09-30T12:03:23Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/F/apps/audiobookshelf/bench/evidence/MV-audiobookshelf/verdict.json", "box_evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/box/audiobookshelf/box-verdict-audiobookshelf.json", "memory_peak_pct": 10.5, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 14.0}
- {"from": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.37.1"}, "to": {"audiobookshelf": "ghcr.io/advplyr/audiobookshelf:2.37.2"}, "digest": {"audiobookshelf": "sha256:b897c33f05972fb1bf484f7487bc878fa91ec8691335c1db6e2929c3a7658efa"}, "verdict": "security_fix", "tested_at": "2026-10-27T14:20:08Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/audiobookshelf/", "memory_peak_pct": 9.6, "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": "2.37.2"}, "seed": "read_back", "memory_basis": "box_soak"}
# --- Security watch (felhom.eu R-1303): where each image's security notices are published ---
# One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10).
upstream:
ghcr.io/advplyr/audiobookshelf: "github:advplyr/audiobookshelf"
+1 -1
View File
@@ -17,7 +17,7 @@
services:
audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf:2.37.1
image: ghcr.io/advplyr/audiobookshelf:2.37.2
container_name: audiobookshelf
restart: unless-stopped
# Runs as root (see note above). Restore an escalation boundary: block SUID-based privilege
@@ -0,0 +1,214 @@
# =============================================================================
# .felhom.yml - App metadata for felhom-controller
# =============================================================================
# --- Display info (shown on dashboard) ---
display_name: "Audiobookshelf"
description: "Hangoskönyv és podcast kezelő szerver"
category: "media"
subdomain: "audiobooks"
slug: "audiobookshelf"
# 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: "100M"
mem_limit: "512M"
pi_compatible: true
needs_hdd: true
# --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) ---
backup:
userdata:
- path: media/audiobooks
class: optional # PENDING-VETO: spike chose excluded; ruled optional for consistency
# with komga/romm (curated, often personally ripped — precious).
# If Viktor rules excluded, flip THIS LINE ONLY before committing.
- path: media/podcasts
class: excluded # re-downloadable by definition
# --- 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: "audiobooks"
required: true
locked_after_deploy: true
description: "Az alkalmazás aldomainje"
- env_var: HDD_PATH
label: "Hangoskönyv tár útvonal"
type: path
required: true
placeholder: "/mnt/felhom-drives/hdd_1"
description: "A külső merevlemez elérési útja"
locked_after_deploy: true
# --- The setup gate (controller >= 0.280.0, `09` §3 decision 46) ---
# The first visitor would create the admin. So a fresh install is closed to everyone but the household (a browser
# signed in to the dashboard) until the first setup is done; audiobookshelf's own status says so (`/status` isInit — upstream, measured on 9202 by the
# 2026-09-29 live proof).
setup_gate: true
# measured on 9202 2026-09-29: isInit false -> true after POST /init; the gate opened ~20 s later (audits/login-gate-2026-09-29/C).
setup_done_probe:
url: http://audiobookshelf:80/status
field: isInit
done: "true"
# --- App info (info page content) ---
app_info:
tagline: "Hangoskönyv és podcast kezelő, lejátszó és szinkronizáló"
docs_url: "https://www.audiobookshelf.org/docs"
use_cases:
- 'Hangoskönyvek és podcastok rendszerezése és lejátszása'
- 'Automatikus metaadat letöltés - borítók, leírások, fejezetek'
- 'Folytatás ott, ahol abbahagytad (szinkron eszközök között)'
- 'Podcast feliratkozás és automatikus letöltés'
- 'Dedikált mobil alkalmazások (Android, iOS)'
first_steps:
- 'Nyisd meg az audiobooks.DOMAIN címet a böngészőben'
- 'Hozd létre az admin fiókot az első megnyitáskor'
- 'Add hozzá a könyvtárakat (/audiobooks és/vagy /podcasts)'
- 'Várd meg az automatikus szkennelést'
- 'Telepítsd az Audiobookshelf alkalmazást a telefonodra'
prerequisites:
- 'Külső HDD szükséges a hangoskönyvek tárolásához'
- 'Hangoskönyvek mappákba rendezve (pl. Szerző/Könyv/)'
guide:
checked_version: "2.37.1"
sections:
- title: "Hangoskönyv feltöltése"
intro: "A könyveket a böngészőből is feltöltheted, nem kell a meghajtóhoz nyúlnod."
steps:
- "A felső sávban kattints az „Upload” (Feltöltés) ikonra."
- "Válaszd ki a „Library” (Könyvtár) és a „Folder” (Mappa) mezőben, hová kerüljön a könyv."
- "Kattints a „Choose a folder” (Mappa kiválasztása) gombra, és válaszd ki a könyv mappáját. Egy könyv egy mappa legyen."
- "Nézd át a címet és a szerzőt, majd kattints az „Upload” (Feltöltés) gombra."
- title: "Családtag hozzáadása"
intro: "Mindenki a saját fiókjával hallgat, így mindenkinek megvan, hol tart."
steps:
- "A felső sávban kattints a fogaskerékre („Settings”, Beállítások)."
- "A bal oldali menüben nyisd meg a „Users” (Felhasználók) oldalt, és kattints az „Add User” (Felhasználó hozzáadása) gombra."
- "Add meg a „Username” (Felhasználónév) és a „Password” (Jelszó) mezőt. Az „Account Type” (Fióktípus) maradjon „User” (Felhasználó)."
- "Kattints a „Submit” (Küldés) gombra, és add át a családtagnak a nevet és a jelszót."
- title: "Feliratkozás egy podcastra"
intro: "A podcast könyvtár magától letölti az új epizódokat."
steps:
- "Nyisd meg a podcast könyvtárat, és a bal oldali sávban kattints az „Add” (Hozzáadás) pontra."
- "Írd be a podcast nevét, és kattints a „Submit” (Küldés) gombra."
- "Válaszd ki a podcastot a találatok közül."
- "Kapcsold be az „Auto Download Episodes” (Epizódok automatikus letöltése) kapcsolót, és kattints a „Submit” gombra."
- title: "Rossz borító vagy cím javítása"
intro: "Ha egy könyv adatai hibásak, az Audiobookshelf megkeresi a helyeseket."
steps:
- "Nyisd meg a könyvet, és kattints a ceruza ikonra („Edit”, Szerkesztés)."
- "Válaszd a „Match” (Egyeztetés) lapot, és kattints a „Search” (Keresés) gombra."
- "Válaszd ki a helyes találatot, jelöld be, mit vegyen át, és kattints a „Submit” gombra."
faq:
- q: "Hol folytatom, ahol abbahagytam?"
a: "A „Home” (Kezdőlap) oldalon a „Continue Listening” (Hallgatás folytatása) sorban. A helyed a böngésző és a telefonos app között is szinkronban marad."
- q: "Hogyan kötöm be a telefonos appot?"
a: "Nyisd meg az Audiobookshelf appot, szerver címnek add meg az audiobooks.DOMAIN címet, majd a saját felhasználóneved és jelszavad."
- q: "Be tudom állítani, hogy elalvás előtt leálljon?"
a: "Igen: a lejátszó sávjában az ébresztőóra ikonra („Sleep timer”, Alvásidőzítő) kattintva megadhatod, mikor álljon le."
- q: "Átállíthatom magyarra?"
a: "Igen. A saját fiókod oldalán a „Language” (Nyelv) mezőben válaszd a „Magyar” nyelvet. Ez az útmutató az angol feliratokat mutatja."
- q: "Hová kerülnek a könyvek?"
a: "A meghajtód media/audiobooks, a podcastok a media/podcasts mappájába. A doboz mentéseit a vezérlőpulton, az „Adatok és mentés” fülön látod."
# --- Controller-side health probe ---
healthcheck:
checks:
- type: api
port: 80
path: "/healthcheck"
expect:
status: 200
# --- English copy (localisation slice 5, R-560) --------------------------------------------
# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing
# field shows the Hungarian one; a controller older than 0.257.0 ignores the block entirely.
i18n:
en:
description: 'An audiobook and podcast server'
app_info:
tagline: 'An audiobook and podcast library, player and sync'
use_cases:
- 'Sort and play your audiobooks and podcasts'
- 'Details arrive on their own - covers, descriptions, chapters'
- 'Carry on where you stopped (it syncs between devices)'
- 'Subscribe to a podcast and let it download itself'
- 'Apps of its own for phones (Android, iOS)'
first_steps:
- 'Open audiobooks.DOMAIN in your browser'
- 'Create the admin account the first time you open it'
- 'Add your libraries (/audiobooks and/or /podcasts)'
- 'Wait for the first scan to finish'
- 'Install the Audiobookshelf app on your phone'
prerequisites:
- 'An external hard drive is needed to keep the audiobooks on'
- 'Audiobooks sorted into folders (Author/Book/, for example)'
guide:
sections:
- title: "Upload an audiobook"
intro: "You can upload books from the browser too, without touching the drive."
steps:
- "In the top bar, select the „Upload” icon."
- "In „Library” and „Folder”, choose where the book goes."
- "Select „Choose a folder” and choose the book's folder. Keep one book in one folder."
- "Check the title and the author, then select „Upload”."
- title: "Add a family member"
intro: "Everyone listens with their own account, so everyone keeps their own place."
steps:
- "In the top bar, select the gear („Settings”)."
- "In the menu on the left, open the „Users” page and select „Add User”."
- "Fill in „Username” and „Password”. Leave „Account Type” on „User”."
- "Select „Submit”, and give the family member the name and the password."
- title: "Subscribe to a podcast"
intro: "The podcast library downloads new episodes by itself."
steps:
- "Open the podcast library, and in the bar on the left select „Add”."
- "Type the name of the podcast and select „Submit”."
- "Choose the podcast from the results."
- "Turn on „Auto Download Episodes” and select „Submit”."
- title: "Fix a wrong cover or title"
intro: "If the details of a book are wrong, Audiobookshelf finds the right ones."
steps:
- "Open the book and select the pencil icon („Edit”)."
- "Choose the „Match” tab and select „Search”."
- "Choose the right result, tick what it takes over, and select „Submit”."
faq:
- q: "Where do I carry on where I stopped?"
a: "On the „Home” page, in the „Continue Listening” row. Your place stays in sync between the browser and the phone app."
- q: "How do I connect the phone app?"
a: "Open the Audiobookshelf app, give audiobooks.DOMAIN as the server address, then your own username and password."
- q: "Can I make it stop before I fall asleep?"
a: "Yes: in the player bar, select the alarm clock icon („Sleep timer”) and set when it stops."
- q: "Can I switch it to Hungarian?"
a: "Yes. On your own account page, choose Hungarian in the „Language” field. This guide shows the English labels."
- q: "Where do the books go?"
a: "Into the media/audiobooks folder of your drive, and the podcasts into media/podcasts. You see the box's backups on the dashboard, on the „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
description: 'The server domain name'
- env_var: SUBDOMAIN
label: 'Subdomain'
description: 'The subdomain this app answers on'
- env_var: HDD_PATH
label: 'Audiobook library path'
description: 'The path to the external hard drive'
placeholder: '/mnt/felhom-drives/hdd_1'
@@ -0,0 +1,65 @@
# Audiobookshelf - Hangoskönyv és podcast kezelő szerver
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: None (file-based)
# RAM: ~100M (mem_limit: 512M) | Pi-compatible: Yes
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
# USERDATA_PATH - Ügyfél-tartalom gyökér (<namespace>/userdata)
#
# Storage layout (felhom userdata convention):
# Hangoskönyvek → ${USERDATA_PATH}/media/audiobooks (írható)
# Podcastok → ${USERDATA_PATH}/media/podcasts (írható)
# Run-identity: ROOT (fallback). user "1000:1000" was tried but the image creates its /metadata named
# volume as root at init and fails (`EACCES mkdir /metadata/logs`) when pinned to 1000. So it runs as
# root and relies on the setgid 2775 userdata dirs (files land group 1000 → FileBrowser can browse/read).
# (Verified live; see REPORT.)
services:
audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf:2.37.1
container_name: audiobookshelf
restart: unless-stopped
# Runs as root (see note above). Restore an escalation boundary: block SUID-based privilege
# escalation. Full cap_drop is NOT applied — the image's root-init needs file-ownership caps to
# set up /metadata, and dropping them reproduces the EACCES failure we hit pinning user:1000.
security_opt:
- no-new-privileges:true
environment:
- TZ=Europe/Budapest
volumes:
- audiobookshelf_config:/config
- audiobookshelf_metadata:/metadata
- ${USERDATA_PATH}/media/audiobooks:/audiobooks
- ${USERDATA_PATH}/media/podcasts:/podcasts
networks:
- traefik-public
deploy:
resources:
limits:
memory: 512M
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:80/healthcheck"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
labels:
- "traefik.enable=true"
- "traefik.http.routers.audiobookshelf.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.audiobookshelf-xff.headers.customrequestheaders.X-Forwarded-For="
- "traefik.http.routers.audiobookshelf.middlewares=audiobookshelf-xff"
- "traefik.http.routers.audiobookshelf.entrypoints=websecure"
- "traefik.http.routers.audiobookshelf.tls=true"
- "traefik.http.routers.audiobookshelf.tls.certresolver=letsencrypt"
- "traefik.http.services.audiobookshelf.loadbalancer.server.port=80"
volumes:
audiobookshelf_config:
audiobookshelf_metadata:
networks:
traefik-public:
external: true
+98 -5
View File
@@ -10,7 +10,7 @@ subdomain: "pdf"
slug: "bentopdf"
# 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-12"
catalog_since: "2026-10-27"
# --- Resource hints (displayed on deploy screen) ---
resources:
@@ -37,7 +37,8 @@ deploy_fields:
# --- App info (info page content) ---
app_info:
tagline: "Adatvédelmi fókuszú PDF eszköztár - a fájlok soha nem hagyják el a szervered"
tagline: "Adatvédelmi fókuszú PDF eszköztár - a fájljaid a saját eszközödön maradnak"
login_kind: none # controller >= 0.320.0: no sign-in of its own (FIRST-ADMIN.md class 5)
docs_url: "https://www.bentopdf.com/docs/"
use_cases:
@@ -45,12 +46,53 @@ app_info:
- 'PDF konvertálás képekké és képekből'
- 'Jelszóvédelem és titkosítás'
- 'Vízjel hozzáadása dokumentumokhoz'
- 'Minden feldolgozás a szerveren - a fájlok nem kerülnek külső szolgáltatóhoz'
- 'Minden feldolgozás a böngésződben történik - a fájl nem kerül sem a dobozra, sem külső szolgáltatóhoz'
first_steps:
- 'Nyisd meg a pdf.DOMAIN címet a böngészőben'
- 'Válaszd ki a kívánt műveletet'
- 'Töltsd fel a PDF fájlt és kattints a feldolgozásra'
guide:
checked_version: "v2.8.6"
sections:
- title: "Több PDF összefűzése egybe"
intro: "Több dokumentumból egyetlen PDF lesz, a sorrendet te adod meg."
steps:
- "A kezdőoldal keresőjébe írd be: merge, és nyisd meg a „Merge PDF” (PDF összefűzése) eszközt."
- "Kattints a feltöltő mezőre, és válaszd ki a fájlokat. Továbbiakat az „Add More Files” (további fájlok) gombbal adhatsz hozzá."
- "A „File Mode” (fájl mód) listájában húzd a fájlokat a kívánt sorrendbe."
- "Kattints a „Merge PDFs” (PDF-ek összefűzése) gombra. A kész fájl magától letöltődik."
- title: "Fotókból egy PDF"
intro: "A telefonnal lefotózott számlákból vagy papírokból egyetlen PDF-et készíthetsz."
steps:
- "Nyisd meg az „Images to PDF” (képekből PDF) eszközt."
- "Válaszd ki a fotókat abban a sorrendben, ahogy az oldalakon szeretnéd."
- "A „PDF Quality” (PDF minőség) mezőben e-mailhez a kisebb fájlt válaszd."
- "Kattints a „Convert to PDF” (átalakítás PDF-be) gombra."
- title: "PDF kisebbre e-mailhez"
intro: "Ha egy PDF túl nagy a levélhez, összenyomhatod."
steps:
- "Nyisd meg a „Compress PDF” (PDF tömörítése) eszközt, és válaszd ki a fájlt."
- "A „Compression Level” (tömörítés mértéke) mezőben válaszd az „Aggressive (Smaller Files)” (erős, kisebb fájl) értéket."
- "Kattints a „Compress PDF” gombra, és töltsd le a kisebb fájlt."
- title: "Jelszó egy PDF-re"
intro: "Bizalmas papírt jelszóval védve küldhetsz el."
steps:
- "Nyisd meg az „Encrypt PDF” (PDF titkosítása) eszközt, és válaszd ki a fájlt."
- "Írd be a jelszót a „User Password (Required)” (megnyitási jelszó, kötelező) mezőbe."
- "Kattints az „Encrypt PDF” gombra, és töltsd le a védett fájlt."
- "A jelszót ne a fájllal együtt küldd el, hanem például telefonon mondd meg."
faq:
- q: "Felkerülnek a fájljaim a dobozra?"
a: "Nem. A BentoPDF a böngésződben dolgozza fel a fájlt, az el sem hagyja az eszközödet. A doboz csak az oldalt adja."
- q: "Hol találom a kész fájlt?"
a: "A böngésződ letöltések mappájában. A BentoPDF semmit nem tárol, ezért a dobozon sincs róla másolat."
- q: "Kell hozzá fiók?"
a: "Nem, a BentoPDF-ben nincs fiók. Aki ismeri a címet, használhatja, de a fájlok mindig nála maradnak."
- q: "Működik telefonon is?"
a: "Igen, nyisd meg a pdf.DOMAIN címet a telefon böngészőjében. Nagy fájloknál a számítógép gyorsabb, mert a munka az eszközödön fut."
- q: "Miért lassú egy eszköz az első alkalommal?"
a: "Néhány eszköz az első használatkor letölt egy feldolgozó részt az internetről. Utána gyorsabban indul."
# --- Controller-side health probe ---
@@ -66,17 +108,57 @@ i18n:
en:
description: 'A privacy-first PDF toolbox'
app_info:
tagline: 'A privacy-first PDF toolbox - your files never leave your own server'
tagline: 'A privacy-first PDF toolbox - your files stay on your own device'
use_cases:
- 'Merge, split and rotate PDFs'
- 'Convert PDFs to images and images to PDFs'
- 'Password protection and encryption'
- 'Add a watermark to a document'
- 'Everything happens on your own server - no file goes to an outside service'
- 'Everything happens in your browser - the file goes neither to the box nor to an outside service'
first_steps:
- 'Open pdf.DOMAIN in your browser'
- 'Choose what you want to do'
- 'Upload the PDF and start it'
guide:
sections:
- title: "Merge several PDFs into one"
intro: "Several documents become a single PDF, in the order you choose."
steps:
- "In the search box of the home page, type merge and open the „Merge PDF” tool."
- "Select the upload area and choose the files. Add more with the „Add More Files” button."
- "In the „File Mode” list, drag the files into the order you want."
- "Select „Merge PDFs”. The finished file downloads by itself."
- title: "One PDF from photos"
intro: "You can make a single PDF from receipts or papers you took photos of with your phone."
steps:
- "Open the „Images to PDF” tool."
- "Choose the photos in the order you want the pages in."
- "In „PDF Quality”, choose the smaller file for e-mail."
- "Select „Convert to PDF”."
- title: "Make a PDF smaller for e-mail"
intro: "If a PDF is too big for a mail, you can compress it."
steps:
- "Open the „Compress PDF” tool and choose the file."
- "In „Compression Level”, choose „Aggressive (Smaller Files)”."
- "Select „Compress PDF” and download the smaller file."
- title: "Put a password on a PDF"
intro: "You can send a private paper protected with a password."
steps:
- "Open the „Encrypt PDF” tool and choose the file."
- "Type the password into the „User Password (Required)” field."
- "Select „Encrypt PDF” and download the protected file."
- "Do not send the password together with the file; tell it by phone, for example."
faq:
- q: "Do my files go onto the box?"
a: "No. BentoPDF works on the file in your browser, and the file never leaves your device. The box only serves the page."
- q: "Where do I find the finished file?"
a: "In your browser's downloads folder. BentoPDF keeps nothing, so there is no copy of it on the box either."
- q: "Do I need an account?"
a: "No, BentoPDF has no accounts. Anyone who knows the address can use it, but the files always stay with them."
- q: "Does it work on a phone?"
a: "Yes, open pdf.DOMAIN in the phone's browser. With big files a computer is faster, because the work runs on your device."
- q: "Why is a tool slow the first time?"
a: "Some tools download a processing part from the internet the first time you use them. After that they start faster."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -84,3 +166,14 @@ i18n:
- env_var: SUBDOMAIN
label: 'Subdomain'
description: 'The subdomain this app answers on'
# --- 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).
upstream:
ghcr.io/alam00000/bentopdf: "github:alam00000/bentopdf"
# 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": {"bentopdf": "ghcr.io/alam00000/bentopdf:v2.8.6"}, "to": {"bentopdf": "ghcr.io/alam00000/bentopdf:v2.8.10"}, "digest": {"bentopdf": "sha256:039239902a01e58a5a0f52e29039fafa18ffc2a481bb8acd807599f1c6dde7ef"}, "verdict": "security_fix", "tested_at": "2026-10-27T14:22:11Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/bentopdf/", "memory_peak_pct": 0.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-cx8x-7rrr-r9x8"], "advisory": "https://github.com/alam00000/bentopdf/security/advisories/GHSA-cx8x-7rrr-r9x8", "fixed_in": "v2.8.7"}, "seed": "none", "memory_basis": "box_soak"}
+1 -1
View File
@@ -8,7 +8,7 @@
services:
bentopdf:
image: ghcr.io/alam00000/bentopdf:v2.8.6
image: ghcr.io/alam00000/bentopdf:v2.8.10
container_name: bentopdf
restart: unless-stopped
environment:
+94 -2
View File
@@ -10,11 +10,11 @@ subdomain: "wiki"
slug: "bookstack"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-09-30"
catalog_since: "2026-10-27"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "150M"
mem_request: "200M"
mem_limit: "768M" # the sum of the compose limits (512+256) — R-758; was "512M"
pi_compatible: true
needs_hdd: false
@@ -79,6 +79,49 @@ app_info:
- 'Változtasd meg az admin email címét a sajátodra'
- 'Hozd létre az első polcot és könyvet'
- 'Kezdj el írni!'
guide:
checked_version: "26.09.1"
sections:
- title: "Családtag felvétele"
intro: "Mindenki a saját fiókjával lép be, így látszik, ki mit írt."
steps:
- "A felső sávban kattints a „Settings” (Beállítások), majd a „Users” (Felhasználók) pontra."
- "Kattints az „Add New User” (Új felhasználó) gombra, és add meg a „Name” (Név) és az „Email” mezőt."
- "A „User Roles” (Szerepkörök) résznél jelöld be az „Editor” (Szerkesztő) szerepet, vagy a „Viewer” (Olvasó) szerepet, ha csak olvasna."
- "Kapcsold ki a „Send user invite email” (meghívó e-mail) kapcsolót, és adj meg neki jelszót."
- "Kattints a „Save” (Mentés) gombra, és add át a családtagnak az e-mail címet és a jelszót."
- title: "Oldal írása képpel"
intro: "Egy receptet vagy egy használati útmutatót képpel együtt is leírhatsz."
steps:
- "Nyisd meg a könyvet, és kattints a „New Page” (Új oldal) pontra."
- "Írd be a címet és a szöveget."
- "A szerkesztő eszköztárán kattints az „Insert image” (Kép beszúrása) gombra, majd az „Upload Image” (Kép feltöltése) gombra."
- "Válaszd ki a képet, és kattints a „Select Image” (Kép kiválasztása) gombra."
- "Kattints a „Save Page” (Oldal mentése) gombra."
- title: "Címkék és keresés"
intro: "A címkékkel a különböző könyvekben lévő oldalakat is egyben megtalálod."
steps:
- "Szerkesztés közben a jobb oldali sávban nyisd meg a „Page Tags” (Oldal címkéi) részt."
- "A „Tag Name” (Címke neve) mezőbe írj egy szót, például: recept."
- "Kattints a „Save Page” gombra."
- "Később a felső kereső mezőbe írt szóval vagy egy címkére kattintva megtalálod az oldalt."
- title: "Oldal nyomtatása vagy mentése"
intro: "Egy oldalt vagy egy egész könyvet PDF fájlként is letölthetsz."
steps:
- "Nyisd meg az oldalt vagy a könyvet."
- "A jobb oldali sávban kattints az „Export” (Exportálás) pontra."
- "Válaszd a „PDF File” (PDF fájl) lehetőséget, és mentsd el vagy nyomtasd ki."
faq:
- q: "Átállíthatom magyarra?"
a: "Igen. Jobb felül a neved alatt nyisd meg a „My Account” (Fiókom) oldalt, a „Preferred Language” (Nyelv) mezőben válaszd a „Magyar” nyelvet, és mentsd. Ez az útmutató az angol feliratokat mutatja."
- q: "Mi a polc, a könyv, a fejezet és az oldal?"
a: "Az oldal a tényleges szöveg, a fejezet oldalakat fog össze, a könyv fejezeteket és oldalakat. A polc több könyvet tart együtt, például Konyha vagy Ház."
- q: "Megnézhetem egy oldal régebbi változatát?"
a: "Igen. Az oldal jobb oldali sávjában a „Revisions” (Változatok) pont mutatja, ki mikor mit módosított."
- q: "Egy családtag elfelejtette a jelszavát. Mit tegyek?"
a: "Rendszergazdaként a „Users” oldalon nyisd meg a családtagot, adj meg neki új jelszót, és kattints a „Save” gombra."
- q: "Hol vannak a feltöltött képek?"
a: "A dobozon, a BookStack saját tárhelyén. A doboz mentéseit a vezérlőpulton, az „Adatok és mentés” fülön látod."
# --- After a fresh install (controller >= 0.279.0, decision 45) ---
@@ -117,6 +160,48 @@ i18n:
- 'Change the admin e-mail address to your own'
- 'Create your first shelf and book'
- 'Start writing'
guide:
sections:
- title: "Add a family member"
intro: "Everyone signs in with their own account, so you can see who wrote what."
steps:
- "In the top bar, select „Settings”, then „Users”."
- "Select „Add New User”, and fill in „Name” and „Email”."
- "Under „User Roles”, tick „Editor”, or „Viewer” if they only read."
- "Turn off „Send user invite email” and give them a password."
- "Select „Save”, and give the family member the e-mail address and the password."
- title: "Write a page with a picture"
intro: "You can write down a recipe or a manual together with a picture."
steps:
- "Open the book and select „New Page”."
- "Type the title and the text."
- "In the editor's toolbar, select „Insert image”, then „Upload Image”."
- "Choose the picture and select „Select Image”."
- "Select „Save Page”."
- title: "Tags and search"
intro: "With tags you find pages from different books in one place."
steps:
- "While editing, open „Page Tags” in the bar on the right."
- "In „Tag Name”, type a word, for example: recipe."
- "Select „Save Page”."
- "Later you find the page with that word in the search box at the top, or by selecting a tag."
- title: "Print or save a page"
intro: "You can download a page, or a whole book, as a PDF file."
steps:
- "Open the page or the book."
- "In the bar on the right, select „Export”."
- "Choose „PDF File”, and save it or print it."
faq:
- q: "Can I switch it to Hungarian?"
a: "Yes. Under your name at the top right, open „My Account”, choose Hungarian in the „Preferred Language” field, and save. This guide shows the English labels."
- q: "What are a shelf, a book, a chapter and a page?"
a: "The page is the actual text, a chapter holds pages, and a book holds chapters and pages. A shelf keeps several books together, for example Kitchen or House."
- q: "Can I see an older version of a page?"
a: "Yes. In the bar on the right of the page, „Revisions” shows who changed what and when."
- q: "A family member forgot their password. What do I do?"
a: "As an administrator, open the family member on the „Users” page, give them a new password, and select „Save”."
- q: "Where are the uploaded pictures?"
a: "On the box, in BookStack's own storage. You see the box's backups on the dashboard, on the „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -138,3 +223,10 @@ i18n:
update_ladder:
- {"from": {"bookstack": "lscr.io/linuxserver/bookstack:26.05.2", "bookstack-db": "mariadb:12.3"}, "to": {"bookstack": "lscr.io/linuxserver/bookstack:26.05.5", "bookstack-db": "mariadb:12.3"}, "digest": {"bookstack": "sha256:189c796273469115cf810e53f450e15b93184018e4728cd65fcaef8aa93584bc", "bookstack-db": "sha256:805c8e104bd563d5bfa24fadd3f31cd419ea859cb5277f32b5dbf2db714f9ed1"}, "verdict": "proven", "tested_at": "2026-09-21T18:25:39.453490+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/bookstack/verdict.json", "memory_peak_pct": null, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "backfilled": "2026-09-23", "note": "backfilled from catalog commit ac4828f; box walk only (harness v1, no memory watch); digest = what the registry served on 2026-09-23, not a measurement of the tested image"}
- {"from": {"bookstack": "lscr.io/linuxserver/bookstack:26.05.5", "bookstack-db": "mariadb:12.3"}, "to": {"bookstack": "lscr.io/linuxserver/bookstack:26.09.1", "bookstack-db": "mariadb:12.3"}, "digest": {"bookstack": "sha256:99cd1f5707c1911afad213adec5c9739763b76f843d1477142231834ecdcb6f7", "bookstack-db": "sha256:805c8e104bd563d5bfa24fadd3f31cd419ea859cb5277f32b5dbf2db714f9ed1"}, "verdict": "proven", "tested_at": "2026-09-30T11:09:02Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/F/apps/bookstack/bench/evidence/MV-bookstack/verdict.json", "box_evidence": "felhom.eu/documentation/audits/pg-last-six-2026-09-30/box/bookstack/box-verdict-bookstack.json", "memory_peak_pct": 43.7, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 58.3}
- {"from": {"bookstack": "lscr.io/linuxserver/bookstack:26.09.1", "bookstack-db": "mariadb:12.3"}, "to": {"bookstack": "lscr.io/linuxserver/bookstack:26.09.2", "bookstack-db": "mariadb:12.3"}, "digest": {"bookstack": "sha256:2fdeeb1a2028ce7cb1274696237e32b9f849e16b6d77314d08c78356a6016fca", "bookstack-db": "sha256:d46e102fa8b9b72bfcdeb56f9dd538742092119dc8b11f31fe662605cd234cd9"}, "verdict": "proven", "tested_at": "2026-10-27T13:38:17Z", "harness_version": 5, "evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/bench/bookstack/evidence/MV-bookstack/", "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/bookstack/", "memory_peak_pct": 43.4, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 69.4}
# --- Security watch (felhom.eu R-1303): where each image's security notices are published ---
# One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10).
upstream:
lscr.io/linuxserver/bookstack: "github:BookStackApp/BookStack"
mariadb: "gap:MariaDB announces fixes on mariadb.com and its Jira, not on GitHub"
+1 -1
View File
@@ -10,7 +10,7 @@
services:
bookstack:
image: lscr.io/linuxserver/bookstack:26.09.1
image: lscr.io/linuxserver/bookstack:26.09.2
container_name: bookstack
restart: unless-stopped
depends_on:
@@ -0,0 +1,218 @@
# =============================================================================
# .felhom.yml - App metadata for felhom-controller
# =============================================================================
# --- Display info (shown on dashboard) ---
display_name: "BookStack"
description: "Egyszerű, könyv-szerű wiki és dokumentáció platform"
category: "productivity"
subdomain: "wiki"
slug: "bookstack"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-09-30"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "200M"
mem_limit: "768M" # the sum of the compose limits (512+256) — R-758; was "512M"
pi_compatible: true
needs_hdd: false
# --- Deploy fields (first deployment only) ---
deploy_fields:
- env_var: DOMAIN
label: "Domain"
type: domain
description: "A szerver domain neve"
locked_after_deploy: true
- env_var: SUBDOMAIN
label: "Aldomain"
type: subdomain
default: "wiki"
required: true
locked_after_deploy: true
description: "Az alkalmazás aldomainje"
- env_var: APP_KEY
label: "Alkalmazás kulcs"
type: secret
generate: "base64key:32"
locked_after_deploy: true
# R-127: Laravel's APP_KEY encrypts each user's two-factor secret (app/Access/Mfa/MfaValue.php encrypt()).
# Regenerating it locks out every member who turned two-factor on, so a restore RECOVERS it and refuses rather
# than make a new one.
data_key: true
- env_var: DB_PASSWORD
label: "Adatbázis jelszó"
type: secret
generate: "password:24"
locked_after_deploy: true
# `09` §3 decision 45: BookStack starts with admin@admin.com / password. The box replaces that password with
# this generated one right after the install (after_install below); the app page shows it as the first password.
- env_var: ADMIN_PASSWORD
label: "Admin jelszó (admin@admin.com)"
type: password
generate: "password:24"
description: "Az első bejelentkezéshez: admin@admin.com és ez a jelszó. Utána a profilodban módosítható."
locked_after_deploy: true
# --- App info (info page content) ---
app_info:
tagline: "Egyszerű wiki platform - polcok, könyvek, fejezetek és oldalak"
default_creds: "admin@admin.com / password"
docs_url: "https://www.bookstackapp.com/docs/"
use_cases:
- 'Családi tudásbázis - receptek, kézikönyvek, szabályok'
- 'Projekt dokumentáció strukturált formában'
- 'Könyv > Fejezet > Oldal hierarchia az áttekinthetőségért'
- 'Teljes szöveges keresés és címkék'
- 'WYSIWYG és Markdown szerkesztő'
first_steps:
- 'Nyisd meg a wiki.DOMAIN címet a böngészőben'
- 'Jelentkezz be: admin@admin.com és a Beállítások oldalon látható első jelszó'
- 'Változtasd meg az admin email címét a sajátodra'
- 'Hozd létre az első polcot és könyvet'
- 'Kezdj el írni!'
guide:
checked_version: "26.09.1"
sections:
- title: "Családtag felvétele"
intro: "Mindenki a saját fiókjával lép be, így látszik, ki mit írt."
steps:
- "A felső sávban kattints a „Settings” (Beállítások), majd a „Users” (Felhasználók) pontra."
- "Kattints az „Add New User” (Új felhasználó) gombra, és add meg a „Name” (Név) és az „Email” mezőt."
- "A „User Roles” (Szerepkörök) résznél jelöld be az „Editor” (Szerkesztő) szerepet, vagy a „Viewer” (Olvasó) szerepet, ha csak olvasna."
- "Kapcsold ki a „Send user invite email” (meghívó e-mail) kapcsolót, és adj meg neki jelszót."
- "Kattints a „Save” (Mentés) gombra, és add át a családtagnak az e-mail címet és a jelszót."
- title: "Oldal írása képpel"
intro: "Egy receptet vagy egy használati útmutatót képpel együtt is leírhatsz."
steps:
- "Nyisd meg a könyvet, és kattints a „New Page” (Új oldal) pontra."
- "Írd be a címet és a szöveget."
- "A szerkesztő eszköztárán kattints az „Insert image” (Kép beszúrása) gombra, majd az „Upload Image” (Kép feltöltése) gombra."
- "Válaszd ki a képet, és kattints a „Select Image” (Kép kiválasztása) gombra."
- "Kattints a „Save Page” (Oldal mentése) gombra."
- title: "Címkék és keresés"
intro: "A címkékkel a különböző könyvekben lévő oldalakat is egyben megtalálod."
steps:
- "Szerkesztés közben a jobb oldali sávban nyisd meg a „Page Tags” (Oldal címkéi) részt."
- "A „Tag Name” (Címke neve) mezőbe írj egy szót, például: recept."
- "Kattints a „Save Page” gombra."
- "Később a felső kereső mezőbe írt szóval vagy egy címkére kattintva megtalálod az oldalt."
- title: "Oldal nyomtatása vagy mentése"
intro: "Egy oldalt vagy egy egész könyvet PDF fájlként is letölthetsz."
steps:
- "Nyisd meg az oldalt vagy a könyvet."
- "A jobb oldali sávban kattints az „Export” (Exportálás) pontra."
- "Válaszd a „PDF File” (PDF fájl) lehetőséget, és mentsd el vagy nyomtasd ki."
faq:
- q: "Átállíthatom magyarra?"
a: "Igen. Jobb felül a neved alatt nyisd meg a „My Account” (Fiókom) oldalt, a „Preferred Language” (Nyelv) mezőben válaszd a „Magyar” nyelvet, és mentsd. Ez az útmutató az angol feliratokat mutatja."
- q: "Mi a polc, a könyv, a fejezet és az oldal?"
a: "Az oldal a tényleges szöveg, a fejezet oldalakat fog össze, a könyv fejezeteket és oldalakat. A polc több könyvet tart együtt, például Konyha vagy Ház."
- q: "Megnézhetem egy oldal régebbi változatát?"
a: "Igen. Az oldal jobb oldali sávjában a „Revisions” (Változatok) pont mutatja, ki mikor mit módosított."
- q: "Egy családtag elfelejtette a jelszavát. Mit tegyek?"
a: "Rendszergazdaként a „Users” oldalon nyisd meg a családtagot, adj meg neki új jelszót, és kattints a „Save” gombra."
- q: "Hol vannak a feltöltött képek?"
a: "A dobozon, a BookStack saját tárhelyén. A doboz mentéseit a vezérlőpulton, az „Adatok és mentés” fülön látod."
# --- After a fresh install (controller >= 0.279.0, decision 45) ---
# BookStack's OWN artisan command updates the initial admin in place. Measured on 9202 2026-09-28: afterwards
# admin@admin.com / password no longer logs in, the generated password does.
after_install:
service: bookstack
env: [ADMIN_PASSWORD]
command: ["php", "/app/www/artisan", "bookstack:create-admin", "--email=admin@admin.com", "--name=Admin", "--password=${ADMIN_PASSWORD}", "--initial"]
success: "The default admin user has been updated"
# --- Controller-side health probe ---
healthcheck:
checks:
- type: http
port: 80
# --- English copy (localisation slice 5, R-560) --------------------------------------------
# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing
# field shows the Hungarian one; a controller older than 0.257.0 ignores the block entirely.
i18n:
en:
description: 'A simple, book-shaped wiki and documentation platform'
app_info:
tagline: 'A simple wiki platform - shelves, books, chapters and pages'
default_creds: 'admin@admin.com / password'
use_cases:
- 'A family knowledge base - recipes, manuals, house rules'
- 'Project documentation with a structure you can follow'
- 'Book > Chapter > Page, so a large set stays readable'
- 'Full text search and tags'
- 'A visual editor and a Markdown editor'
first_steps:
- 'Open wiki.DOMAIN in your browser'
- 'Sign in: admin@admin.com and the first password shown on the settings page'
- 'Change the admin e-mail address to your own'
- 'Create your first shelf and book'
- 'Start writing'
guide:
sections:
- title: "Add a family member"
intro: "Everyone signs in with their own account, so you can see who wrote what."
steps:
- "In the top bar, select „Settings”, then „Users”."
- "Select „Add New User”, and fill in „Name” and „Email”."
- "Under „User Roles”, tick „Editor”, or „Viewer” if they only read."
- "Turn off „Send user invite email” and give them a password."
- "Select „Save”, and give the family member the e-mail address and the password."
- title: "Write a page with a picture"
intro: "You can write down a recipe or a manual together with a picture."
steps:
- "Open the book and select „New Page”."
- "Type the title and the text."
- "In the editor's toolbar, select „Insert image”, then „Upload Image”."
- "Choose the picture and select „Select Image”."
- "Select „Save Page”."
- title: "Tags and search"
intro: "With tags you find pages from different books in one place."
steps:
- "While editing, open „Page Tags” in the bar on the right."
- "In „Tag Name”, type a word, for example: recipe."
- "Select „Save Page”."
- "Later you find the page with that word in the search box at the top, or by selecting a tag."
- title: "Print or save a page"
intro: "You can download a page, or a whole book, as a PDF file."
steps:
- "Open the page or the book."
- "In the bar on the right, select „Export”."
- "Choose „PDF File”, and save it or print it."
faq:
- q: "Can I switch it to Hungarian?"
a: "Yes. Under your name at the top right, open „My Account”, choose Hungarian in the „Preferred Language” field, and save. This guide shows the English labels."
- q: "What are a shelf, a book, a chapter and a page?"
a: "The page is the actual text, a chapter holds pages, and a book holds chapters and pages. A shelf keeps several books together, for example Kitchen or House."
- q: "Can I see an older version of a page?"
a: "Yes. In the bar on the right of the page, „Revisions” shows who changed what and when."
- q: "A family member forgot their password. What do I do?"
a: "As an administrator, open the family member on the „Users” page, give them a new password, and select „Save”."
- q: "Where are the uploaded pictures?"
a: "On the box, in BookStack's own storage. You see the box's backups on the dashboard, on the „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
description: 'The server domain name'
- env_var: SUBDOMAIN
label: 'Subdomain'
description: 'The subdomain this app answers on'
- env_var: DB_PASSWORD
label: 'Database password'
- env_var: APP_KEY
label: 'Application key'
- env_var: ADMIN_PASSWORD
label: 'Admin password (admin@admin.com)'
description: 'For the first sign-in: admin@admin.com and this password. Change it in your profile afterwards.'
@@ -0,0 +1,94 @@
# BookStack - Egyszerű, könyv-szerű wiki és dokumentáció platform
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: mariadb
# RAM: ~150M (mem_limit: 512M) | Pi-compatible: Yes
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
# DB_PASSWORD - Adatbázis jelszó (auto-generated)
# APP_KEY - Laravel application key (auto-generated)
services:
bookstack:
image: lscr.io/linuxserver/bookstack:26.09.1
container_name: bookstack
restart: unless-stopped
depends_on:
bookstack-db:
condition: service_healthy
environment:
- TZ=Europe/Budapest
- PUID=1000
- PGID=1000
- DB_HOST=bookstack-db
- DB_PORT=3306
- DB_USERNAME=bookstack
- DB_PASSWORD=${DB_PASSWORD}
- DB_DATABASE=bookstack
- APP_KEY=${APP_KEY}
# R-753 (controller >= 0.286.0): trust the docker networks as proxies, so Laravel walks X-Forwarded-For from the
# RIGHT and keys its login throttle on each VISITOR (tunnel: the real address; LAN: the LAN client). Measured on
# 9202: without it a stranger's 5 wrong tries throttled the household too; with it only the stranger.
- APP_PROXIES=172.16.0.0/12
- APP_URL=https://${SUBDOMAIN}.${DOMAIN}
volumes:
- bookstack_config:/config
networks:
- traefik-public
- bookstack-internal
deploy:
resources:
limits:
memory: 512M
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:80"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
labels:
- "traefik.enable=true"
- "traefik.http.routers.bookstack.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.routers.bookstack.entrypoints=websecure"
- "traefik.http.routers.bookstack.tls=true"
- "traefik.http.routers.bookstack.tls.certresolver=letsencrypt"
- "traefik.http.services.bookstack.loadbalancer.server.port=80"
bookstack-db:
image: mariadb:12.3
container_name: bookstack-db
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=bookstack
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=${DB_PASSWORD}
- TZ=Europe/Budapest
# MARIADB_AUTO_UPGRADE: on a MAJOR engine move the engine converts its own datadir (~7 s on a
# small DB, backs its system tables up first). Operator ruling 2026-09-13 on
# felhom.eu/documentation/audits/SPIKE-r459-mariadb-upgrade-2026-09-06.md. Inert until a
# major moves — and none may, until Slice 4 (R-448) ships: see CLAUDE.md, engine-major rule.
- MARIADB_AUTO_UPGRADE=1
volumes:
- bookstack_db_data:/var/lib/mysql
networks:
- bookstack-internal
deploy:
resources:
limits:
memory: 256M
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
volumes:
bookstack_config:
bookstack_db_data:
networks:
traefik-public:
external: true
bookstack-internal:
+92 -3
View File
@@ -14,7 +14,7 @@ catalog_since: "2026-09-28"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "200M"
mem_request: "800M"
mem_limit: "1792M" # the sum of the compose limits (1536+256) — R-758; was "768M"
pi_compatible: false
needs_hdd: false
@@ -76,7 +76,7 @@ app_info:
use_cases:
- 'Időpontfoglalási oldal létrehozása ügyfeleknek'
- 'Naptár szinkronizáció (Google Calendar, Outlook)'
- 'Naptár szinkronizáció Apple naptárral vagy CalDAV naptárral'
- 'Személyre szabható foglalási típusok és időtartamok'
- 'Automatikus emlékeztető emailek'
- 'Csapat naptár kezelés'
@@ -91,6 +91,48 @@ app_info:
prerequisites:
- 'x86 processzor szükséges'
- 'Legalább 1 GB szabad RAM (Cal.com + PostgreSQL)'
guide:
checked_version: "v6.2.0"
sections:
- title: "Mikor lehet nálad foglalni"
intro: "A Cal.com csak azokat az időpontokat kínálja fel, amikor szabad vagy."
steps:
- "A bal oldali menüben nyisd meg az „Availability” (Elérhetőség) oldalt, és kattints az ütemezésedre."
- "Kapcsold be azokat a napokat, amikor lehet foglalni, és állítsd be a kezdő és a záró időt."
- "Ha egy napon két külön sáv kell, például délelőtt és délután, add hozzá a napnál a pluszjellel."
- "Kattints a „Save” (Mentés) gombra."
- title: "Szabadnap vagy szabadság"
intro: "Egy-egy napot kivehetsz, a heti beosztásod ettől nem változik."
steps:
- "Nyisd meg az ütemezésedet az „Availability” oldalon."
- "A „Date overrides” (Dátum felülbírálások) résznél kattints az „Add an override” (Felülírás hozzáadása) gombra."
- "Jelöld ki a napokat a naptárban, és kapcsold be a „Mark unavailable (All day)” (egész nap nem elérhető) kapcsolót."
- "Kattints a „Save override” (felülírás mentése), majd a „Save” gombra."
- title: "Foglalás jóváhagyása"
intro: "Beállíthatod, hogy egy foglalás csak akkor legyen érvényes, ha te is rábólintasz."
steps:
- "Az „Event types” (Eseménytípusok) oldalon nyisd meg az eseménytípust."
- "Az „Advanced” (Haladó) lapon kapcsold be a „Requires confirmation” (Megerősítést igényel) kapcsolót, és kattints a „Save” gombra."
- "Az új kéréseket a „Bookings” (Foglalások) oldal „Unconfirmed” (Nem megerősített) lapján látod."
- "Egy kérésnél kattints a „Confirm” (Elfogadás) vagy a „Reject” (Elutasítás) gombra."
- title: "Szünet a foglalások között"
intro: "Hagyhatsz időt két megbeszélés között, és megszabhatod, milyen hamar lehet foglalni."
steps:
- "Nyisd meg az eseménytípust, és válaszd a „Limits” (Korlátok) lapot."
- "A „Before event” (Esemény előtt) és az „After event” (Esemény után) mezőben add meg, mennyi szabad idő kell."
- "A „Minimum notice” (legkorábbi foglalás) mezőben add meg, legalább mennyivel előre foglaljanak."
- "Kattints a „Save” gombra."
faq:
- q: "Kell a foglalónak fiók?"
a: "Nem. Megnyitja a linket, amit tőled kapott, kiválaszt egy szabad időpontot, és megadja a nevét és az e-mail címét."
- q: "Hol látom és hogyan mondom le a foglalásokat?"
a: "A „Bookings” oldal „Upcoming” (Közelgő) lapján. Egy foglalás menüjében a „Cancel event” (Időpont lemondása) ponttal mondhatod le."
- q: "Melyik naptáramat köthetem be?"
a: "Az „Apps” (Alkalmazások) oldalon az „Apple Calendar” vagy a „CalDav (Beta)” kapcsolható be, a naptár felhasználónevével és jelszavával. A Google és az Outlook naptárhoz külön kulcsok kellenek, ezeket a doboz nem állítja be."
- q: "Átállíthatom magyarra?"
a: "Igen. A „Settings” (Beállítások) oldal „General” (Általános) részén a „Language” (Nyelv) mezőben választhatsz. Ez az útmutató az angol feliratokat mutatja."
- q: "Rossz időben látszanak a szabad időpontok. Mit nézzek meg?"
a: "Az időzónát: a „Settings” oldal „General” részén és az ütemezésedben is a „Timezone” (Időzóna) mezőben Budapest legyen."
# --- Controller-side health probe ---
healthcheck:
@@ -127,7 +169,7 @@ i18n:
add_people: "Settings → Admin → Users → Add user."
use_cases:
- 'Give people a page where they can book time with you'
- 'Calendar sync (Google Calendar, Outlook)'
- 'Calendar sync with Apple Calendar or a CalDAV calendar'
- 'Booking types and lengths you set yourself'
- 'Reminder e-mails go out on their own'
- 'Shared team calendars'
@@ -140,6 +182,47 @@ i18n:
prerequisites:
- 'An x86 processor is needed'
- 'At least 1 GB of free RAM (Cal.com + PostgreSQL)'
guide:
sections:
- title: "When people can book you"
intro: "Cal.com only offers the times when you are free."
steps:
- "In the menu on the left, open the „Availability” page and select your schedule."
- "Turn on the days when people can book, and set the start and the end time."
- "If a day needs two separate slots, for example morning and afternoon, add one with the plus sign next to the day."
- "Select „Save”."
- title: "A day off or a holiday"
intro: "You can take out single days, and your weekly plan stays as it is."
steps:
- "Open your schedule on the „Availability” page."
- "Under „Date overrides”, select „Add an override”."
- "Pick the days in the calendar and turn on „Mark unavailable (All day)”."
- "Select „Save override”, then „Save”."
- title: "Approve a booking"
intro: "You can make a booking count only once you say yes to it too."
steps:
- "On the „Event types” page, open the event type."
- "On the „Advanced” tab, turn on „Requires confirmation” and select „Save”."
- "You see new requests on the „Unconfirmed” tab of the „Bookings” page."
- "For a request, select „Confirm” or „Reject”."
- title: "A break between bookings"
intro: "You can leave time between two meetings, and set how soon people can book."
steps:
- "Open the event type and choose the „Limits” tab."
- "In „Before event” and „After event”, give how much free time you need."
- "In „Minimum notice”, give how far ahead people must book at least."
- "Select „Save”."
faq:
- q: "Does the person booking need an account?"
a: "No. They open the link you gave them, choose a free time, and give their name and e-mail address."
- q: "Where do I see bookings, and how do I cancel one?"
a: "On the „Upcoming” tab of the „Bookings” page. In a booking's menu, „Cancel event” cancels it."
- q: "Which of my calendars can I connect?"
a: "On the „Apps” page you can turn on „Apple Calendar” or „CalDav (Beta)”, with the calendar's username and password. Google and Outlook calendars need separate keys, and the box does not set those up."
- q: "Can I switch it to Hungarian?"
a: "Yes. On the „Settings” page, under „General”, you choose in the „Language” field. This guide shows the English labels."
- q: "The free times show at the wrong hours. What do I check?"
a: "The time zone: under „General” on the „Settings” page, and in your schedule too, the „Timezone” field should be Budapest."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -159,3 +242,9 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"calcom": "calcom/cal.com:v6.2.0", "calcom-postgres": "postgres:16-alpine"}, "to": {"calcom": "calcom/cal.com:v6.2.0", "calcom-postgres": "postgres:18-alpine"}, "digest": {"calcom": "sha256:ace3bb1219fb7306585ab9f4d94d41af7ee064c343db0498173436bbe857bd49", "calcom-postgres": "sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873"}, "verdict": "proven", "tested_at": "2026-09-28T09:44:27Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/pg-calcom-claper-2026-09-28/bench/apps/calcom/bench/evidence/MV-calcom/verdict.json", "box_evidence": "felhom.eu/documentation/audits/pg-calcom-claper-2026-09-28/box/calcom/box-verdict-calcom.json", "memory_peak_pct": 61.5, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 100.0, "engine_conversion": {"service": "calcom-postgres", "engine": "postgres", "from": 16, "to": 18}}
# --- 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).
upstream:
calcom/cal.com: "github:calcom/cal.diy"
postgres: "gap:PostgreSQL announces fixes on postgresql.org only; the major tag takes the newest minor at install"
+87 -1
View File
@@ -99,12 +99,53 @@ app_info:
first_steps:
- 'Nyisd meg a books.DOMAIN címet a böngészőben'
- 'Jelentkezz be a Beállítások oldalon látható felhasználónévvel és első jelszóval'
- 'Dobj egy könyvet a Fájlkezelőben (FileBrowser) az import/calibre mappába — automatikusan feldolgozza és a media/books könyvtárba helyezi'
- 'Dobj egy könyvet a Fájlkezelőben (FileBrowser) az import/calibre mappába: automatikusan feldolgozza és a media/books könyvtárba helyezi'
prerequisites:
- 'Külső HDD szükséges az e-könyvek tárolásához'
- 'x86 processzor szükséges (a CWA tartalmazza a Calibre binárist)'
- 'Legalább 768 MB szabad RAM ajánlott'
guide:
checked_version: "v4.0.8"
sections:
- title: "Könyv feltöltése a böngészőből"
intro: "Nem kell hozzá a Fájlkezelő: a könyvet a Calibre-Web Automated oldalán is feltöltheted."
steps:
- "A felső sávban kattints az „Upload” (Feltöltés) gombra."
- "Válaszd ki a könyvfájlt a gépedről, például egy EPUB fájlt."
- "A Calibre-Web Automated feldolgozza, és utána megjelenik a könyvtárban. Ha még nem látod, frissítsd az oldalt egy kicsit később."
- title: "Olvasás a böngészőben"
intro: "A könyveket letöltés nélkül, a böngészőben is olvashatod."
steps:
- "Kattints a könyv borítójára, hogy megnyíljon az adatlapja."
- "Kattints a könyv ikonra: ez a „Read in Browser” (olvasás a böngészőben) gomb."
- "Az olvasóban a fogaskerék ikon nyitja a „Settings” (Beállítások) ablakot: itt állíthatod a betűméretet és a hátteret."
- "Ha végeztél, az adatlapon a szem ikonnal jelölheted meg olvasottként („Mark As Read”)."
- title: "Saját polc a kedvenceknek"
intro: "A polccal csoportosíthatod a könyveket, például a gyerekeknek valókat."
steps:
- "A bal oldali menüben kattints a „Create Shelf” (Polc létrehozása) pontra."
- "Írd be a polc nevét a „Title” (Cím) mezőbe, és kattints a „Save” (Mentés) gombra."
- "Nyiss meg egy könyvet, és az „Add to shelf” (Polcra tesz) gombbal tedd a polcra."
- title: "Családtag hozzáadása"
intro: "Mindenki a saját fiókjával lép be, így külön látja, mit olvasott."
steps:
- "A felső sávban kattints az „Admin” pontra."
- "Kattints az „Add New User” (Új felhasználó) gombra."
- "Töltsd ki a „Username” (felhasználónév), az „Email” és a „Password” (jelszó) mezőt. A jelszóban legyen legalább 8 karakter, kis- és nagybetű, szám és különleges karakter."
- "Az „Interface Language” (felület nyelve) mezőben a magyart is választhatod neki."
- "Kattints a „Save” gombra, és add át neki a felhasználónevet és a jelszót."
faq:
- q: "Átállíthatom magyarra a felületet?"
a: "Igen. Kattints a felső sávban a felhasználónevedre, az „Interface Language” mezőben válaszd a magyart, és kattints a „Save” gombra."
- q: "Hová kerülnek a könyvek?"
a: "A meghajtód media/books mappájába, a könyvtáradba. Az import/calibre mappából a feldolgozás után eltűnik a fájl, ez rendben van."
- q: "Olvashatok e-olvasón vagy telefonon?"
a: "Igen, olyan olvasó appal, amely ismeri az OPDS katalógust, például a KOReaderrel. Az appban add meg a books.DOMAIN/opds címet, a saját felhasználóneveddel és jelszavaddal."
- q: "Látják a családtagok az én polcaimat?"
a: "Nem, a polc alapból csak a tiéd. Ha a polc létrehozásakor bejelölöd a „Share with Everyone” (megosztás mindenkivel) jelölőt, mindenki látja."
- q: "Mentődnek a könyveim?"
a: "A könyvtár a meghajtód media/books mappájában van. A mentés állapotát a vezérlőpulton, az alkalmazás „Adatok és mentés” fülén látod."
# --- After a fresh install (controller >= 0.280.0; decisions 45, 61) ---
# Calibre-Web has no command that renames a user (cps/cli.py: only `-s user:password`); its admin page renames by setting
@@ -148,6 +189,46 @@ i18n:
- 'An external hard drive is needed to keep the e-books on'
- 'An x86 processor is needed (CWA carries the Calibre binary)'
- 'At least 768 MB of free RAM is recommended'
guide:
sections:
- title: "Upload a book from the browser"
intro: "You do not need the File manager for this: you can also upload a book on the Calibre-Web Automated page."
steps:
- "In the top bar, select „Upload”."
- "Choose the book file on your computer, for example an EPUB file."
- "Calibre-Web Automated processes it, and then it shows up in the library. If you do not see it yet, reload the page a little later."
- title: "Read in the browser"
intro: "You can read the books in your browser, without downloading them."
steps:
- "Select the cover of the book to open its details page."
- "Select the book icon: this is the „Read in Browser” button."
- "In the reader, the cog icon opens the „Settings” window: there you set the font size and the background."
- "When you are done, mark the book as read with the eye icon on the details page („Mark As Read”)."
- title: "A shelf for your favourites"
intro: "A shelf groups books together, for example the ones for the children."
steps:
- "In the menu on the left, select „Create Shelf”."
- "Type the name of the shelf in „Title” and select „Save”."
- "Open a book and put it on the shelf with „Add to shelf”."
- title: "Add a family member"
intro: "Everyone signs in with their own account, so each sees what they have read."
steps:
- "In the top bar, select „Admin”."
- "Select „Add New User”."
- "Fill in „Username”, „Email” and „Password”. The password needs at least 8 characters, a lower and an upper case letter, a digit and a special character."
- "In „Interface Language” you can also choose Hungarian for them."
- "Select „Save”, and give them the user name and the password."
faq:
- q: "Can I switch the interface to Hungarian?"
a: "Yes. Select your user name in the top bar, choose Hungarian in „Interface Language”, and select „Save”."
- q: "Where do the books go?"
a: "Into the media/books folder of your drive, your library. The file disappears from the import/calibre folder after processing, and that is fine."
- q: "Can I read on an e-reader or a phone?"
a: "Yes, with a reading app that knows OPDS catalogues, for example KOReader. In the app, enter the address books.DOMAIN/opds with your own user name and password."
- q: "Can my family see my shelves?"
a: "No, a shelf is yours alone by default. If you tick „Share with Everyone” when you create the shelf, everyone sees it."
- q: "Are my books backed up?"
a: "The library is in the media/books folder of your drive. You see the backup status on the dashboard, on the app's „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -176,3 +257,8 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"calibre-web": "crocodilestick/calibre-web-automated:v4.0.6"}, "to": {"calibre-web": "crocodilestick/calibre-web-automated:v4.0.8"}, "digest": {"calibre-web": "sha256:5e00373854247750cc3e4479b492ae09293ff5e06ed10177f226634d97888679"}, "verdict": "proven", "tested_at": "2026-09-30T16:11:42Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/calibre-web/bench/evidence/MV-calibre-web/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/calibre-web/step.txt", "memory_peak_pct": 19.3, "marks": {"files_may_change": true, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 38.9}
# --- 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).
upstream:
crocodilestick/calibre-web-automated: "github:crocodilestick/Calibre-Web-Automated"
+86 -1
View File
@@ -14,7 +14,7 @@ catalog_since: "2026-09-28"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "100M"
mem_request: "250M"
mem_limit: "640M" # the sum of the compose limits (384+256) — R-758; was "384M"
pi_compatible: true
needs_hdd: false
@@ -75,6 +75,46 @@ app_info:
- 'Lépj be az admin@claper.co fiókkal és a Beállítások oldalon látható első jelszóval'
- 'Tölts fel egy PDF prezentációt'
- 'Oszd meg a kódot a közönséggel'
guide:
checked_version: "2.5"
sections:
- title: "Szavazás a prezentációban"
intro: "A szavazás a közönség telefonján jelenik meg, az eredményt pedig a kivetítőn is mutathatod."
steps:
- "Az eseményed kártyáján kattints a „Csatlakozás” gombra, majd az „Eseménykezelő” pontra."
- "Lépj arra a diára, amelyikhez a szavazást szeretnéd."
- "Kattints az „Interakció hozzáadása” gombra, és válaszd a „Szavazás” lehetőséget."
- "Írd be a kérdést „A szavazás címe” mezőbe, add meg a válaszokat, és kattints a „Létrehozás” gombra."
- title: "Kivetítés tévére vagy projektorra"
intro: "A prezentáció külön ablakban fut, ezt teszed a nagy képernyőre."
steps:
- "Az „Eseménykezelő” oldalon kattints a „Prezentáció megnyitása” gombra: új ablak nyílik."
- "Húzd az új ablakot a tévére vagy a projektorra, és nyomd meg az F billentyűt a teljes képernyőhöz."
- "Az „Eseménykezelő” oldalon kattints a következő diára: a kivetített ablak is odalép."
- title: "Kérdések a közönségtől"
intro: "A közönség a telefonjáról írhat neked üzenetet és kérdést."
steps:
- "Az „Eseménykezelő” oldal „Üzenetek” lapján látod, mit írtak."
- "A „Kérdések” lapon a kérdéseket külön is megtalálod."
- "Egy fontos üzenetet kitűzhetsz: ezek a „Kitűzött üzenetek” lapon gyűlnek."
- "Ha nem kérsz névtelen üzenetet, a beállításoknál válaszd a „Névtelen üzenetek tiltása” lehetőséget."
- title: "Eredmények az esemény után"
intro: "Az esemény végén egy jelentés összegzi, mi történt."
steps:
- "Az eseményed kártyáján kattints a „Befejezés” gombra."
- "A befejezett esemény kártyáján kattints a „Jelentés megtekintése” gombra."
- "Itt látod a résztvevők számát, a szavazások eredményét és az üzeneteket. Az „Exportálás” gombokkal táblázatként (CSV) is letöltheted őket."
faq:
- q: "Kell a közönségnek fiók vagy külön app?"
a: "Nem. Elég, ha a telefonján megnyitja a present.DOMAIN címet, és beírja a kódot, vagy beolvassa a QR kódot."
- q: "Milyen fájlt tölthetek fel?"
a: "PDF, PPT vagy PPTX fájlt, legfeljebb 15 MB méretig. A PowerPoint animációit a Claper nem jeleníti meg, ezért jobb, ha PDF-be mented a prezentációt."
- q: "Újra használhatok egy korábbi eseményt?"
a: "Igen. Az esemény kártyáján nyisd meg a „További lehetőségek” menüt, és válaszd a „Másolat” pontot."
- q: "Segíthet valaki a lebonyolításban?"
a: "Igen. Az esemény szerkesztésekor a „Facilitátor hozzáadása” résznél add meg az e-mail címét. Ha ezzel a címmel fiókot hoz létre, ő is kezelheti az eseményt, de nem törölheti."
- q: "Mentődnek az eseményeim?"
a: "Az események és a feltöltött prezentációk a dobozon vannak. A mentés állapotát a vezérlőpulton, az alkalmazás „Adatok és mentés” fülén látod."
# --- After a fresh install (controller >= 0.279.0, decision 45) ---
@@ -117,6 +157,45 @@ i18n:
- 'Sign in as admin@claper.co with the first password shown on the settings page'
- 'Upload a PDF presentation'
- 'Share the code with the room'
guide:
sections:
- title: "A poll in your presentation"
intro: "The poll shows up on the phones in the room, and you can also show the result on the big screen."
steps:
- "On the card of your event, select „Join”, then „Event manager”."
- "Go to the slide you want the poll on."
- "Select „Add interaction” and choose „Poll”."
- "Type the question in „Title of your poll”, add the answers, and select „Create”."
- title: "Show it on a TV or a projector"
intro: "The presentation runs in a separate window, and that is the one you put on the big screen."
steps:
- "On the „Event manager” page, select „Open presentation”: a new window opens."
- "Drag the new window to the TV or the projector, and press the F key for full screen."
- "On the „Event manager” page, select the next slide: the window on the big screen follows."
- title: "Questions from the room"
intro: "The people in the room can send you messages and questions from their phones."
steps:
- "The „Messages” tab of the „Event manager” page shows what they wrote."
- "On the „Questions” tab you find the questions on their own."
- "You can pin an important message: pinned ones collect on the „Pinned messages” tab."
- "If you do not want anonymous messages, choose „Deny anonymous messages” in the settings."
- title: "Results after the event"
intro: "At the end of the event, a report sums up what happened."
steps:
- "On the card of your event, select „End”."
- "On the card of the finished event, select „View report”."
- "Here you see how many people took part, the poll results and the messages. With the „Export” buttons you can also download them as a table (CSV)."
faq:
- q: "Do the people in the room need an account or an app?"
a: "No. They open present.DOMAIN on their phone and type the code, or scan the QR code."
- q: "What file can I upload?"
a: "A PDF, PPT or PPTX file of up to 15 MB. Claper does not show PowerPoint animations, so it is better to save the presentation as a PDF."
- q: "Can I use an earlier event again?"
a: "Yes. On the card of the event, open the „More options” menu and choose „Duplicate”."
- q: "Can someone help me run the event?"
a: "Yes. When you edit the event, enter their e-mail address under „Add facilitator”. Once they create an account with that address, they can manage the event too, but they cannot delete it."
- q: "Are my events backed up?"
a: "The events and the uploaded presentations are on the box. You see the backup status on the dashboard, on the app's „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -137,3 +216,9 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"claper": "ghcr.io/claperco/claper:2.5", "claper-postgres": "postgres:16-alpine"}, "to": {"claper": "ghcr.io/claperco/claper:2.5", "claper-postgres": "postgres:17-alpine"}, "digest": {"claper": "sha256:4f733dc50b0c77517db402541f88c5489d4c9eedb32ac6c5eef7cadd8a594196", "claper-postgres": "sha256:b0f9560a2de083e2cc7382e75f808c7381a32852a7ec49117deedb300e552b24"}, "verdict": "proven", "tested_at": "2026-09-28T08:52:08Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/pg-calcom-claper-2026-09-28/bench/apps/claper/bench/evidence/MV-claper/verdict.json", "box_evidence": "felhom.eu/documentation/audits/pg-calcom-claper-2026-09-28/box/claper/box-verdict-claper.json", "memory_peak_pct": 48.1, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 78.3, "engine_conversion": {"service": "claper-postgres", "engine": "postgres", "from": 16, "to": 17}}
# --- 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).
upstream:
ghcr.io/claperco/claper: "github:ClaperCo/Claper"
postgres: "gap:PostgreSQL announces fixes on postgresql.org only; the major tag takes the newest minor at install"
+93 -3
View File
@@ -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:
@@ -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:
@@ -64,6 +63,47 @@ app_info:
prerequisites:
- 'x86 processzor szükséges a legjobb teljesítményhez'
- 'Legalább 1 GB szabad RAM ajánlott'
guide:
checked_version: "4.129.0"
sections:
- title: "Fájlok feltöltése és letöltése"
intro: "A gépeden lévő fájlokat egyszerűen átteheted a code-serverbe, és vissza."
steps:
- "Nyisd meg a bal oldali „Explorer” (Fájlkezelő) nézetet."
- "Kattints jobb gombbal egy mappára, és válaszd az „Upload...” (Feltöltés) pontot."
- "Fájlt úgy is feltölthetsz, hogy a gépedről behúzod az „Explorer” egyik mappájába."
- "Letöltéshez kattints jobb gombbal a fájlra vagy mappára, és válaszd a „Download...” (Letöltés) pontot."
- title: "Git tároló letöltése"
intro: "Egy meglévő projektet a Git címéből egy lépésben letölthetsz."
steps:
- "Nyomd meg az F1 billentyűt, írd be: Git: Clone, és válaszd a „Clone” (Klónozás) parancsot."
- "Illeszd be a tároló címét, és nyomd meg az Entert."
- "Válaszd ki a mappát, ahová a projekt kerüljön, például a workspace mappát."
- "Ha kész, a code-server megkérdezi, megnyissa-e a projektet."
- title: "Használat alkalmazásként"
intro: "A böngésző sok gyorsbillentyűt elfog, alkalmazásként telepítve viszont a code-server kapja meg őket."
steps:
- "Nyisd meg a code.DOMAIN címet Chrome-ban."
- "Kattints a címsorban a telepítés ikonra, és erősítsd meg."
- "Ezután a code-server saját ablakban indul, és a gyorsbillentyűk benne működnek."
- "iPaden a Safari megosztás menüjében add hozzá a kezdőképernyőhöz."
- title: "Kinézet beállítása"
intro: "A színeket a saját ízlésedre állíthatod."
steps:
- "Nyomd meg az F1 billentyűt, és írd be: Color Theme."
- "Válaszd a „Color Theme” (Színtéma) parancsot."
- "A nyilakkal lapozva azonnal látod a témát; az Enterrel választod ki."
faq:
- q: "Hol vannak a fájljaim?"
a: "A code-server a workspace mappát nyitja meg, ezt a doboz állította be. Ami itt van, a dobozon marad, az újraindítás után is."
- q: "Miért nem működik a sudo?"
a: "A code-server itt rendszergazdai (sudo) jog nélkül fut, így rendszercsomagot nem tudsz telepíteni. Ez a doboz alapbeállítása."
- q: "Miért hiányzik egy bővítmény?"
a: "A code-server nem a Microsoft bővítményboltját használja, hanem az Open VSX-et. Néhány zárt bővítmény, például a Live Share, itt nem érhető el."
- q: "Hogyan változtatom meg a jelszót?"
a: "A vezérlőpulton, a code-server „Beállítások” fülén módosíthatod a hozzáférési jelszót."
- q: "Többször elrontottam a jelszót, és nem enged be. Mi történt?"
a: "A code-server percenként két, óránként további tizenkét próbát enged. Várj egy kicsit, és próbáld újra a helyes jelszóval."
# --- Controller-side health probe ---
healthcheck:
@@ -82,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'
@@ -97,6 +136,46 @@ i18n:
prerequisites:
- 'An x86 processor is needed for the best speed'
- 'At least 1 GB of free RAM is recommended'
guide:
sections:
- title: "Upload and download files"
intro: "You can easily move files from your computer into code-server, and back."
steps:
- "Open the „Explorer” view on the left."
- "Right-click a folder and choose „Upload...”."
- "You can also upload a file by dragging it from your computer into a folder in the „Explorer”."
- "To download, right-click the file or folder and choose „Download...”."
- title: "Get a Git repository"
intro: "You can get an existing project from its Git address in one step."
steps:
- "Press F1, type Git: Clone, and choose the „Clone” command."
- "Paste the address of the repository and press Enter."
- "Choose the folder the project goes into, for example the workspace folder."
- "When it is done, code-server asks whether to open the project."
- title: "Use it as an app"
intro: "The browser catches many keyboard shortcuts, but installed as an app, code-server gets them."
steps:
- "Open code.DOMAIN in Chrome."
- "Select the install icon in the address bar and confirm."
- "From then on code-server starts in its own window, and the keyboard shortcuts work in it."
- "On an iPad, add it to the home screen from the share menu in Safari."
- title: "Set the look"
intro: "You can set the colours to your own taste."
steps:
- "Press F1 and type Color Theme."
- "Choose the „Color Theme” command."
- "As you move with the arrow keys you see each theme at once; Enter picks it."
faq:
- q: "Where are my files?"
a: "code-server opens the workspace folder; the box set this up. What is in it stays on the box, after a restart too."
- q: "Why does sudo not work?"
a: "Here code-server runs without administrator (sudo) rights, so you cannot install system packages. This is how the box sets it up."
- q: "Why is an extension missing?"
a: "code-server does not use Microsoft's extension store but Open VSX. Some closed extensions, for example Live Share, are not available here."
- q: "How do I change the password?"
a: "On the dashboard, on code-server's „Settings” tab, you can change the access password."
- q: "I typed the password wrong a few times and it does not let me in. What happened?"
a: "code-server allows two tries a minute, plus twelve more an hour. Wait a little and try again with the right password."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -107,3 +186,14 @@ i18n:
- env_var: PASSWORD
label: 'Access password'
description: 'The sign-in password for the editor.'
# --- 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).
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"}
+1 -1
View File
@@ -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:
+90 -4
View File
@@ -40,7 +40,7 @@ deploy_fields:
type: password
generate: password:24
locked_after_deploy: true
description: "A Crafty admin felhasználó (admin) kezdeti jelszava — ezzel tudsz belépni a kezelőfelületre"
description: "A Crafty admin felhasználó (admin) kezdeti jelszava: ezzel tudsz belépni a kezelőfelületre"
# --- App info (info page content) ---
app_info:
@@ -60,13 +60,54 @@ app_info:
- 'Hozz létre egy új Minecraft szervert a varázslóval'
- 'Állítsd be a szerver beállításokat (játékmód, nehézség, stb.)'
- 'Állítsd be a szerver portját a 25565–25575 tartományon belül (server.properties → server-port); az első szerver a 25565-öt használja, a továbbiak 25566–25575-öt'
- 'Helyi hálózaton csatlakozz a szerver helyi IP-címére és portjára (pl. 192.168.x.x:25565) — a Minecraft kliens „helyi hálózat keresése” nem listázza automatikusan, add meg kézzel a címet'
- 'Interneten keresztüli eléréshez port-továbbítás szükséges a választott port(ok)ra — egyeztess az üzemeltetővel'
- 'Helyi hálózaton csatlakozz a szerver helyi IP-címére és portjára (pl. 192.168.x.x:25565). A Minecraft kliens „helyi hálózat keresése” nem listázza automatikusan, add meg kézzel a címet'
- 'Interneten keresztüli eléréshez port-továbbítás szükséges a választott port(ok)ra. Egyeztess az üzemeltetővel.'
prerequisites:
- 'Legalább 2 GB szabad RAM ajánlott (Minecraft szerver + Crafty)'
- 'x86 processzor szükséges (nem fut Raspberry Pi-n)'
- 'A Minecraft szerverek a 25565–25575 porttartományt használhatják (egyszerre legfeljebb 11 szerver)'
guide:
checked_version: "4.11.0"
sections:
- title: "A szerver indítása és leállítása"
intro: "A Minecraft szerver csak akkor fogad játékosokat, ha fut."
steps:
- "A „Dashboard” (Irányítópult) oldalon kattints a szerver nevére."
- "A „Terminal” (Terminál) lapon kattints a „Start” (Indítás) gombra."
- "Ha a szerver elindult, a „Dashboard” oldalon „Online” állapotot látsz."
- "Leállításhoz a „Stop” (Leállítás), újraindításhoz a „Restart” (Újraindítás) gombot használd."
- title: "Parancsok a szerverkonzolon"
intro: "A konzolon úgy adhatsz parancsot a szervernek, mintha játékon belül rendszergazda lennél."
steps:
- "Nyisd meg a szerver „Terminal” lapját."
- "Írd be a parancsot perjel nélkül az „Enter your command” (parancs) mezőbe, például: say Sziasztok."
- "Kattints a „Send command” (Parancs küldése) gombra, és a válasz megjelenik a konzolon."
- "Java szerveren a whitelist on paranccsal csak a listán szereplők léphetnek be; egy barátot a whitelist add parancs után a játékosnevével adsz hozzá."
- title: "Ütemezett újraindítás"
intro: "Egy napi újraindítás frissen tartja a szervert, és ezt a Crafty magától elvégzi."
steps:
- "A szerver oldalán nyisd meg a „Schedule” (Ütemezés) lapot, és kattints a „Create New Schedule” (Új ütemezés) gombra."
- "Adj nevet az ütemezésnek, és az „Action” (Művelet) mezőben válaszd a „Restart Server” (szerver újraindítása) lehetőséget."
- "Az „Interval” (Gyakoriság) mezőbe írj 1-et, mellette válaszd a „Days” (nap) értéket, a „Time” (Idő) mezőben pedig egy éjszakai időpontot."
- "Kattints a „Save” (Mentés) gombra."
- title: "Saját jelszó beállítása"
intro: "A kezdeti jelszót érdemes egy saját, megjegyezhető jelszóra cserélni."
steps:
- "Kattints jobb fent a felhasználói menüre, és válaszd az „Account Settings” (Fiókbeállítások) pontot."
- "Írd be az új jelszót a „New Password” (Új jelszó) és a „Confirm Password” (Jelszó megerősítése) mezőbe."
- "Kattints a „Save” gombra. A Felhom vezérlőpultja ezután is a kezdeti jelszót mutatja, az már nem érvényes."
faq:
- q: "Miért lassú vagy áll le a szerver?"
a: "A Crafty és a Minecraft szerverek együtt legfeljebb 2 GB memóriát kapnak a dobozon. Egyszerre egy kisebb szervert futtass, és a szerver létrehozásakor a „Maximum Memory” (legtöbb memória) értéket hagyd ez alatt."
- q: "Hol szerkeszthetem a szerver beállításait?"
a: "A szerver „Files” (Fájlok) lapján látod és szerkesztheted a fájlokat, például a server.properties fájlt. A módosítás a szerver újraindítása után él."
- q: "Hogyan teszek fel saját fájlt, például egy világot vagy egy modot?"
a: "A szerver „Files” lapján nyisd meg a célmappát, és használd az „Upload” (Feltöltés) gombot."
- q: "Hány szervert futtathatok?"
a: "A portok miatt legfeljebb tizenegyet, a 25565–25575 tartományban. A memória miatt egyszerre inkább csak egyet-kettőt."
- q: "Mentődik a világom?"
a: "A szerverek fájljai a dobozon vannak. A mentés állapotát a vezérlőpulton, az alkalmazás „Adatok és mentés” fülén látod."
# --- Controller-side health probe ---
healthcheck:
@@ -83,7 +124,7 @@ initial_credentials:
format: json
username_key: username
password_key: password
note: "Kezdeti admin jelszó (a telepítéskor beállított). Az első belépés után változtasd meg a Crafty felületén — ez a kártya továbbra is a kezdeti jelszót mutatja."
note: "Kezdeti admin jelszó (a telepítéskor beállított). Az első belépés után változtasd meg a Crafty felületén. Ez a kártya továbbra is a kezdeti jelszót mutatja."
# --- English copy (localisation slice 5, R-560) --------------------------------------------
# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing
@@ -111,6 +152,46 @@ i18n:
- 'At least 2 GB of free RAM is recommended (the Minecraft server + Crafty)'
- 'An x86 processor is needed (it does not run on a Raspberry Pi)'
- 'Minecraft servers may use the port range 25565-25575 (at most 11 servers at once)'
guide:
sections:
- title: "Start and stop the server"
intro: "The Minecraft server only lets players in while it is running."
steps:
- "On the „Dashboard” page, select the name of the server."
- "On the „Terminal” tab, select „Start”."
- "Once the server is up, the „Dashboard” page shows it as „Online”."
- "To stop it use „Stop”, to restart it use „Restart”."
- title: "Commands on the server console"
intro: "On the console you can give the server commands, as if you were an operator in the game."
steps:
- "Open the „Terminal” tab of the server."
- "Type the command without a slash in „Enter your command”, for example: say Hello."
- "Select „Send command”, and the answer shows on the console."
- "On a Java server, the whitelist on command lets in only the players on the list; you add a friend with whitelist add followed by their player name."
- title: "A scheduled restart"
intro: "A daily restart keeps the server fresh, and Crafty does it by itself."
steps:
- "On the server's page, open the „Schedule” tab and select „Create New Schedule”."
- "Give the schedule a name, and in „Action” choose „Restart Server”."
- "In „Interval” type 1, choose „Days” next to it, and in „Time” pick a night-time hour."
- "Select „Save”."
- title: "Set your own password"
intro: "It is worth swapping the first password for one of your own that you can remember."
steps:
- "Select the user menu at the top right and choose „Account Settings”."
- "Type the new password in „New Password” and in „Confirm Password”."
- "Select „Save”. The Felhom dashboard still shows the first password after this, and that one no longer works."
faq:
- q: "Why is the server slow, or why does it stop?"
a: "Crafty and the Minecraft servers share at most 2 GB of memory on the box. Run one smaller server at a time, and when you create a server, keep „Maximum Memory” below that."
- q: "Where can I edit the server settings?"
a: "On the server's „Files” tab you see its files and can edit them, for example server.properties. A change takes effect after the server restarts."
- q: "How do I add a file of my own, for example a world or a mod?"
a: "On the server's „Files” tab, open the target folder and use the „Upload” button."
- q: "How many servers can I run?"
a: "Because of the ports, at most eleven, in the 25565–25575 range. Because of the memory, rather only one or two at a time."
- q: "Is my world backed up?"
a: "The server files are on the box. You see the backup status on the dashboard, on the app's „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -129,3 +210,8 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"crafty-controller": "registry.gitlab.com/crafty-controller/crafty-4:4.10.7"}, "to": {"crafty-controller": "registry.gitlab.com/crafty-controller/crafty-4:4.11.0"}, "digest": {"crafty-controller": "sha256:7b6e87514259549647e15ceeaf73d238792e6d77e2c79fc744d5badc8d6e997c"}, "verdict": "proven", "tested_at": "2026-09-30T16:37:55Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/crafty-controller/bench/evidence/MV-crafty-controller/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/crafty-controller/step.txt", "memory_peak_pct": 2.7, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 8.0}
# --- 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).
upstream:
registry.gitlab.com/crafty-controller/crafty-4: "gap:a GitLab project; the watch reads GitHub only"
+90 -1
View File
@@ -16,7 +16,7 @@ subdomain: "timeline"
slug: "dawarich"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-10-01"
catalog_since: "2026-10-28"
# --- Resource hints (displayed on deploy screen) ---
resources:
@@ -94,6 +94,47 @@ app_info:
- 'A beállításokban másold ki az API-kulcsodat'
- 'Telepítsd a Dawarich alkalmazást a telefonodra, és add meg: https://timeline.DOMAIN és az API-kulcsot'
- 'A térkép csempéit a böngésződ a Dawarich térképszerveréről tölti le; a helyadataid a te szervereden maradnak'
guide:
checked_version: "1.15.3"
sections:
- title: "Régi helyelőzmények betöltése"
intro: "A korábbi helyadataidat, például a Google-től letöltött idővonalat, egy fájlból töltheted be."
steps:
- "A felső menüben nyisd meg a „My data” (Saját adatok) menüt, és válaszd az „Imports” (Importálás) pontot."
- "Kattints a „New import” (Új importálás) gombra."
- "Válaszd ki a fájlt, például egy Google JSON, GPX vagy ZIP fájlt, és indítsd a feltöltést. A formátumot a Dawarich magától felismeri."
- "Az „Imports” oldalon követheted a feldolgozást; utána a pontok megjelennek a térképen."
- title: "Utazás rögzítése"
intro: "Egy utazás egy időszakot fog össze, és térképen mutatja, merre jártál."
steps:
- "A felső menüben kattints a „Trips” (Utazások) pontra."
- "Kattints a „New trip” (Új utazás) gombra."
- "Add meg az utazás nevét, a kezdő és a záró időpontot, és mentsd el."
- "Az utazás oldalán a Dawarich az időszak pontjaiból rajzolja meg az útvonalat."
- title: "Statisztika"
intro: "A Dawarich összesíti, mennyit utaztál."
steps:
- "A felső menüben kattints a „Stats” (Statisztika) pontra."
- "Itt évenként látod a megtett távolságot („Total distance”) és a rögzített pontok számát."
- "A statisztika többi része naponta frissül. Ha egy friss importot most látnál, kattints az „Update stats” (Statisztika frissítése) gombra."
- title: "Családtag hozzáadása"
intro: "Mindenki saját fiókot kap, és a saját telefonjáról küldi a helyét."
steps:
- "Kattints jobb fent a fiókod menüjére, és válaszd a „Settings” (Beállítások) pontot."
- "Nyisd meg a „Users” (Felhasználók) lapot, és kattints az „Add new user” (Új felhasználó) gombra."
- "Add meg az „Email” és a „Password” (jelszó) mezőt, majd kattints a „Create” (Létrehozás) gombra."
- "A családtag belép, és a saját API-kulcsával beállítja a telefonos appot. A kulcsot a fiókmenü „Account” (Fiók) oldalán találja."
faq:
- q: "Túl nagy a Google-től letöltött fájl. Mit tegyek?"
a: "A 200 MB-nál nagyobb fájlt tömörítsd ZIP fájlba a feltöltés előtt. Így gyorsabb, és nem szakad meg a feltöltés."
- q: "Ki látja, merre jártam?"
a: "A helyadataid a dobozon maradnak, és minden fiók csak a saját pontjait látja a térképen. A térkép háttérképeit a böngésződ a Dawarich térképszerveréről tölti le."
- q: "Kimenthetem az adataimat fájlba?"
a: "Igen. A „My data” menü „Points” (Pontok) oldalán az „Export” gombbal GeoJSON vagy GPX fájlt készítesz. A kész fájlt az „Exports” oldalon találod."
- q: "Miért nem látszik a mai utam?"
a: "A pontokat a telefonos app küldi. Nézd meg, hogy az appban jó-e a timeline.DOMAIN cím és az API-kulcs, és hogy az app küldhet-e a háttérben."
- q: "Mentődnek a helyadataim?"
a: "A helyadataid a dobozon vannak. A mentés állapotát a vezérlőpulton, az alkalmazás „Adatok és mentés” fülén látod."
# --- Controller health probe (dials what the compose healthcheck dials) ---
healthcheck:
@@ -122,6 +163,46 @@ i18n:
- 'Copy your API key from the settings'
- 'Install the Dawarich app on your phone and enter: https://timeline.DOMAIN and the API key'
- 'Your browser loads the map tiles from the Dawarich map server; your location data stays on your server'
guide:
sections:
- title: "Load your old location history"
intro: "You can load your earlier location data, for example the timeline you downloaded from Google, from a file."
steps:
- "In the top menu, open „My data” and choose „Imports”."
- "Select „New import”."
- "Choose the file, for example a Google JSON, GPX or ZIP file, and start the upload. Dawarich works out the format by itself."
- "On the „Imports” page you can follow the processing; then the points show up on the map."
- title: "Record a trip"
intro: "A trip ties a stretch of time together and shows on a map where you went."
steps:
- "In the top menu, select „Trips”."
- "Select „New trip”."
- "Enter the name of the trip, its start and its end, and save it."
- "On the trip's page, Dawarich draws the route from the points of that time."
- title: "Statistics"
intro: "Dawarich adds up how much you have travelled."
steps:
- "In the top menu, select „Stats”."
- "Here you see the distance for each year („Total distance”) and the number of points recorded."
- "The rest of the statistics is updated daily. To see a fresh import now, select „Update stats”."
- title: "Add a family member"
intro: "Everyone gets their own account and sends their location from their own phone."
steps:
- "Select your account menu at the top right and choose „Settings”."
- "Open the „Users” tab and select „Add new user”."
- "Fill in „Email” and „Password”, then select „Create”."
- "The family member signs in and sets up the phone app with their own API key. They find the key on the „Account” page of the account menu."
faq:
- q: "The file I downloaded from Google is too large. What do I do?"
a: "Compress a file larger than 200 MB into a ZIP file before uploading. It is faster that way, and the upload does not break off."
- q: "Who sees where I have been?"
a: "Your location data stays on the box, and each account sees only its own points on the map. Your browser loads the map background from the Dawarich map server."
- q: "Can I save my data to a file?"
a: "Yes. On the „Points” page of the „My data” menu, the „Export” button makes a GeoJSON or GPX file. You find the finished file on the „Exports” page."
- q: "Why is today's route not showing?"
a: "The phone app sends the points. Check that the app has the right timeline.DOMAIN address and API key, and that it may send in the background."
- q: "Is my location data backed up?"
a: "Your location data is on the box. You see the backup status on the dashboard, on the app's „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -142,3 +223,11 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"dawarich": "freikin/dawarich:1.15.2", "dawarich-sidekiq": "freikin/dawarich:1.15.2", "dawarich-db": "postgis/postgis:17-3.5-alpine", "dawarich-redis": "redis:7.4-alpine"}, "to": {"dawarich": "freikin/dawarich:1.15.3", "dawarich-sidekiq": "freikin/dawarich:1.15.3", "dawarich-db": "postgis/postgis:17-3.5-alpine", "dawarich-redis": "redis:7.4-alpine"}, "digest": {"dawarich": "sha256:589e3606b11b61c3fa2d9661832cb73645a9b93a9cc7d807a071e2bc6c584498", "dawarich-db": "sha256:894f570c0cf0664ed5576a8fd5d5bfb8fb1b19d592885b686c3a88c8bd90c41f", "dawarich-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499", "dawarich-sidekiq": "sha256:589e3606b11b61c3fa2d9661832cb73645a9b93a9cc7d807a071e2bc6c584498"}, "verdict": "proven", "tested_at": "2026-10-01T16:20:55Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/new-apps-2026-10-01/bench/dawarich/evidence/MV-dawarich/verdict.json", "box_evidence": "felhom.eu/documentation/audits/new-apps-2026-10-01/box/dawarich/step.txt", "memory_peak_pct": 33.0, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 70.8}
- {"from": {"dawarich": "freikin/dawarich:1.15.3", "dawarich-sidekiq": "freikin/dawarich:1.15.3", "dawarich-db": "postgis/postgis:17-3.5-alpine", "dawarich-redis": "redis:7.4-alpine"}, "to": {"dawarich": "freikin/dawarich:1.19.0", "dawarich-sidekiq": "freikin/dawarich:1.19.0", "dawarich-db": "postgis/postgis:17-3.5-alpine", "dawarich-redis": "redis:7.4-alpine"}, "digest": {"dawarich": "sha256:d9385242202ae385a5d8064f41a59a0b58218399e60e7e499d2a6afb449bc304", "dawarich-db": "sha256:894f570c0cf0664ed5576a8fd5d5bfb8fb1b19d592885b686c3a88c8bd90c41f", "dawarich-redis": "sha256:6ba19c50b56777f5c11c58eff8ddb69d0d5f27ba131cffb63f180ccfd43c66af", "dawarich-sidekiq": "sha256:d9385242202ae385a5d8064f41a59a0b58218399e60e7e499d2a6afb449bc304"}, "verdict": "security_fix", "tested_at": "2026-10-28T09:52:40Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/runtime-fixes-2026-10-28/walks/dawarich", "memory_peak_pct": 28.9, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nvd.nist.gov/vuln/detail/CVE-2026-111497", "fixed_in": "1.19.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).
upstream:
freikin/dawarich: "github:Freika/dawarich"
postgis/postgis: "gap:the PostGIS image publishes no notices of its own; PostgreSQL announces on postgresql.org only"
redis: "github:redis/redis"
+2 -2
View File
@@ -18,7 +18,7 @@
services:
dawarich:
image: freikin/dawarich:1.15.3
image: freikin/dawarich:1.19.0
container_name: dawarich
restart: unless-stopped
entrypoint: web-entrypoint.sh
@@ -82,7 +82,7 @@ services:
- "traefik.http.services.dawarich.loadbalancer.server.port=3000"
dawarich-sidekiq:
image: freikin/dawarich:1.15.3
image: freikin/dawarich:1.19.0
container_name: dawarich-sidekiq
restart: unless-stopped
entrypoint: sidekiq-entrypoint.sh
@@ -0,0 +1,219 @@
# =============================================================================
# .felhom.yml - App metadata for felhom-controller
# =============================================================================
# Dawarich — freikin/dawarich. Onboarding record: onboarding/dawarich.md (NEW-APP-CHECKLIST.md).
# First admin: CLASS 3 — the image's `rails db:seed` creates `demo@dawarich.app` / `safepassword`. `after_install` sets
# the box's generated password through Rails (the password is ARGV); until it succeeds the box holds the app behind the
# gate (R-741). The login NAME stays public: Devise locks it for 1 hour after 10 wrong tries (measured, onboarding 3.6) —
# the mealie precedent (`09` decision 57: a 1-hour lock kept, no secret name); the first step tells the household to set
# its own e-mail address, which ends that. Phone apps post with the account's API key, which no lock touches.
# --- Display info (shown on dashboard) ---
display_name: "Dawarich"
description: "Saját helyelőzmények térképen - a Google Idővonal helyett"
category: "travel"
subdomain: "timeline"
slug: "dawarich"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-10-01"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "500M"
mem_limit: "2688M" # dawarich 1024M + dawarich-sidekiq 1024M + dawarich-db 512M + dawarich-redis 128M = 2688M
pi_compatible: false
needs_hdd: false
# --- Deploy wizard fields ---
deploy_fields:
- env_var: DOMAIN
label: "Domain"
type: domain
description: "A szerver domain neve"
locked_after_deploy: true
- env_var: SUBDOMAIN
label: "Aldomain"
type: subdomain
default: "timeline"
required: true
locked_after_deploy: true
description: "Az alkalmazás aldomainje"
- env_var: SECRET_KEY_BASE
label: "Titkosítási kulcs"
type: secret
generate: "hex:64"
locked_after_deploy: true
# Data-encrypting key: Rails derives the keys of Dawarich's encrypted columns from it (`encrypts` in
# instance_setting.rb, service_setting.rb, trip_source.rb — read 2026-10-01). Regenerated, those values are
# unreadable, so a restore must recover it and refuses rather than make a new one.
data_key: true
- env_var: DB_PASSWORD
label: "Adatbázis jelszó"
type: secret
generate: "password:24"
locked_after_deploy: true
- env_var: ADMIN_PASSWORD
label: "Bejelentkezési jelszó (demo@dawarich.app)"
type: password
generate: "password:24"
locked_after_deploy: true
description: "Az első bejelentkezéshez: demo@dawarich.app és ez a jelszó. A Beállításokban cseréld le az e-mail-címet a sajátodra."
after_install:
service: dawarich
env: [ADMIN_PASSWORD]
command: ["bin/rails", "runner", "u = User.find_by!(email: 'demo@dawarich.app'); u.update!(password: ARGV[0], password_confirmation: ARGV[0]); puts 'FELHOM_AFTER_INSTALL_OK'", "${ADMIN_PASSWORD}"]
success: "FELHOM_AFTER_INSTALL_OK"
# --- App-email (password reset) through the box's mail relay ---
smtp_mapping:
host_var: SMTP_SERVER
port_var: SMTP_PORT
from_var: SMTP_FROM
from_local: dawarich
# --- Customer-facing info ---
app_info:
tagline: "Saját helyelőzmények - a telefonod a te szerveredre küldi, hol jártál"
default_creds: "demo@dawarich.app / safepassword"
add_people: "A családtagod fiókját te hozod létre a Beállítások, Felhasználók oldalon; mindenki a saját telefonjáról küldi a helyét."
docs_url: "https://dawarich.app/docs/intro"
use_cases:
- 'A Google Idővonal helyett: a helyelőzményeid a saját szervereden'
- 'Térkép, statisztika és utazások az összes helyről, ahol jártál'
- 'Google Takeout, GPX és GeoJSON import a régi adataidhoz'
- 'A Dawarich, az Overland vagy az OwnTracks alkalmazás küldi a telefonod helyét'
first_steps:
- 'Nyisd meg a timeline.DOMAIN címet, és jelentkezz be: demo@dawarich.app és a Beállítások oldalon látható jelszó'
- 'A fiókod beállításaiban cseréld le az e-mail-címet a sajátodra - a demo@dawarich.app név nyilvános'
- 'A beállításokban másold ki az API-kulcsodat'
- 'Telepítsd a Dawarich alkalmazást a telefonodra, és add meg: https://timeline.DOMAIN és az API-kulcsot'
- 'A térkép csempéit a böngésződ a Dawarich térképszerveréről tölti le; a helyadataid a te szervereden maradnak'
guide:
checked_version: "1.15.3"
sections:
- title: "Régi helyelőzmények betöltése"
intro: "A korábbi helyadataidat, például a Google-től letöltött idővonalat, egy fájlból töltheted be."
steps:
- "A felső menüben nyisd meg a „My data” (Saját adatok) menüt, és válaszd az „Imports” (Importálás) pontot."
- "Kattints a „New import” (Új importálás) gombra."
- "Válaszd ki a fájlt, például egy Google JSON, GPX vagy ZIP fájlt, és indítsd a feltöltést. A formátumot a Dawarich magától felismeri."
- "Az „Imports” oldalon követheted a feldolgozást; utána a pontok megjelennek a térképen."
- title: "Utazás rögzítése"
intro: "Egy utazás egy időszakot fog össze, és térképen mutatja, merre jártál."
steps:
- "A felső menüben kattints a „Trips” (Utazások) pontra."
- "Kattints a „New trip” (Új utazás) gombra."
- "Add meg az utazás nevét, a kezdő és a záró időpontot, és mentsd el."
- "Az utazás oldalán a Dawarich az időszak pontjaiból rajzolja meg az útvonalat."
- title: "Statisztika"
intro: "A Dawarich összesíti, mennyit utaztál."
steps:
- "A felső menüben kattints a „Stats” (Statisztika) pontra."
- "Itt évenként látod a megtett távolságot („Total distance”) és a rögzített pontok számát."
- "A statisztika többi része naponta frissül. Ha egy friss importot most látnál, kattints az „Update stats” (Statisztika frissítése) gombra."
- title: "Családtag hozzáadása"
intro: "Mindenki saját fiókot kap, és a saját telefonjáról küldi a helyét."
steps:
- "Kattints jobb fent a fiókod menüjére, és válaszd a „Settings” (Beállítások) pontot."
- "Nyisd meg a „Users” (Felhasználók) lapot, és kattints az „Add new user” (Új felhasználó) gombra."
- "Add meg az „Email” és a „Password” (jelszó) mezőt, majd kattints a „Create” (Létrehozás) gombra."
- "A családtag belép, és a saját API-kulcsával beállítja a telefonos appot. A kulcsot a fiókmenü „Account” (Fiók) oldalán találja."
faq:
- q: "Túl nagy a Google-től letöltött fájl. Mit tegyek?"
a: "A 200 MB-nál nagyobb fájlt tömörítsd ZIP fájlba a feltöltés előtt. Így gyorsabb, és nem szakad meg a feltöltés."
- q: "Ki látja, merre jártam?"
a: "A helyadataid a dobozon maradnak, és minden fiók csak a saját pontjait látja a térképen. A térkép háttérképeit a böngésződ a Dawarich térképszerveréről tölti le."
- q: "Kimenthetem az adataimat fájlba?"
a: "Igen. A „My data” menü „Points” (Pontok) oldalán az „Export” gombbal GeoJSON vagy GPX fájlt készítesz. A kész fájlt az „Exports” oldalon találod."
- q: "Miért nem látszik a mai utam?"
a: "A pontokat a telefonos app küldi. Nézd meg, hogy az appban jó-e a timeline.DOMAIN cím és az API-kulcs, és hogy az app küldhet-e a háttérben."
- q: "Mentődnek a helyadataim?"
a: "A helyadataid a dobozon vannak. A mentés állapotát a vezérlőpulton, az alkalmazás „Adatok és mentés” fülén látod."
# --- Controller health probe (dials what the compose healthcheck dials) ---
healthcheck:
checks:
- type: api
port: 3000
path: "/api/v1/health"
expect:
status: 200
i18n:
en:
description: 'Your own location history on a map - instead of Google Timeline'
app_info:
tagline: 'Your own location history - your phone sends where you have been to your own server'
default_creds: 'demo@dawarich.app / safepassword'
add_people: "You create your family member's account in Settings, Users; everyone sends their location from their own phone."
use_cases:
- 'Instead of Google Timeline: your location history on your own server'
- 'A map, statistics and trips from every place you have been'
- 'Google Takeout, GPX and GeoJSON import for your old data'
- 'The Dawarich, Overland or OwnTracks app sends your phone location'
first_steps:
- 'Open timeline.DOMAIN and sign in: demo@dawarich.app and the password shown on the settings page'
- 'In your account settings, replace the e-mail address with your own - the demo@dawarich.app name is public'
- 'Copy your API key from the settings'
- 'Install the Dawarich app on your phone and enter: https://timeline.DOMAIN and the API key'
- 'Your browser loads the map tiles from the Dawarich map server; your location data stays on your server'
guide:
sections:
- title: "Load your old location history"
intro: "You can load your earlier location data, for example the timeline you downloaded from Google, from a file."
steps:
- "In the top menu, open „My data” and choose „Imports”."
- "Select „New import”."
- "Choose the file, for example a Google JSON, GPX or ZIP file, and start the upload. Dawarich works out the format by itself."
- "On the „Imports” page you can follow the processing; then the points show up on the map."
- title: "Record a trip"
intro: "A trip ties a stretch of time together and shows on a map where you went."
steps:
- "In the top menu, select „Trips”."
- "Select „New trip”."
- "Enter the name of the trip, its start and its end, and save it."
- "On the trip's page, Dawarich draws the route from the points of that time."
- title: "Statistics"
intro: "Dawarich adds up how much you have travelled."
steps:
- "In the top menu, select „Stats”."
- "Here you see the distance for each year („Total distance”) and the number of points recorded."
- "The rest of the statistics is updated daily. To see a fresh import now, select „Update stats”."
- title: "Add a family member"
intro: "Everyone gets their own account and sends their location from their own phone."
steps:
- "Select your account menu at the top right and choose „Settings”."
- "Open the „Users” tab and select „Add new user”."
- "Fill in „Email” and „Password”, then select „Create”."
- "The family member signs in and sets up the phone app with their own API key. They find the key on the „Account” page of the account menu."
faq:
- q: "The file I downloaded from Google is too large. What do I do?"
a: "Compress a file larger than 200 MB into a ZIP file before uploading. It is faster that way, and the upload does not break off."
- q: "Who sees where I have been?"
a: "Your location data stays on the box, and each account sees only its own points on the map. Your browser loads the map background from the Dawarich map server."
- q: "Can I save my data to a file?"
a: "Yes. On the „Points” page of the „My data” menu, the „Export” button makes a GeoJSON or GPX file. You find the finished file on the „Exports” page."
- q: "Why is today's route not showing?"
a: "The phone app sends the points. Check that the app has the right timeline.DOMAIN address and API key, and that it may send in the background."
- q: "Is my location data backed up?"
a: "Your location data is on the box. You see the backup status on the dashboard, on the app's „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
description: 'The server domain name'
- env_var: SUBDOMAIN
label: 'Subdomain'
description: 'The subdomain this app answers on'
- env_var: SECRET_KEY_BASE
label: 'Encryption key'
- env_var: DB_PASSWORD
label: 'Database password'
- env_var: ADMIN_PASSWORD
label: 'Sign-in password (demo@dawarich.app)'
description: 'For the first sign-in: demo@dawarich.app and this password. Replace the e-mail address with your own in the settings.'
@@ -0,0 +1,192 @@
# Dawarich - Saját helyelőzmények (a Google Idővonal helyett)
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: PostgreSQL 17 + PostGIS 3.5 (the major upstream's own compose runs — `09` decision 42's rule) + Redis + Sidekiq
# RAM: ~900M (mem_limit: 2688M total — app 1024M + sidekiq 1024M + db 512M + redis 128M) | Pi-compatible: No (postgis/postgis is amd64-only)
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
# SECRET_KEY_BASE - Rails aláíró kulcs (generált)
# DB_PASSWORD - Adatbázis jelszó (generált; csak a belső hálón)
# ADMIN_PASSWORD - Az első bejelentkezés jelszava (generált; after_install állítja be)
#
# Mirrors upstream's docker/docker-compose.yml (app + sidekiq on the same image, postgis 17-3.5, redis 7.4), pinned.
# THE KNOWN LOGIN: the app's entrypoint runs `rails db:seed`, which creates `demo@dawarich.app` / `safepassword` when no
# user exists (db/seeds.rb). `after_install` replaces that password with the box's generated one, through Rails itself
# (the password is ARGV, never pasted into code); until it succeeds the box holds the app behind the gate (R-741).
# Reverse geocoding stays OFF (no PHOTON_API_HOST / NOMINATIM_API_HOST / GEOAPIFY / LOCATIONIQ set): no coordinate
# leaves the box. The map's tiles are fetched by the household's BROWSER from Dawarich's default tile server (FIT.md).
services:
dawarich:
image: freikin/dawarich:1.15.3
container_name: dawarich
restart: unless-stopped
entrypoint: web-entrypoint.sh
command: ["bin/rails", "server", "-p", "3000", "-b", "::"]
environment:
TZ: Europe/Budapest
TIME_ZONE: Europe/Budapest
RAILS_ENV: production
REDIS_URL: redis://dawarich-redis:6379
DATABASE_HOST: dawarich-db
DATABASE_PORT: "5432"
DATABASE_USERNAME: dawarich
DATABASE_PASSWORD: ${DB_PASSWORD}
DATABASE_NAME: dawarich
APPLICATION_HOSTS: ${SUBDOMAIN}.${DOMAIN},localhost,127.0.0.1,::1
APPLICATION_PROTOCOL: http
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
RAILS_LOG_TO_STDOUT: "true"
SELF_HOSTED: "true"
STORE_GEODATA: "true"
WEB_CONCURRENCY: "1"
PROMETHEUS_EXPORTER_ENABLED: "false"
BACKGROUND_PROCESSING_CONCURRENCY: "3"
# App-email (smtp_mapping; STARTTLS to the shim on :2525, its self-signed certificate accepted by
# SMTP_OPENSSL_VERIFY_MODE=none; the shim takes no login, so SMTP_AUTHENTICATION=none). Empty SMTP_SERVER = mail OFF;
# measured 2026-10-01 that a fresh install with mail OFF boots (checklist 7.1). DOMAIN builds the links in its mails.
SMTP_SERVER: ${SMTP_SERVER:-}
SMTP_PORT: ${SMTP_PORT:-587}
SMTP_FROM: ${SMTP_FROM:-}
SMTP_AUTHENTICATION: "none"
SMTP_OPENSSL_VERIFY_MODE: "none"
DOMAIN: ${SUBDOMAIN}.${DOMAIN}
volumes:
- dawarich_public:/var/app/public
- dawarich_watched:/var/app/tmp/imports/watched
- dawarich_storage:/var/app/storage
networks:
- traefik-public
- dawarich-internal
depends_on:
dawarich-db:
condition: service_healthy
dawarich-redis:
condition: service_healthy
deploy:
resources:
limits:
memory: 1024M
healthcheck:
test: ["CMD-SHELL", "wget -qO - http://127.0.0.1:3000/api/v1/health | grep -q '\"status\"'"]
interval: 30s
timeout: 10s
retries: 10
start_period: 120s
labels:
- "traefik.enable=true"
- "traefik.http.routers.dawarich.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.routers.dawarich.entrypoints=websecure"
- "traefik.http.routers.dawarich.tls=true"
- "traefik.http.routers.dawarich.tls.certresolver=letsencrypt"
- "traefik.http.services.dawarich.loadbalancer.server.port=3000"
dawarich-sidekiq:
image: freikin/dawarich:1.15.3
container_name: dawarich-sidekiq
restart: unless-stopped
entrypoint: sidekiq-entrypoint.sh
command: ["sidekiq"]
environment:
TZ: Europe/Budapest
TIME_ZONE: Europe/Budapest
RAILS_ENV: production
REDIS_URL: redis://dawarich-redis:6379
DATABASE_HOST: dawarich-db
DATABASE_PORT: "5432"
DATABASE_USERNAME: dawarich
DATABASE_PASSWORD: ${DB_PASSWORD}
DATABASE_NAME: dawarich
APPLICATION_HOSTS: ${SUBDOMAIN}.${DOMAIN},localhost,127.0.0.1,::1
APPLICATION_PROTOCOL: http
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
RAILS_LOG_TO_STDOUT: "true"
SELF_HOSTED: "true"
STORE_GEODATA: "true"
WEB_CONCURRENCY: "1"
PROMETHEUS_EXPORTER_ENABLED: "false"
BACKGROUND_PROCESSING_CONCURRENCY: "3"
# App-email (smtp_mapping; STARTTLS to the shim on :2525, its self-signed certificate accepted by
# SMTP_OPENSSL_VERIFY_MODE=none; the shim takes no login, so SMTP_AUTHENTICATION=none). Empty SMTP_SERVER = mail OFF;
# measured 2026-10-01 that a fresh install with mail OFF boots (checklist 7.1). DOMAIN builds the links in its mails.
SMTP_SERVER: ${SMTP_SERVER:-}
SMTP_PORT: ${SMTP_PORT:-587}
SMTP_FROM: ${SMTP_FROM:-}
SMTP_AUTHENTICATION: "none"
SMTP_OPENSSL_VERIFY_MODE: "none"
DOMAIN: ${SUBDOMAIN}.${DOMAIN}
volumes:
- dawarich_public:/var/app/public
- dawarich_watched:/var/app/tmp/imports/watched
- dawarich_storage:/var/app/storage
networks:
- dawarich-internal
depends_on:
dawarich:
condition: service_healthy
deploy:
resources:
limits:
memory: 1024M
healthcheck:
test: ["CMD-SHELL", "pgrep -f sidekiq"]
interval: 30s
timeout: 10s
retries: 10
start_period: 60s
dawarich-db:
image: postgis/postgis:17-3.5-alpine
container_name: dawarich-db
restart: unless-stopped
shm_size: 1g
environment:
TZ: Europe/Budapest
POSTGRES_USER: dawarich
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: dawarich
volumes:
- dawarich_db_data:/var/lib/postgresql/data
networks:
- dawarich-internal
deploy:
resources:
limits:
memory: 512M
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dawarich -d dawarich"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
dawarich-redis:
image: redis:7.4-alpine
container_name: dawarich-redis
restart: unless-stopped
command: ["redis-server", "--save", "900", "1", "--save", "300", "10", "--appendonly", "no"]
volumes:
- dawarich_redis:/data
networks:
- dawarich-internal
deploy:
resources:
limits:
memory: 128M
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
dawarich_db_data:
dawarich_redis:
dawarich_public:
dawarich_watched:
dawarich_storage:
networks:
traefik-public:
external: true
dawarich-internal:
+90 -3
View File
@@ -15,12 +15,12 @@ subdomain: "docs"
slug: "docmost"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-09-25"
catalog_since: "2026-10-27"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "200M"
mem_limit: "896M"
mem_request: "450M"
mem_limit: "1152M"
pi_compatible: false
needs_hdd: false
@@ -77,6 +77,46 @@ app_info:
prerequisites:
- 'x86 processzor szükséges'
- 'Legalább 896 MB szabad RAM (Docmost + PostgreSQL + Redis)'
guide:
checked_version: "0.96.0"
sections:
- title: "Családtag meghívása"
intro: "Mindenki saját fiókkal ír és olvas, így látszik, ki mit módosított."
steps:
- "Kattints jobb fent a profilképedre, és válaszd a „Workspace settings” (Munkaterület beállításai) pontot."
- "Nyisd meg a „Members” (Tagok) oldalt, és kattints az „Invite members” (Tagok meghívása) gombra."
- "Az „Invite by email” mezőbe írd be az e-mail-címét, a „Select role” mezőben válassz szerepet, és kattints a „Send invitation” (Meghívó küldése) gombra."
- "A Docmost itt nem küld e-mailt: a „Pending” (Függőben) lapon a meghívó menüjében válaszd a „Copy link” (Link másolása) pontot, és küldd el neki a linket."
- title: "Oldal megosztása fiók nélkül"
intro: "Egy oldalt olyannak is megmutathatsz, akinek nincs fiókja, például a nagyszülőknek."
steps:
- "Nyisd meg az oldalt, és kattints jobb fent a „Share” (Megosztás) gombra."
- "Kapcsold be a „Share to web” (Megosztás a weben) kapcsolót."
- "Másold ki a megjelenő linket, és küldd el. Aki megkapja, olvashatja az oldalt, de nem szerkesztheti."
- "Ha már nem kell, ugyanitt kapcsold ki a megosztást."
- title: "Meglévő jegyzetek behozása"
intro: "A máshol megírt jegyzeteidet nem kell újragépelned."
steps:
- "A bal oldali sávban nyisd meg a tér menüjét („Space menu”), és válaszd az „Import pages” (Oldalak importálása) pontot."
- "Válaszd a formátumot: Markdown, HTML vagy a Notionból exportált ZIP fájl."
- "Válaszd ki a fájlt, és ne zárd be a lapot, amíg a Docmost jelzi, hogy kész."
- title: "Oldal mentése a gépedre"
intro: "Egy oldalt fájlba is kimenthetsz vagy kinyomtathatsz."
steps:
- "Az oldal jobb felső sarkában nyisd meg az oldal menüjét („Page actions”)."
- "Válaszd az „Export” pontot, a „Format” (Formátum) mezőben a Markdown vagy a HTML formátumot, majd kattints az „Export” gombra."
- "Nyomtatáshoz vagy PDF-hez ugyanebben a menüben válaszd a „Print PDF” pontot."
faq:
- q: "Miért nem kapott e-mailt a meghívott?"
a: "A Docmost ezen a dobozon nem küld e-mailt, ezért a meghívó linkjét neked kell elküldened. Ugyanezért az elfelejtett jelszóhoz sem érkezik levél."
- q: "Mekkora fájlt csatolhatok egy oldalhoz?"
a: "Legfeljebb 50 MB-osat. Ezt a határt a doboz állította be."
- q: "Hogyan találok meg egy régi oldalt?"
a: "A bal oldali sávban kattints a „Search” (Keresés) pontra, és írd be, amit keresel. A Docmost az oldalak szövegében is keres."
- q: "Ki látja az oldalaimat?"
a: "A munkaterület tagjai, akiknek hozzáférésük van az adott térhez. Fiók nélkül csak az látja az oldalt, akinek elküldöd a „Share to web” linkjét."
- q: "Mentődnek az oldalaim?"
a: "Az oldalak és a csatolt fájlok a dobozon vannak. A mentés állapotát a vezérlőpulton, az alkalmazás „Adatok és mentés” fülén látod."
# --- Controller-side health probe ---
healthcheck:
@@ -106,6 +146,45 @@ i18n:
prerequisites:
- 'An x86 processor is needed'
- 'At least 896 MB of free RAM (Docmost + PostgreSQL + Redis)'
guide:
sections:
- title: "Invite a family member"
intro: "Everyone writes and reads with their own account, so you can see who changed what."
steps:
- "Select your profile picture at the top right and choose „Workspace settings”."
- "Open the „Members” page and select „Invite members”."
- "Type their e-mail address in „Invite by email”, choose a role in „Select role”, and select „Send invitation”."
- "Docmost sends no e-mail here: on the „Pending” tab, choose „Copy link” in the invitation's menu, and send them the link."
- title: "Share a page without an account"
intro: "You can show a page to someone who has no account, for example the grandparents."
steps:
- "Open the page and select „Share” at the top right."
- "Turn on the „Share to web” switch."
- "Copy the link that appears and send it. Whoever gets it can read the page, but cannot edit it."
- "When it is no longer needed, turn sharing off in the same place."
- title: "Bring in your existing notes"
intro: "You do not have to retype the notes you wrote elsewhere."
steps:
- "In the left sidebar, open the space's menu („Space menu”) and choose „Import pages”."
- "Choose the format: Markdown, HTML, or a ZIP file exported from Notion."
- "Choose the file, and keep the tab open until Docmost says it is done."
- title: "Save a page to your computer"
intro: "You can also save a page to a file or print it."
steps:
- "At the top right of the page, open the page menu („Page actions”)."
- "Choose „Export”, pick Markdown or HTML in „Format”, then select „Export”."
- "To print or to make a PDF, choose „Print PDF” in the same menu."
faq:
- q: "Why did the invited person get no e-mail?"
a: "Docmost sends no e-mail on this box, so you send the invitation link yourself. For the same reason, no mail arrives for a forgotten password either."
- q: "How large a file can I attach to a page?"
a: "Up to 50 MB. The box set this limit."
- q: "How do I find an old page?"
a: "In the left sidebar, select „Search” and type what you are looking for. Docmost also searches the text of the pages."
- q: "Who sees my pages?"
a: "The members of the workspace who have access to that space. Without an account, only the people you send the „Share to web” link to see the page."
- q: "Are my pages backed up?"
a: "The pages and the attached files are on the box. You see the backup status on the dashboard, on the app's „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -124,3 +203,11 @@ i18n:
update_ladder:
- {"from": {"docmost": "docmost/docmost:0.95.0", "docmost-postgres": "postgres:16-alpine", "docmost-redis": "redis:7-alpine"}, "to": {"docmost": "docmost/docmost:0.96.0", "docmost-postgres": "postgres:16-alpine", "docmost-redis": "redis:7-alpine"}, "digest": {"docmost": "sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a", "docmost-postgres": "sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea", "docmost-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"}, "verdict": "proven", "tested_at": "2026-09-21T18:21:18.018992+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/docmost/verdict.json", "memory_peak_pct": null, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "backfilled": "2026-09-23", "note": "backfilled from catalog commit 6d8cd87; box walk only (harness v1, no memory watch); digest = what the registry served on 2026-09-23, not a measurement of the tested image"}
- {"from": {"docmost": "docmost/docmost:0.96.0", "docmost-postgres": "postgres:16-alpine", "docmost-redis": "redis:7-alpine"}, "to": {"docmost": "docmost/docmost:0.96.0", "docmost-postgres": "postgres:18-alpine", "docmost-redis": "redis:7-alpine"}, "digest": {"docmost": "sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a", "docmost-postgres": "sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873", "docmost-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"}, "verdict": "proven", "tested_at": "2026-09-25T12:01:05Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/night-2026-09-26/C/bench-run2/evidence/MV-docmost/verdict.json", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-26/D/box-verdict-docmost.json", "memory_peak_pct": 80.4, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": true}, "memory_basis": "anon", "memory_cgroup_peak_pct": 89.9, "engine_conversion": {"service": "docmost-postgres", "engine": "postgres", "from": 16, "to": 18}}
- {"from": {"docmost": "docmost/docmost:0.96.0", "docmost-postgres": "postgres:18-alpine", "docmost-redis": "redis:7-alpine"}, "to": {"docmost": "docmost/docmost:0.97.0", "docmost-postgres": "postgres:18-alpine", "docmost-redis": "redis:7-alpine"}, "digest": {"docmost": "sha256:40c454d74ffdd9ecb15833e4d96f3a630d59aad862a1869381ae6ee086454419", "docmost-postgres": "sha256:10a5c69a83035ab5239f5620d708520e8b28f5aa1f2b20143e6024532edadfb5", "docmost-redis": "sha256:6ba19c50b56777f5c11c58eff8ddb69d0d5f27ba131cffb63f180ccfd43c66af"}, "verdict": "security_fix", "tested_at": "2026-10-27T14:00:23Z", "harness_version": null, "evidence": null, "box_evidence": "felhom.eu/documentation/audits/security-app-updates-2026-10-27/walks/docmost/", "memory_peak_pct": 54.1, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nodejs.org/en/blog/vulnerability/october-2026-security-releases", "fixed_in": "0.97.0"}, "seed": "read_back", "memory_basis": "box_soak"}
# --- Security watch (felhom.eu R-1303): where each image's security notices are published ---
# One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10).
upstream:
docmost/docmost: "github:docmost/docmost"
postgres: "gap:PostgreSQL announces fixes on postgresql.org only; the major tag takes the newest minor at install"
redis: "github:redis/redis"
+5 -4
View File
@@ -1,9 +1,10 @@
# Docmost - Modern Wiki / Documentation (Notion-like)
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: PostgreSQL + Redis
# RAM: ~200MB (mem_limit: 896M total — docmost 512M + postgres 256M + redis 128M) | Pi-compatible: No (heavy)
# RAM: ~200MB (mem_limit: 1152M total — docmost 768M + postgres 256M + redis 128M) | Pi-compatible: No (heavy)
# docmost 384M -> 512M (2026-09-25, `09` §3 decision 39): its own memory reached 91% of 384M under the harness's
# light load; Node sizes its heap from the limit (431 MB at 512M), 0 kills / 0 restarts in both 10-minute watches.
# docmost 512M -> 768M (R-994, 2026-10-17: the 2026-10-13 sizing run measured a peak of 475 MB = 93 % of the old 512M; the new limit keeps it at or under ~70 %).
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
@@ -15,7 +16,7 @@
services:
docmost:
image: docmost/docmost:0.96.0
image: docmost/docmost:0.97.0
container_name: docmost
restart: unless-stopped
depends_on:
@@ -39,7 +40,7 @@ services:
deploy:
resources:
limits:
memory: 512M
memory: 768M
healthcheck:
test: ["CMD", "node", "-e", "const http = require('http'); http.get('http://127.0.0.1:3000/', (r) => { process.exit(r.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))"]
interval: 30s
@@ -86,7 +87,7 @@ services:
image: redis:7-alpine
container_name: docmost-redis
restart: unless-stopped
command: redis-server --appendonly yes
command: redis-server --appendonly no
environment:
- TZ=Europe/Budapest
volumes:
@@ -0,0 +1,198 @@
# =============================================================================
# .felhom.yml — App metadata for felhom-controller
# =============================================================================
# Place alongside docker-compose.yml in each stack directory:
# /opt/docker/stacks/docmost/.felhom.yml
# =============================================================================
# --- Display info (shown on dashboard) ---
display_name: "Docmost"
description: "Modern wiki és dokumentáció platform (Notion-szerű)"
category: "productivity"
subdomain: "docs"
# --- Asset slug ---
slug: "docmost"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-09-25"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "450M"
mem_limit: "1152M"
pi_compatible: false
needs_hdd: false
# --- Deploy fields ---
deploy_fields:
- env_var: DOMAIN
label: "Domain"
type: domain
description: "A szerver domain neve"
locked_after_deploy: true
- env_var: SUBDOMAIN
label: "Aldomain"
type: subdomain
default: "docs"
required: true
locked_after_deploy: true
description: "Az alkalmazás aldomainje"
- env_var: APP_SECRET
label: "Alkalmazás titkosítási kulcs"
type: secret
generate: "hex:32"
locked_after_deploy: true
- env_var: DB_PASSWORD
label: "Adatbázis jelszó"
type: secret
generate: "password:24"
locked_after_deploy: true
# --- The setup gate (controller >= 0.281.0, `09` §3 decisions 46-47) ---
# The first visitor would create the admin; a fresh install is closed to everyone but the household until the first setup is done.
setup_gate: true
# --- App info (info page content) ---
app_info:
tagline: 'Modern wiki és dokumentáció platform Notion-szerű szerkesztővel'
docs_url: 'https://docmost.com/docs/'
use_cases:
- 'Csapat tudásbázis és belső dokumentáció'
- 'Notion-szerű blokk szerkesztő valós idejű együttműködéssel'
- 'Terek és oldalak hierarchikus szervezése'
- 'Képek, táblázatok és kód blokkok beágyazása'
- 'Keresés a teljes dokumentációban'
first_steps:
- 'Nyisd meg a docs.DOMAIN címet a böngészőben'
- 'Az első regisztrált felhasználó automatikusan admin lesz'
- 'Hozd létre az első teret (Space) a dokumentumoknak'
- 'Kezdj el írni a Notion-szerű szerkesztőben'
prerequisites:
- 'x86 processzor szükséges'
- 'Legalább 896 MB szabad RAM (Docmost + PostgreSQL + Redis)'
guide:
checked_version: "0.96.0"
sections:
- title: "Családtag meghívása"
intro: "Mindenki saját fiókkal ír és olvas, így látszik, ki mit módosított."
steps:
- "Kattints jobb fent a profilképedre, és válaszd a „Workspace settings” (Munkaterület beállításai) pontot."
- "Nyisd meg a „Members” (Tagok) oldalt, és kattints az „Invite members” (Tagok meghívása) gombra."
- "Az „Invite by email” mezőbe írd be az e-mail-címét, a „Select role” mezőben válassz szerepet, és kattints a „Send invitation” (Meghívó küldése) gombra."
- "A Docmost itt nem küld e-mailt: a „Pending” (Függőben) lapon a meghívó menüjében válaszd a „Copy link” (Link másolása) pontot, és küldd el neki a linket."
- title: "Oldal megosztása fiók nélkül"
intro: "Egy oldalt olyannak is megmutathatsz, akinek nincs fiókja, például a nagyszülőknek."
steps:
- "Nyisd meg az oldalt, és kattints jobb fent a „Share” (Megosztás) gombra."
- "Kapcsold be a „Share to web” (Megosztás a weben) kapcsolót."
- "Másold ki a megjelenő linket, és küldd el. Aki megkapja, olvashatja az oldalt, de nem szerkesztheti."
- "Ha már nem kell, ugyanitt kapcsold ki a megosztást."
- title: "Meglévő jegyzetek behozása"
intro: "A máshol megírt jegyzeteidet nem kell újragépelned."
steps:
- "A bal oldali sávban nyisd meg a tér menüjét („Space menu”), és válaszd az „Import pages” (Oldalak importálása) pontot."
- "Válaszd a formátumot: Markdown, HTML vagy a Notionból exportált ZIP fájl."
- "Válaszd ki a fájlt, és ne zárd be a lapot, amíg a Docmost jelzi, hogy kész."
- title: "Oldal mentése a gépedre"
intro: "Egy oldalt fájlba is kimenthetsz vagy kinyomtathatsz."
steps:
- "Az oldal jobb felső sarkában nyisd meg az oldal menüjét („Page actions”)."
- "Válaszd az „Export” pontot, a „Format” (Formátum) mezőben a Markdown vagy a HTML formátumot, majd kattints az „Export” gombra."
- "Nyomtatáshoz vagy PDF-hez ugyanebben a menüben válaszd a „Print PDF” pontot."
faq:
- q: "Miért nem kapott e-mailt a meghívott?"
a: "A Docmost ezen a dobozon nem küld e-mailt, ezért a meghívó linkjét neked kell elküldened. Ugyanezért az elfelejtett jelszóhoz sem érkezik levél."
- q: "Mekkora fájlt csatolhatok egy oldalhoz?"
a: "Legfeljebb 50 MB-osat. Ezt a határt a doboz állította be."
- q: "Hogyan találok meg egy régi oldalt?"
a: "A bal oldali sávban kattints a „Search” (Keresés) pontra, és írd be, amit keresel. A Docmost az oldalak szövegében is keres."
- q: "Ki látja az oldalaimat?"
a: "A munkaterület tagjai, akiknek hozzáférésük van az adott térhez. Fiók nélkül csak az látja az oldalt, akinek elküldöd a „Share to web” linkjét."
- q: "Mentődnek az oldalaim?"
a: "Az oldalak és a csatolt fájlok a dobozon vannak. A mentés állapotát a vezérlőpulton, az alkalmazás „Adatok és mentés” fülén látod."
# --- Controller-side health probe ---
healthcheck:
checks:
- type: http
port: 3000
# --- English copy (localisation slice 5, R-560) --------------------------------------------
# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing
# field shows the Hungarian one; a controller older than 0.257.0 ignores the block entirely.
i18n:
en:
description: 'A modern wiki and documentation platform (Notion-like)'
app_info:
tagline: 'A modern wiki and documentation platform with a Notion-like editor'
use_cases:
- 'A knowledge base and internal documentation for a team'
- 'A Notion-like block editor several people can use at once'
- 'Spaces and pages, arranged in a tree'
- 'Embed images, tables and code blocks'
- 'Search across all of it'
first_steps:
- 'Open docs.DOMAIN in your browser'
- 'The first person to sign up becomes the admin'
- 'Create your first Space for the documents'
- 'Start writing in the Notion-like editor'
prerequisites:
- 'An x86 processor is needed'
- 'At least 896 MB of free RAM (Docmost + PostgreSQL + Redis)'
guide:
sections:
- title: "Invite a family member"
intro: "Everyone writes and reads with their own account, so you can see who changed what."
steps:
- "Select your profile picture at the top right and choose „Workspace settings”."
- "Open the „Members” page and select „Invite members”."
- "Type their e-mail address in „Invite by email”, choose a role in „Select role”, and select „Send invitation”."
- "Docmost sends no e-mail here: on the „Pending” tab, choose „Copy link” in the invitation's menu, and send them the link."
- title: "Share a page without an account"
intro: "You can show a page to someone who has no account, for example the grandparents."
steps:
- "Open the page and select „Share” at the top right."
- "Turn on the „Share to web” switch."
- "Copy the link that appears and send it. Whoever gets it can read the page, but cannot edit it."
- "When it is no longer needed, turn sharing off in the same place."
- title: "Bring in your existing notes"
intro: "You do not have to retype the notes you wrote elsewhere."
steps:
- "In the left sidebar, open the space's menu („Space menu”) and choose „Import pages”."
- "Choose the format: Markdown, HTML, or a ZIP file exported from Notion."
- "Choose the file, and keep the tab open until Docmost says it is done."
- title: "Save a page to your computer"
intro: "You can also save a page to a file or print it."
steps:
- "At the top right of the page, open the page menu („Page actions”)."
- "Choose „Export”, pick Markdown or HTML in „Format”, then select „Export”."
- "To print or to make a PDF, choose „Print PDF” in the same menu."
faq:
- q: "Why did the invited person get no e-mail?"
a: "Docmost sends no e-mail on this box, so you send the invitation link yourself. For the same reason, no mail arrives for a forgotten password either."
- q: "How large a file can I attach to a page?"
a: "Up to 50 MB. The box set this limit."
- q: "How do I find an old page?"
a: "In the left sidebar, select „Search” and type what you are looking for. Docmost also searches the text of the pages."
- q: "Who sees my pages?"
a: "The members of the workspace who have access to that space. Without an account, only the people you send the „Share to web” link to see the page."
- q: "Are my pages backed up?"
a: "The pages and the attached files are on the box. You see the backup status on the dashboard, on the app's „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
description: 'The server domain name'
- env_var: SUBDOMAIN
label: 'Subdomain'
description: 'The subdomain this app answers on'
- env_var: DB_PASSWORD
label: 'Database password'
- env_var: APP_SECRET
label: 'Application encryption key'
@@ -0,0 +1,115 @@
# Docmost - Modern Wiki / Documentation (Notion-like)
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: PostgreSQL + Redis
# RAM: ~200MB (mem_limit: 1152M total — docmost 768M + postgres 256M + redis 128M) | Pi-compatible: No (heavy)
# docmost 384M -> 512M (2026-09-25, `09` §3 decision 39): its own memory reached 91% of 384M under the harness's
# light load; Node sizes its heap from the limit (431 MB at 512M), 0 kills / 0 restarts in both 10-minute watches.
# docmost 512M -> 768M (R-994, 2026-10-17: the 2026-10-13 sizing run measured a peak of 475 MB = 93 % of the old 512M; the new limit keeps it at or under ~70 %).
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
# APP_SECRET - Random secret for session signing (auto-generated)
# DB_PASSWORD - PostgreSQL password (auto-generated)
#
# First-time setup:
# First registered user becomes admin.
services:
docmost:
image: docmost/docmost:0.96.0
container_name: docmost
restart: unless-stopped
depends_on:
docmost-postgres:
condition: service_healthy
docmost-redis:
condition: service_healthy
environment:
- APP_SECRET=${APP_SECRET}
- DATABASE_URL=postgresql://docmost:${DB_PASSWORD}@docmost-postgres:5432/docmost
- REDIS_URL=redis://docmost-redis:6379
- APP_URL=https://${SUBDOMAIN}.${DOMAIN}
- STORAGE_DRIVER=local
- FILE_UPLOAD_SIZE_LIMIT=50mb
- TZ=Europe/Budapest
volumes:
- docmost_storage:/app/data/storage
networks:
- traefik-public
- docmost-internal
deploy:
resources:
limits:
memory: 768M
healthcheck:
test: ["CMD", "node", "-e", "const http = require('http'); http.get('http://127.0.0.1:3000/', (r) => { process.exit(r.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
labels:
- "traefik.enable=true"
- "traefik.http.routers.docmost.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
# R-753: this app reads the LEFTMOST X-Forwarded-For entry, which a stranger writes once traefik keeps the
# tunnel's chain — so its chain is removed here (it then reads traefik's X-Real-Ip or peer; never forgeable).
- "traefik.http.middlewares.docmost-xff.headers.customrequestheaders.X-Forwarded-For="
- "traefik.http.routers.docmost.middlewares=docmost-xff"
- "traefik.http.routers.docmost.entrypoints=websecure"
- "traefik.http.routers.docmost.tls=true"
- "traefik.http.routers.docmost.tls.certresolver=letsencrypt"
- "traefik.http.services.docmost.loadbalancer.server.port=3000"
docmost-postgres:
image: postgres:18-alpine
container_name: docmost-postgres
restart: unless-stopped
environment:
- POSTGRES_USER=docmost
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=docmost
- TZ=Europe/Budapest
volumes:
- docmost_postgres_data:/var/lib/postgresql
networks:
- docmost-internal
deploy:
resources:
limits:
memory: 256M
healthcheck:
test: ["CMD-SHELL", "pg_isready -U docmost -d docmost"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
docmost-redis:
image: redis:7-alpine
container_name: docmost-redis
restart: unless-stopped
command: redis-server --appendonly no
environment:
- TZ=Europe/Budapest
volumes:
- docmost_redis_data:/data
networks:
- docmost-internal
deploy:
resources:
limits:
memory: 128M
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
volumes:
docmost_storage:
docmost_postgres_data:
docmost_redis_data:
networks:
traefik-public:
external: true
docmost-internal:
+11
View File
@@ -19,6 +19,12 @@ resources:
pi_compatible: false
needs_hdd: true
# --- Media apps on every drive (controller >= 0.313.0, R-1023; felhom.eu architecture/15-media-library.md §2/§3) ---
# The controller adds one bind per PRESENT drive at the same path: every drive's media folder, read-only.
# A controller that does not know this key ignores it and runs the one-drive line of docker-compose.yml.
media_library:
read_only: true
# --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) ---
backup:
userdata:
@@ -129,3 +135,8 @@ update_ladder:
- {"from": {"emby": "emby/embyserver:4.10.0.20"}, "to": {"emby": "emby/embyserver:4.11.0.1"}, "digest": {"emby": "sha256:bcc54978db53e333c5b693948447df0ed9dfa7c798a751a9402ff4da4909a6e2"}, "verdict": "proven", "tested_at": "2026-09-22T12:07:44.952377+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/the-28-2026-09-22/apps/emby/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 7a6797b; 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": {"emby": "emby/embyserver:4.11.0.1"}, "to": {"emby": "emby/embyserver:4.11.0.3"}, "digest": {"emby": "sha256:2ff130d624a97782474e7de791875d2871d613b2afaddc73b3e11eb0c9caa770"}, "verdict": "proven", "tested_at": "2026-09-23T19:54:42Z", "harness_version": 3, "evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/emby/bench/evidence/MV-emby/verdict.json", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/emby/verdict.json", "memory_peak_pct": 4.5, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 7.9}
- {"from": {"emby": "emby/embyserver:4.11.0.3"}, "to": {"emby": "emby/embyserver:4.11.0.4"}, "digest": {"emby": "sha256:1feaaf724694d08a1fb19370b6ff37e6669edb16cae69e02660177253f903dc1"}, "verdict": "proven", "tested_at": "2026-09-30T15:28:57Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/emby/bench/evidence/MV-emby/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/emby/step.txt", "memory_peak_pct": 4.7, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 7.3}
# --- 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).
upstream:
emby/embyserver: "gap:closed source; Emby publishes no machine-readable security notices"
+112 -1
View File
@@ -10,7 +10,7 @@ subdomain: "blog"
slug: "ghost"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-09-30"
catalog_since: "2026-10-28"
# Bare "/" is the public blog; the admin panel / setup wizard lives at /ghost/.
open_path: "/ghost/"
@@ -66,6 +66,66 @@ app_info:
prerequisites:
- 'x86 processzor szükséges'
guide:
checked_version: "6.67.0-alpine"
sections:
- title: "Bejegyzés képekkel"
intro: "Egy bejegyzésbe képet is tehetsz, és megadhatod, mikor jelenjen meg."
steps:
- "A bal oldali menüben kattints a „Posts” (Bejegyzések) pontra, majd a „New post” (Új bejegyzés) gombra."
- "Írd be a címet és a szöveget. Egy üres sor elején kattints a + jelre, és válaszd az „Image” (Kép) kártyát."
- "A „Preview” (Előnézet) gombbal megnézed, hogyan látják majd az olvasók."
- "Kattints a „Publish” (Közzététel) gombra. Ha később jelenjen meg, válaszd a „Schedule for later” (Időzítés későbbre) lehetőséget, és add meg a napot és az órát."
- "Kövesd a lépéseket a végső jóváhagyásig: a bejegyzés megjelenik, vagy a megadott időben jelenik meg."
- title: "Rólunk oldal és menü"
intro: "Az oldal olyan írás, amely nem kerül a bejegyzések közé, például egy bemutatkozás."
steps:
- "A bal oldali menüben kattints a „Pages” (Oldalak) pontra, majd a „New page” (Új oldal) gombra."
- "Írd meg az oldalt, és tedd közzé úgy, mint egy bejegyzést."
- "Nyisd meg a „Settings” (Beállítások) oldalt, és a „Navigation” (Navigáció) résznél kattints a „Customize” (Testreszabás) gombra."
- "Az üres sorba írd a menüpont nevét és az oldal címét a böngésző címsorából, majd kattints a „Save” (Mentés) gombra."
- title: "A blog neve és kinézete"
intro: "A blog nevét, logóját és színét te választod."
steps:
- "A „Settings” oldalon a „Title & description” (Cím és leírás) résznél kattints az „Edit” (Szerkesztés) gombra."
- "Írd be a blog nevét a „Site title” (A blog neve) mezőbe, majd kattints a „Save” gombra."
- "A „Design & branding” (Dizájn és arculat) résznél kattints a „Customize” gombra."
- "A „Brand” (Arculat) lapon töltsd fel a „Publication logo” (logó) képet, és válaszd ki az „Accent color” (kiemelő szín) értékét."
- "Kattints a „Save” gombra: a változás azonnal látszik a blogon."
- title: "Csak a családnak"
intro: "Ha a blogot csak a család olvassa, kóddal zárhatod le."
steps:
- "A „Settings” oldalon nyisd meg az „Access” (Hozzáférés) részt."
- "A „Who should be able to browse your site?” (Ki böngészheti a blogot?) mezőben válaszd a „Private” (Privát) értéket."
- "Írj be egy hozzáférési kódot, és kattints a „Save” gombra."
- "Add meg a kódot a családtagjaidnak: a blog.DOMAIN címen ezt kéri tőlük a blog."
faq:
- q: "Mi a különbség a blog.DOMAIN és a blog.DOMAIN/ghost cím között?"
a: "A blog.DOMAIN maga a blog, ezt látják az olvasók. A blog.DOMAIN/ghost a szerkesztőfelület, ide csak bejelentkezve jutsz be."
- q: "Hogyan javítok egy már megjelent bejegyzést?"
a: "Nyisd meg a bejegyzést a „Posts” listában, írd át, majd kattints az „Update” (Frissítés) gombra."
- q: "Küldhetek hírlevelet a Ghostból?"
a: "A hírlevélhez a Ghost egy külön levelezőszolgáltatást kér (Mailgun). A doboz ezt nem állítja be. A bejegyzések nélküle is megjelennek a blogon."
- q: "Lehet magyar nyelvű a blog?"
a: "Igen. A „Settings” oldal „Publication language” (a blog nyelve) részén a „Site language” mezőben válaszd a Hungarian nyelvet. A szerkesztőfelület angol marad."
- q: "Hol vannak a bejegyzéseim és a képeim?"
a: "A Ghost saját adattárában, a dobozon. A mentésüket az „Adatok és mentés” fülön látod."
- q: "Kérhet kódot a Ghost, ha másik eszközről lépek be?"
a: "Csak ha a Ghost „Beállítások” fülén be van kapcsolva az „Email-küldés engedélyezése ennél az alkalmazásnál”. Akkor új eszközön a Ghost egy 6 jegyű kódot küld a fiókod e-mail címére, és azt kell beírnod. Ha ki van kapcsolva, a jelszó elég."
# --- App-email mapping (apps → in-controller shim → hub → Resend) ---
# R-1090 (2026-10-16): Ghost's new-device code goes by e-mail, so it is ON only with app e-mail. Ghost's mailer is
# nodemailer, which upgrades to STARTTLS whenever the server offers it and would refuse the shim's self-signed
# certificate — so it is pointed at the plaintext listener (:2526), as cal.com is. No user/password: the shim
# accepts no-auth on the Docker network. The extra turns the device check on with the mail settings.
smtp_mapping:
tls_mode: plaintext
host_var: GHOST_MAIL_HOST
port_var: GHOST_MAIL_PORT
from_var: GHOST_MAIL_FROM
from_local: ghost
extra:
GHOST_STAFF_DEVICE_VERIFICATION: "true"
# --- Controller-side health probe ---
healthcheck:
@@ -94,6 +154,51 @@ i18n:
- 'Make the theme and the settings your own'
prerequisites:
- 'An x86 processor is needed'
guide:
sections:
- title: "A post with pictures"
intro: "You can put pictures into a post and choose when it comes out."
steps:
- "In the menu on the left, select „Posts”, then the „New post” button."
- "Type the title and the text. At the start of an empty line, select the + sign and choose the „Image” card."
- "„Preview” shows you how readers will see it."
- "Select „Publish”. If it should come out later, choose „Schedule for later” and set the day and the hour."
- "Follow the steps to the final confirmation: the post comes out now, or at the time you set."
- title: "An About page and the menu"
intro: "A page is writing that does not go among the posts, for example an introduction."
steps:
- "In the menu on the left, select „Pages”, then the „New page” button."
- "Write the page and publish it the same way as a post."
- "Open the „Settings” page, and at „Navigation” select „Customize”."
- "In the empty row, type the name of the menu item and the page's address from the browser's address bar, then select „Save”."
- title: "The blog's name and look"
intro: "You choose the blog's name, logo and colour."
steps:
- "On the „Settings” page, at „Title & description”, select „Edit”."
- "Type the blog's name in „Site title”, then select „Save”."
- "At „Design & branding”, select „Customize”."
- "On the „Brand” tab, upload a „Publication logo” and choose the „Accent color”."
- "Select „Save”: the change shows on the blog at once."
- title: "For the family only"
intro: "If only the family reads the blog, you can lock it with a code."
steps:
- "On the „Settings” page, open „Access”."
- "In „Who should be able to browse your site?”, choose „Private”."
- "Type an access code and select „Save”."
- "Give the code to your family: the blog asks them for it at blog.DOMAIN."
faq:
- q: "What is the difference between blog.DOMAIN and blog.DOMAIN/ghost?"
a: "blog.DOMAIN is the blog itself, the part readers see. blog.DOMAIN/ghost is the editing side, and only a signed-in person gets in there."
- q: "How do I correct a post that is already out?"
a: "Open the post in the „Posts” list, change it, then select „Update”."
- q: "Can I send a newsletter from Ghost?"
a: "For a newsletter, Ghost asks for a separate mail service (Mailgun). The box does not set it up. Posts still come out on the blog without it."
- q: "Can the blog be in Hungarian?"
a: "Yes. On the „Settings” page, at „Publication language”, choose Hungarian in „Site language”. The editing side stays in English."
- q: "Where are my posts and pictures?"
a: "In Ghost's own data store, on the box. You see their backup on the „Data and backup” tab."
- q: "Can Ghost ask for a code when I sign in on another device?"
a: "Only when „Allow sending e-mail for this app” is on in Ghost's „Settings” tab. Then on a new device Ghost sends a 6-digit code to your account's e-mail address, and you type it in. When it is off, the password is enough."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -109,3 +214,9 @@ update_ladder:
- {"from": {"ghost": "ghost:6.53.0-alpine"}, "to": {"ghost": "ghost:6.64.0-alpine"}, "digest": {"ghost": "sha256:47ecbe856dd06dcd20cb9410e1c4d532fc085eba776cfabc203609c7d15d8320"}, "verdict": "proven", "tested_at": "2026-09-22T13:11:12.069214+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/the-28-2026-09-22/apps/ghost/verdict.json", "memory_peak_pct": null, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "backfilled": "2026-09-23", "note": "backfilled from catalog commit acbfafa; box walk only (harness v1, no memory watch); digest = what the registry served on 2026-09-23, not a measurement of the tested image"}
- {"from": {"ghost": "ghost:6.64.0-alpine"}, "to": {"ghost": "ghost:6.65.0-alpine"}, "digest": {"ghost": "sha256:65788e5e2c5478319f8fc65ac12816dbc941d1a9c834c87190cf1d2d1b79d4e2"}, "verdict": "proven", "tested_at": "2026-09-23T19:32:30Z", "harness_version": 3, "evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/ghost/bench/evidence/MV-ghost/verdict.json", "box_evidence": "felhom.eu/documentation/audits/night-2026-09-23/apps/ghost/verdict.json", "memory_peak_pct": 24.9, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 43.3}
- {"from": {"ghost": "ghost:6.65.0-alpine"}, "to": {"ghost": "ghost:6.67.0-alpine"}, "digest": {"ghost": "sha256:1f7ecf094d54363014636c3540dbe9c368394504abaa283914e4fcf8d699f331"}, "verdict": "proven", "tested_at": "2026-09-30T15:42:18Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/ghost/bench/evidence/MV-ghost/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/ghost/step.txt", "memory_peak_pct": 26.7, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 33.9}
- {"from": {"ghost": "ghost:6.67.0-alpine"}, "to": {"ghost": "ghost:6.73.0-alpine"}, "digest": {"ghost": "sha256:4195f6c405e40230cd10c0770425cf500c1f542a96e9f6584c11649c150e5a89"}, "verdict": "security_fix", "tested_at": "2026-10-28T07:30:36Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/runtime-fixes-2026-10-28/walks/ghost", "memory_peak_pct": 21.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nvd.nist.gov/vuln/detail/CVE-2026-111497", "fixed_in": "6.73.0-alpine"}, "seed": "read_back", "memory_basis": "box_soak"}
# --- Security watch (felhom.eu R-1303): where each image's security notices are published ---
# One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10).
upstream:
ghost: "github:TryGhost/Ghost"
+17 -1
View File
@@ -8,7 +8,7 @@
services:
ghost:
image: ghost:6.67.0-alpine
image: ghost:6.73.0-alpine
container_name: ghost
restart: unless-stopped
environment:
@@ -17,6 +17,22 @@ services:
- url=https://${SUBDOMAIN}.${DOMAIN}
- database__client=sqlite3
- database__connection__filename=content/data/ghost.db
# NEW-DEVICE SIGN-IN (R-1090). Ghost 6.67.0 sends a 6-digit code by e-mail when staff sign in on a
# device it has not seen (`security.staffDeviceVerification`, default true: ghost/core/core/shared/
# config/defaults.json:30; read at core/server/services/auth/session/index.js:65; only the very first
# sign-in skips it, core/server/api/endpoints/session.js:27). With no mail configured that sign-in
# fails with 500 „Failed to send email" — measured on demo-hp 9201 2026-10-16: the third client was
# locked out (felhom.eu audits/romm-ghost-2026-10-16/C1). So the check is OFF unless the household
# has app e-mail on: `.felhom.yml` smtp_mapping.extra turns it on together with the mail settings
# (the Vaultwarden _ENABLE_SMTP pattern). Ghost parses env values (`parseValues: true`, loader.ts:38),
# so "true"/"false" arrive as booleans.
- security__staffDeviceVerification=${GHOST_STAFF_DEVICE_VERIFICATION:-false}
# App e-mail (empty unless the controller injects them): the on-box shim, plaintext listener.
- mail__transport=SMTP
- mail__options__host=${GHOST_MAIL_HOST:-}
- mail__options__port=${GHOST_MAIL_PORT:-}
- mail__options__secure=false
- mail__from=${GHOST_MAIL_FROM:-}
volumes:
- ghost_content:/var/lib/ghost/content
networks:
@@ -0,0 +1,208 @@
# =============================================================================
# .felhom.yml - App metadata for felhom-controller
# =============================================================================
# --- Display info (shown on dashboard) ---
display_name: "Ghost"
description: "Professzionális blog és hírlevél platform"
category: "productivity"
subdomain: "blog"
slug: "ghost"
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
# changes an image: line must set this to the same day (see CLAUDE.md).
catalog_since: "2026-09-30"
# Bare "/" is the public blog; the admin panel / setup wizard lives at /ghost/.
open_path: "/ghost/"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "150M"
mem_limit: "512M"
pi_compatible: false
needs_hdd: false
# --- Deploy fields (first deployment only) ---
deploy_fields:
- env_var: DOMAIN
label: "Domain"
type: domain
description: "A szerver domain neve"
locked_after_deploy: true
- env_var: SUBDOMAIN
label: "Aldomain"
type: subdomain
default: "blog"
required: true
locked_after_deploy: true
description: "Az alkalmazás aldomainje"
# --- The setup gate (controller >= 0.281.0, `09` §3 decisions 46-47) ---
# The first visitor would create the admin; a fresh install is closed to everyone but the household until the first setup is done.
setup_gate: true
# measured on 9202 2026-09-29: before the setup {"setup":[{"status":false}]}, after {"setup":[{"status":true}]}.
setup_done_probe:
url: http://ghost:2368/ghost/api/admin/authentication/setup/
field: setup.0.status
done: "true"
# --- App info (info page content) ---
app_info:
tagline: "Professzionális blog és hírlevél platform"
docs_url: "https://ghost.org/docs/"
use_cases:
- 'Professzionális blog indítása és üzemeltetése'
- 'Hírlevél küldés beépített email funkcióval'
- 'SEO-optimalizált tartalom publikálás'
- 'Tagság és fizetős tartalom kezelés'
- 'Markdown és vizuális szerkesztő'
first_steps:
- 'Nyisd meg a blog.DOMAIN/ghost/ címet a böngészőben'
- 'Hozd létre az admin fiókot a beállítás varázslóban'
- 'Írd meg és publikáld az első posztodat'
- 'Személyre szabd a témát és beállításokat'
prerequisites:
- 'x86 processzor szükséges'
guide:
checked_version: "6.67.0-alpine"
sections:
- title: "Bejegyzés képekkel"
intro: "Egy bejegyzésbe képet is tehetsz, és megadhatod, mikor jelenjen meg."
steps:
- "A bal oldali menüben kattints a „Posts” (Bejegyzések) pontra, majd a „New post” (Új bejegyzés) gombra."
- "Írd be a címet és a szöveget. Egy üres sor elején kattints a + jelre, és válaszd az „Image” (Kép) kártyát."
- "A „Preview” (Előnézet) gombbal megnézed, hogyan látják majd az olvasók."
- "Kattints a „Publish” (Közzététel) gombra. Ha később jelenjen meg, válaszd a „Schedule for later” (Időzítés későbbre) lehetőséget, és add meg a napot és az órát."
- "Kövesd a lépéseket a végső jóváhagyásig: a bejegyzés megjelenik, vagy a megadott időben jelenik meg."
- title: "Rólunk oldal és menü"
intro: "Az oldal olyan írás, amely nem kerül a bejegyzések közé, például egy bemutatkozás."
steps:
- "A bal oldali menüben kattints a „Pages” (Oldalak) pontra, majd a „New page” (Új oldal) gombra."
- "Írd meg az oldalt, és tedd közzé úgy, mint egy bejegyzést."
- "Nyisd meg a „Settings” (Beállítások) oldalt, és a „Navigation” (Navigáció) résznél kattints a „Customize” (Testreszabás) gombra."
- "Az üres sorba írd a menüpont nevét és az oldal címét a böngésző címsorából, majd kattints a „Save” (Mentés) gombra."
- title: "A blog neve és kinézete"
intro: "A blog nevét, logóját és színét te választod."
steps:
- "A „Settings” oldalon a „Title & description” (Cím és leírás) résznél kattints az „Edit” (Szerkesztés) gombra."
- "Írd be a blog nevét a „Site title” (A blog neve) mezőbe, majd kattints a „Save” gombra."
- "A „Design & branding” (Dizájn és arculat) résznél kattints a „Customize” gombra."
- "A „Brand” (Arculat) lapon töltsd fel a „Publication logo” (logó) képet, és válaszd ki az „Accent color” (kiemelő szín) értékét."
- "Kattints a „Save” gombra: a változás azonnal látszik a blogon."
- title: "Csak a családnak"
intro: "Ha a blogot csak a család olvassa, kóddal zárhatod le."
steps:
- "A „Settings” oldalon nyisd meg az „Access” (Hozzáférés) részt."
- "A „Who should be able to browse your site?” (Ki böngészheti a blogot?) mezőben válaszd a „Private” (Privát) értéket."
- "Írj be egy hozzáférési kódot, és kattints a „Save” gombra."
- "Add meg a kódot a családtagjaidnak: a blog.DOMAIN címen ezt kéri tőlük a blog."
faq:
- q: "Mi a különbség a blog.DOMAIN és a blog.DOMAIN/ghost cím között?"
a: "A blog.DOMAIN maga a blog, ezt látják az olvasók. A blog.DOMAIN/ghost a szerkesztőfelület, ide csak bejelentkezve jutsz be."
- q: "Hogyan javítok egy már megjelent bejegyzést?"
a: "Nyisd meg a bejegyzést a „Posts” listában, írd át, majd kattints az „Update” (Frissítés) gombra."
- q: "Küldhetek hírlevelet a Ghostból?"
a: "A hírlevélhez a Ghost egy külön levelezőszolgáltatást kér (Mailgun). A doboz ezt nem állítja be. A bejegyzések nélküle is megjelennek a blogon."
- q: "Lehet magyar nyelvű a blog?"
a: "Igen. A „Settings” oldal „Publication language” (a blog nyelve) részén a „Site language” mezőben válaszd a Hungarian nyelvet. A szerkesztőfelület angol marad."
- q: "Hol vannak a bejegyzéseim és a képeim?"
a: "A Ghost saját adattárában, a dobozon. A mentésüket az „Adatok és mentés” fülön látod."
- q: "Kérhet kódot a Ghost, ha másik eszközről lépek be?"
a: "Csak ha a Ghost „Beállítások” fülén be van kapcsolva az „Email-küldés engedélyezése ennél az alkalmazásnál”. Akkor új eszközön a Ghost egy 6 jegyű kódot küld a fiókod e-mail címére, és azt kell beírnod. Ha ki van kapcsolva, a jelszó elég."
# --- App-email mapping (apps → in-controller shim → hub → Resend) ---
# R-1090 (2026-10-16): Ghost's new-device code goes by e-mail, so it is ON only with app e-mail. Ghost's mailer is
# nodemailer, which upgrades to STARTTLS whenever the server offers it and would refuse the shim's self-signed
# certificate — so it is pointed at the plaintext listener (:2526), as cal.com is. No user/password: the shim
# accepts no-auth on the Docker network. The extra turns the device check on with the mail settings.
smtp_mapping:
tls_mode: plaintext
host_var: GHOST_MAIL_HOST
port_var: GHOST_MAIL_PORT
from_var: GHOST_MAIL_FROM
from_local: ghost
extra:
GHOST_STAFF_DEVICE_VERIFICATION: "true"
# --- Controller-side health probe ---
healthcheck:
checks:
- type: http
port: 2368
# --- English copy (localisation slice 5, R-560) --------------------------------------------
# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing
# field shows the Hungarian one; a controller older than 0.257.0 ignores the block entirely.
i18n:
en:
description: 'A professional blog and newsletter platform'
app_info:
tagline: 'A professional blog and newsletter platform'
use_cases:
- 'Start and run a professional blog'
- 'Send a newsletter with the built-in e-mail feature'
- 'Publish content that search engines can read'
- 'Memberships and paid content'
- 'A Markdown editor and a visual one'
first_steps:
- 'Open blog.DOMAIN/ghost/ in your browser'
- 'Create the admin account in the setup wizard'
- 'Write and publish your first post'
- 'Make the theme and the settings your own'
prerequisites:
- 'An x86 processor is needed'
guide:
sections:
- title: "A post with pictures"
intro: "You can put pictures into a post and choose when it comes out."
steps:
- "In the menu on the left, select „Posts”, then the „New post” button."
- "Type the title and the text. At the start of an empty line, select the + sign and choose the „Image” card."
- "„Preview” shows you how readers will see it."
- "Select „Publish”. If it should come out later, choose „Schedule for later” and set the day and the hour."
- "Follow the steps to the final confirmation: the post comes out now, or at the time you set."
- title: "An About page and the menu"
intro: "A page is writing that does not go among the posts, for example an introduction."
steps:
- "In the menu on the left, select „Pages”, then the „New page” button."
- "Write the page and publish it the same way as a post."
- "Open the „Settings” page, and at „Navigation” select „Customize”."
- "In the empty row, type the name of the menu item and the page's address from the browser's address bar, then select „Save”."
- title: "The blog's name and look"
intro: "You choose the blog's name, logo and colour."
steps:
- "On the „Settings” page, at „Title & description”, select „Edit”."
- "Type the blog's name in „Site title”, then select „Save”."
- "At „Design & branding”, select „Customize”."
- "On the „Brand” tab, upload a „Publication logo” and choose the „Accent color”."
- "Select „Save”: the change shows on the blog at once."
- title: "For the family only"
intro: "If only the family reads the blog, you can lock it with a code."
steps:
- "On the „Settings” page, open „Access”."
- "In „Who should be able to browse your site?”, choose „Private”."
- "Type an access code and select „Save”."
- "Give the code to your family: the blog asks them for it at blog.DOMAIN."
faq:
- q: "What is the difference between blog.DOMAIN and blog.DOMAIN/ghost?"
a: "blog.DOMAIN is the blog itself, the part readers see. blog.DOMAIN/ghost is the editing side, and only a signed-in person gets in there."
- q: "How do I correct a post that is already out?"
a: "Open the post in the „Posts” list, change it, then select „Update”."
- q: "Can I send a newsletter from Ghost?"
a: "For a newsletter, Ghost asks for a separate mail service (Mailgun). The box does not set it up. Posts still come out on the blog without it."
- q: "Can the blog be in Hungarian?"
a: "Yes. On the „Settings” page, at „Publication language”, choose Hungarian in „Site language”. The editing side stays in English."
- q: "Where are my posts and pictures?"
a: "In Ghost's own data store, on the box. You see their backup on the „Data and backup” tab."
- q: "Can Ghost ask for a code when I sign in on another device?"
a: "Only when „Allow sending e-mail for this app” is on in Ghost's „Settings” tab. Then on a new device Ghost sends a 6-digit code to your account's e-mail address, and you type it in. When it is off, the password is enough."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
description: 'The server domain name'
- env_var: SUBDOMAIN
label: 'Subdomain'
description: 'The subdomain this app answers on'
@@ -0,0 +1,67 @@
# Ghost - Professzionális blog és hírlevél platform
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: None (file-based)
# RAM: ~150M (mem_limit: 512M) | Pi-compatible: No
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
services:
ghost:
image: ghost:6.67.0-alpine
container_name: ghost
restart: unless-stopped
environment:
- TZ=Europe/Budapest
- NODE_ENV=production
- url=https://${SUBDOMAIN}.${DOMAIN}
- database__client=sqlite3
- database__connection__filename=content/data/ghost.db
# NEW-DEVICE SIGN-IN (R-1090). Ghost 6.67.0 sends a 6-digit code by e-mail when staff sign in on a
# device it has not seen (`security.staffDeviceVerification`, default true: ghost/core/core/shared/
# config/defaults.json:30; read at core/server/services/auth/session/index.js:65; only the very first
# sign-in skips it, core/server/api/endpoints/session.js:27). With no mail configured that sign-in
# fails with 500 „Failed to send email" — measured on demo-hp 9201 2026-10-16: the third client was
# locked out (felhom.eu audits/romm-ghost-2026-10-16/C1). So the check is OFF unless the household
# has app e-mail on: `.felhom.yml` smtp_mapping.extra turns it on together with the mail settings
# (the Vaultwarden _ENABLE_SMTP pattern). Ghost parses env values (`parseValues: true`, loader.ts:38),
# so "true"/"false" arrive as booleans.
- security__staffDeviceVerification=${GHOST_STAFF_DEVICE_VERIFICATION:-false}
# App e-mail (empty unless the controller injects them): the on-box shim, plaintext listener.
- mail__transport=SMTP
- mail__options__host=${GHOST_MAIL_HOST:-}
- mail__options__port=${GHOST_MAIL_PORT:-}
- mail__options__secure=false
- mail__from=${GHOST_MAIL_FROM:-}
volumes:
- ghost_content:/var/lib/ghost/content
networks:
- traefik-public
deploy:
resources:
limits:
memory: 512M
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:2368/',r=>{process.exit(r.statusCode<400?0:1)}).on('error',()=>process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
labels:
- "traefik.enable=true"
- "traefik.http.routers.ghost.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
# R-753: this app reads the LEFTMOST X-Forwarded-For entry, which a stranger writes once traefik keeps the
# tunnel's chain — so its chain is removed here (it then reads traefik's X-Real-Ip or peer; never forgeable).
- "traefik.http.middlewares.ghost-xff.headers.customrequestheaders.X-Forwarded-For="
- "traefik.http.routers.ghost.middlewares=ghost-xff"
- "traefik.http.routers.ghost.entrypoints=websecure"
- "traefik.http.routers.ghost.tls=true"
- "traefik.http.routers.ghost.tls.certresolver=letsencrypt"
- "traefik.http.services.ghost.loadbalancer.server.port=2368"
volumes:
ghost_content:
networks:
traefik-public:
external: true
+97 -1
View File
@@ -10,7 +10,7 @@ subdomain: "git"
slug: "gitea"
# 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-11-03"
# --- Resource hints (displayed on deploy screen) ---
resources:
@@ -66,6 +66,51 @@ app_info:
- 'Hozd létre az admin fiókot'
- 'Hozd létre az első repozitóriót'
- 'Klónozd a repót: git clone https://git.DOMAIN/user/repo.git'
guide:
checked_version: "1.27.3"
sections:
- title: "Meglévő projekt áthozása"
intro: "Egy máshol tárolt projektet a teljes előzményével együtt áthozhatsz."
steps:
- "Kattints a jobb felső sarokban a + jelre, és válaszd az „Új migráció” pontot."
- "Válaszd ki, honnan hozod a projektet, például GitHub vagy Git."
- "A „Migráció / Másolás URL-ről” mezőbe másold be a projekt klónozási címét."
- "Ha csak te láthatod, jelöld be a „Make repository private” (a tároló legyen privát) jelölőt."
- "Kattints a „Tároló migrációja” gombra, és várd meg, amíg végez."
- title: "Közös munka egy tárolón"
intro: "Egy tárolón többen is dolgozhattok, ha mindenkinek van saját fiókja."
steps:
- "Nyisd meg a tárolót, és kattints a „Beállítások” lapra."
- "A bal oldalon válaszd a „Collaborators” (közreműködők) pontot."
- "Írd be a családtag felhasználónevét, és kattints az „Add Collaborator” (közreműködő hozzáadása) gombra."
- "A neve mellett állítsd be a jogát: „Írás” vagy „Olvasott” (csak olvasás)."
- title: "Teendők követése"
intro: "A hibajegy egy teendő vagy egy hiba, amelyet a tároló mellett követtek."
steps:
- "Nyisd meg a tárolót, és kattints a „Hibajegyek” lapra."
- "Kattints az „Új hibajegy” gombra, és írj címet és leírást."
- "A „Megbízottak” résznél kiválaszthatod, ki foglalkozzon vele."
- "Kattints a „Hibajegy létrehozása” gombra."
- "Ha kész, a hibajegy alján kattints a „Close Issue” (hibajegy lezárása) gombra."
- title: "Kétlépcsős belépés"
intro: "A jelszó mellé a telefonod is kell a belépéshez, így a fiókod biztonságosabb."
steps:
- "Kattints jobb felül a profilképedre, és válaszd a „Beállítások” pontot."
- "A „Biztonság” lapon kattints az „Enroll in Two-Factor Authentication” (kétlépcsős hitelesítés bekapcsolása) gombra."
- "Olvasd be a képet a telefonod hitelesítő alkalmazásával, írd be a kódot a „Jelkód” mezőbe, és kattints az „Ellenőrzés” gombra."
- "A git ezután jelszó helyett tokent kér. Az „Alkalmazások” lapon írj nevet a „Token neve” mezőbe, a repository sorban válaszd a „Read and Write” (olvasás és írás) értéket, és kattints a „Token generálása” gombra."
- "Másold le a tokent azonnal: többször nem jelenik meg."
faq:
- q: "Miért nem működik a klónozás SSH-val?"
a: "A doboz a Gitea-t csak a webes címén (git.DOMAIN) teszi elérhetővé, SSH-n nem. Klónozáshoz a HTTPS címet használd."
- q: "Hogyan kap fiókot egy családtag?"
a: "Idegen nem regisztrálhat: a doboz az első fiók után lezárta a regisztrációt. Új fiókot az admin hoz létre a „Rendszergazdai felület” oldalon, a „Felhasználói fiókok” résznél, a „Felhasználó létrehozása” gombbal."
- q: "Ki látja a tárolóimat?"
a: "A nyilvános tárolót alapból bejelentkezés nélkül is bárki láthatja, aki megnyitja a git.DOMAIN címet. A privátot csak te és a közreműködők. Később a tároló „Beállítások” lapján, a „Danger Zone” (veszélyes zóna) résznél a „Make Private” (privát legyen) gombbal váltasz."
- q: "Miért nem fogadja el a git a jelszavamat?"
a: "Ha bekapcsoltad a kétlépcsős belépést, a git jelszó helyett tokent kér. A tokent az „Alkalmazások” lapon hozod létre, és a jelszó helyére írod."
- q: "Hol vannak a tárolóim?"
a: "A Gitea saját adattárában, a dobozon. A mentésüket az „Adatok és mentés” fülön látod."
# --- Controller-side health probe ---
@@ -114,6 +159,50 @@ i18n:
- 'Create the admin account'
- 'Create your first repository'
- 'Clone it: git clone https://git.DOMAIN/user/repo.git'
guide:
sections:
- title: "Bring over an existing project"
intro: "You can bring over a project kept elsewhere, with its whole history."
steps:
- "Select the + sign at the top right and choose „New Migration”."
- "Choose where the project comes from, for example GitHub or Git."
- "Paste the project's clone address into „Migrate / Clone From URL”."
- "If only you should see it, tick „Make repository private”."
- "Select „Migrate Repository” and wait until it finishes."
- title: "Work together on a repository"
intro: "Several people can work on one repository if each has their own account."
steps:
- "Open the repository and select the „Settings” tab."
- "On the left, choose „Collaborators”."
- "Type the family member's user name and select „Add Collaborator”."
- "Next to their name, set what they may do: „Write” or „Read”."
- title: "Keep track of tasks"
intro: "An issue is a task or a fault that you track next to the repository."
steps:
- "Open the repository and select the „Issues” tab."
- "Select „New Issue”, and write a title and a description."
- "At „Assignees” you can choose who deals with it."
- "Select „Create Issue”."
- "When it is done, select „Close Issue” at the bottom of the issue."
- title: "Two-step sign-in"
intro: "Signing in then needs your phone as well as the password, so your account is safer."
steps:
- "Select your profile picture at the top right and choose „Settings”."
- "On the „Security” tab, select „Enroll in Two-Factor Authentication”."
- "Scan the picture with the authenticator app on your phone, type the code into „Passcode” and select „Verify”."
- "Git then asks for a token instead of the password. On the „Applications” tab, type a name into „Token Name”, choose „Read and Write” in the repository row, and select „Generate Token”."
- "Copy the token at once: it is not shown again."
faq:
- q: "Why does cloning over SSH not work?"
a: "The box makes Gitea reachable only at its web address (git.DOMAIN), not over SSH. Use the HTTPS address to clone."
- q: "How does a family member get an account?"
a: "A stranger cannot sign up: the box closed sign-up after the first account. The admin creates a new account on the „Site Administration” page, at „User Accounts”, with „Create User Account”."
- q: "Who can see my repositories?"
a: "By default, anyone who opens git.DOMAIN can see a public repository, even without signing in. A private one only you and the collaborators. To change it later, use „Make Private” in the „Danger Zone” part of the repository's „Settings” tab."
- q: "Why does git not accept my password?"
a: "If you turned on two-step sign-in, git asks for a token instead of the password. You make the token on the „Applications” tab and type it where the password goes."
- q: "Where are my repositories?"
a: "In Gitea's own data store, on the box. You see their backup on the „Data and backup” tab."
deploy_fields:
- env_var: DOMAIN
label: 'Domain'
@@ -127,3 +216,10 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"gitea": "gitea/gitea:1.27.0"}, "to": {"gitea": "gitea/gitea:1.27.3"}, "digest": {"gitea": "sha256:87a67ee09d3ae0d1df5fda5dcda3e2a1f9236a45b0a59025d6e00e46adc43bef"}, "verdict": "proven", "tested_at": "2026-09-30T15:14:09Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/bench/apps/gitea/bench/evidence/MV-gitea/verdict.json", "box_evidence": "felhom.eu/documentation/audits/more-night-apps-2026-09-30/box/gitea/step.txt", "memory_peak_pct": 26.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 52.9}
- {"from": {"gitea": "gitea/gitea:1.27.3"}, "to": {"gitea": "gitea/gitea:28.2.0"}, "digest": {"gitea": "sha256:30777c91280d973fa02be48b1ade735bd6859e8f6f7af3b4444d519437852504"}, "verdict": "proven", "tested_at": "2026-10-28T18:04:34Z", "harness_version": 5, "evidence": "documentation/audits/gitea-wanderer-2026-10-28/gitea/bench", "box_evidence": "documentation/audits/gitea-wanderer-2026-10-28/gitea/box", "memory_peak_pct": 25.6, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 70.7}
- {"from": {"gitea": "gitea/gitea:28.2.0"}, "to": {"gitea": "gitea/gitea:28.3.0"}, "digest": {"gitea": "sha256:8967bf9deaf3c5c4adae13519436dc1b20c646ac83fe37ae810c933a1045227d"}, "verdict": "security_fix", "tested_at": "2026-11-02T21:56:24Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/security-2026-11-02/walks/gitea", "memory_peak_pct": 19.1, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["GHSA-8p3x-w464-4g6v", "GHSA-jh8p-x4ch-389q", "GHSA-37xv-m4w7-j2fh", "GHSA-8g99-g36h-5p2w", "GHSA-32h8-5xqg-h466", "GHSA-9v6p-xpcp-7488", "GHSA-6h2f-c8jm-84hc"], "advisory": "https://github.com/go-gitea/gitea/security/advisories/GHSA-8p3x-w464-4g6v", "fixed_in": "28.3.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).
upstream:
gitea/gitea: "github:go-gitea/gitea"
+6 -1
View File
@@ -8,7 +8,7 @@
services:
gitea:
image: gitea/gitea:1.27.3
image: gitea/gitea:28.3.0
container_name: gitea
restart: unless-stopped
environment:
@@ -18,6 +18,11 @@ services:
- GITEA__server__ROOT_URL=https://${SUBDOMAIN}.${DOMAIN}
- GITEA__server__SSH_DOMAIN=${SUBDOMAIN}.${DOMAIN}
- GITEA__database__DB_TYPE=sqlite3
# Repository import (D57, operator 2026-10-28): only from these hosts. Gitea 28's own egress rules ([migrations]
# EGRESS_MODE / ALLOWED_HOST_LIST — 28.0 replaced 1.x's ALLOWED_DOMAINS, PR #39426). Measured on 9202: GitHub imports,
# gitea.com and every home-network / Docker address are refused. (28's default alone already refuses the private ones.)
- GITEA__migrations__EGRESS_MODE=strict
- GITEA__migrations__ALLOWED_HOST_LIST=github.com,codeberg.org,gitlab.com
# App-email (managed relay). Injected by the controller only when app-email is on (global +
# per-app); empty ENABLED/ADDR keeps Gitea mail disabled. Gitea applies GITEA__* env on every
# boot (environment-to-ini), so the toggle takes effect on redeploy. See .felhom.yml smtp_mapping.
Loaded 100 of 251 files, more files were not shown because too many files have changed in this diff. Show more