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.

Merge remote-tracking branch 'origin/dev' into feature/semantic-scholar-openalex-downloaders

LearningCircuit30149a2f427d
diff --cc .gitleaks.toml
index cd78fac008,53027fb9d3..b8eb3b3800
--- a/.gitleaks.toml
+++ b/.gitleaks.toml
@@@ -82,8 -82,12 +82,14 @@@ paths =
'''.*example.*\.py$''',
'''mock.*\.py$''',
'''fixture.*\.py$''',
+ # Exclude CI/CD workflow files that contain test credentials
- '''.github/workflows/.*\.yml$'''
++ '''.github/workflows/.*\.yml$''',
+ '''src/local_deep_research/security/file_integrity/.*\.py$''',
+ '''src/local_deep_research/library/download_management/.*\.py$''',
+ '''src/local_deep_research/research_library/services/download_service\.py$''',
+ '''src/local_deep_research/research_library/routes/library_routes\.py$''',
+ '''src/local_deep_research/news/subscription_manager/scheduler\.py$''',
+ '''pdm\.lock$''' # Contains SHA256 package hashes (not secrets)
]
files = [
"\\.env\\.example$",
@@@ -99,9 -113,38 +115,41 @@@ regexes =
# Allow comments that explain API key usage but don't contain actual keys
'''# API_KEY: OpenRouter API key''',
'''OPENROUTER_API_KEY''',
+ # Allow test credentials used in CI/CD workflows
+ '''testpass123''',
- '''perf-test-secret-key'''
++ '''perf-test-secret-key''',
+ # Password parameters and variable assignments (not actual secrets)
+ '''self\.password = password''',
+ '''self\.username = username''',
+ '''password: Optional\[str\]''',
+ '''username: str, password: Optional''',
+ # Database session context - parameter passing
+ '''get_user_db_session\(self\.username, self\.password\)''',
+ '''get_user_db_session\(username, password\)''',
+ '''username=username, password=password''',
+ # Session password storage (encrypted in session)
+ '''user_password = session_password_store''',
+ '''get_session_password''',
+ '''user_password = getattr''',
+ # Allow variable names containing password/secret (not actual values)
+ '''user_password\s*=''',
+ '''password\s*:\s*Optional''',
+ '''password\s*:\s*str''',
+ '''session_password_store''',
+ '''password\)\s*:''',
+ # Allow parameter names and type hints
+ '''\bpassword:\s*Optional\[str\]''',
+ '''\bpassword:\s*str\b''',
+ # Allow getattr patterns for password retrieval
+ '''getattr\(g,\s*["']user_password["']''',
+ # Allow user_password parameter names (not actual passwords)
+ '''user_password\s*=\s*user_password''',
+ '''user_password=user_password''',
+ # Allow SHA256 hashes in pdm.lock (package integrity hashes)
+ '''hash\s*=\s*"sha256:[a-fA-F0-9]{64}"''',
+ '''content_hash\s*=\s*"sha256:[a-fA-F0-9]{64}"''',
+ # Allow CSRF token meta tag selectors (JavaScript, not actual secrets)
+ '''csrf_token\s*=\s*document\.querySelector'''
]
# Target specific files for scanning