Plex: the setup gate — a fresh install is closed to everyone but the household until „Kész, beállítottam” (R-1045); no probe (Plex answers XML to it, measured)
gates / gates (push) Successful in 3s

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-10-15 08:24:51 +02:00
1 parent 0c67873c9c
commit 9a23ee5460
4 files changed
+37 -11

No files matched your search

+14
View File
@@ -1,3 +1,17 @@
## 2026-10-15 — Plex installs closed: the setup gate (R-1045)
- `templates/plex/.felhom.yml`: `setup_gate: true`. An unclaimed Plex answers every request from a private address with
no token, and through the tunnel every request comes from one (felhom.eu `audits/media-drive-events-2026-10-14/K6-1`);
a claim code that ran out during the install leaves exactly such a server. A fresh Plex is now closed to everyone but
the household (a browser with a dashboard session) until the household presses „Kész, beállítottam”.
- **No `setup_done_probe`:** Plex answers `/identity` in XML when the request has no `Accept` header (measured 2026-10-15
on Tester 1; JSON only with `Accept: application/json`), and the controller's probe sends none — a probe would read
„not JSON” and never open. The household's button opens it. (The controller's claim step, R-1028, will open it on a
real claim.)
- `first_steps` (hu + en): the step „Ha kész, a vezérlőpulton nyomd meg: „Kész, beállítottam” - addig a Plex csak neked
nyílik meg”, Sonarr's wording. Copy freeze re-admitted for plex with the reason.
- An installed Plex is not affected: the gate record is made at install only.
## Unreleased (2026-10-15) — the shared rule file; no code change
- `.claude/rules/unprompted-work.md` §3 item 6: **bake first** — a controller release is released only when its golden is
+8 -9
View File
@@ -1,11 +1,10 @@
# REPORT — the media folders meet (R-1014, 2026-10-14)
# REPORT — Plex installs closed by the setup gate (R-1045, 2026-10-15)
Sonarr and Radarr now see the drive's whole `media` folder; qBittorrent and Transmission see only their own download
folder. Every app sees a file at the same path as on the box, so a download reaches the library as a hardlink on the
same drive. Operator ruling D9 = A with a limit (`felhom.eu` `09` §3 decision 242).
A fresh Plex is closed to everyone but the household until the household presses „Kész, beállítottam”. Before this, a
Plex whose 4-minute claim code ran out was open to anyone through the tunnel, with no password (measured 2026-10-14).
- Templates: sonarr, radarr, qbittorrent, transmission (folders, backup classes, first steps); plex, jellyfin (copy).
- Installed apps: the old `/downloads` path stays alive as a second name of the same folder; old torrents keep
seeding; only the default for new downloads moves.
- Sonarr/Radarr: „Authentication Required: Enabled" seeded on the first start only (R-1030).
- Evidence: `felhom.eu/documentation/audits/media-folder-fix-2026-10-14/` (B-1 classes, B-2/B-3 bench, volume-persistence, the live read-back on demo-hp).
- `templates/plex/.felhom.yml`: `setup_gate: true`, no probe (Plex answers XML to the probe's request; measured).
- `first_steps` hu + en: one new step, the button. Copy freeze re-admitted for plex.
- Gates: `catalog_gates.py --fast` all OK.
- Live proof on demo-hp 9201 (with a code, with an expired code, a stranger over the public path):
`felhom.eu/documentation/audits/media-build-2026-10-15/A-plex-gate/`.
+4 -2
View File
@@ -936,8 +936,9 @@
"app_info.first_steps[0]": "Generálj egy claim tokent a https://plex.tv/claim oldalon",
"app_info.first_steps[1]": "Telepítés után nyisd meg a plex.DOMAIN címet",
"app_info.first_steps[2]": "Kapcsold össze a Plex fiókoddat a szerverrel",
"app_info.first_steps[3]": "Add hozzá a médiatárat (filmek: /media/movies, sorozatok: /media/tv)",
"app_info.first_steps[4]": "Telepítsd a Plex alkalmazást eszközeidre",
"app_info.first_steps[3]": "Ha kész, a vezérlőpulton nyomd meg: „Kész, beállítottam” - addig a Plex csak neked nyílik meg",
"app_info.first_steps[4]": "Add hozzá a médiatárat (filmek: /media/movies, sorozatok: /media/tv)",
"app_info.first_steps[5]": "Telepítsd a Plex alkalmazást eszközeidre",
"app_info.prerequisites[0]": "Plex fiók szükséges (ingyenes regisztráció a plex.tv-n)",
"app_info.prerequisites[1]": "Külső HDD a médiafájlok tárolásához",
"app_info.prerequisites[2]": "Legalább 2 GB szabad RAM (transzkódoláshoz több ajánlott)",
@@ -1441,6 +1442,7 @@
"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)'",
"plex": "2026-10-15 (R-1045): first_steps gains the setup-gate step „Ha kész, a vezérlőpulton nyomd meg: „Kész, beállítottam” - addig a Plex csak neked nyílik meg” (same wording as Sonarr's, with the English twin); the other strings unchanged",
"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",
+11
View File
@@ -57,6 +57,15 @@ deploy_fields:
description: "A külső merevlemez elérési útja"
locked_after_deploy: true
# --- The setup gate (controller >= 0.281.0, `09` §3 decisions 46-47; R-1045) ---
# An UNCLAIMED Plex answers every request from a private address with no token, and through the tunnel every
# request comes from one (measured 2026-10-14, felhom.eu audits/media-drive-events-2026-10-14/K6-1). A claim code that
# ran out during the install leaves exactly such a server. So a fresh install is closed to everyone but the household
# until it says the setup is done. No setup_done_probe: Plex answers /identity in XML to a request with no Accept
# header (measured 2026-10-15 on Tester 1; JSON only with `Accept: application/json`), and the probe sends none —
# so the household's „Kész, beállítottam" opens the gate.
setup_gate: true
# --- App info (info page content) ---
app_info:
tagline: "Prémium média szerver kiváló alkalmazás támogatással"
@@ -73,6 +82,7 @@ app_info:
- 'Generálj egy claim tokent a https://plex.tv/claim oldalon'
- 'Telepítés után nyisd meg a plex.DOMAIN címet'
- 'Kapcsold össze a Plex fiókoddat a szerverrel'
- 'Ha kész, a vezérlőpulton nyomd meg: „Kész, beállítottam” - addig a Plex csak neked nyílik meg'
- 'Add hozzá a médiatárat (filmek: /media/movies, sorozatok: /media/tv)'
- 'Telepítsd a Plex alkalmazást eszközeidre'
@@ -108,6 +118,7 @@ i18n:
- 'Generate a claim token at https://plex.tv/claim'
- 'After the install, open plex.DOMAIN'
- 'Connect your Plex account to the server'
- 'When you are done, press „Done, I set it up” on the dashboard - until then Plex opens only for you'
- 'Add your libraries (films: /media/movies, series: /media/tv)'
- 'Install the Plex app on your devices'
prerequisites: