From 8ee687e544e0bc52980458ebf3c86e9484dba1fa Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Mon, 12 Oct 2026 22:48:54 +0200 Subject: [PATCH] SABnzbd and NZBGet: the Usenet pair, each with its complete record (R-988) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. - nzbget v26.3 (the project's own image), 64M/512M, nzbget. - 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 Claude-Session: https://claude.ai/code/session_0117kRTSgs3rJWUFGxyoWN6Y --- CHANGELOG.md | 53 ++++++++ FIRST-ADMIN.md | 2 + README.md | 6 + REPORT.md | 85 ++++++------ onboarding/nzbget.md | 77 +++++++++++ onboarding/sabnzbd.md | 78 +++++++++++ scripts/copy_freeze/hu.json | 56 ++++++++ scripts/upgrade_fixtures.py | 163 ++++++++++++++++++++++ scripts/upgrade_fixtures_box.py | 162 ++++++++++++++++++++++ templates/nzbget/.felhom.yml | 157 ++++++++++++++++++++++ templates/nzbget/docker-compose.yml | 136 +++++++++++++++++++ templates/sabnzbd/.felhom.yml | 193 +++++++++++++++++++++++++++ templates/sabnzbd/docker-compose.yml | 158 ++++++++++++++++++++++ 13 files changed, 1287 insertions(+), 39 deletions(-) create mode 100644 onboarding/nzbget.md create mode 100644 onboarding/sabnzbd.md create mode 100644 templates/nzbget/.felhom.yml create mode 100644 templates/nzbget/docker-compose.yml create mode 100644 templates/sabnzbd/.felhom.yml create mode 100644 templates/sabnzbd/docker-compose.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b43462..4c32944 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,56 @@ +## 2026-10-12 (night) — SABnzbd and NZBGet: the Usenet pair, each with its complete record (R-988) + +**What runs on a box changed:** two new apps are offered, `usenet.` and `nzbget.`. +Nothing already installed is touched. Records: `onboarding/sabnzbd.md`, `onboarding/nzbget.md` (every +id answered). Evidence: `felhom.eu/documentation/audits/usenet-2026-10-12/` — bench LXC 9401 and +scratch guest 9202 through the product. + +- **A PAID USENET PROVIDER IS THE HOUSEHOLD'S OWN, and both app pages say so before the install.** + This session had none, so the download chain (connect, fetch, par2 repair, unpack) and memory under + that load are **not measured** and no record claims they are. Everything else is, including each + app's queue taking a job through its own API and keeping it across the product's Update. +- **SABnzbd 5.1.3** from `lscr.io/linuxserver/sabnzbd` — the project publishes no image of its own, so + this is the second third-party publisher in the catalog after Transmission, under the same operator + ruling. 96M request / 1024M limit, amd64 + arm64. The full client: queues, categories, automatic + repair and unpacking. +- **NZBGet v26.3** from `nzbgetcom/nzbget` — **the project's own image**, amd64 + armv7 + arm64. The + light client: 6 MiB idle, 64M request / 512M limit. +- **Neither needs an inbound port**, and unlike the torrent pair that costs nothing: a Usenet client + only ever makes outgoing connections. +- **First admin, class 1 for both** (`FIRST-ADMIN.md`), and SABnzbd took the most work of any app in + this catalog: **it has no login at all on a fresh install** and the image offers no variable for + one. The entrypoint seeds its `sabnzbd.ini` with the generated login, a generated API key, + `inet_exposure = 5` and `local_ranges = 127.0.0.1`. +- **NINE defects were found by measuring and fixed before publication**, each with its measurement in + the audit README. The four that are lessons for the next template: + 1. **`inet_exposure = 5` protects nothing by itself.** SABnzbd decides "external" from the client + address and its built-in LAN ranges include the 172.16/12 traefik arrives from, so the login + applied to nobody: a request with NO credentials answered 200 and served the Quick-Start Wizard. + `local_ranges` replaces those defaults and also stops the app trusting `X-Forwarded-For`. + 2. **NZBGet keeps its queue, nzb files and temp dir under `MainDir`, which ships as `/downloads`** — + the household's drive, which this very catalog classifies "optional, fetchable again". A restore + would have brought back the finished files and lost what was downloading. `MainDir` moves to + `/config/data`. + 3. **A `backup`/`data_paths` entry must name a path the compose actually BINDS.** SABnzbd's first + version bound two subfolders and declared their parent; the controller rejected both blocks out + loud and the downloads were in no backup class at all. One bind now. + 4. **An `after_install` readback has to match the app's own JSON spacing.** SABnzbd answers + `"key":value` with no space; the greps expected one, so the marker never printed, the install + HELD and the box kept the app closed — the gate working exactly as designed, and the reason a + readback is worth having. + Plus: NZBGet's image has **no curl** (the healthcheck could never pass — busybox wget now); its + shipped config carries the well-known default password in plain text and breaks the app's own CLI; + it asks nzbget.com for new versions; SABnzbd's healthcheck dialled `/`, which answers 303; and two + of the fixtures assumed tools inside containers that do not have them. +- **Ladders written by the official writer**, both venues `proven`: sabnzbd version-5.1.2 → + version-5.1.3 (peak 6.3 % of the limit) and nzbget v26.2 → v26.3 (peak 0.9 %), with + `catalog_since: "2026-10-12"`. +- **Fixtures** (`scripts/upgrade_fixtures.py`, `scripts/upgrade_fixtures_box.py`): a queued NZB plus a + category for SABnzbd, a queued NZB for NZBGet, each readback with a negative control. No provider is + needed to seed a queue, which is the store an upgrade must not lose. +- `README.md` (the tree and both app tables), `FIRST-ADMIN.md` (two class-1 rows), the website's app + cards and the published count (60 → 62) move with them. + ## 2026-10-12 (evening) — qBittorrent and Transmission: the two download clients, each with its complete record **What runs on a box changed:** two new apps are offered, `torrent.` and `transmission.`. Nothing diff --git a/FIRST-ADMIN.md b/FIRST-ADMIN.md index 9ae5273..1262771 100644 --- a/FIRST-ADMIN.md +++ b/FIRST-ADMIN.md @@ -67,6 +67,7 @@ asks the probe first where there is one. Open sign-up is closed by the box after | **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/`) | @@ -81,6 +82,7 @@ asks the probe first where there is one. Open sign-up is closed by the box after | **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/` | | **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/`) | diff --git a/README.md b/README.md index 37c8243..bdd97c1 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ app-catalog-felhom.eu/ <- This repo (source of truth) │ ├── n8n/ │ ├── navidrome/ │ ├── nextcloud/ +│ ├── nzbget/ │ ├── onlyoffice/ │ ├── opengist/ │ ├── outline/ @@ -51,6 +52,7 @@ app-catalog-felhom.eu/ <- This repo (source of truth) │ ├── radarr/ │ ├── rallly/ │ ├── romm/ +│ ├── sabnzbd/ │ ├── seerr/ │ ├── sonarr/ │ ├── sparkyfitness/ @@ -345,6 +347,7 @@ block + the matching compose `${VAR}` lines. | 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.* | +| NZBGet | None (file) | 64M / 512M | yes | `${USERDATA_PATH}/media/nzbget/` | nzbget.* | | Nextcloud | MariaDB + Redis | 256M / 1664M | no | `${HDD_PATH}/storage/nextcloud/` | cloud.* | | OnlyOffice | None (file) | 512M / 2048M | no | -- | office.* | | OpenGist | None (file) | 30M / 128M | yes | -- | gist.* | @@ -359,6 +362,7 @@ block + the matching compose `${VAR}` lines. | Radicale | None (file) | 40M / 128M | yes | -- | calendar.* | | Rallly | PostgreSQL | 50M / 256M | yes | -- | poll.* | | RomM | MariaDB + Redis | 300M / 1024M | no | `${HDD_PATH}/storage/romm/` | arcade.* | +| SABnzbd | None (file) | 96M / 1024M | yes | `${USERDATA_PATH}/media/usenet/` | usenet.* | | Jellyseerr | None (file) | 100M / 384M | yes | -- | requests.* | | Sonarr | None (file) | 150M / 512M | yes | `${HDD_PATH}/media/` | sonarr.* | | SparkyFitness | PostgreSQL | 400M / 1792M | no | -- | sparky.* | @@ -410,6 +414,7 @@ block + the matching compose `${VAR}` lines. | 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 | -- | -- | @@ -424,6 +429,7 @@ block + the matching compose `${VAR}` lines. | 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) | | Jellyseerr | yes | -- | -- | | Sonarr | yes | yes | -- | | SparkyFitness | yes | -- | DB_PASSWORD, APP_DB_PASSWORD, API_ENCRYPTION_KEY, BETTER_AUTH_SECRET | diff --git a/REPORT.md b/REPORT.md index ee833da..f9c1e2a 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,41 +1,48 @@ -# REPORT — 2026-10-12: qBittorrent and Transmission published, bench-proven and box-proven +# REPORT — 2026-10-12 (night): the Usenet pair published, nine defects fixed on the way -The operator asked for a torrent client ("no question about it"), then for Transmission beside it, then for the -publication steps. Both templates and both records go out in ONE commit. The Usenet pair (SABnzbd, NZBGet) is the next -piece of work and is not in this commit. +The operator asked for SABnzbd and NZBGet (R-988) and answered the one question that mattered — "do I +need a Usenet account for testing?" — by letting the work go ahead without one. Both templates and +both records go out in ONE commit. -- **Templates:** `templates/qbittorrent/` (`qbittorrentofficial/qbittorrent-nox:5.2.4-1`, the project's own image, 192M - / 1024M) and `templates/transmission/` (`lscr.io/linuxserver/transmission:version-4.1.3-r0`, 64M / 512M). Transmission - is the **first third-party publisher in this catalog** — the project publishes no image at all, and the operator was - asked and chose it before the build. Both compose headers say so. -- **Records:** `onboarding/qbittorrent.md`, `onboarding/transmission.md` — every id `done` with evidence that exists or - `n/a` with a reason; no `open`. `check-onboarding.py` green. -- **First admin: class 1 for both**, measured in both venues. qBittorrent's entrypoint computes a PBKDF2 hash of the - generated password with the image's own python3 and seeds the config before the first start, so the app never carries - a default and never prints a temporary one (0 such lines in the whole log). Transmission's own init writes the RPC - user and password on every start; `rpc-authentication-required` is true from the first request. -- **No UPnP, by the topology** (`01-topology-and-trust.md` §7). Port mapping is off in both and neither peer port is - published; `after_install` sets qBittorrent's flag through the API and reads it back, because a seeded - `Session\UseUPnP=false` is written and ignored. Each client completed a 276 MB torrent on outgoing connections alone. - The app pages state the cost (slower swarms, no incoming peers). -- **Six defects found by measuring, all fixed before publication** — Transmission's healthcheck could never pass (401 + - `curl -f`), its host whitelist refused its own healthcheck, qBittorrent's `WebUI\ServerDomains` seeded into the config - file loses every entry but the public name (so the controller's probe was refused), the seeded UPnP flag is ignored, - the box fixture looked for the wrong cookie name (`QBT_SID_`), and the Transmission fixture read the session id - with an `awk` that matched the header name. Each one is in the CHANGELOG with its measurement. -- **An apparent household lock-out was a measurement artefact.** The wrong tries and the household's request came from - one machine. Re-measured from two addresses: qBittorrent bans the offending address (403) while the household signs in - at the same instant (204); Transmission does not ban at all. `box/verify-fixes.json`. -- **Ladders written by `upgrade-test.py --write-ladder`**, never by hand, both venues `proven`: 5.2.3-1 → 5.2.4-1 (peak - 31.0 % of the limit) and version-4.1.2-r0 → version-4.1.3-r0 (peak 4.2 %), each with its superseded step file and - `catalog_since: "2026-10-12"`. The abort put the old image back and the app came up in both. -- **Fixtures:** `upgrade_fixtures.py` (bench) and `upgrade_fixtures_box.py` (box) gained a class per app — a category - and a magnet for qBittorrent, a speed limit and a magnet for Transmission — each readback carrying a negative control. -- **Gates:** `catalog_gates.py qbittorrent transmission` — 12 of 14 OK; `image-resolvable` INCONCLUSIVE and - `volume-persistence` DID-NOT-RUN, the two documented periodic ones (no Docker and no network on the Windows - workstation, and the harness refuses a host that is not a scratch host). Both were exercised on the bench during the - campaign: the ladder writer resolved and recorded every digest, and the volume layout was measured there by hand - (`bench/05-storage.txt`, `transmission-bench/06-storage.txt`). -- **Also moved with them:** `README.md` (the tree and both app tables), `FIRST-ADMIN.md` (two class-1 rows), and in the - sibling `felhom.eu`: the two app cards with the projects' own logos, the published count 58 → 60 on every page that - states it, and the audit folder `documentation/audits/qbittorrent-2026-10-12/`. +- **Templates:** `templates/sabnzbd/` (`lscr.io/linuxserver/sabnzbd:version-5.1.3`, 96M / 1024M, + `usenet.`) and `templates/nzbget/` (`nzbgetcom/nzbget:v26.3` — the project's own image — + 64M / 512M, `nzbget.`). SABnzbd is the second third-party-published image in this catalog + after Transmission; the project publishes none of its own, and both compose headers say so. +- **Records:** `onboarding/sabnzbd.md`, `onboarding/nzbget.md` — every id `done` with evidence that + exists or `n/a` with a reason; no `open`. `check-onboarding.py` green. +- **What is not measured, stated in both records and on both app pages:** a household must bring a + PAID Usenet provider, and this session had none, so the download chain (connect, authenticate, par2 + repair, unpack, the file on the drive) and memory under that load are untested. What is measured is + everything else, including each app's queue accepting a job through its own API and keeping it + across the product's guarded Update. +- **First admin: class 1 for both.** SABnzbd needed the most care of any app here — it ships with **no + login at all** and offers no variable for one, so the entrypoint seeds its own config with the + generated login, a generated API key, `inet_exposure = 5` and `local_ranges = 127.0.0.1`. NZBGet's + image applies `NZBGET_USER`/`NZBGET_PASS` on every start, and this template also writes them into + the config file, because the shipped file carries the documented default in plain text. +- **Nine defects found by measuring, all fixed before publication** (each with its measurement in the + audit README). The four worth remembering: `inet_exposure` protects nobody without `local_ranges`, + because the proxy's address counts as local; NZBGet keeps its queue under `MainDir`, which ships as + the household's drive — the one folder the backup classification calls expendable; a `backup` or + `data_paths` entry must name a path the compose actually binds, or the controller rejects the block + and the data has no class at all; and an `after_install` readback must match the app's own JSON + spacing, or the install holds for ever (which is the gate working as designed). +- **Two measurement artefacts, both recorded as such.** NZBGet looked broken because my own probe ran + its CLI as root inside the container and recreated the app's directories as root. And the box + fixture read the API key out of `app.yaml`, where deploy secrets are stored **encrypted** — the app + rightly answered "API Key Incorrect". `walk.app_env`'s docstring now says so. +- **Ladders written by `upgrade-test.py --write-ladder`**, never by hand, both venues `proven`: + version-5.1.2 → version-5.1.3 (peak 6.3 %) and v26.2 → v26.3 (peak 0.9 %). C3, the harness's + negative control, came back `failed` first, as the rule requires. +- **Fixtures:** `upgrade_fixtures.py` (bench) and `upgrade_fixtures_box.py` (box) gained a class per + app. Both Usenet fixtures seed a queue with a hand-built NZB whose articles do not exist, which is + the honest shape when there is no provider: the queue is the store, and the readback carries a + negative control. +- **Gates:** `catalog_gates.py --fast` (whole catalog) all OK; `catalog_gates.py sabnzbd nzbget` the + same but for the two documented periodic ones (`image-resolvable` needs network, `volume-persistence` + refuses a host that is not a scratch host). Both were exercised on the bench: the ladder writer + resolved and recorded both digests, and each app's storage layout was measured there by hand. +- **The drill route could not be used and that is filed, not papered over.** `admin/app-catalog-drill` + is private and no box has catalog credentials, so the two templates were staged in guest 9202's own + catalog cache — where the sync puts a catalog change anyway — with the sync interval raised for the + duration. The register row asks the operator for the real fix. diff --git a/onboarding/nzbget.md b/onboarding/nzbget.md new file mode 100644 index 0000000..a9c2072 --- /dev/null +++ b/onboarding/nzbget.md @@ -0,0 +1,77 @@ +# Onboarding record — nzbget + +app: nzbget +opened: 2026-10-12 +template_at: 2026-10-12 (published in this commit) + + + +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.` 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 diff --git a/onboarding/sabnzbd.md b/onboarding/sabnzbd.md new file mode 100644 index 0000000..fd6de1a --- /dev/null +++ b/onboarding/sabnzbd.md @@ -0,0 +1,78 @@ +# Onboarding record — sabnzbd + +app: sabnzbd +opened: 2026-10-12 +template_at: 2026-10-12 (published in this commit) + + + +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-` 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 diff --git a/scripts/copy_freeze/hu.json b/scripts/copy_freeze/hu.json index 3394e21..6fb0abc 100644 --- a/scripts/copy_freeze/hu.json +++ b/scripts/copy_freeze/hu.json @@ -768,6 +768,32 @@ "deploy_fields[SUBDOMAIN].label": "Aldomain", "description": "Saját felhő tárhely - Google Drive/Dropbox alternatíva" }, + "nzbget": { + "app_info.default_creds": "admin / (telepítéskor generált jelszó)", + "app_info.first_steps[0]": "Nyisd meg az nzbget.DOMAIN címet, és lépj be az admin névvel és a telepítéskor kapott jelszóval", + "app_info.first_steps[1]": "Add meg a Usenet szolgáltatód adatait a Settings / News-Servers oldalon (szerver, port, felhasználónév, jelszó). Enélkül a letöltés nem indul el", + "app_info.first_steps[2]": "A kész letöltések a meghajtódon, a media/nzbget/completed mappába kerülnek", + "app_info.first_steps[3]": "Csak olyan tartalmat tölts le, amihez jogod van", + "app_info.prerequisites[0]": "FIZETŐS USENET SZOLGÁLTATÁS KELL hozzá, amit neked kell hoznod: a tartalom a szolgáltató szerverein van, és az elérése előfizetés. Enélkül az alkalmazás elindul és bejelentkezni is tudsz, de letölteni nem", + "app_info.prerequisites[1]": "NZB fájlokat vagy indexelő szolgáltatást is te adsz hozzá - ezeket sem tartalmazza az alkalmazás", + "app_info.prerequisites[2]": "Befelé irányuló portot nem igényel: a Usenet letöltés kizárólag kimenő kapcsolatokat használ, így a doboz zárt portjai itt semmit nem vesznek el", + "app_info.tagline": "Usenet letöltés egyszerűen, alig észrevehető erőforrásból", + "app_info.use_cases[0]": "NZB fájlok letöltése a saját meghajtódra, a letöltés utáni kicsomagolással és javítással együtt", + "app_info.use_cases[1]": "A Radarr, a Sonarr és a Jellyseerr ide adhatja le a munkát: ez a Usenet oldali letöltő", + "app_info.use_cases[2]": "A kész fájlokat a fájlböngészőben és a médialejátszódban is látod", + "app_info.use_cases[3]": "Nagyon keveset fogyaszt: kisebb gépen is elfér a többi alkalmazás mellett. Ha a teljes felületet szeretnéd, a SABnzbd az erősebb választás", + "data_paths[media/nzbget].label": "Letöltések (NZBGet)", + "deploy_fields[DOMAIN].description": "A szerver domain neve", + "deploy_fields[DOMAIN].label": "Domain", + "deploy_fields[HDD_PATH].description": "A meghajtó, amelyre a letöltések kerülnek", + "deploy_fields[HDD_PATH].label": "Letöltések meghajtója", + "deploy_fields[HDD_PATH].placeholder": "/mnt/felhom-drives/hdd_1", + "deploy_fields[NZB_ADMIN_PASSWORD].description": "A webes felület jelszava (felhasználónév: admin). A telepítéskor készül, utána a felületen változtathatod meg.", + "deploy_fields[NZB_ADMIN_PASSWORD].label": "Belépési jelszó", + "deploy_fields[SUBDOMAIN].description": "Az alkalmazás aldomainje", + "deploy_fields[SUBDOMAIN].label": "Aldomain", + "description": "Usenet letöltő, nagyon kevés erőforrásból" + }, "onlyoffice": { "app_info.first_steps[0]": "Nyisd meg az office.DOMAIN címet a böngészőben", "app_info.first_steps[1]": "Várj amíg az inicializálás befejeződik (1-2 perc)", @@ -1102,6 +1128,34 @@ "optional_config[Metaadat-szolgáltatók].fields[STEAMGRIDDB_API_KEY].label": "SteamGridDB API Key", "optional_config[Metaadat-szolgáltatók].group": "Metaadat-szolgáltatók" }, + "sabnzbd": { + "app_info.default_creds": "admin / (telepítéskor generált jelszó)", + "app_info.first_steps[0]": "Nyisd meg az usenet.DOMAIN címet, és lépj be az admin névvel és a telepítéskor kapott jelszóval", + "app_info.first_steps[1]": "Add meg a Usenet szolgáltatód adatait a Beállítások / Szerverek oldalon (szerver, port, felhasználónév, jelszó). Enélkül a letöltés nem indul el", + "app_info.first_steps[2]": "A kész letöltések a meghajtódon, a media/usenet/complete mappába kerülnek", + "app_info.first_steps[3]": "Csak olyan tartalmat tölts le, amihez jogod van", + "app_info.prerequisites[0]": "FIZETŐS USENET SZOLGÁLTATÁS KELL hozzá, amit neked kell hoznod: a tartalom a szolgáltató szerverein van, és az elérése előfizetés. Enélkül az alkalmazás elindul és bejelentkezni is tudsz, de letölteni nem", + "app_info.prerequisites[1]": "NZB fájlokat vagy indexelő szolgáltatást is te adsz hozzá - ezeket sem tartalmazza az alkalmazás", + "app_info.prerequisites[2]": "Befelé irányuló portot nem igényel: a Usenet letöltés kizárólag kimenő kapcsolatokat használ, így a doboz zárt portjai itt semmit nem vesznek el", + "app_info.tagline": "Usenet letöltés teljes felülettel: sorok, kategóriák, automatikus kicsomagolás", + "app_info.use_cases[0]": "NZB fájlok letöltése a saját meghajtódra, a letöltés utáni kicsomagolással és javítással együtt", + "app_info.use_cases[1]": "A Radarr, a Sonarr és a Jellyseerr ide adhatja le a munkát: ez a Usenet oldali letöltő", + "app_info.use_cases[2]": "A kész fájlokat a fájlböngészőben és a médialejátszódban is látod", + "app_info.use_cases[3]": "Ha egyszerűbb felületet és még kisebb fogyasztást szeretnél, az NZBGet a másik választás", + "data_paths[media/usenet].label": "Letöltések (SABnzbd)", + "deploy_fields[DOMAIN].description": "A szerver domain neve", + "deploy_fields[DOMAIN].label": "Domain", + "deploy_fields[HDD_PATH].description": "A meghajtó, amelyre a letöltések kerülnek", + "deploy_fields[HDD_PATH].label": "Letöltések meghajtója", + "deploy_fields[HDD_PATH].placeholder": "/mnt/felhom-drives/hdd_1", + "deploy_fields[SAB_ADMIN_PASSWORD].description": "A webes felület jelszava (felhasználónév: admin). A telepítéskor készül, utána a felületen változtathatod meg.", + "deploy_fields[SAB_ADMIN_PASSWORD].label": "Belépési jelszó", + "deploy_fields[SAB_API_KEY].description": "Ezzel a kulccsal kapcsolódnak hozzá a letöltést kérő alkalmazások (Radarr, Sonarr, Jellyseerr). A telepítéskor készül; az alkalmazás beállításaiban megtalálod.", + "deploy_fields[SAB_API_KEY].label": "API kulcs", + "deploy_fields[SUBDOMAIN].description": "Az alkalmazás aldomainje", + "deploy_fields[SUBDOMAIN].label": "Aldomain", + "description": "Usenet letöltő teljes felülettel" + }, "seerr": { "app_info.first_steps[0]": "Nyisd meg a requests.DOMAIN címet a böngészőben", "app_info.first_steps[1]": "Kövesd a beállítás varázslót", @@ -1381,9 +1435,11 @@ "lubelogger": "New app 2026-10-10 (NEW-APP-CHECKLIST.md): the Hungarian was written for this template and reviewed with the onboarding record; add_people was corrected to the route measured on 9202; every string has its English twin.", "mealie": "R-747 (2026-10-06, 09 §3 decision 144): one new first step, deliberate Hungarian addition — five wrong logins lock the account for 1-2 hours, wait; te-form, no kerjuk", "metube": "new app 2026-10-02 (family gate); Hungarian reviewed: informal te, no kerjuk (ASCII scan with a positive control)", + "nzbget": "Usenet downloader, the light client of the pair (R-988); Hungarian written 2026-10-12 and reviewed in this session", "papra": "R-593 (2026-10-05): deliberate Hungarian rewrite, not a translation — AUTH_SECRET carried SUBDOMAIN's sentence 'Az alkalmazás aldomainje' (copy-paste one field too low); the sentence moved to SUBDOMAIN and AUTH_SECRET got its own: 'A bejelentkezéseket aláíró titkos kulcs (automatikusan generált)'", "qbittorrent": "New app 2026-10-12 (operator ruling: the catalog needs a download client - radarr/sonarr/seerr had none). Hungarian written with the voice the website switched to the same day; English twin complete at 23/23.", "radicale": "new app 2026-10-01 through NEW-APP-CHECKLIST.md: te-form, no kérjük; reviewed by CC against the operator rules", + "sabnzbd": "Usenet downloader, the full client of the pair the operator asked for (R-988); Hungarian written 2026-10-12 and reviewed in this session", "transmission": "New app 2026-10-12 (operator ruling: a light torrent client beside qBittorrent). Hungarian written in the first-person voice the site switched to the same day; English twin complete." } } diff --git a/scripts/upgrade_fixtures.py b/scripts/upgrade_fixtures.py index d615ebc..062a803 100644 --- a/scripts/upgrade_fixtures.py +++ b/scripts/upgrade_fixtures.py @@ -691,6 +691,167 @@ class Transmission: 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 = ( + '\n' + '\n' + '%(name)s\n' + '\n' + 'alt.binaries.test\n' + '%(name)s-1@example.invalid\n' + '\n\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§ion=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§ion=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 + + FIXTURES = { "privatebin": PrivateBin(), "docmost": Docmost(), @@ -702,4 +863,6 @@ FIXTURES = { "romm": Romm(), "qbittorrent": QBittorrent(), "transmission": Transmission(), + "sabnzbd": SABnzbd(), + "nzbget": NZBGet(), } diff --git a/scripts/upgrade_fixtures_box.py b/scripts/upgrade_fixtures_box.py index d9d53b7..0dc5f2f 100644 --- a/scripts/upgrade_fixtures_box.py +++ b/scripts/upgrade_fixtures_box.py @@ -2816,6 +2816,166 @@ class MeTube: return code == "200" and in_hist +# The NZB both Usenet box fixtures seed with: article names that do not exist, because without a +# paid provider nothing can be fetched anyway and what is being measured is the QUEUE. +BOX_NZB = ( + '\n' + '\n' + '%(name)s\n' + '\n' + 'alt.binaries.test\n' + '%(name)s-1@example.invalid\n' + '\n\n' +) + + +class SABnzbdBox: + """SABnzbd through traefik, with the household's own generated API key. + + The web UI is session-based and requires a login for every proxied visitor (this template sets + local_ranges so that nothing a proxy presents counts as local), but the API authenticates with + the key - which is the route Radarr and Sonarr use, so it is the route the fixture uses too. + Both stores are seeded: a queued job (the queue index, /config/admin/queue10.sab) and a category + (sabnzbd.ini).""" + sub = "usenet" + + def _key(self, w): + """The key the household was given. `walk.GENERATED` does not hold it - deploy_values skips + an OPTIONAL `type: secret` field, because the controller generates those itself - so the box + is asked for the value out of the app's own app.yaml, which is where the household reads it + too (measured on 9202, 2026-10-12: the first run had no key and could not seed).""" + k = (w.GENERATED.get("sabnzbd") or {}).get("SAB_API_KEY", "") + if k: + return k + # app.yaml stores a deploy secret ENCRYPTED (`SAB_API_KEY: ENC:...`), so app_env returns + # ciphertext and the app answers "API Key Incorrect" (measured on 9202, 2026-10-12). The + # value the APP holds is in its own environment - the same place the bench fixture reads it. + return w.guest("docker exec sabnzbd printenv SAB_API_KEY").strip() + + def _pw(self, w): + p = (w.GENERATED.get("sabnzbd") or {}).get("SAB_ADMIN_PASSWORD", "") + return p or w.guest("docker exec sabnzbd printenv SAB_ADMIN_PASSWORD").strip() + + def _api(self, w, sub, query, say, extra=None): + key = self._key(w) + if not key: + say(" sabnzbd: this run holds no generated API key for the app") + return "", "" + args = ["curl", "-sSk", "--max-time", "40", "-H", f"Host: {sub}.{w.DOMAIN}", + "-w", "\n%{http_code}"] + if extra: + args += extra + args.append(f"{w.BASE}/api?output=json&apikey={key}&{query}") + r = w.sh(args) + out, _, code = (r.stdout or "").rpartition("\n") + return code.strip(), out + + def seed(self, w, sub, say): + if not w.wait_app(sub, "/", want=("200", "303", "401", "403")): + return None + name = "felhom" + secrets.token_hex(4) + # the NZB is written on the harness host and posted through the front door + path = os.path.join(w.SC, name + ".nzb") + with open(path, "w") as f: + f.write(BOX_NZB % {"name": name}) + code, out = self._api(w, sub, "mode=addfile", say, + extra=["-F", f"name=@{path}", "-F", f"nzbname={name}"]) + ok = code == "200" and '"status"' in out and "true" in out + say(f" sabnzbd: addfile {name} http={code} ok={ok}") + if not ok: + say(f" sabnzbd: refused {out[:200]}") + return None + code, out = self._api(w, sub, + f"mode=set_config§ion=categories&keyword={name}&name={name}&dir={name}", say) + if code != "200": + say(f" sabnzbd: the category was refused (http={code}) {out[:160]}") + return None + say(f" sabnzbd: category {name} created") + return {"name": name} + + def verify(self, w, sub, t, say): + if not w.wait_app(sub, "/", want=("200", "303", "401", "403"), tries=36): + return False + code, out = self._api(w, sub, "mode=queue", say) + if code != "200": + say(f" sabnzbd: mode=queue http={code}") + return False + ghost = "felhom" + secrets.token_hex(4) + if ghost in out: + say(" sabnzbd: READBACK UNUSABLE - a job nobody queued is present") + return False + if t["name"] not in out: + say(f" sabnzbd: the queued job {t['name']} is GONE") + return False + code, out = self._api(w, sub, "mode=get_config§ion=categories", say) + ok = code == "200" and t["name"] in out + say(f" sabnzbd: job kept, category present={ok}") + return ok + + +class NZBGetBox: + """NZBGet through traefik, with the household's own generated password over Basic auth. + + One store, and it is the one that matters: the queue, which this template keeps in the config + volume (the app ships it on the drive, which the backup classification calls optional).""" + sub = "nzbget" + + def _pw(self, w): + p = (w.GENERATED.get("nzbget") or {}).get("NZB_ADMIN_PASSWORD", "") + # app.yaml keeps deploy secrets encrypted, so the app's own environment is the source + return p or w.guest("docker exec nzbget printenv NZBGET_PASS").strip() + + def _rpc(self, w, sub, say, payload_file=None, path=""): + pw = self._pw(w) + if not pw: + say(" nzbget: this run holds no generated password for the app") + return "", "" + args = ["curl", "-sSk", "--max-time", "40", "-H", f"Host: {sub}.{w.DOMAIN}", + "-u", f"admin:{pw}", "-w", "\n%{http_code}"] + if payload_file: + args += ["-H", "Content-Type: application/json", "--data", "@" + payload_file] + args.append(f"{w.BASE}/jsonrpc/{path}") + r = w.sh(args) + out, _, code = (r.stdout or "").rpartition("\n") + return code.strip(), out + + def seed(self, w, sub, say): + if not w.wait_app(sub, "/", want=("200", "401")): + return None + name = "felhom" + secrets.token_hex(4) + nzb = (BOX_NZB % {"name": name}).encode() + payload = json.dumps({"method": "append", + "params": [name + ".nzb", base64.b64encode(nzb).decode(), "", + 0, False, True, "", 0, "SCORE", []], + "id": 1}) + pf = os.path.join(w.SC, name + ".json") + with open(pf, "w") as f: + f.write(payload) + code, out = self._rpc(w, sub, say, payload_file=pf) + ok = 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: refused {out[:200]}") + return None + return {"name": name} + + def verify(self, w, sub, t, say): + if not w.wait_app(sub, "/", want=("200", "401"), tries=36): + return False + code, out = self._rpc(w, sub, say, path="listgroups") + if code != "200": + say(f" nzbget: listgroups http={code}") + return False + ghost = "felhom" + secrets.token_hex(4) + if ghost in out: + say(" nzbget: READBACK UNUSABLE - a job nobody queued is present") + return False + ok = t["name"] in out + say(f" nzbget: the queued job is present={ok}") + return ok + + FIXTURES = { "uptime-kuma": UptimeKuma(), "crafty-controller": Crafty(), @@ -2861,4 +3021,6 @@ FIXTURES = { "lubelogger": LubeLogger(), "qbittorrent": QBittorrentBox(), "transmission": TransmissionBox(), + "sabnzbd": SABnzbdBox(), + "nzbget": NZBGetBox(), } diff --git a/templates/nzbget/.felhom.yml b/templates/nzbget/.felhom.yml new file mode 100644 index 0000000..20911c0 --- /dev/null +++ b/templates/nzbget/.felhom.yml @@ -0,0 +1,157 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= +# NZBGet - nzbgetcom/nzbget, the PROJECT'S OWN image. Onboarding record: onboarding/nzbget.md. +# The light Usenet client beside SABnzbd's full one (operator request 2026-10-12, R-988). +# +# THE HOUSEHOLD MUST BRING A PAID USENET PROVIDER - the articles live on a provider's servers and +# access is a subscription. Nothing here configures one and nothing can: the server, port, username +# and password are the household's own. It is in the prerequisites, which the install dialog shows. +# +# FIRST ADMIN: class 1 - the image reads NZBGET_USER and NZBGET_PASS at every start and writes them +# into the control settings, so the generated password is re-applied rather than seeded once. Left +# unset, NZBGet starts with the documented default `nzbget` / `tegbzn6789` that every Usenet guide +# carries. + +# --- Display info (shown on dashboard) --- +display_name: "NZBGet" +description: "Usenet letöltő, nagyon kevés erőforrásból" +category: "media" +subdomain: "nzbget" +slug: "nzbget" +# 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). Written by +# scripts/upgrade-test.py --write-ladder together with the ladder entry. +catalog_since: "2026-10-12" + +# --- Resource hints (displayed on deploy screen) --- +# Measured on the bench 2026-10-12 (LXC 9401): 5.9 MiB idle, anon 6.3 MiB, 0 oom_kill. The limit is +# 512M because this template turns the article cache on at 100 MB (the app warns about it being off) +# and because unrar and par2 repair run inside the same container after a download. +resources: + mem_request: "64M" + mem_limit: "512M" + pi_compatible: true + needs_hdd: true + +# --- Backup classification --- +backup: + volumes: + - name: nzbget_config + class: important # the settings, the provider entry AND the queue + userdata: + - path: media/nzbget + class: optional # the downloads themselves - large, and fetchable again +# Why the queue is in the VOLUME and not on the drive: the app ships with MainDir=/downloads, which +# puts the queue, the nzb files, the temp dir and the log on the household's drive - the place this +# very file classifies "optional, fetchable again". The compose moves them to /config/data so that +# the one thing a restore must bring back (what was downloading, and what is left to do) is in the +# unit that gets backed up. Measured on the bench 2026-10-12. + +# --- Customer-facing folder annotation (R-75) --- +data_paths: + - path: media/nzbget + root: userdata + role: library + label: "Letöltések (NZBGet)" + +# --- 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: "nzbget" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: HDD_PATH + label: "Letöltések meghajtója" + type: path + required: true + placeholder: "/mnt/felhom-drives/hdd_1" + locked_after_deploy: true + description: "A meghajtó, amelyre a letöltések kerülnek" + + - env_var: NZB_ADMIN_PASSWORD + label: "Belépési jelszó" + type: password + generate: "password:24" + description: "A webes felület jelszava (felhasználónév: admin). A telepítéskor készül, utána a felületen változtathatod meg." + locked_after_deploy: true + +# --- Customer-facing info --- +app_info: + tagline: "Usenet letöltés egyszerűen, alig észrevehető erőforrásból" + default_creds: "admin / (telepítéskor generált jelszó)" + docs_url: "https://nzbget.com/" + use_cases: + - 'NZB fájlok letöltése a saját meghajtódra, a letöltés utáni kicsomagolással és javítással együtt' + - 'A Radarr, a Sonarr és a Jellyseerr ide adhatja le a munkát: ez a Usenet oldali letöltő' + - 'A kész fájlokat a fájlböngészőben és a médialejátszódban is látod' + - 'Nagyon keveset fogyaszt: kisebb gépen is elfér a többi alkalmazás mellett. Ha a teljes felületet szeretnéd, a SABnzbd az erősebb választás' + first_steps: + - 'Nyisd meg az nzbget.DOMAIN címet, és lépj be az admin névvel és a telepítéskor kapott jelszóval' + - 'Add meg a Usenet szolgáltatód adatait a Settings / News-Servers oldalon (szerver, port, felhasználónév, jelszó). Enélkül a letöltés nem indul el' + - 'A kész letöltések a meghajtódon, a media/nzbget/completed mappába kerülnek' + - 'Csak olyan tartalmat tölts le, amihez jogod van' + prerequisites: + - 'FIZETŐS USENET SZOLGÁLTATÁS KELL hozzá, amit neked kell hoznod: a tartalom a szolgáltató szerverein van, és az elérése előfizetés. Enélkül az alkalmazás elindul és bejelentkezni is tudsz, de letölteni nem' + - 'NZB fájlokat vagy indexelő szolgáltatást is te adsz hozzá - ezeket sem tartalmazza az alkalmazás' + - 'Befelé irányuló portot nem igényel: a Usenet letöltés kizárólag kimenő kapcsolatokat használ, így a doboz zárt portjai itt semmit nem vesznek el' + +# --- Controller health probe (dials what the compose healthcheck dials) --- +healthcheck: + checks: + - type: http + port: 6789 + +i18n: + en: + description: 'A Usenet downloader that barely uses the machine' + app_info: + tagline: 'Simple Usenet downloading, on almost no resources' + default_creds: 'admin / (the password generated at install time)' + use_cases: + - 'Download NZB files to your own drive, with the repair and unpacking that follows' + - 'Radarr, Sonarr and Jellyseerr can hand the job to it: this is the Usenet-side downloader' + - 'You see the finished files in the file browser and in your media player' + - 'It uses very little: it fits on a small machine beside everything else. If you want the full interface, SABnzbd is the stronger choice' + first_steps: + - 'Open nzbget.DOMAIN and sign in as admin with the password generated at install' + - 'Enter your Usenet provider under Settings / News-Servers (server, port, username, password). Without it nothing will download' + - 'Finished downloads land on your drive, in the media/nzbget/completed folder' + - 'Download only what you have the right to' + prerequisites: + - 'IT NEEDS A PAID USENET SERVICE, which you bring yourself: the content lives on the provider''s servers and reaching it is a subscription. Without one the app starts and you can sign in, but nothing will download' + - 'NZB files, or an indexer service, are yours to add too - the app contains neither' + - 'It needs no inbound port: Usenet downloading makes outgoing connections only, so the box''s closed ports cost you nothing here' + data_paths: + - path: 'media/nzbget' + label: 'Downloads (NZBGet)' + deploy_fields: + - env_var: DOMAIN + label: 'Domain' + description: 'The server domain name' + - env_var: SUBDOMAIN + label: 'Subdomain' + description: 'The subdomain this app answers on' + - env_var: HDD_PATH + label: 'Downloads drive' + description: 'The drive the downloads go to' + placeholder: '/mnt/felhom-drives/hdd_1' + - env_var: NZB_ADMIN_PASSWORD + label: 'Sign-in password' + description: 'The web interface password (username: admin). Generated at install; change it in the app afterwards.' + +# 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": {"nzbget": "nzbgetcom/nzbget:v26.2"}, "to": {"nzbget": "nzbgetcom/nzbget:v26.3"}, "digest": {"nzbget": "sha256:f451d98066cbc0c108146420a61a60f7638de50e067738951461e0105eeaa56d"}, "verdict": "proven", "tested_at": "2026-10-12T20:18:52Z", "harness_version": 5, "evidence": "felhom.eu/documentation/audits/usenet-2026-10-12/nzbget-bench/MV-nzbget", "box_evidence": "felhom.eu/documentation/audits/usenet-2026-10-12/box/nzbget/box-verdict-nzbget.json", "memory_peak_pct": 0.9, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 1.7} diff --git a/templates/nzbget/docker-compose.yml b/templates/nzbget/docker-compose.yml new file mode 100644 index 0000000..478681d --- /dev/null +++ b/templates/nzbget/docker-compose.yml @@ -0,0 +1,136 @@ +# NZBGet - Usenet letöltő, nagyon kevés erőforrásból +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: none (its settings and queue are files in the config volume) +# RAM: ~6M idle (mem_limit: 512M, of which 100M is the article cache) | Pi-compatible: Yes (amd64, armv7, arm64) +# +# WHY A USENET CLIENT AT ALL (operator request 2026-10-12, R-988): Radarr, Sonarr and Jellyseerr can +# hand a job to a Usenet client exactly as they hand one to a torrent client, and until today the +# catalog had no Usenet client. NZBGet is the light one of the pair; SABnzbd is the full one. +# +# THE HOUSEHOLD MUST BRING A PAID USENET PROVIDER. Usenet is not a peer-to-peer swarm: the articles +# live on a provider's servers and access is a subscription. No provider is configured here and none +# can be - the server, port, username and password are the household's own. The app page says so +# before the install, and the first step after it is entering them. With no provider the app starts, +# serves its page and says so itself: "[ERROR] No servers are configured". +# +# NO INBOUND PORT NEEDED, and that is not a compromise here: a Usenet client only ever makes OUTGOING +# connections (NNTP, usually 563 with TLS). The torrent pair loses incoming peers behind the box's +# closed ports; this app loses nothing at all. +# +# FIRST ADMIN (class 1 - generated by us at install, FIRST-ADMIN.md). The image passes +# `-o ControlUsername=... -o ControlPassword=...` from NZBGET_USER/NZBGET_PASS on the command line at +# EVERY start (read in its entrypoint on the bench 2026-10-12), so the generated password is +# re-applied rather than seeded once. Measured: the documented default `nzbget / tegbzn6789` is +# refused (401), the generated password is accepted (200), six wrong tries lock nobody out. +# +# THE SEEDED CONFIG, and why each line is there. The image copies its shipped nzbget.conf on the +# first start and that file is wrong for this box in five ways, every one measured on the bench: +# * ControlPassword - the shipped file carries the WELL-KNOWN DEFAULT in plain text. The command +# line overrides it for the running app, so the default does not work - but the +# file keeps advertising it, and the app's OWN CLI (`nzbget -L`, client mode) +# reads the FILE and so cannot talk to its own server ("No response or invalid +# response", measured). Writing the generated password into the file fixes both. +# NOTE the variable names: the seed reads NZBGET_USER/NZBGET_PASS, the ones +# that exist INSIDE the container. NZB_ADMIN_PASSWORD is a compose variable +# and is empty there - the first attempt used it and seeded an EMPTY password +# (measured on the bench: the app stayed protected, because the command line +# wins, and the app's own CLI stayed broken, which is how it was noticed). +# * MainDir - shipped `/downloads`, which puts the QUEUE, the nzb files, the temp dir and +# the log on the household's DRIVE. The queue is app state: it belongs on the +# NVMe volume that gets backed up, not in the folder classified "optional, +# fetchable again". Only the finished files and the half-assembled ones stay on +# the drive. +# * UpdateCheck - shipped `stable`, which asks nzbget.com for new versions. The box updates +# apps itself from the catalog, so the app never needs to look. +# * ArticleCache - shipped `0`, and the app warns about it itself on every start +# ("'ArticleCache' is disabled. Enabling it is recommended to reduce disk +# fragmentation"). 100 MB, inside the 512M limit. +# * WriteBuffer - shipped `0`, and the app warns about that too ("often too small and +# inefficient"). 1 MB. +# The seed happens ONCE, only when the app has no config of its own, so a household that changes any +# of it keeps the change across a restart and an update. +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# SUBDOMAIN - The name this app answers on +# HDD_PATH - The drive the downloads go to +# NZB_ADMIN_PASSWORD - generated at install (deploy_fields), re-applied at every start +# +# Folders: the finished downloads in ${USERDATA_PATH}/media/nzbget/completed and the half-assembled +# ones in .../intermediate (the household sees both in the file browser); the settings, the queue and +# the nzb files in the named volume nzbget_config (NVMe). + +services: + nzbget: + image: nzbgetcom/nzbget:v26.3 + container_name: nzbget + restart: unless-stopped + environment: + - TZ=Europe/Budapest + - PUID=1000 + - PGID=1000 + - NZBGET_USER=admin + - NZBGET_PASS=${NZB_ADMIN_PASSWORD} + entrypoint: + - /bin/sh + - -c + - | + CONF=/config/nzbget.conf + mkdir -p /config/data + if [ ! -f "$$CONF" ]; then + cp /app/nzbget/share/nzbget/nzbget.conf "$$CONF" + sed -i \ + -e "s|^MainDir=.*|MainDir=/config/data|" \ + -e "s|^DestDir=.*|DestDir=/downloads/completed|" \ + -e "s|^InterDir=.*|InterDir=/downloads/intermediate|" \ + -e "s|^NzbDir=.*|NzbDir=/config/data/nzb|" \ + -e "s|^QueueDir=.*|QueueDir=/config/data/queue|" \ + -e "s|^TempDir=.*|TempDir=/config/data/tmp|" \ + -e "s|^ScriptDir=.*|ScriptDir=/config/data/scripts|" \ + -e "s|^LogFile=.*|LogFile=/config/data/nzbget.log|" \ + -e "s|^UpdateCheck=.*|UpdateCheck=none|" \ + -e "s|^ArticleCache=.*|ArticleCache=100|" \ + -e "s|^WriteBuffer=.*|WriteBuffer=1024|" \ + -e "s|^ControlUsername=.*|ControlUsername=$${NZBGET_USER}|" \ + -e "s|^ControlPassword=.*|ControlPassword=$${NZBGET_PASS}|" \ + "$$CONF" + fi + # The image's own entrypoint chowns /config and /downloads, but neither recursively, so the + # state directory this template introduces is handed over here. + chown -R 1000:1000 /config/data 2>/dev/null || true + exec /entrypoint.sh + volumes: + - nzbget_config:/config + - ${USERDATA_PATH}/media/nzbget:/downloads + networks: + - traefik-public + deploy: + resources: + limits: + memory: 512M + healthcheck: + # THE IMAGE HAS NO curl (measured on the bench 2026-10-12: only busybox wget, python3 and + # openssl), so the curl families in REUSE.md do not apply - this is the BusyBox/wget one. + # Proven in both directions on the bench: rc 0 against the running app, rc 1 against a port + # nothing serves. It depends on the app's shipped `AuthorizedIP=127.0.0.1`, which lets a + # request from inside the container through without a password; that line is left alone and the + # probe going healthy is what pins it. + test: ["CMD", "wget", "-q", "-O", "/dev/null", "--tries=1", "http://127.0.0.1:6789/"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 30s + labels: + - "traefik.enable=true" + - "traefik.http.routers.nzbget.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.nzbget.entrypoints=websecure" + - "traefik.http.routers.nzbget.tls=true" + - "traefik.http.routers.nzbget.tls.certresolver=letsencrypt" + - "traefik.http.services.nzbget.loadbalancer.server.port=6789" + +volumes: + nzbget_config: + +networks: + traefik-public: + external: true diff --git a/templates/sabnzbd/.felhom.yml b/templates/sabnzbd/.felhom.yml new file mode 100644 index 0000000..b8c4abf --- /dev/null +++ b/templates/sabnzbd/.felhom.yml @@ -0,0 +1,193 @@ +# ============================================================================= +# .felhom.yml - App metadata for felhom-controller +# ============================================================================= +# SABnzbd - lscr.io/linuxserver/sabnzbd. Onboarding record: onboarding/sabnzbd.md. +# The full Usenet client beside NZBGet's light one (operator request 2026-10-12, R-988). +# +# THE HOUSEHOLD MUST BRING A PAID USENET PROVIDER - the articles live on a provider's servers and +# access is a subscription. Nothing here configures one and nothing can: the server, port, username +# and password are the household's own. It is in the prerequisites, which the install dialog shows. +# +# THE IMAGE IS NOT THE PROJECT'S OWN - the second such template (the first was Transmission, +# operator ruling 2026-10-12). SABnzbd publishes no Docker image at all. +# +# FIRST ADMIN: class 1. SABnzbd has NO login on a fresh install and no environment variable to set +# one, so the compose entrypoint seeds its `sabnzbd.ini` with the generated login, the generated API +# key, the Host allow-list and `inet_exposure = 5` ("web UI with login for external"), which is the +# only setting of the four that CANNOT be set any other way - it is `protect=True`, so the app's own +# API refuses it. after_install reads the three that the API does expose back out of the running app. + +# --- Display info (shown on dashboard) --- +display_name: "SABnzbd" +description: "Usenet letöltő teljes felülettel" +category: "media" +subdomain: "usenet" +slug: "sabnzbd" +# 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). Written by +# scripts/upgrade-test.py --write-ladder together with the ladder entry. +catalog_since: "2026-10-12" + +# --- Resource hints (displayed on deploy screen) --- +# PLACEHOLDER until the bench measures it - mem_limit must equal the compose limit (gate +# check-mem-limit-sum.py) and mem_request is the measured steady state. +resources: + mem_request: "192M" + mem_limit: "1024M" + pi_compatible: true + needs_hdd: true + +# --- Backup classification --- +backup: + volumes: + - name: sabnzbd_config + class: important # the settings, the provider entry, the queue and the history + userdata: + - path: media/usenet + class: optional # complete/ and incomplete/ - large, and fetchable again + +# --- Customer-facing folder annotation (R-75) --- +data_paths: + - path: media/usenet + root: userdata + role: library + label: "Letöltések (SABnzbd)" + +# --- 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: "usenet" + required: true + locked_after_deploy: true + description: "Az alkalmazás aldomainje" + + - env_var: HDD_PATH + label: "Letöltések meghajtója" + type: path + required: true + placeholder: "/mnt/felhom-drives/hdd_1" + locked_after_deploy: true + description: "A meghajtó, amelyre a letöltések kerülnek" + + - env_var: SAB_ADMIN_PASSWORD + label: "Belépési jelszó" + type: password + generate: "password:24" + description: "A webes felület jelszava (felhasználónév: admin). A telepítéskor készül, utána a felületen változtathatod meg." + locked_after_deploy: true + + - env_var: SAB_API_KEY + label: "API kulcs" + type: secret + generate: "hex:32" + description: "Ezzel a kulccsal kapcsolódnak hozzá a letöltést kérő alkalmazások (Radarr, Sonarr, Jellyseerr). A telepítéskor készül; az alkalmazás beállításaiban megtalálod." + locked_after_deploy: true + +# --- Customer-facing info --- +app_info: + tagline: "Usenet letöltés teljes felülettel: sorok, kategóriák, automatikus kicsomagolás" + default_creds: "admin / (telepítéskor generált jelszó)" + docs_url: "https://sabnzbd.org/" + use_cases: + - 'NZB fájlok letöltése a saját meghajtódra, a letöltés utáni kicsomagolással és javítással együtt' + - 'A Radarr, a Sonarr és a Jellyseerr ide adhatja le a munkát: ez a Usenet oldali letöltő' + - 'A kész fájlokat a fájlböngészőben és a médialejátszódban is látod' + - 'Ha egyszerűbb felületet és még kisebb fogyasztást szeretnél, az NZBGet a másik választás' + first_steps: + - 'Nyisd meg az usenet.DOMAIN címet, és lépj be az admin névvel és a telepítéskor kapott jelszóval' + - 'Add meg a Usenet szolgáltatód adatait a Beállítások / Szerverek oldalon (szerver, port, felhasználónév, jelszó). Enélkül a letöltés nem indul el' + - 'A kész letöltések a meghajtódon, a media/usenet/complete mappába kerülnek' + - 'Csak olyan tartalmat tölts le, amihez jogod van' + prerequisites: + - 'FIZETŐS USENET SZOLGÁLTATÁS KELL hozzá, amit neked kell hoznod: a tartalom a szolgáltató szerverein van, és az elérése előfizetés. Enélkül az alkalmazás elindul és bejelentkezni is tudsz, de letölteni nem' + - 'NZB fájlokat vagy indexelő szolgáltatást is te adsz hozzá - ezeket sem tartalmazza az alkalmazás' + - 'Befelé irányuló portot nem igényel: a Usenet letöltés kizárólag kimenő kapcsolatokat használ, így a doboz zárt portjai itt semmit nem vesznek el' + +# --- After a FRESH install: read the seeded settings back out of the running app --- +# A value written into a config file the APP owns is only a request (the qBittorrent lesson, +# 2026-10-12: a seeded UPnP flag was ignored and a seeded host list was rewritten down to one entry). +# So this asks the RUNNING app what it actually has: the generated login name, the exposure level +# that makes an external visitor log in, and the public name in the Host allow-list. The marker is +# printed only if all three answer, and the last line proves the app also admits the name the +# controller's health probe and the *arr apps dial it by. `local_ranges` is read back too, because it +# is the setting that decides whether the login applies at all (see the compose header). +# THE GREPS ARE -E AND THE SPACE IS OPTIONAL: SABnzbd's API answers `"key":value` with no space +# after the colon, and the first version of this command expected one. It therefore never printed +# its marker, the install HELD, and the box kept the app closed with "this app is waiting for its +# first setup" - measured on 9202, 2026-10-12, which is exactly what a readback is for. +after_install: + service: sabnzbd + env: [SAB_API_KEY, SUBDOMAIN, DOMAIN] + command: + - /bin/sh + - -c + - > + curl -s 'http://127.0.0.1:8080/api?mode=get_config§ion=misc&output=json&apikey=${SAB_API_KEY}' > /tmp/cfg.json && + grep -qE '"username": ?"admin"' /tmp/cfg.json && + grep -qE '"inet_exposure": ?5' /tmp/cfg.json && + grep -qE '"local_ranges": ?\["127.0.0.1"' /tmp/cfg.json && + grep -q '${SUBDOMAIN}.${DOMAIN}' /tmp/cfg.json && + curl -s -o /dev/null -w '%{http_code}' -H 'Host: sabnzbd' 'http://127.0.0.1:8080/api?mode=version' | grep -qE '200|401|403' && + echo FELHOM_AFTER_INSTALL_OK + success: FELHOM_AFTER_INSTALL_OK + +# --- Controller health probe (dials what the compose healthcheck dials) --- +healthcheck: + checks: + - type: http + port: 8080 + +i18n: + en: + description: 'A full-featured Usenet downloader' + app_info: + tagline: 'Usenet downloading with the full interface: queues, categories, automatic unpacking' + default_creds: 'admin / (the password generated at install time)' + use_cases: + - 'Download NZB files to your own drive, with the repair and unpacking that follows' + - 'Radarr, Sonarr and Jellyseerr can hand the job to it: this is the Usenet-side downloader' + - 'You see the finished files in the file browser and in your media player' + - 'If you want a simpler interface and even less memory, NZBGet is the other choice' + first_steps: + - 'Open usenet.DOMAIN and sign in as admin with the password generated at install' + - 'Enter your Usenet provider under Settings / Servers (server, port, username, password). Without it nothing will download' + - 'Finished downloads land on your drive, in the media/usenet/complete folder' + - 'Download only what you have the right to' + prerequisites: + - 'IT NEEDS A PAID USENET SERVICE, which you bring yourself: the content lives on the provider''s servers and reaching it is a subscription. Without one the app starts and you can sign in, but nothing will download' + - 'NZB files, or an indexer service, are yours to add too - the app contains neither' + - 'It needs no inbound port: Usenet downloading makes outgoing connections only, so the box''s closed ports cost you nothing here' + data_paths: + - path: 'media/usenet' + label: 'Downloads (SABnzbd)' + deploy_fields: + - env_var: DOMAIN + label: 'Domain' + description: 'The server domain name' + - env_var: SUBDOMAIN + label: 'Subdomain' + description: 'The subdomain this app answers on' + - env_var: HDD_PATH + label: 'Downloads drive' + description: 'The drive the downloads go to' + placeholder: '/mnt/felhom-drives/hdd_1' + - env_var: SAB_ADMIN_PASSWORD + label: 'Sign-in password' + description: 'The web interface password (username: admin). Generated at install; change it in the app afterwards.' + - env_var: SAB_API_KEY + label: 'API key' + description: 'The key the apps that request downloads (Radarr, Sonarr, Jellyseerr) connect with. Generated at install; you will find it in the app settings.' + +# 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": {"sabnzbd": "lscr.io/linuxserver/sabnzbd:version-5.1.2"}, "to": {"sabnzbd": "lscr.io/linuxserver/sabnzbd:version-5.1.3"}, "digest": {"sabnzbd": "sha256:382f9bd4e3f6df2abf7bcc92edada0c5bd4d4ff26eb5416f257ac54989464fa1"}, "verdict": "proven", "tested_at": "2026-10-12T20:43:48Z", "harness_version": 5, "evidence": "felhom.eu/documentation/audits/usenet-2026-10-12/sabnzbd-bench/MV-sabnzbd", "box_evidence": "felhom.eu/documentation/audits/usenet-2026-10-12/box/sabnzbd/box-verdict-sabnzbd.json", "memory_peak_pct": 6.3, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 7.1} diff --git a/templates/sabnzbd/docker-compose.yml b/templates/sabnzbd/docker-compose.yml new file mode 100644 index 0000000..e96cab1 --- /dev/null +++ b/templates/sabnzbd/docker-compose.yml @@ -0,0 +1,158 @@ +# SABnzbd - Usenet letöltő, teljes felülettel +# Domain: ${SUBDOMAIN}.${DOMAIN} +# Database: none (its settings, queue and history are files in the config volume) +# RAM: measured on the bench (mem_limit: 1024M) | Pi-compatible: Yes (amd64, arm64) +# +# WHY A USENET CLIENT AT ALL (operator request 2026-10-12, R-988): Radarr, Sonarr and Jellyseerr can +# hand a job to a Usenet client exactly as they hand one to a torrent client, and until today the +# catalog had no Usenet client. SABnzbd is the full one of the pair; NZBGet is the light one. +# +# THE HOUSEHOLD MUST BRING A PAID USENET PROVIDER. Usenet is not a peer-to-peer swarm: the articles +# live on a provider's servers and access is a subscription. No provider is configured here and none +# can be - the server, port, username and password are the household's own. The app page says so +# before the install, and the first step after it is entering them. +# +# NO INBOUND PORT NEEDED, and that is not a compromise here: a Usenet client only ever makes OUTGOING +# connections (NNTP, usually 563 with TLS). The torrent pair loses incoming peers behind the box's +# closed ports; this app loses nothing at all. +# +# THE IMAGE IS NOT THE PROJECT'S OWN - the second such template in this catalog (the first was +# Transmission, operator ruling 2026-10-12). SABnzbd publishes no Docker image of its own; +# `lscr.io/linuxserver/sabnzbd` is the maintained community one (version-5.1.3, built from the +# upstream release, versioned tags, amd64 + arm64). The onboarding record carries this as a named +# exception with its reason. +# +# FIRST ADMIN (class 1 - generated by us at install, FIRST-ADMIN.md). SABnzbd HAS NO LOGIN OF ITS OWN +# on a fresh install: whoever opens the page first owns the app, and its API hands out everything. +# The image offers no environment variable for this, so the entrypoint seeds the app's own +# `sabnzbd.ini` before the first start with: +# * username + password - the generated login. A plaintext value IS accepted: SABnzbd's +# `encode_password` only encodes a value containing `#` or a +# non-printable character (read in sabnzbd/config.py, 2026-10-12), +# and our generator is letters and digits. +# * inet_exposure = 5 - "webui with login for external". **This one can ONLY be set in the +# file**: it is declared `protect=True` (sabnzbd/cfg.py), which means +# the API refuses to set it. +# * local_ranges = 127.0.0.1 - and THIS is what makes inet_exposure mean anything. SABnzbd +# decides whether a visitor needs the login from the CLIENT ADDRESS: +# `login_bypassed() = inet_exposure == 5 and check_access(6)`, and +# `check_access` for a type above the exposure level is just +# `is_loopback_addr(ip) or is_local_addr(ip)` (sabnzbd/security.py). +# With local_ranges UNSET, `is_local_addr` falls back to SABnzbd's +# built-in LAN_RANGES - which contain 172.16.0.0/12 (sabnzbd/misc.py). +# Behind traefik every request arrives from 172.18.x, so the login is +# bypassed for EVERYONE: measured on the bench 2026-10-12, where a +# request with no credentials at all answered 200 and served the +# Quick-Start Wizard. Setting the list REPLACES those defaults, so +# nothing a proxy can present is local and the web UI asks every +# visitor to log in. The same list feeds `xff_trusted_networks`, so it +# also stops the app trusting an X-Forwarded-For header - which the +# tunnel's chain can carry client-written (R-753, and this app is in +# the "never trust the leftmost entry" family). +# Unaffected: the API (its access_type is below the exposure level, so +# Radarr and Sonarr keep working with the key) and the container's own +# healthcheck (127.0.0.1 is loopback). +# * host_whitelist - the public name, the container name (the controller's probe and the +# *arr apps dial that) and the local names. NOTE, read in +# sabnzbd/interface.py and measured: the Host check is SKIPPED +# entirely while a login is configured (`check_hostname` returns +# early if `login_configured()`), so on this box the list is inert +# insurance - it only starts working if a household removes the +# login. It is seeded because it costs nothing and covers that case. +# * api_key - generated too, so the key Radarr/Sonarr use is not one the app +# minted on its own and printed in its config for the first visitor. +# +# Environment variables: +# DOMAIN - Your domain (e.g., demo-felhom.eu) +# SUBDOMAIN - The name this app answers on +# HDD_PATH - The drive the downloads go to +# SAB_ADMIN_PASSWORD - generated at install (deploy_fields), seeded before the first start +# SAB_API_KEY - generated at install, the key the *arr apps authenticate with +# +# Folders: one folder on the drive, ${USERDATA_PATH}/media/usenet, with the app's own complete/ and +# incomplete/ inside it (the household sees it in the file browser); the settings, the queue and the +# history in the named volume sabnzbd_config (NVMe). + +services: + sabnzbd: + image: lscr.io/linuxserver/sabnzbd:version-5.1.3 + container_name: sabnzbd + restart: unless-stopped + environment: + - TZ=Europe/Budapest + - PUID=1000 + - PGID=1000 + - UMASK=022 + - SAB_ADMIN_PASSWORD=${SAB_ADMIN_PASSWORD} + - SAB_API_KEY=${SAB_API_KEY} + - SAB_PUBLIC_HOST=${SUBDOMAIN}.${DOMAIN} + # The seed happens ONCE, before the app's first start, and only when the app has no config of its + # own - a household that changes any of this in the app keeps its change across a restart and an + # update. What the app does with the file afterwards is its business; `after_install` reads the + # three settings that matter back out of the running app, so a value the app ignores or rewrites + # cannot pass unnoticed (the qBittorrent lesson of 2026-10-12). + entrypoint: + - /bin/sh + - -c + - | + CONF=/config/sabnzbd.ini + if [ ! -f "$$CONF" ]; then + mkdir -p /config + { + printf '%s\n' '[misc]' + printf '%s\n' 'host = 0.0.0.0' + printf '%s\n' 'port = 8080' + printf '%s\n' 'username = admin' + printf 'password = %s\n' "$$SAB_ADMIN_PASSWORD" + printf 'api_key = %s\n' "$$SAB_API_KEY" + printf '%s\n' 'inet_exposure = 5' + printf '%s\n' 'local_ranges = 127.0.0.1' + printf 'host_whitelist = %s, sabnzbd, localhost, 127.0.0.1\n' "$$SAB_PUBLIC_HOST" + printf '%s\n' 'download_dir = /downloads/incomplete' + printf '%s\n' 'complete_dir = /downloads/complete' + printf '%s\n' 'check_new_rel = 0' + printf '%s\n' 'auto_browser = 0' + } > "$$CONF" + chmod 600 "$$CONF" + fi + exec /init + volumes: + - sabnzbd_config:/config + # ONE bind for the household's downloads, with the app's own two folders inside it: + # complete/ for the finished files and incomplete/ for the ones still being assembled. Two + # separate binds were REFUSED by the controller (measured on 9202, 2026-10-12): a backup class + # and a data_paths annotation must name a path the compose actually binds, and they named the + # parent. The incomplete set stays on the drive deliberately - it is large, it churns, and it + # is worthless on its own, so it has no business on the NVMe volume that gets backed up. + - ${USERDATA_PATH}/media/usenet:/downloads + networks: + - traefik-public + deploy: + resources: + limits: + memory: 1024M + healthcheck: + # `/` answers 303 (it redirects into the interface), so a probe that accepts only 200 or 401 + # can never pass - measured on the bench 2026-10-12, where exactly that happened. The API's + # version call is the stable one: 200 while the request counts as local, 401 or 403 once it + # does not, and all three mean the web server is answering, which is the question a liveness + # probe asks. Proven in both directions on the bench. + test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' 'http://127.0.0.1:8080/api?mode=version' | grep -qE '^(200|401|403)$$'"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 60s + labels: + - "traefik.enable=true" + - "traefik.http.routers.sabnzbd.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + - "traefik.http.routers.sabnzbd.entrypoints=websecure" + - "traefik.http.routers.sabnzbd.tls=true" + - "traefik.http.routers.sabnzbd.tls.certresolver=letsencrypt" + - "traefik.http.services.sabnzbd.loadbalancer.server.port=8080" + +volumes: + sabnzbd_config: + +networks: + traefik-public: + external: true