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.

1.6 KB
Raw Blame

A failed password change can no longer put the derived SQLCipher master key into the application log, on any of its surfaces. set_sqlcipher_rekey builds PRAGMA rekey = "x'<key hex>'", and SQLAlchemy embeds the statement it failed on in the error it raises, so the key reached the change-password log through the exception's own message. That was fixed in #5654 by raising a key-free error instead — a scrub the fragment for that change did not record, and the more security-relevant of the two fixes it carried. Two residuals in the same few lines are closed now: the derived key and the rekey statement stayed bound in the raising frame, which sits in the propagated exception's traceback and would be printed by a log sink rendering frame locals (loguru diagnose=True, debug-only since #4185); and the failing exception itself was held there, pinning its own traceback through the SQLAlchemy frames that carry the statement. The key material is dropped before the new error is raised, and only the failure's type name and its scrubbed message are kept.

The same change gives the change-password log back a diagnostic it had lost. Every rekey failure was reduced to PRAGMA rekey failed (<ExceptionType>), which is right where the message embeds the statement — but on a raw sqlcipher3 connection it never did, so database is locked, file is not a database and a disk error became one indistinguishable line. The message now comes through scrubbed of the key, and is dropped entirely if any fragment of the key survives scrubbing, so a truncated rendering cannot leak part of it.