HTTP2Shell (CVE-2026-111497) lane batch 3: security-fix steps papra 26.7.1-rootless, dawarich 1.19.0 (runtimes read from the image; 9202 proven); box_walk loads the drill into the box before the install (felhom.eu R-1332)
gates / gates (push) Successful in 38s

This commit is contained in:
admin committed 2026-10-28 11:08:02 +01:00
1 parent 71e3fdfc95
commit 651a991732
12 files changed
+716 -12

No files matched your search

+15
View File
@@ -1,3 +1,18 @@
## 2026-10-28 (day, attended) — HTTP2Shell lane batch 3: Papra and Dawarich security-fix steps; the walk loads the drill into the box before the install (felhom.eu R-1332)
Pushed on the operator's yes at the batch-3 STOP. Same method as batches 1 and 2 (runtime read from the image; box walk
`--security` on 9202, soak 600 s, the seeded data read back; no bench fixture exists for these apps).
- **papra 26.6.2-rootless → 26.7.1-rootless** (Node.js 26.4.0 → 26.12.1): `proven`, Update 75 s, peak 16.2 % anon. The
Origin fix of batch 1 is proven by it: sign-up 403 `MISSING_OR_NULL_ORIGIN` before, 200 now.
- **dawarich 1.15.3 → 1.19.0** (app + sidekiq; Node.js 20.19.2 → no Node in the image at all): `proven`, Update 176 s,
the seeded location point read back, peak 28.9 % anon. Its Debian `libbrotli1` is 1.1.0-2+deb13u1 — Debian's fixed
version for this CVE is not known to the watch (no Debian line in its table), so that half is not claimed. The drill
mover fix of batch 2 is proven by it: both services moved in one edge.
- **`scripts/box_walk.py`: the security walk loads the drill head into the box's mirror before it installs FROM.** A
drill commit made outside a walk (the revert back to FROM after batch 2) never reached 9202's mirror, so the next
install took the old head's TO; the walk's own check caught it (`inconclusive — installed at … not at FROM`). Pinned
by `scripts/test_box_walk_drill_move.py` (6 checks; the new one red before the fix).
## 2026-10-28 (day, attended) — HTTP2Shell lane batch 2: Karakeep and Tandoor security-fix steps; the drill mover handles a shared image (felhom.eu R-1332)
Pushed on the operator's yes at the batch-2 STOP. Same method as batch 1 (runtime read from the image; box walk
+7 -7
View File
@@ -1,14 +1,14 @@
# REPORT — 2026-10-28: HTTP2Shell lane batch 2 — Karakeep and Tandoor security-fix steps (CVE-2026-111497)
# REPORT — 2026-10-28: HTTP2Shell lane batch 3 — Papra and Dawarich security-fix steps (CVE-2026-111497)
**What changed.** Two security-fix steps in the same main version: karakeep 0.34.1 and tandoor 2.7.2 (both Node.js
24.22.1, read from the image). The box walk's drill mover now moves two services that share one image (Dawarich).
Pushed on the operator's yes. (Batch 1 — ghost, metube, zipline — is `abf3db3`.)
**What changed.** Two security-fix steps in the same main version: papra 26.7.1-rootless (Node.js 26.12.1) and
dawarich 1.19.0 (no Node.js in the image any more), read from the images. The box walk loads the drill into the box
before it installs. Pushed on the operator's yes. (Batch 1: `abf3db3`; batch 2: `71e3fdf`.)
**Proof.** Box walk `--security` on 9202: both `proven` — the guarded Update, healthy, TO on all four observables, no
undo, no hold, a clean 600 s soak, the seeded data read back (felhom.eu
`documentation/audits/runtime-fixes-2026-10-28/walks/<app>/`). No bench fixture exists for these apps. The mover fix:
`scripts/test_box_walk_drill_move.py` red on the old logic, green now.
`documentation/audits/runtime-fixes-2026-10-28/walks/<app>/`). The two tool fixes of the earlier batches are proven by
these walks (Papra's Origin header; Dawarich's two services moved together). No bench fixture exists for these apps.
**Gates.** `catalog_gates.py --fast karakeep tandoor`: all OK.
**Gates.** `catalog_gates.py --fast papra dawarich`: all OK. `test_box_walk_drill_move.py`: 6 OK.
Findings go to felhom.eu `OPEN-ITEMS.md` (R-391).
+3
View File
@@ -816,6 +816,9 @@ def security_walk(app, frm, to, evdir, soak_s=SOAK_DEFAULT_S, values=None):
if stack(app).get("deployed"):
say(f" [1] removing the existing {app} first (scratch box)")
remove(app)
# the box reads the drill through its own mirror: load the head checked above, or a drill commit made outside a walk
# (a revert back to FROM) never reaches it and the install takes the old head's TO (2026-10-28, adventurelog)
refresh_box_mirror()
sync_rescan()
if not deploy(app, sub, values):
return finish("inconclusive", "the install at FROM did not complete — nothing was tested")
+8
View File
@@ -45,6 +45,14 @@ class DrillMove(unittest.TestCase):
self.assertEqual(missing, "freikin/dawarich:1.15.3")
self.assertEqual(out, TWO)
def test_walk_loads_the_drill_into_the_box_before_the_install(self):
# 2026-10-28: a drill revert never reached 9202's mirror; the walk installed the OLD head's TO as FROM
src = open(w.__file__).read()
body = src[src.index("def security_walk("):]
body = body[:body.index("rec[\"drill_commit\"]")]
self.assertIn("refresh_box_mirror()", body, "security_walk installs FROM without loading the drill into the box")
self.assertLess(body.index("refresh_box_mirror()"), body.index("deploy(app, sub, values)"))
def test_mover_uses_move_images(self):
self.assertIn("move_images(s, froms, tos)", open(w.__file__).read(), "_drill_bump no longer calls move_images")
+2 -1
View File
@@ -16,7 +16,7 @@ subdomain: "timeline"
slug: "dawarich"
# 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-10-01"
catalog_since: "2026-10-28"
# --- Resource hints (displayed on deploy screen) ---
resources:
@@ -223,6 +223,7 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"dawarich": "freikin/dawarich:1.15.2", "dawarich-sidekiq": "freikin/dawarich:1.15.2", "dawarich-db": "postgis/postgis:17-3.5-alpine", "dawarich-redis": "redis:7.4-alpine"}, "to": {"dawarich": "freikin/dawarich:1.15.3", "dawarich-sidekiq": "freikin/dawarich:1.15.3", "dawarich-db": "postgis/postgis:17-3.5-alpine", "dawarich-redis": "redis:7.4-alpine"}, "digest": {"dawarich": "sha256:589e3606b11b61c3fa2d9661832cb73645a9b93a9cc7d807a071e2bc6c584498", "dawarich-db": "sha256:894f570c0cf0664ed5576a8fd5d5bfb8fb1b19d592885b686c3a88c8bd90c41f", "dawarich-redis": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499", "dawarich-sidekiq": "sha256:589e3606b11b61c3fa2d9661832cb73645a9b93a9cc7d807a071e2bc6c584498"}, "verdict": "proven", "tested_at": "2026-10-01T16:20:55Z", "harness_version": 4, "evidence": "felhom.eu/documentation/audits/new-apps-2026-10-01/bench/dawarich/evidence/MV-dawarich/verdict.json", "box_evidence": "felhom.eu/documentation/audits/new-apps-2026-10-01/box/dawarich/step.txt", "memory_peak_pct": 33.0, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "memory_basis": "anon", "memory_cgroup_peak_pct": 70.8}
- {"from": {"dawarich": "freikin/dawarich:1.15.3", "dawarich-sidekiq": "freikin/dawarich:1.15.3", "dawarich-db": "postgis/postgis:17-3.5-alpine", "dawarich-redis": "redis:7.4-alpine"}, "to": {"dawarich": "freikin/dawarich:1.19.0", "dawarich-sidekiq": "freikin/dawarich:1.19.0", "dawarich-db": "postgis/postgis:17-3.5-alpine", "dawarich-redis": "redis:7.4-alpine"}, "digest": {"dawarich": "sha256:d9385242202ae385a5d8064f41a59a0b58218399e60e7e499d2a6afb449bc304", "dawarich-db": "sha256:894f570c0cf0664ed5576a8fd5d5bfb8fb1b19d592885b686c3a88c8bd90c41f", "dawarich-redis": "sha256:6ba19c50b56777f5c11c58eff8ddb69d0d5f27ba131cffb63f180ccfd43c66af", "dawarich-sidekiq": "sha256:d9385242202ae385a5d8064f41a59a0b58218399e60e7e499d2a6afb449bc304"}, "verdict": "security_fix", "tested_at": "2026-10-28T09:52:40Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/runtime-fixes-2026-10-28/walks/dawarich", "memory_peak_pct": 28.9, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nvd.nist.gov/vuln/detail/CVE-2026-111497", "fixed_in": "1.19.0"}, "seed": "read_back", "memory_basis": "box_soak"}
# --- 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).
+2 -2
View File
@@ -18,7 +18,7 @@
services:
dawarich:
image: freikin/dawarich:1.15.3
image: freikin/dawarich:1.19.0
container_name: dawarich
restart: unless-stopped
entrypoint: web-entrypoint.sh
@@ -82,7 +82,7 @@ services:
- "traefik.http.services.dawarich.loadbalancer.server.port=3000"
dawarich-sidekiq:
image: freikin/dawarich:1.15.3
image: freikin/dawarich:1.19.0
container_name: dawarich-sidekiq
restart: unless-stopped
entrypoint: sidekiq-entrypoint.sh
@@ -0,0 +1,219 @@
# =============================================================================
# .felhom.yml - App metadata for felhom-controller
# =============================================================================
# Dawarich — freikin/dawarich. Onboarding record: onboarding/dawarich.md (NEW-APP-CHECKLIST.md).
# First admin: CLASS 3 — the image's `rails db:seed` creates `demo@dawarich.app` / `safepassword`. `after_install` sets
# the box's generated password through Rails (the password is ARGV); until it succeeds the box holds the app behind the
# gate (R-741). The login NAME stays public: Devise locks it for 1 hour after 10 wrong tries (measured, onboarding 3.6) —
# the mealie precedent (`09` decision 57: a 1-hour lock kept, no secret name); the first step tells the household to set
# its own e-mail address, which ends that. Phone apps post with the account's API key, which no lock touches.
# --- Display info (shown on dashboard) ---
display_name: "Dawarich"
description: "Saját helyelőzmények térképen - a Google Idővonal helyett"
category: "travel"
subdomain: "timeline"
slug: "dawarich"
# 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-10-01"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "500M"
mem_limit: "2688M" # dawarich 1024M + dawarich-sidekiq 1024M + dawarich-db 512M + dawarich-redis 128M = 2688M
pi_compatible: false
needs_hdd: false
# --- 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: "timeline"
required: true
locked_after_deploy: true
description: "Az alkalmazás aldomainje"
- env_var: SECRET_KEY_BASE
label: "Titkosítási kulcs"
type: secret
generate: "hex:64"
locked_after_deploy: true
# Data-encrypting key: Rails derives the keys of Dawarich's encrypted columns from it (`encrypts` in
# instance_setting.rb, service_setting.rb, trip_source.rb — read 2026-10-01). Regenerated, those values are
# unreadable, so a restore must recover it and refuses rather than make a new one.
data_key: true
- env_var: DB_PASSWORD
label: "Adatbázis jelszó"
type: secret
generate: "password:24"
locked_after_deploy: true
- env_var: ADMIN_PASSWORD
label: "Bejelentkezési jelszó (demo@dawarich.app)"
type: password
generate: "password:24"
locked_after_deploy: true
description: "Az első bejelentkezéshez: demo@dawarich.app és ez a jelszó. A Beállításokban cseréld le az e-mail-címet a sajátodra."
after_install:
service: dawarich
env: [ADMIN_PASSWORD]
command: ["bin/rails", "runner", "u = User.find_by!(email: 'demo@dawarich.app'); u.update!(password: ARGV[0], password_confirmation: ARGV[0]); puts 'FELHOM_AFTER_INSTALL_OK'", "${ADMIN_PASSWORD}"]
success: "FELHOM_AFTER_INSTALL_OK"
# --- App-email (password reset) through the box's mail relay ---
smtp_mapping:
host_var: SMTP_SERVER
port_var: SMTP_PORT
from_var: SMTP_FROM
from_local: dawarich
# --- Customer-facing info ---
app_info:
tagline: "Saját helyelőzmények - a telefonod a te szerveredre küldi, hol jártál"
default_creds: "demo@dawarich.app / safepassword"
add_people: "A családtagod fiókját te hozod létre a Beállítások, Felhasználók oldalon; mindenki a saját telefonjáról küldi a helyét."
docs_url: "https://dawarich.app/docs/intro"
use_cases:
- 'A Google Idővonal helyett: a helyelőzményeid a saját szervereden'
- 'Térkép, statisztika és utazások az összes helyről, ahol jártál'
- 'Google Takeout, GPX és GeoJSON import a régi adataidhoz'
- 'A Dawarich, az Overland vagy az OwnTracks alkalmazás küldi a telefonod helyét'
first_steps:
- 'Nyisd meg a timeline.DOMAIN címet, és jelentkezz be: demo@dawarich.app és a Beállítások oldalon látható jelszó'
- 'A fiókod beállításaiban cseréld le az e-mail-címet a sajátodra - a demo@dawarich.app név nyilvános'
- 'A beállításokban másold ki az API-kulcsodat'
- 'Telepítsd a Dawarich alkalmazást a telefonodra, és add meg: https://timeline.DOMAIN és az API-kulcsot'
- 'A térkép csempéit a böngésződ a Dawarich térképszerveréről tölti le; a helyadataid a te szervereden maradnak'
guide:
checked_version: "1.15.3"
sections:
- title: "Régi helyelőzmények betöltése"
intro: "A korábbi helyadataidat, például a Google-től letöltött idővonalat, egy fájlból töltheted be."
steps:
- "A felső menüben nyisd meg a „My data” (Saját adatok) menüt, és válaszd az „Imports” (Importálás) pontot."
- "Kattints a „New import” (Új importálás) gombra."
- "Válaszd ki a fájlt, például egy Google JSON, GPX vagy ZIP fájlt, és indítsd a feltöltést. A formátumot a Dawarich magától felismeri."
- "Az „Imports” oldalon követheted a feldolgozást; utána a pontok megjelennek a térképen."
- title: "Utazás rögzítése"
intro: "Egy utazás egy időszakot fog össze, és térképen mutatja, merre jártál."
steps:
- "A felső menüben kattints a „Trips” (Utazások) pontra."
- "Kattints a „New trip” (Új utazás) gombra."
- "Add meg az utazás nevét, a kezdő és a záró időpontot, és mentsd el."
- "Az utazás oldalán a Dawarich az időszak pontjaiból rajzolja meg az útvonalat."
- title: "Statisztika"
intro: "A Dawarich összesíti, mennyit utaztál."
steps:
- "A felső menüben kattints a „Stats” (Statisztika) pontra."
- "Itt évenként látod a megtett távolságot („Total distance”) és a rögzített pontok számát."
- "A statisztika többi része naponta frissül. Ha egy friss importot most látnál, kattints az „Update stats” (Statisztika frissítése) gombra."
- title: "Családtag hozzáadása"
intro: "Mindenki saját fiókot kap, és a saját telefonjáról küldi a helyét."
steps:
- "Kattints jobb fent a fiókod menüjére, és válaszd a „Settings” (Beállítások) pontot."
- "Nyisd meg a „Users” (Felhasználók) lapot, és kattints az „Add new user” (Új felhasználó) gombra."
- "Add meg az „Email” és a „Password” (jelszó) mezőt, majd kattints a „Create” (Létrehozás) gombra."
- "A családtag belép, és a saját API-kulcsával beállítja a telefonos appot. A kulcsot a fiókmenü „Account” (Fiók) oldalán találja."
faq:
- q: "Túl nagy a Google-től letöltött fájl. Mit tegyek?"
a: "A 200 MB-nál nagyobb fájlt tömörítsd ZIP fájlba a feltöltés előtt. Így gyorsabb, és nem szakad meg a feltöltés."
- q: "Ki látja, merre jártam?"
a: "A helyadataid a dobozon maradnak, és minden fiók csak a saját pontjait látja a térképen. A térkép háttérképeit a böngésződ a Dawarich térképszerveréről tölti le."
- q: "Kimenthetem az adataimat fájlba?"
a: "Igen. A „My data” menü „Points” (Pontok) oldalán az „Export” gombbal GeoJSON vagy GPX fájlt készítesz. A kész fájlt az „Exports” oldalon találod."
- q: "Miért nem látszik a mai utam?"
a: "A pontokat a telefonos app küldi. Nézd meg, hogy az appban jó-e a timeline.DOMAIN cím és az API-kulcs, és hogy az app küldhet-e a háttérben."
- q: "Mentődnek a helyadataim?"
a: "A helyadataid a dobozon vannak. A mentés állapotát a vezérlőpulton, az alkalmazás „Adatok és mentés” fülén látod."
# --- Controller health probe (dials what the compose healthcheck dials) ---
healthcheck:
checks:
- type: api
port: 3000
path: "/api/v1/health"
expect:
status: 200
i18n:
en:
description: 'Your own location history on a map - instead of Google Timeline'
app_info:
tagline: 'Your own location history - your phone sends where you have been to your own server'
default_creds: 'demo@dawarich.app / safepassword'
add_people: "You create your family member's account in Settings, Users; everyone sends their location from their own phone."
use_cases:
- 'Instead of Google Timeline: your location history on your own server'
- 'A map, statistics and trips from every place you have been'
- 'Google Takeout, GPX and GeoJSON import for your old data'
- 'The Dawarich, Overland or OwnTracks app sends your phone location'
first_steps:
- 'Open timeline.DOMAIN and sign in: demo@dawarich.app and the password shown on the settings page'
- 'In your account settings, replace the e-mail address with your own - the demo@dawarich.app name is public'
- 'Copy your API key from the settings'
- 'Install the Dawarich app on your phone and enter: https://timeline.DOMAIN and the API key'
- 'Your browser loads the map tiles from the Dawarich map server; your location data stays on your server'
guide:
sections:
- title: "Load your old location history"
intro: "You can load your earlier location data, for example the timeline you downloaded from Google, from a file."
steps:
- "In the top menu, open „My data” and choose „Imports”."
- "Select „New import”."
- "Choose the file, for example a Google JSON, GPX or ZIP file, and start the upload. Dawarich works out the format by itself."
- "On the „Imports” page you can follow the processing; then the points show up on the map."
- title: "Record a trip"
intro: "A trip ties a stretch of time together and shows on a map where you went."
steps:
- "In the top menu, select „Trips”."
- "Select „New trip”."
- "Enter the name of the trip, its start and its end, and save it."
- "On the trip's page, Dawarich draws the route from the points of that time."
- title: "Statistics"
intro: "Dawarich adds up how much you have travelled."
steps:
- "In the top menu, select „Stats”."
- "Here you see the distance for each year („Total distance”) and the number of points recorded."
- "The rest of the statistics is updated daily. To see a fresh import now, select „Update stats”."
- title: "Add a family member"
intro: "Everyone gets their own account and sends their location from their own phone."
steps:
- "Select your account menu at the top right and choose „Settings”."
- "Open the „Users” tab and select „Add new user”."
- "Fill in „Email” and „Password”, then select „Create”."
- "The family member signs in and sets up the phone app with their own API key. They find the key on the „Account” page of the account menu."
faq:
- q: "The file I downloaded from Google is too large. What do I do?"
a: "Compress a file larger than 200 MB into a ZIP file before uploading. It is faster that way, and the upload does not break off."
- q: "Who sees where I have been?"
a: "Your location data stays on the box, and each account sees only its own points on the map. Your browser loads the map background from the Dawarich map server."
- q: "Can I save my data to a file?"
a: "Yes. On the „Points” page of the „My data” menu, the „Export” button makes a GeoJSON or GPX file. You find the finished file on the „Exports” page."
- q: "Why is today's route not showing?"
a: "The phone app sends the points. Check that the app has the right timeline.DOMAIN address and API key, and that it may send in the background."
- q: "Is my location data backed up?"
a: "Your location data is on the box. You see the backup status on the dashboard, on the app's „Data and backup” tab."
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: SECRET_KEY_BASE
label: 'Encryption key'
- env_var: DB_PASSWORD
label: 'Database password'
- env_var: ADMIN_PASSWORD
label: 'Sign-in password (demo@dawarich.app)'
description: 'For the first sign-in: demo@dawarich.app and this password. Replace the e-mail address with your own in the settings.'
@@ -0,0 +1,192 @@
# Dawarich - Saját helyelőzmények (a Google Idővonal helyett)
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: PostgreSQL 17 + PostGIS 3.5 (the major upstream's own compose runs — `09` decision 42's rule) + Redis + Sidekiq
# RAM: ~900M (mem_limit: 2688M total — app 1024M + sidekiq 1024M + db 512M + redis 128M) | Pi-compatible: No (postgis/postgis is amd64-only)
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
# SECRET_KEY_BASE - Rails aláíró kulcs (generált)
# DB_PASSWORD - Adatbázis jelszó (generált; csak a belső hálón)
# ADMIN_PASSWORD - Az első bejelentkezés jelszava (generált; after_install állítja be)
#
# Mirrors upstream's docker/docker-compose.yml (app + sidekiq on the same image, postgis 17-3.5, redis 7.4), pinned.
# THE KNOWN LOGIN: the app's entrypoint runs `rails db:seed`, which creates `demo@dawarich.app` / `safepassword` when no
# user exists (db/seeds.rb). `after_install` replaces that password with the box's generated one, through Rails itself
# (the password is ARGV, never pasted into code); until it succeeds the box holds the app behind the gate (R-741).
# Reverse geocoding stays OFF (no PHOTON_API_HOST / NOMINATIM_API_HOST / GEOAPIFY / LOCATIONIQ set): no coordinate
# leaves the box. The map's tiles are fetched by the household's BROWSER from Dawarich's default tile server (FIT.md).
services:
dawarich:
image: freikin/dawarich:1.15.3
container_name: dawarich
restart: unless-stopped
entrypoint: web-entrypoint.sh
command: ["bin/rails", "server", "-p", "3000", "-b", "::"]
environment:
TZ: Europe/Budapest
TIME_ZONE: Europe/Budapest
RAILS_ENV: production
REDIS_URL: redis://dawarich-redis:6379
DATABASE_HOST: dawarich-db
DATABASE_PORT: "5432"
DATABASE_USERNAME: dawarich
DATABASE_PASSWORD: ${DB_PASSWORD}
DATABASE_NAME: dawarich
APPLICATION_HOSTS: ${SUBDOMAIN}.${DOMAIN},localhost,127.0.0.1,::1
APPLICATION_PROTOCOL: http
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
RAILS_LOG_TO_STDOUT: "true"
SELF_HOSTED: "true"
STORE_GEODATA: "true"
WEB_CONCURRENCY: "1"
PROMETHEUS_EXPORTER_ENABLED: "false"
BACKGROUND_PROCESSING_CONCURRENCY: "3"
# App-email (smtp_mapping; STARTTLS to the shim on :2525, its self-signed certificate accepted by
# SMTP_OPENSSL_VERIFY_MODE=none; the shim takes no login, so SMTP_AUTHENTICATION=none). Empty SMTP_SERVER = mail OFF;
# measured 2026-10-01 that a fresh install with mail OFF boots (checklist 7.1). DOMAIN builds the links in its mails.
SMTP_SERVER: ${SMTP_SERVER:-}
SMTP_PORT: ${SMTP_PORT:-587}
SMTP_FROM: ${SMTP_FROM:-}
SMTP_AUTHENTICATION: "none"
SMTP_OPENSSL_VERIFY_MODE: "none"
DOMAIN: ${SUBDOMAIN}.${DOMAIN}
volumes:
- dawarich_public:/var/app/public
- dawarich_watched:/var/app/tmp/imports/watched
- dawarich_storage:/var/app/storage
networks:
- traefik-public
- dawarich-internal
depends_on:
dawarich-db:
condition: service_healthy
dawarich-redis:
condition: service_healthy
deploy:
resources:
limits:
memory: 1024M
healthcheck:
test: ["CMD-SHELL", "wget -qO - http://127.0.0.1:3000/api/v1/health | grep -q '\"status\"'"]
interval: 30s
timeout: 10s
retries: 10
start_period: 120s
labels:
- "traefik.enable=true"
- "traefik.http.routers.dawarich.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.routers.dawarich.entrypoints=websecure"
- "traefik.http.routers.dawarich.tls=true"
- "traefik.http.routers.dawarich.tls.certresolver=letsencrypt"
- "traefik.http.services.dawarich.loadbalancer.server.port=3000"
dawarich-sidekiq:
image: freikin/dawarich:1.15.3
container_name: dawarich-sidekiq
restart: unless-stopped
entrypoint: sidekiq-entrypoint.sh
command: ["sidekiq"]
environment:
TZ: Europe/Budapest
TIME_ZONE: Europe/Budapest
RAILS_ENV: production
REDIS_URL: redis://dawarich-redis:6379
DATABASE_HOST: dawarich-db
DATABASE_PORT: "5432"
DATABASE_USERNAME: dawarich
DATABASE_PASSWORD: ${DB_PASSWORD}
DATABASE_NAME: dawarich
APPLICATION_HOSTS: ${SUBDOMAIN}.${DOMAIN},localhost,127.0.0.1,::1
APPLICATION_PROTOCOL: http
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
RAILS_LOG_TO_STDOUT: "true"
SELF_HOSTED: "true"
STORE_GEODATA: "true"
WEB_CONCURRENCY: "1"
PROMETHEUS_EXPORTER_ENABLED: "false"
BACKGROUND_PROCESSING_CONCURRENCY: "3"
# App-email (smtp_mapping; STARTTLS to the shim on :2525, its self-signed certificate accepted by
# SMTP_OPENSSL_VERIFY_MODE=none; the shim takes no login, so SMTP_AUTHENTICATION=none). Empty SMTP_SERVER = mail OFF;
# measured 2026-10-01 that a fresh install with mail OFF boots (checklist 7.1). DOMAIN builds the links in its mails.
SMTP_SERVER: ${SMTP_SERVER:-}
SMTP_PORT: ${SMTP_PORT:-587}
SMTP_FROM: ${SMTP_FROM:-}
SMTP_AUTHENTICATION: "none"
SMTP_OPENSSL_VERIFY_MODE: "none"
DOMAIN: ${SUBDOMAIN}.${DOMAIN}
volumes:
- dawarich_public:/var/app/public
- dawarich_watched:/var/app/tmp/imports/watched
- dawarich_storage:/var/app/storage
networks:
- dawarich-internal
depends_on:
dawarich:
condition: service_healthy
deploy:
resources:
limits:
memory: 1024M
healthcheck:
test: ["CMD-SHELL", "pgrep -f sidekiq"]
interval: 30s
timeout: 10s
retries: 10
start_period: 60s
dawarich-db:
image: postgis/postgis:17-3.5-alpine
container_name: dawarich-db
restart: unless-stopped
shm_size: 1g
environment:
TZ: Europe/Budapest
POSTGRES_USER: dawarich
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: dawarich
volumes:
- dawarich_db_data:/var/lib/postgresql/data
networks:
- dawarich-internal
deploy:
resources:
limits:
memory: 512M
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dawarich -d dawarich"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
dawarich-redis:
image: redis:7.4-alpine
container_name: dawarich-redis
restart: unless-stopped
command: ["redis-server", "--save", "900", "1", "--save", "300", "10", "--appendonly", "no"]
volumes:
- dawarich_redis:/data
networks:
- dawarich-internal
deploy:
resources:
limits:
memory: 128M
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
dawarich_db_data:
dawarich_redis:
dawarich_public:
dawarich_watched:
dawarich_storage:
networks:
traefik-public:
external: true
dawarich-internal:
+2 -1
View File
@@ -10,7 +10,7 @@ subdomain: "papra"
slug: "papra"
# 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-09-22"
catalog_since: "2026-10-28"
# --- Resource hints (displayed on deploy screen) ---
resources:
@@ -201,6 +201,7 @@ i18n:
# gated by scripts/check-test-record.py. An image: move without a proven entry here is refused.
update_ladder:
- {"from": {"papra": "ghcr.io/papra-hq/papra:26.6.1-rootless"}, "to": {"papra": "ghcr.io/papra-hq/papra:26.6.2-rootless"}, "digest": {"papra": "sha256:a281cb44176dbe5323e0f7ea2d6fd34d58914a3a8525c36437a086d1d7c4fef8"}, "verdict": "proven", "tested_at": "2026-09-21T19:05:47.060201+00:00", "harness_version": 1, "evidence": "felhom.eu/documentation/audits/update-night-2026-09-21/apps/papra/verdict.json", "memory_peak_pct": null, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "backfilled": "2026-09-23", "note": "backfilled from catalog commit e96887e; box walk only (harness v1, no memory watch); digest = what the registry served on 2026-09-23, not a measurement of the tested image"}
- {"from": {"papra": "ghcr.io/papra-hq/papra:26.6.2-rootless"}, "to": {"papra": "ghcr.io/papra-hq/papra:26.7.1-rootless"}, "digest": {"papra": "sha256:d1f596a35332ad04d8a69d88a5e19bc82acd47f2bc2fe687dd2145b1ef5a8b19"}, "verdict": "security_fix", "tested_at": "2026-10-28T09:36:34Z", "harness_version": null, "evidence": null, "box_evidence": "documentation/audits/runtime-fixes-2026-10-28/walks/papra", "memory_peak_pct": 16.2, "marks": {"files_may_change": false, "needs_person": null, "memory_tight": false}, "security": {"ids": ["CVE-2026-111497"], "advisory": "https://nvd.nist.gov/vuln/detail/CVE-2026-111497", "fixed_in": "26.7.1-rootless"}, "seed": "read_back", "memory_basis": "box_soak"}
# --- 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).
+1 -1
View File
@@ -8,7 +8,7 @@
services:
papra:
image: ghcr.io/papra-hq/papra:26.6.2-rootless
image: ghcr.io/papra-hq/papra:26.7.1-rootless
container_name: papra
restart: unless-stopped
environment:
@@ -0,0 +1,197 @@
# =============================================================================
# .felhom.yml - App metadata for felhom-controller
# =============================================================================
# --- Display info (shown on dashboard) ---
display_name: "Papra"
description: "Minimalista dokumentumtár és rendszerező"
category: "productivity"
subdomain: "papra"
slug: "papra"
# 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-09-22"
# --- Resource hints (displayed on deploy screen) ---
resources:
mem_request: "300M"
mem_limit: "768M"
pi_compatible: true
needs_hdd: false
# --- Deploy fields (first deployment only) ---
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: "papra"
required: true
locked_after_deploy: true
description: "Az alkalmazás aldomainje"
- env_var: AUTH_SECRET
label: "Munkamenet-aláíró kulcs"
type: secret
generate: "hex:32"
locked_after_deploy: true
# A Papra éles módban ELUTASÍTJA az indulást, ha ez az alapértelmezett érték
# marad ("the auth secret must not be the default one"), ezért kötelező.
# Ez írja alá a munkameneteket: ha újragenerálódik, minden bejelentkezés
# érvénytelenné válik, ezért visszaállításkor a régi kulcsot kell megtartani.
data_key: true
# R-593: this field carried SUBDOMAIN's sentence (a copy-paste one field too low); moved up, own sentence here.
description: "A bejelentkezéseket aláíró titkos kulcs (automatikusan generált)"
# --- The setup gate (controller >= 0.281.0, `09` §3 decisions 46-47) ---
# The first visitor would create the admin; a fresh install is closed to everyone but the household until the first setup is done.
setup_gate: true
# Decision 47: the app's own sign-up address is closed once the gate opens (measured on 9202 2026-09-29: a stranger's sign-up succeeded after the setup; case-insensitive and slash-tolerant because termix's router ignores case (measured 2026-09-29)).
signup_block: "PathRegexp(`(?i)^/+api/+auth/+sign-up`)"
# The app's OWN sign-up switch, set once the gate opens (measured on 9202 2026-09-29: with it on a stranger's
# sign-up is refused even straight at the app; it also refuses the household's own first account, so it goes on AFTER the setup). The compose default stays open, so an installed app is
# unchanged by the catalog.
after_setup:
env:
SIGNUP_OPEN: "false"
# --- App info (info page content) ---
app_info:
tagline: "Minimalista dokumentumtár - egyszerű rendszerezés és keresés"
add_people: "Nyisd meg a regisztrációt 15 percre; a családtagod regisztrál, aztán meghívod a szervezetedbe (Szervezet → Tagok → Meghívás)."
docs_url: "https://docs.papra.app/"
use_cases:
- 'Dokumentumok egyszerű feltöltése és rendszerezése'
- 'Gyors keresés a dokumentumok között'
- 'Minimalista felület felesleges funkciók nélkül'
- 'Könnyű alternatíva a Paperless-ngx-hez'
first_steps:
- 'Nyisd meg a papra.DOMAIN címet a böngészőben'
- 'Hozd létre a fiókodat'
- 'Töltsd fel az első dokumentumot'
guide:
checked_version: "26.6.2-rootless"
sections:
- title: "Dokumentum címkézése"
intro: "A címkékkel csoportosítod a dokumentumokat, például Számlák vagy Garancia szerint."
steps:
- "Nyisd meg a dokumentumot."
- "A címkéi mellett kattints a + gombra."
- "Írd be a címke nevét, és válaszd ki a listából, vagy kattints a „Create new tag” (új címke létrehozása) sorra."
- "Az összes címkét a bal oldali menü „Tags” (Címkék) pontjában látod."
- title: "Automatikus címkézés"
intro: "Egy szabály magától felcímkézi az új dokumentumokat, például minden számlát."
steps:
- "A bal oldali menüben nyisd meg a „Tagging rules” (címkézési szabályok) pontot."
- "Kattints a „Create tagging rule” (szabály létrehozása) gombra, és adj nevet a szabálynak a „Name” (név) mezőben."
- "Az „Add condition” (feltétel hozzáadása) gombbal adj meg egy feltételt, például hogy a dokumentum neve tartalmazza: szamla."
- "A „Tags” (címkék) résznél válaszd ki a címkét, és kattints a „Create rule” (szabály létrehozása) gombra."
- title: "Megosztás linkkel"
intro: "Egy dokumentumot fiók nélkül is elküldhetsz valakinek."
steps:
- "Nyisd meg a dokumentumot, és kattints a „Share” (Megosztás) gombra."
- "Kattints a „Create new link” (új link) gombra."
- "Ha kell, kapcsold be a „Require a password” (jelszó kérése) vagy a „Set an expiration date” (lejárati idő) beállítást."
- "Kattints a „Create link” (link létrehozása), majd a „Copy link” (link másolása) gombra, és küldd el a linket."
- title: "Családtag hozzáadása"
intro: "A családtagod saját fiókot kap, aztán meghívod a szervezetedbe."
steps:
- "A Felhom vezérlőpulton, a Papra „Beállítások” fülén kattints a „Regisztráció megnyitása 15 percre” gombra."
- "A családtagod nyissa meg a papra.DOMAIN címet, és a „Register” (Regisztráció) gombbal hozza létre a fiókját."
- "Te a bal oldali menü „Members” (Tagok) pontjában kattints az „Invite member” (tag meghívása) gombra, add meg az e-mail címét, és kattints az „Invite to organization” (meghívás a szervezetbe) gombra."
- "A családtagod a saját beállításai között, az „Invitations” (Meghívások) oldalon az „Accept” (Elfogadás) gombbal lép be a szervezetbe."
faq:
- q: "A szabály a régi dokumentumokra is hat?"
a: "Magától csak az újakra. A régiekhez a szabálynál kattints az „Apply to existing documents” (alkalmazás a meglévőkre) gombra."
- q: "Hogyan állítom le a megosztást?"
a: "A bal oldali menü „Share links” (Megosztott linkek) pontjában a link műveletei között válaszd a „Disable link” (link kikapcsolása) pontot."
- q: "Hová kerül a törölt dokumentum?"
a: "A „Deleted documents” (Törölt dokumentumok) oldalra. Egy idő után a Papra innen véglegesen törli."
- q: "Hogyan töltök le egy dokumentumot?"
a: "Nyisd meg a dokumentumot, és kattints a „Download” (Letöltés) gombra."
- q: "Átállíthatom magyarra?"
a: "Nem: a Papra nem tartalmaz magyar fordítást, ezért a felület angol. Ez az útmutató ezért az angol neveket használja."
# --- Controller-side health probe ---
healthcheck:
checks:
- type: http
port: 1221
# --- English copy (localisation slice 5, R-560) --------------------------------------------
# The Hungarian above is UNCHANGED. A box on English reads this block field by field; a missing
# field shows the Hungarian one; a controller older than 0.257.0 ignores the block entirely.
i18n:
en:
description: 'A minimalist document store and organiser'
app_info:
tagline: 'A minimalist document store - simple sorting and search'
add_people: "Open sign-up for 15 minutes; your family member signs up, then you invite them into your organization (Organization → Members → Invite)."
use_cases:
- 'Upload and sort documents without fuss'
- 'Search across your documents quickly'
- 'A plain interface with nothing extra in the way'
- 'A lighter alternative to Paperless-ngx'
first_steps:
- 'Open papra.DOMAIN in your browser'
- 'Create your account'
- 'Upload your first document'
guide:
sections:
- title: "Tag a document"
intro: "Tags group your documents, for example by Invoices or Warranty."
steps:
- "Open the document."
- "Select the + button next to its tags."
- "Type the tag's name and pick it from the list, or select the „Create new tag” row."
- "You see all tags under „Tags” in the menu on the left."
- title: "Tag automatically"
intro: "A rule tags new documents by itself, for example every invoice."
steps:
- "In the menu on the left, open „Tagging rules”."
- "Select „Create tagging rule” and give the rule a name in the „Name” field."
- "Use „Add condition” to set a condition, for example that the document name contains: invoice."
- "Under „Tags”, choose the tag and select „Create rule”."
- title: "Share with a link"
intro: "You can send a document to someone who has no account."
steps:
- "Open the document and select „Share”."
- "Select „Create new link”."
- "If you want, switch on „Require a password” or „Set an expiration date”."
- "Select „Create link”, then „Copy link”, and send the link."
- title: "Add a family member"
intro: "Your family member gets their own account, and then you invite them into your organization."
steps:
- "On the Felhom dashboard, on Papra's „Settings” tab, select „Open sign-up for 15 minutes”."
- "Your family member opens papra.DOMAIN and creates their account with „Register”."
- "Under „Members” in the menu on the left, select „Invite member”, enter their email address and select „Invite to organization”."
- "Your family member joins the organization with „Accept” on the „Invitations” page of their own settings."
faq:
- q: "Does a rule work on older documents too?"
a: "By itself only on new ones. For older ones, select „Apply to existing documents” at the rule."
- q: "How do I stop sharing?"
a: "Under „Share links” in the menu on the left, choose „Disable link” in the link's actions."
- q: "Where does a deleted document go?"
a: "To the „Deleted documents” page. After a while Papra deletes it from there for good."
- q: "How do I download a document?"
a: "Open the document and select „Download”."
- q: "Can I switch it to Hungarian?"
a: "No: Papra has no Hungarian translation, so the interface is in English. That is why this guide uses the English names."
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: AUTH_SECRET
label: 'Session signing key'
description: 'The secret key that signs logins (generated for you)'
@@ -0,0 +1,68 @@
# Papra - Minimalista dokumentumtár és rendszerező
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: None (file-based)
# RAM: ~255M idle, ~405M anon at first-start migration (mem_limit: 768M, R-803) | Pi-compatible: Yes
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
services:
papra:
image: ghcr.io/papra-hq/papra:26.6.2-rootless
container_name: papra
restart: unless-stopped
environment:
# decision 47: the app's own sign-up switch — open until the box closes it after the first admin (after_setup)
- AUTH_IS_REGISTRATION_ENABLED=${SIGNUP_OPEN:-true}
- TZ=Europe/Budapest
- APP_BASE_URL=https://${SUBDOMAIN}.${DOMAIN}
- AUTH_SECRET=${AUTH_SECRET}
volumes:
# R-156: a csatolási pont /app/app-data, NEM /app/data. A képfájl WORKDIR-je
# /app, és MINDHÁROM adatútvonal az ./app-data alá mutat (a képfájlból
# kiolvasva, nem a README-ből): DATABASE_URL=file:./app-data/db/db.sqlite,
# DOCUMENT_STORAGE_FILESYSTEM_ROOT=./app-data/documents, PAPRA_CONFIG_DIR=./app-data.
# A /app/data könyvtár a képfájlban nem is létezik — a régi csatolás olyan
# útvonalra mutatott, ahová az alkalmazás soha nem írt, így a db.sqlite a
# konténer írható rétegében maradt: újratelepítéskor elveszett, a napi mentés
# pedig üres könyvtárat tarolt, miközben a healthcheck végig zöld volt.
#
# Az alkalmazás adatútvonalainak átállítása (/app/data-ra) is járható lett
# volna, de az HÁROM környezeti változó karbantartását jelentené: ha a
# felsőbb projekt egy negyedik adatútvonalat vezet be, az megint csendben az
# írható rétegbe szökne. A gyökér csatolása minden jelenlegi ÉS jövőbeli
# adatútvonalat elkap. Ellenőrzi: scripts/check-volume-persistence.py.
- papra_data:/app/app-data
networks:
- traefik-public
deploy:
resources:
limits:
memory: 768M
healthcheck:
# A papra képfájlban nincs wget és nincs curl — csak node. A korábbi wget
# próba ezért soha nem futott le, a konténer véglegesen unhealthy maradt,
# és a Traefik nem irányított rá forgalmat (404).
test: ["CMD", "node", "-e", "const http=require('http');http.get('http://127.0.0.1:1221',r=>process.exit(r.statusCode<500?0:1)).on('error',()=>process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
labels:
- "traefik.enable=true"
- "traefik.http.routers.papra.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
# R-753: this app reads the LEFTMOST X-Forwarded-For entry, which a stranger writes once traefik keeps the
# tunnel's chain — so its chain is removed here (it then reads traefik's X-Real-Ip or peer; never forgeable).
- "traefik.http.middlewares.papra-xff.headers.customrequestheaders.X-Forwarded-For="
- "traefik.http.routers.papra.middlewares=papra-xff"
- "traefik.http.routers.papra.entrypoints=websecure"
- "traefik.http.routers.papra.tls=true"
- "traefik.http.routers.papra.tls.certresolver=letsencrypt"
- "traefik.http.services.papra.loadbalancer.server.port=1221"
volumes:
papra_data:
networks:
traefik-public:
external: true