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.

fix: Display accurate database encryption status based on SQLCipher availability (#695)

LearningCircuitcc63e03792a6
diff --git a/src/local_deep_research/web/app_factory.py b/src/local_deep_research/web/app_factory.py
index 74120cdc85..2a6a248e3b 100644
--- a/src/local_deep_research/web/app_factory.py
+++ b/src/local_deep_research/web/app_factory.py
@@ -111,6 +111,7 @@ def create_app():
# Log data location and security information
from ..config.paths import get_data_directory
+ from ..database.encrypted_db import db_manager
data_dir = get_data_directory()
logger.info("=" * 60)
@@ -133,12 +134,17 @@ def create_app():
else:
logger.info("Using default platform-specific data location")
- logger.warning(
- "SECURITY NOTICE: All data including API keys stored in the database are currently unencrypted."
- )
- logger.warning(
- "Please ensure appropriate file system permissions are set on the data directory."
- )
+ # Display security status based on actual SQLCipher availability
+ if db_manager.has_encryption:
+ logger.info(
+ "SECURITY: Databases are encrypted with SQLCipher. Ensure appropriate file system permissions are set on the data directory."
+ )
+ else:
+ logger.warning(
+ "SECURITY NOTICE: SQLCipher is not available - databases are NOT encrypted. "
+ "Install SQLCipher for database encryption. Ensure appropriate file system permissions are set on the data directory."
+ )
+
logger.info(
"TIP: You can change the data location by setting the LDR_DATA_DIR environment variable."
)