Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

docs(rekey): explain unaligned backup retention (#7717)

Chanhyo Jungdea5fe824435
diff --git a/changelog.d/7689.misc.md b/changelog.d/7689.misc.md
new file mode 100644
index 0000000000..e69a016ccb
--- /dev/null
+++ b/changelog.d/7689.misc.md
@@ -0,0 +1 @@
+Clarified why pending password-change recovery can retain superseded backups whose size is not a multiple of the configured SQLCipher page size.
diff --git a/docs/security/rekey-recovery.md b/docs/security/rekey-recovery.md
index 49624a07b5..948340630f 100644
--- a/docs/security/rekey-recovery.md
+++ b/docs/security/rekey-recovery.md
@@ -96,6 +96,11 @@ earlier login skips cleanup instead of treating newer backups as obsolete:
superseded key is removed. An unknown key or missing/mismatched salt is
kept during recovery. Salvage a damaged copy before retention or a later
completed password change removes it.
+- After schema verification fails with "not a database" and the backup salt
+ matches the live database's, a file whose size is not a multiple of the
+ configured SQLCipher page size is classified as `unknown` and kept before
+ the full page HMAC check. This intentional fail-safe can retain even a
+ superseded backup: size alone neither proves its key nor makes deletion safe.
- A backup that cannot be checked (locked, an I/O error) is kept.
A completed password change deletes all old backups and makes a fresh one