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: resolve remaining CI security check false positives

LearningCircuit7d8d04d3a259
diff --git a/.github/workflows/file-whitelist-check.yml b/.github/workflows/file-whitelist-check.yml
index 2b13ac74f9..18b44287ef 100644
--- a/.github/workflows/file-whitelist-check.yml
+++ b/.github/workflows/file-whitelist-check.yml
@@ -298,8 +298,8 @@ jobs:
if grep -E "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" "$file" >/dev/null 2>&1; then
# Exclude localhost, documentation IPs, and common examples
if ! grep -E "\b(127\.0\.0\.1|0\.0\.0\.0|localhost|192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|255\.255\.255\.|192\.0\.2\.|198\.51\.100\.|203\.0\.113\.)" "$file" >/dev/null 2>&1; then
- # Additional check to exclude obvious non-IPs (version numbers, etc)
- if grep -E "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" "$file" | grep -vE "(version|v[0-9]+\.|release|tag)" >/dev/null 2>&1; then
+ # Additional check to exclude obvious non-IPs (version numbers, User-Agent strings, etc)
+ if grep -E "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" "$file" | grep -vE "(version|v[0-9]+\.|release|tag|User-Agent|Chrome/|Safari/|AppleWebKit/)" >/dev/null 2>&1; then
HARDCODED_IP_VIOLATIONS+=("$file")
fi
fi
diff --git a/.gitleaks.toml b/.gitleaks.toml
index 102d889549..c9540033de 100644
--- a/.gitleaks.toml
+++ b/.gitleaks.toml
@@ -85,6 +85,7 @@ paths = [
'''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$'''
]
files = [
@@ -101,14 +102,19 @@ regexes = [
# Allow comments that explain API key usage but don't contain actual keys
'''# API_KEY: OpenRouter API key''',
'''OPENROUTER_API_KEY''',
- # File integrity manager - password parameter (not actual secret)
+ # 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'''
+ '''username=username, password=password''',
+ # Session password storage (encrypted in session)
+ '''user_password = session_password_store''',
+ '''get_session_password''',
+ '''user_password = getattr'''
]
# Target specific files for scanning