From 40bce5554d5f5584b276d8c22d7628331d49ea24 Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 7 Oct 2026 17:11:56 +0200 Subject: [PATCH] docs: the key check, the restore guard, the new probes, failed offline changes and reminders Updates the wiki for the changes in this branch: TREK refuses an ENCRYPTION_KEY that disagrees with the key file, the rotation script covers the AI Parsing key and moves the file along, a restore refuses a newer backup and keeps the replaced database, the chart's startup and readiness probes, PORT and extraEnv, retrying or discarding failed offline changes, trip reminders catching up, and why a Portainer recreate used to keep reporting the old version. --- .../src/nest/plugins/install/host-compat.ts | 2 +- wiki/Backups.md | 3 +++ wiki/Encryption-Key-Rotation.md | 8 +++--- wiki/Install-Helm.md | 27 ++++++++++++++++--- wiki/Notifications.md | 2 +- wiki/Offline-Mode-and-PWA.md | 2 +- wiki/Plugin-Development.md | 7 ++--- wiki/Updating.md | 2 ++ 8 files changed, 39 insertions(+), 14 deletions(-) diff --git a/server/src/nest/plugins/install/host-compat.ts b/server/src/nest/plugins/install/host-compat.ts index 7218b0d47..ee4135ffa 100644 --- a/server/src/nest/plugins/install/host-compat.ts +++ b/server/src/nest/plugins/install/host-compat.ts @@ -36,7 +36,7 @@ let warnedUnparseable = false; * rc of 4.0 IS 4.0. * * A null host NEVER blocks anything (see {@link hostSatisfies}). This is deliberate: - * APP_VERSION is a Docker build ARG that defaults to the literal string `dev`, and an + * a source install can set APP_VERSION to anything (`dev`, a branch name), and an * unversioned build must stay fully usable. The warning exists so that a MISCONFIGURED * APP_VERSION in production — which silently switches this whole gate off — is visible * in the logs instead of being discovered when an incompatible plugin misbehaves. diff --git a/wiki/Backups.md b/wiki/Backups.md index 6d5d22004..56f7c3edd 100644 --- a/wiki/Backups.md +++ b/wiki/Backups.md @@ -40,6 +40,9 @@ Before restoring, TREK runs integrity checks on the uploaded database: 1. **SQLite `PRAGMA integrity_check`** — verifies the database file is not corrupt. 2. **Required tables present** — confirms the file contains `users`, `trips`, `trip_members`, `places`, and `days`. Files missing any of these are rejected as not being a valid TREK backup. +3. **Not from a newer TREK** — a backup whose database a newer release migrated is refused with `This backup was made by a newer TREK version. Update TREK before restoring it.` Restoring it would leave this version unable to start. + +The database being replaced is kept as `data/pre-restore-