From 9ef06a7a891f03b97706f38482e3f6990ebc4251 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Wed, 28 Oct 2026 16:57:09 +0100 Subject: [PATCH] Seerr big step: Jellyseerr 2.7.3 -> Seerr v3.5.1, a definition step (init, /app/config to UID 1000, Seerr as node); bench + box + undo proven; Seerr fixture with a throwaway Jellyfin (felhom.eu R-1317) --- CHANGELOG.md | 19 +++++++++ REPORT.md | 16 ++++---- scripts/upgrade_fixtures_box.py | 65 ++++++++++++++++++++++++++++++ templates/seerr/.felhom.yml | 10 ++++- templates/seerr/docker-compose.yml | 10 ++++- 5 files changed, 110 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad92fec..7452a4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +## 2026-10-28 (afternoon, attended) — Seerr's big step: Jellyseerr 2.7.3 → Seerr v3.5.1, a definition step (felhom.eu R-1317) + +A NORMAL ladder step whose TO is a whole DEFINITION (the image name, the start command and the user change), pushed on +the operator's yes at the Seerr STOP. No box runs Seerr. v3.5.1 fixes GHSA-rc4w and GHSA-mc6w (R-1317) and carries +Node.js 22.23.4 (HTTP2Shell, read from the image). +- **The definition:** `ghcr.io/seerr-team/seerr:v3.5.1`, `init: true` (upstream's requirement), and a start that runs as + root only to hand `/app/config` to UID 1000 (a Jellyseerr volume is owned by root), then runs Seerr as `node` through + busybox `su` — smoke-tested on the bench first (Seerr's process is `node`; its settings migration ran). The + `upstream:` line names the new image. +- **Fixture** (`scripts/upgrade_fixtures_box.py` `Seerr`): Seerr has no account until a media server signs its first user + in, so the fixture brings a throwaway Jellyfin (`felhom-drill-jellyfin`, removed after each run), signs the admin in + through Seerr's own `/api/v1/auth/jellyfin`, stores an application title; the read-back finds the title and signs in + again (a wrong password refused). +- **Proof:** bench `proven` — and its abort is `starts-data-gone`: Jellyseerr on Seerr's converted data starts with the + seed gone, so only the box's undo copy can bring it back; box 9202 `proven` (78 s, soak peak 43 %); **the undo proven + on 9202**: v3.5.1 started, ran its migrator, failed its check; the box put 2.7.3 back in 12 s and the title and the + sign-in read back. +- `guide-version` WARNs (checked against 2.7.3; the guide still says „Jellyseerr" — no browser here to re-check). + ## 2026-10-28 (afternoon, attended) — Homepage's big step v1.13.2 → v2.7.0 (felhom.eu R-1320) A NORMAL ladder step (a new main version), pushed on the operator's yes at the Homepage STOP. No box runs Homepage. diff --git a/REPORT.md b/REPORT.md index 40483e0..78e1087 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,12 +1,14 @@ -# REPORT — 2026-10-28: Homepage's big step v1.13.2 → v2.7.0 (felhom.eu R-1320) +# REPORT — 2026-10-28: Seerr's big step, Jellyseerr 2.7.3 → Seerr v3.5.1 (felhom.eu R-1317) -**What changed.** Homepage v2.7.0 as a normal ladder step (its notice fixed; Node.js 24.22.1). Pushed on the operator's -yes. No box runs Homepage. (Today also: Wanderer `1825247`, Termix `e0b9594` + `589c957`.) +**What changed.** A definition step: the new image `ghcr.io/seerr-team/seerr:v3.5.1`, `init: true`, and a start that hands +`/app/config` to UID 1000 and then runs Seerr as `node`. A Seerr fixture that brings a throwaway Jellyfin for the first +sign-in. Pushed on the operator's yes. No box runs Seerr. (Today also: Wanderer `1825247`, Termix `e0b9594` + `589c957`, +Homepage `1a254d4`.) -**Proof.** Bench `proven` with the abort; box 9202 `proven` (600 s soak); the undo proven on 9202. The fixture reads the -dashboard's own services and bookmarks before and after (Homepage stores no household data through any route). -Evidence: felhom.eu `documentation/audits/dockerhub-bigsteps-2026-10-28/homepage/`. +**Proof.** Bench `proven` (its abort loses the seed: the converted data does not go back to Jellyseerr); box 9202 +`proven` (600 s soak); the undo proven on 9202 — the box's undo copy brings the data back. Evidence: felhom.eu +`documentation/audits/dockerhub-bigsteps-2026-10-28/seerr/`. -**Gates.** `catalog_gates.py --fast homepage`: all OK (guide-version WARN). +**Gates.** `catalog_gates.py --fast seerr`: all OK (guide-version WARN). Findings go to felhom.eu `OPEN-ITEMS.md` (R-391). diff --git a/scripts/upgrade_fixtures_box.py b/scripts/upgrade_fixtures_box.py index 68089fb..38b738a 100644 --- a/scripts/upgrade_fixtures_box.py +++ b/scripts/upgrade_fixtures_box.py @@ -1706,6 +1706,70 @@ class Homepage: return ok +# ============================================================================================= +class Seerr: + """Seerr / Jellyseerr has no account of its own until a MEDIA SERVER signs its first user in, so the fixture brings + one: a throwaway `jellyfin/jellyfin:10.11.11` container on the network Seerr is on (`felhom-drill-jellyfin`, the + fixture's own — removed by the session after the run), its first user made through Jellyfin's own `/Startup/User` + wizard. Then Seerr's own routes, the ones its setup page calls (read in the v2.7.3 and v3.5.1 sources 2026-10-28): + `POST /api/v1/auth/jellyfin` with the Jellyfin address signs the first (admin) user in, `POST /api/v1/settings/main` + stores an application title. Read-back: `GET /api/v1/settings/public` names the title, the user signs in again + (the server address is stored by then), and a wrong password is refused.""" + sub = "seerr" + route = "a throwaway Jellyfin, then POST /api/v1/auth/jellyfin, POST /api/v1/settings/main, GET /api/v1/settings/public" + JF = "felhom-drill-jellyfin" + + def _signin(self, w, sub, body): + rc, code, out = w.app_curl(sub, "/api/v1/auth/jellyfin", "-D", "-", "-H", "Content-Type: application/json", + data=json.dumps(body), method="POST") + return code, _set_cookies(out) + + def seed(self, w, sub, say): + if not w.wait_app(sub, "/api/v1/status", want=("200",), tries=72): + return None + net = (w.guest("docker inspect seerr -f '{{range $k, $v := .NetworkSettings.Networks}}{{$k}} {{end}}'").split() + or [""])[0] + u, pw = "drill" + secrets.token_hex(4), "Drill-" + secrets.token_hex(8) + jf = self.JF + out = w.guest(f"""docker rm -f {jf} >/dev/null 2>&1 +docker run -d --name {jf} --network {net} jellyfin/jellyfin:10.11.11 >/dev/null || exit 1 +# /System/Info/Public answers while the server still starts; the wizard answers 503 until it is up (bench 2026-10-28) +for i in $(seq 1 100); do [ "$(docker exec {jf} curl -s -o /dev/null -w '%{{http_code}}' http://127.0.0.1:8096/Startup/User)" = 200 ] && break; sleep 3; done +docker exec {jf} curl -s -o /dev/null -w 'user=%{{http_code}} ' -X POST -H 'Content-Type: application/json' --data '{json.dumps({"Name": u, "Password": pw})}' http://127.0.0.1:8096/Startup/User +docker exec {jf} curl -s -o /dev/null -w 'complete=%{{http_code}}' -X POST http://127.0.0.1:8096/Startup/Complete +""", timeout=400) + say(f" seerr: throwaway Jellyfin on {net}: {out.strip()[-40:]}") + code, ck = self._signin(w, sub, {"username": u, "password": pw, "hostname": jf, "port": 8096, "useSsl": False, + "urlBase": "", "email": u + "@example.invalid", "serverType": 2}) + if code != "200" or not ck: + say(f" seerr: first sign-in through Jellyfin http={code} cookie={bool(ck)}") + return None + title = "Drill-" + secrets.token_hex(5) + rc, code, out = w.app_curl(sub, "/api/v1/settings/main", "-H", "Content-Type: application/json", + "-H", f"Cookie: {ck}", data=json.dumps({"applicationTitle": title}), method="POST") + say(f" seerr: admin {u} signed in through Jellyfin; application title stored http={code}") + if code != "200": + return None + return {"u": u, "pw": pw, "title": title} + + def verify(self, w, sub, t, say): + if not w.wait_app(sub, "/api/v1/status", want=("200",), tries=72): + return False + rc, code, out = w.app_curl(sub, "/api/v1/settings/public") + try: + title = json.loads(out).get("applicationTitle") + except ValueError: + title = None + bad, _ = self._signin(w, sub, {"username": t["u"], "password": "wrong-" + secrets.token_hex(6)}) + if bad == "200": + say(" seerr: READBACK UNUSABLE — a wrong password signed in") + return False + good, ck = self._signin(w, sub, {"username": t["u"], "password": t["pw"]}) + ok = title == t["title"] and good == "200" and bool(ck) + say(f" seerr: the title read back {title == t['title']}; sign-in http={good} (wrong password refused: http {bad}) ok={ok}") + return ok + + # ============================================================================================= class Wanderer: """Wanderer's OWN web API (the SvelteKit server in front of PocketBase), the routes its UI calls — measured in the @@ -3275,6 +3339,7 @@ FIXTURES = { "papra": Papra(), "wanderer": Wanderer(), "homepage": Homepage(), + "seerr": Seerr(), "mealie": Mealie(), "n8n": N8n(), "zipline": Zipline(), diff --git a/templates/seerr/.felhom.yml b/templates/seerr/.felhom.yml index 5ebee43..07d11be 100644 --- a/templates/seerr/.felhom.yml +++ b/templates/seerr/.felhom.yml @@ -10,7 +10,7 @@ subdomain: "requests" slug: "seerr" # catalog_since: the date THIS repo last changed this app's pinned images. Any commit that # changes an image: line must set this to the same day (see CLAUDE.md). -catalog_since: "2026-07-18" +catalog_since: "2026-10-28" # --- Resource hints (displayed on deploy screen) --- resources: @@ -184,4 +184,10 @@ i18n: # --- Security watch (felhom.eu R-1303): where each image's security notices are published --- # One line per image in docker-compose.yml; the grammar is in NEW-APP-CHECKLIST.md (1.10). upstream: - fallenbagel/jellyseerr: "github:seerr-team/seerr" + ghcr.io/seerr-team/seerr: "github:seerr-team/seerr" + +# 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": {"seerr": "fallenbagel/jellyseerr:2.7.3"}, "to": {"seerr": "ghcr.io/seerr-team/seerr:v3.5.1"}, "digest": {"seerr": "sha256:d8fab675b55ad293ded98fd71efcfd46054cbad9746534ae1cc4794a88c0b3be"}, "verdict": "proven", "tested_at": "2026-10-28T15:36:43Z", "harness_version": 5, "evidence": "documentation/audits/dockerhub-bigsteps-2026-10-28/seerr/bench", "box_evidence": "documentation/audits/dockerhub-bigsteps-2026-10-28/seerr/box", "memory_peak_pct": 51.3, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 59.7} diff --git a/templates/seerr/docker-compose.yml b/templates/seerr/docker-compose.yml index 962e394..7355e8b 100644 --- a/templates/seerr/docker-compose.yml +++ b/templates/seerr/docker-compose.yml @@ -8,9 +8,17 @@ services: seerr: - image: fallenbagel/jellyseerr:2.7.3 + # Seerr v3 (2026-10-28, felhom.eu R-1317): Jellyseerr and Overseerr merged into `ghcr.io/seerr-team/seerr`. v3 runs as + # `node` (UID 1000) and needs /app/config owned by it; a Jellyseerr volume is owned by root. So the container STARTS + # as root only to hand /app/config to 1000, then runs Seerr as `node` through busybox `su` (no root process stays; + # measured on the bench: root PID 1 is docker-init, Seerr is `node`). `init: true` is upstream's own requirement + # (the image has no init). Seerr migrates Jellyseerr's settings and database by itself on the first start. + image: ghcr.io/seerr-team/seerr:v3.5.1 container_name: seerr restart: unless-stopped + init: true + user: "0:0" + entrypoint: ["/bin/sh", "-c", "chown -R 1000:1000 /app/config && exec su node -s /bin/sh -c 'exec docker-entrypoint.sh npm start'"] environment: - TZ=Europe/Budapest volumes: