R-782: Glance behind the family gate (decision 221); family-gate rule 4 pins the ruled apps
gates / gates (push) Successful in 3s
gates / gates (push) Successful in 3s
Glance has no login of its own; new installs are published only behind the household's family gate (family_gate: true, min_controller 0.287.0, no exceptions). check-family-gate.py rule 4 refuses a ruled app (metube, grimmory, glance) whose template drops the key; red-proven by three decoys. An installed Glance is not re-gated (the controller records the gate at install). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
1a642b43e7
commit
d308445e87
10 files changed
+85
-15
No files matched your search
@@ -1,3 +1,23 @@
|
||||
## 2026-10-12 — Glance goes behind the family gate (R-782, `09` §3 decision 221)
|
||||
|
||||
**What runs on a box changed:** a NEW Glance install (controller >= 0.287.0) is published only behind the household's
|
||||
family gate: a stranger reaches nothing, a family member signs in with their own name and password, the household's
|
||||
dashboard session passes. **A Glance installed before this change is not gated** — the controller records the gate at
|
||||
install (`family_gate:` in `app.yaml`), so a catalog change never gates or un-gates an installed app; it takes a remove
|
||||
and a new install. No image moved (no `catalog_since`, no ladder step).
|
||||
|
||||
- **`templates/glance/.felhom.yml`:** `family_gate: true` + `min_controller: "0.287.0"`, no `family_gate_except:`
|
||||
(Glance has no login of its own — an exception would be an open door; measured public on 2026-10-06: `GET /` 200,
|
||||
`/login` 404). `add_people` (hu + en) and a first step naming the Család card, the MeTube wording. Header comment in
|
||||
both template files.
|
||||
- **`scripts/check-family-gate.py` rule 4:** an app the operator RULED family-gated (`REQUIRED`: metube and grimmory,
|
||||
decisions 63/64; glance, decision 221) whose template has no top-level `family_gate: true` is refused. Red-proof: the
|
||||
three new FACT decoys in `test_gate_decoys.py` (glance without the key, glance with it only in a comment, grimmory
|
||||
`family_gate: false`) came back rc 0 before the rule and rc 1 after; on the real tree with main's glance template the
|
||||
gate refuses `glance: ruled family-gated by ...` (rc 1).
|
||||
- `scripts/copy_freeze/hu.json` re-captured for glance only (the new `add_people` and first step).
|
||||
- `README.md` (family-gate section: rule 4), `REUSE.md` (glance as a no-exception example), `CONTEXT.md`.
|
||||
|
||||
## 2026-10-10 (afternoon) — the volume-persistence gate refuses to run on a host that is not a scratch host (R-896)
|
||||
|
||||
**What runs on a box changed:** nothing — a gate script only.
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
> Created with the REUSE.md rollout (2026-07-03). History: `CHANGELOG.md`; format spec: `README.md`.
|
||||
|
||||
- **2026-10-12 — Glance goes behind the family gate (R-782, `09` §3 decision 221):** `family_gate: true`, no exceptions
|
||||
(no login of its own). Three family apps now: MeTube, Grimmory, Glance. `check-family-gate.py` rule 4 pins the operator's
|
||||
rulings (`REQUIRED`). The gate is recorded at INSTALL — a Glance installed before this change stays public until it is
|
||||
removed and installed again (controller `stacks/deploy.go`: the record is written only when no `app.yaml` exists).
|
||||
- **2026-10-10 — Grocy and LubeLogger added; Monica STOPPED at checklist 0.2 — the operator ruled KEEP IT OUT (R-927, closed).**
|
||||
**The operator's decision of 2026-10-10** was to add Grocy, Monica and LubeLogger, chosen from
|
||||
`audits/pikapods-scan-2026-10-10/FINDINGS.md` §2 because no catalog app covers what they do. Grocy and
|
||||
|
||||
@@ -246,8 +246,9 @@ min_controller: "0.287.0" # REQUIRED with family_gate — an older box would
|
||||
- The gate is recorded at install (`family_gate:` in `app.yaml`), so a catalog change never gates or un-gates an
|
||||
installed app; the exceptions follow the current template.
|
||||
- Gate: `scripts/check-family-gate.py` (in `catalog_gates.py`) refuses a non-literal exception, an exception list
|
||||
without the gate, `family_gate` without `min_controller` ≥ 0.287.0, and `family_gate` while the newest baked golden is
|
||||
older than 0.287.0.
|
||||
without the gate, `family_gate` without `min_controller` ≥ 0.287.0, `family_gate` while the newest baked golden is
|
||||
older than 0.287.0, and (rule 4) an app the operator RULED family-gated — MeTube, Grimmory, Glance (decision 221,
|
||||
R-782) — whose template does not say `family_gate: true`. A new ruling adds the app to the gate's `REQUIRED` table.
|
||||
|
||||
### App-email mapping (`smtp_mapping`)
|
||||
|
||||
|
||||
@@ -1,11 +1,19 @@
|
||||
# REPORT — 2026-10-10 (afternoon): the volume-persistence gate refuses a non-scratch host (R-896)
|
||||
# REPORT — 2026-10-12: Glance behind the family gate (R-782, `09` §3 decision 221)
|
||||
|
||||
Part of the register-shrink session (`felhom.eu/REPORT-register-shrink-2026-10-10.md`).
|
||||
Part E (S26) of the operator's brief of 2026-10-12; implemented by a helper session, committed locally; the lead pushes
|
||||
and proves it live on scratch 9202.
|
||||
|
||||
- **Change:** `check-volume-persistence.py` refuses (exit 3, `HARNESS REFUSED`) before any docker call unless the host
|
||||
is a scratch host (`/opt/upg` present, or `FELHOM_SCRATCH_HOST=1`). DooPlex has neither, so the gate can no longer act
|
||||
on the production host.
|
||||
- **Red-proof:** `TestVenue.test_no_marker_refuses_before_any_docker_call` failed before the guard („the real prober was
|
||||
reached"), passes after. Full suite 61/61; decoys incl. the new „not a scratch host" case all behave;
|
||||
`catalog_gates.py --fast` rc 0.
|
||||
- **What runs on a box changed:** nothing.
|
||||
- **Change:** `templates/glance/.felhom.yml` declares `family_gate: true` + `min_controller: "0.287.0"`, no exceptions,
|
||||
exactly as MeTube (Grimmory adds e-reader exceptions; Glance has no login of its own, so it gets none). Copy:
|
||||
`add_people` (hu + en) and one new first step. Copy freeze re-captured for glance only.
|
||||
- **Gate:** `check-family-gate.py` rule 4 — an app in `REQUIRED` (metube, grimmory, glance, each with its ruling) whose
|
||||
template lacks a top-level `family_gate: true` is refused.
|
||||
- **Red-proof:** decoys `FACT: glance (ruled family-gated, decision 221) without family_gate`, `FACT: glance with
|
||||
family_gate only in a COMMENT`, `FACT: grimmory ... family_gate: false` — rc 0 (XX) before rule 4, rc 1 after. Real
|
||||
tree with main's glance template: `REFUSED glance: ruled family-gated by ...`, rc 1; with the change: rc 0, 3
|
||||
family-gated templates.
|
||||
- **Gates:** `catalog_gates.py --fast glance` rc 0; `catalog_gates.py --fast` rc 0; `test_gate_decoys.py` rc 0 (186
|
||||
cases); `test_catalog_gates.py` rc 0 (11 tests).
|
||||
- **What runs on a box changed:** new Glance installs only. **An installed Glance stays public** — the gate is recorded
|
||||
at install; reaching an installed one takes a remove + new install (the household's Glance config is in the
|
||||
`glance_config` volume) or a controller change. That is a decision for the operator, not taken here.
|
||||
@@ -27,7 +27,7 @@ Templates are config; the few script helpers other scripts must REUSE, never re-
|
||||
| **Open first-run screen → `setup_gate:`** (decision 46, controller ≥ 0.280.0) | `templates/n8n/.felhom.yml` (probe), `templates/uptime-kuma/.felhom.yml` (no probe → the household's button); `FIRST-ADMIN.md` | `setup_gate: true` + optional `setup_done_probe: {url: http://<container_name>:<port>/<path>, field: <dotted.json.path>, done: "<text>"}` | TRAPS: the probe must FLIP on the setup — measure it before and after on 9202; an app with open sign-up after setup (R-711) is not closed by the gate; `url` is read on the docker network, so it names the container, not the subdomain. |
|
||||
| **Open sign-up after the setup → `signup_block:`** (decision 47, controller ≥ 0.281.0) | `templates/opengist/.felhom.yml`, `templates/calcom/.felhom.yml` | `signup_block: "<traefik matcher>"` + `app_info.add_people` (hu) / `i18n.en.app_info.add_people` | TRAPS: block the app's API sign-up call, not only the page; an app's own invite link often uses the same address (the household's 15-minute window covers it); `add_people` is copy — `--capture-freeze`. |
|
||||
| **The visitor's address — read from the RIGHT, never the leftmost** (R-753, controller ≥ 0.286.0) | `templates/docmost/docker-compose.yml` (the reset), `templates/home-assistant/` (a right-walking reader) | traefik keeps the tunnel's chain: `<client-written…>, <real visitor>, 172.16.253.2`; the LAN gives one entry. An app that reads the LEFTMOST entry gets the router reset: `traefik.http.middlewares.<router>-xff.headers.customrequestheaders.X-Forwarded-For=` + `traefik.http.routers.<router>.middlewares=<router>-xff` (defined on the router's own container) — it then reads X-Real-Ip or its peer. A right-walking reader gets `172.16.0.0/12` as its trusted proxies. A FIXED count is wrong for one of the two paths — leave count readers alone. **Never turn on** a leftmost switch: glance `proxied`, karakeep `RATE_LIMITING_ENABLED`, vaultwarden `IP_HEADER=X-Forwarded-For`, PocketBase `UseLeftmostIP`, navidrome's reverse-proxy whitelist, Plex `ALLOWED_NETWORKS`. Sweep of all 56: `felhom.eu/documentation/audits/visitors-2026-10-01/A/sweep/`. Checklist 3.10 |
|
||||
| **No login of its own / a login strangers must not reach → `family_gate:`** (decisions 63/64, controller ≥ 0.287.0) | `templates/metube/.felhom.yml` (no exceptions), `templates/grimmory/.felhom.yml` (`family_gate_except:` for OPDS/Kobo/KOReader/Komga); README.md §family gate | `family_gate: true` + `min_controller: "0.287.0"` (required); optional `family_gate_except:` — LITERAL path prefixes a phone or e-reader app calls, each anchored by the box at a segment boundary and still behind the APP's own login. TRAPS: never an exception on an app with no login of its own (an open door); measure each exception on 9202 as a stranger AND a look-alike (`<prefix>x` → the gate); a websocket passes the gate like any request (MeTube measured 101); gate `check-family-gate.py` refuses an unanchored exception and a family_gate before a golden ≥ 0.287.0 is baked. |
|
||||
| **No login of its own / a login strangers must not reach → `family_gate:`** (decisions 63/64, controller ≥ 0.287.0) | `templates/metube/.felhom.yml` and `templates/glance/.felhom.yml` (no exceptions), `templates/grimmory/.felhom.yml` (`family_gate_except:` for OPDS/Kobo/KOReader/Komga); README.md §family gate | `family_gate: true` + `min_controller: "0.287.0"` (required); optional `family_gate_except:` — LITERAL path prefixes a phone or e-reader app calls, each anchored by the box at a segment boundary and still behind the APP's own login. TRAPS: never an exception on an app with no login of its own (an open door); measure each exception on 9202 as a stranger AND a look-alike (`<prefix>x` → the gate); a websocket passes the gate like any request (MeTube measured 101); gate `check-family-gate.py` refuses an unanchored exception and a family_gate before a golden ≥ 0.287.0 is baked. |
|
||||
| **The app's own sign-up switch → `after_setup:`** (decisions 47/49, controller ≥ 0.282.0) | `templates/homebox/` (compose `HBOX_OPTIONS_ALLOW_REGISTRATION=${SIGNUP_OPEN:-true}` + `.felhom.yml` `after_setup.env`) | compose default OPEN; `after_setup: {env: {SIGNUP_CLOSED: "true"}}` | TRAPS: the default must be OPEN (an installed app is unchanged by the catalog); several apps' switch also refuses the household's FIRST account, so never set it at install; an app with no env switch (opengist, wishlist) keeps the block alone — make that block case-insensitive. |
|
||||
| **A same-tag security fix → a RE-TEST step** (`09` decision 52, 2026-09-30) | `scripts/retest-floating.py` (the ONE monthly command), `scripts/retest_box.py` (the box venue), `scripts/box_walk.py` (the 9202 client), `upgrade-test.py --retest` + `--write-ladder` | An entry whose `from` == `to`, with `digest_from` (the tested digest it started from) and `box_evidence`. `--dry-run` lists; `--engines-only` is the ruled start. Runbook `felhom.eu/documentation/runbooks/monthly-floating-retest.md`. TRAPS: never write one by hand (the gates refuse no new digest, a digest the registry stopped serving, a missing box proof, a `digest_from` that is not the previous entry's digest); `image_digest.resolve` IGNORES a `@digest` in its argument — ask the registry by manifest for a digest. |
|
||||
| **A bench-only environment override** (R-739) | `upgrade-test.py` `BENCH_ENV_OVERRIDES` | Only for an app that cannot run on the bench at all (wanderer: its web server calls the DB at the public https name). Every verdict carries `bench_overrides`. Never a template change. |
|
||||
|
||||
@@ -19,6 +19,10 @@ refused here:
|
||||
Also refused: `family_gate_except:` on a template without `family_gate: true` (an exception list with no gate is a label
|
||||
without the fact).
|
||||
|
||||
4. an app the OPERATOR RULED family-gated (REQUIRED below) whose template does not say `family_gate: true` — the
|
||||
ruling is the fact; a dropped or commented-out key would publish the app to strangers on every NEW install
|
||||
(R-782: Glance, decision 221). A template directory that is absent is not refused (nothing is offered).
|
||||
|
||||
Line-based on purpose: the catalog's CI has NO PyYAML. Only TOP-LEVEL, uncommented keys count; a key inside a comment, a
|
||||
README or a tagline is not the field.
|
||||
|
||||
@@ -39,6 +43,12 @@ ITEM = re.compile(r'^\s+-\s*(?:"([^"]*)"|\'([^\']*)\'|(\S+))\s*(#.*)?$')
|
||||
GOLDEN_DIR = re.compile(r"^golden-(\d+)\.(\d+)\.(\d+)-\d{4}-\d{2}-\d{2}$")
|
||||
GOLDEN_SHA = re.compile(r"GOLDEN_SHA256=[0-9a-f]{64}")
|
||||
BAKE_LOGS = ("bake.log", "06-bake.log", "bake-clean.log", "06-bake-clean.log")
|
||||
# Rule 4: the apps the operator ruled family-gated, each with its ruling. Adding an app here is a ruling, not a guess.
|
||||
REQUIRED = {
|
||||
"metube": "`09` §3 decisions 63/64 (no login of its own)",
|
||||
"grimmory": "`09` §3 decisions 63/64 (its 15-minute lock, R-775)",
|
||||
"glance": "`09` §3 decision 221 (R-782, no login of its own)",
|
||||
}
|
||||
|
||||
|
||||
def arg(name, default):
|
||||
@@ -108,6 +118,9 @@ def main():
|
||||
if not os.path.isfile(fy):
|
||||
continue
|
||||
gate, excepts, minc = parse(io.open(fy, encoding="utf-8").read())
|
||||
if app in REQUIRED and not gate:
|
||||
fails.append("%s: ruled family-gated by %s, but the template has no top-level `family_gate: true` — "
|
||||
"every new install would be public" % (app, REQUIRED[app]))
|
||||
if excepts is not None and not gate:
|
||||
fails.append("%s: family_gate_except without family_gate: true — an exception list with no gate" % app)
|
||||
if not gate:
|
||||
|
||||
@@ -330,10 +330,12 @@
|
||||
"description": "Könnyű, saját Git szerver webes felülettel"
|
||||
},
|
||||
"glance": {
|
||||
"app_info.add_people": "A családtagokat a Beállítások, Biztonság oldal Család kártyáján adod hozzá; mindenki a saját nevével és jelszavával lép be.",
|
||||
"app_info.first_steps[0]": "Nyisd meg a dashboard.DOMAIN címet a böngészőben",
|
||||
"app_info.first_steps[1]": "Szerkeszd a glance.yml konfigurációs fájlt a kötetben",
|
||||
"app_info.first_steps[2]": "Add hozzá az RSS feedeket, widgeteket",
|
||||
"app_info.first_steps[3]": "Személyre szabd az elrendezést",
|
||||
"app_info.first_steps[1]": "Add hozzá a családtagjaidat a Beállítások, Biztonság oldal Család kártyáján - idegen el sem éri a Glance-ot",
|
||||
"app_info.first_steps[2]": "Szerkeszd a glance.yml konfigurációs fájlt a kötetben",
|
||||
"app_info.first_steps[3]": "Add hozzá az RSS feedeket, widgeteket",
|
||||
"app_info.first_steps[4]": "Személyre szabd az elrendezést",
|
||||
"app_info.tagline": "Minimalista dashboard - RSS, időjárás, könyvjelzők egy oldalon",
|
||||
"app_info.use_cases[0]": "RSS hírek, YouTube, Reddit és egyéb tartalmak egy oldalon",
|
||||
"app_info.use_cases[1]": "Időjárás és rendszer monitorozás widgetekkel",
|
||||
|
||||
@@ -687,6 +687,11 @@ def family_gate_cases():
|
||||
run("FACT: min_controller below the release", lambda: (app(GOOD.replace('0.287.0', '0.286.1')), golden("0.287.0")), 1, ("needs min_controller",))
|
||||
run("FACT: newest baked golden below the release", lambda: (app(GOOD), golden("0.286.1")), 1, ("publish the app OPEN",))
|
||||
run("FACT: a golden DIRECTORY 0.287.0 with no bake log (a name is not a bake)", lambda: (app(GOOD), golden("0.286.1"), golden("0.287.0", baked=False)), 1, ("0.286.1",))
|
||||
# Rule 4 (R-782, decision 221): an app the operator RULED family-gated loses its gate -> refused.
|
||||
run("FACT: glance (ruled family-gated, decision 221) without family_gate", lambda: (app("min_controller: \"0.287.0\"\n", name="glance"), golden("0.287.0")), 1, ("ruled family-gated",))
|
||||
run("FACT: glance with family_gate only in a COMMENT (the label without the fact)", lambda: (app("# family_gate: true\nmin_controller: \"0.287.0\"\n", name="glance"), golden("0.287.0")), 1, ("ruled family-gated",))
|
||||
run("FACT: grimmory (ruled, decisions 63/64) with family_gate: false", lambda: (app('family_gate: false\nmin_controller: "0.287.0"\n', name="grimmory"), golden("0.287.0")), 1, ("ruled family-gated",))
|
||||
run("GENUINE: glance gated, no exceptions", lambda: (app('family_gate: true\nmin_controller: "0.287.0"\n', name="glance"), golden("0.287.0")), 0, ("family-gate gate OK",))
|
||||
finally:
|
||||
shutil.rmtree(ws, ignore_errors=True)
|
||||
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
# =============================================================================
|
||||
# .felhom.yml - App metadata for felhom-controller
|
||||
# =============================================================================
|
||||
# Glance — glanceapp/glance, a start page of widgets and links. It has NO login of its own (no `auth:` block in the
|
||||
# seeded glance.yml; measured 2026-10-06 on the bench: `GET /` 200 to anyone, `/login` 404 — R-782), so it is offered
|
||||
# ONLY behind the family gate (`09` §3 decision 221, 2026-10-12, "like Grimmory"; decisions 63/64 for the gate itself).
|
||||
# No exceptions — an exception on an app with no login would be an open door. Pinned by scripts/check-family-gate.py
|
||||
# rule 4 (REQUIRED). The gate is recorded at install: a Glance installed before this commit stays as it was.
|
||||
|
||||
# --- Display info (shown on dashboard) ---
|
||||
display_name: "Glance"
|
||||
@@ -12,6 +17,10 @@ slug: "glance"
|
||||
# changes an image: line must set this to the same day (see CLAUDE.md).
|
||||
catalog_since: "2026-09-21"
|
||||
|
||||
# --- The family gate (controller >= 0.287.0) ---
|
||||
family_gate: true
|
||||
min_controller: "0.287.0"
|
||||
|
||||
# --- Resource hints (displayed on deploy screen) ---
|
||||
resources:
|
||||
mem_request: "20M"
|
||||
@@ -38,6 +47,7 @@ deploy_fields:
|
||||
# --- App info (info page content) ---
|
||||
app_info:
|
||||
tagline: "Minimalista dashboard - RSS, időjárás, könyvjelzők egy oldalon"
|
||||
add_people: "A családtagokat a Beállítások, Biztonság oldal Család kártyáján adod hozzá; mindenki a saját nevével és jelszavával lép be."
|
||||
docs_url: "https://github.com/glanceapp/glance/blob/main/docs/configuration.md"
|
||||
|
||||
use_cases:
|
||||
@@ -49,6 +59,7 @@ app_info:
|
||||
|
||||
first_steps:
|
||||
- 'Nyisd meg a dashboard.DOMAIN címet a böngészőben'
|
||||
- 'Add hozzá a családtagjaidat a Beállítások, Biztonság oldal Család kártyáján - idegen el sem éri a Glance-ot'
|
||||
- 'Szerkeszd a glance.yml konfigurációs fájlt a kötetben'
|
||||
- 'Add hozzá az RSS feedeket, widgeteket'
|
||||
- 'Személyre szabd az elrendezést'
|
||||
@@ -68,6 +79,7 @@ i18n:
|
||||
description: 'A minimalist information dashboard'
|
||||
app_info:
|
||||
tagline: 'A minimalist dashboard - RSS, weather and bookmarks on one page'
|
||||
add_people: 'You add family members on the Family card of Settings, Security; everyone signs in with their own name and password.'
|
||||
use_cases:
|
||||
- 'RSS news, YouTube, Reddit and more on a single page'
|
||||
- 'Weather and system widgets'
|
||||
@@ -76,6 +88,7 @@ i18n:
|
||||
- 'A layout you set yourself, in a YAML file'
|
||||
first_steps:
|
||||
- 'Open dashboard.DOMAIN in your browser'
|
||||
- 'Add your family members on the Family card of Settings, Security - a stranger cannot even reach Glance'
|
||||
- 'Edit the glance.yml configuration file in the volume'
|
||||
- 'Add your RSS feeds and widgets'
|
||||
- 'Arrange the layout the way you want it'
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
# Database: None (file-based)
|
||||
# RAM: ~20M (mem_limit: 128M) | Pi-compatible: Yes
|
||||
#
|
||||
# Glance has NO login of its own. On Felhom it is published ONLY behind the family gate (`family_gate: true` in
|
||||
# .felhom.yml, controller >= 0.287.0, `09` §3 decision 221 / R-782): a stranger reaches nothing, a family member signs in
|
||||
# with their own name and password. No exceptions.
|
||||
#
|
||||
# Environment variables:
|
||||
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
||||
|
||||
|
||||
Reference in new issue
Block a user