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.

docs: Add comprehensive justification for py/path-injection exclusion

LearningCircuitd49286233715
diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml
index ed89e1afd0..09fa2bb0f3 100644
--- a/.github/codeql/codeql-config.yml
+++ b/.github/codeql/codeql-config.yml
@@ -10,6 +10,17 @@ paths-ignore:
query-filters:
- exclude:
id: py/path-injection
- # Justification: The local file indexing feature in rag_routes.py intentionally
- # allows users to index their own filesystem with proper system directory protection.
- # This is a core feature requirement, not a vulnerability.
+ # Justification: This query is excluded because:
+ # 1. The local file indexing feature (rag_routes.py:100) intentionally accepts
+ # user-provided paths to enable indexing personal documents
+ # 2. Security controls are in place:
+ # - System directory blocking (/etc, /sys, /proc, /dev, /root, /boot, /var/log)
+ # - Path resolution with .resolve() to prevent traversal
+ # - PathValidator for relative paths
+ # 3. This is the ONLY location in the codebase with intentional user-controlled paths
+ # (verified via codebase audit - see commit history for details)
+ # 4. This is a core feature requirement for a local research tool, not a vulnerability
+ # 5. Inline suppressions (lgtm, nosec, codeql) are not supported in CodeQL Python
+ #
+ # Alternative considered: File-specific exclusion via paths-ignore, but query-filters
+ # provides better documentation of WHY this specific security check is excluded.