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.

Clarify partial rekey recovery deletion risk (#7732)

Riddhi Guptaadd46b935dd9
diff --git a/changelog.d/7690.misc.md b/changelog.d/7690.misc.md
new file mode 100644
index 0000000000..961d279a6a
--- /dev/null
+++ b/changelog.d/7690.misc.md
@@ -0,0 +1 @@
+Warn operators that deleting only one rekey file can leave a stale engine unfenced.
diff --git a/docs/security/rekey-recovery.md b/docs/security/rekey-recovery.md
index 9a1e36bace..e821214a09 100644
--- a/docs/security/rekey-recovery.md
+++ b/docs/security/rekey-recovery.md
@@ -34,6 +34,8 @@ connection it cached under the old password: deleting it then can let such
a connection be used again, which is why the steps below stop the server
first.
+See the warning under Manual recovery for the risks of deleting only one rekey file.
+
A hard-linked `.rekey.lock` (for example from a backup or snapshot tool that
hard-links the data directory) is used as is; its permissions are not
changed. While another directory entry still names the same inode, a
@@ -159,6 +161,8 @@ below still apply.
## Manual recovery
+**Warning — do not delete only one rekey file.** Deleting only `.rekey.pending` can leave a stale engine using the old key unfenced, allowing a live session to reuse that engine. Before deleting either file, stop the server and every worker or other process using the data directory, and verify that no server process remains running. Delete both `.rekey.pending` and `.rekey.epoch` as described below.
+
Use this only when the 503 persists after the cause (disk space,
permissions, a stuck process) has been fixed, or when the epoch files are
malformed.