Files
felhom.eu/documentation/audits/logins-folders-2026-10-16/P0
admin ea8e67f341
gates / gates (push) Successful in 7m4s
Logins and folders (controller 0.320.0 released): design, R-1100..R-1102 opened, STATUS, evidence, report
02 "Logins and folders" [DESIGN]: an infra stack is part of the box on the app page; one login answer per
installed app (catalog app_info.login_kind); FileBrowser's new-password press (its CLI, server stopped);
"Fájlok ↗" and the per-drive media folders, a folder with no source is text. Register 176 -> 179.
STATUS: look at FileBrowser, RomM and Plex on demo-hp; say yes for the N100's press; decision D10 (R-1102).

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-16 15:53:12 +02:00
..

P0 — why FileBrowser showed „Telepítés" and lost its password (2026-10-16, read only)

Method: source read (controller main 39bf562 = v0.319.0) + the live page through https://felhom.enkisfelhom.hu (curl, logged in) + names/states read with pct exec 9201 on both boxes. No value of any secret was read or printed; only the state word of filebrowser_admin_state.

1. Why /apps/filebrowser renders as not installed, with an Install button

  • FileBrowser is base infrastructure: stacks/infra.go EnsureBaseStack writes /opt/docker/stacks/filebrowser/ (compose + config.yaml) and starts it. It never writes app.yaml.
  • stacks/manager.go ScanStacks lists every dir under the stacks dir with a compose file. FileBrowser is in the list with Deployed = appCfg != nil && appCfg.Deployed = false (no app.yaml) and Protected = true. Its metadata is the no-.felhom.yml default (Slug = "filebrowser", DisplayName „Filebrowser").
  • Every other surface already counts Deployed || Protected as „on the box" (dashboard, launcher, app list — handlers.go ~154/315/361, stacks.html L30/L76). The v0.315.0 app page (e66d466) uses found.Deployed only (web/app_page.go appPageHandler): not deployed → no tab bar, the guide tab is the whole page, and the guide renders the Install CTA (app_guide.html L45, canInstall is true for metadata with no lifecycle).
  • The R-513 block in appCommonData (handlers.go ~L856) still sets InitialCreds for FileBrowser — but the new page shows InitialCreds only on the SETTINGS tab, which a „not deployed" app never reaches. The old app_info.html rendered {{if .InitialCreds}} without a Deployed gate; that is how it showed before.
  • Commit that changed it: e66d466 (v0.315.0, one app page with four tabs).
  • Extra finding: DeployStack has NO protected-stack guard (it refuses only Deployed / not installable). The Install button led to a wizard whose POST would have deployed the infra stack as an app. Guarded in this task.

Live confirmation (demo-hp 9201, controller 0.319.0): demo-hp-apps-filebrowser-markers.txt — the page carries data-install-cta, „Telepítés", no data-tab, no initcred.

2. FileBrowser admin state (state word only) — P0-state.txt

box state decided at
demo-hp 9201 operator 2026-09-15T08:52:10Z
demo-felhom 9201 (N100, lived-in) operator 2026-09-16T15:37:26Z

Both boxes: nobody knows the password (R-513 found admin/admin refused and left it).

3. FileBrowser sources (rendered config.yaml) — P0-state.txt

box drive source import kept
demo-hp NVME 1TB → /srv/hdd_1 = /mnt/felhom-drives/hdd_1/userdata Beolvasás Megőrzött adatok
demo-felhom Külső tárhely (hdd_1) → /srv/hdd_1 = /mnt/felhom-drives/hdd_1/userdata Beolvasás Megőrzött adatok

Each box has ONE drive. The drive source root is the drive's userdata/, so media/ and every media/<movies|tv|music|torrents|transmission|…> folder is reachable as <drive source>/media/<sub> — measured: the folders exist on both boxes (ls /mnt/felhom-drives/hdd_1/userdata/media/). Source names come from the storage path's label, else the mount basename — the same rule fbSourceNameForApp uses, so the link builder and the sidebar agree by construction.