~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
ci(security): run tests/security/ as a directory (fix release-gate exit-5, 9→87 files) (#4411)
LearningCircuitccfd1bc67bc9
diff --git a/.github/workflows/security-tests.yml b/.github/workflows/security-tests.ymlindex d3782117f9..16d7debef0 100644--- a/.github/workflows/security-tests.yml+++ b/.github/workflows/security-tests.yml@@ -93,75 +93,19 @@ jobs:# (osv-scanner.yml), which reads pdm.lock directly and doesn't# fight PDM's resolution overrides the way pip-audit did.- - name: Run SQL injection tests+ - name: Run security test suiteenv:DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_security_dbrun: |- # Run SQL injection specific tests- pdm run python -m pytest tests/security/test_sql_injection.py -v --tb=short -n auto- # Legacy tests (if they exist)- if [ -f tests/test_sql_injection_prevention.py ]; then- pdm run python -m pytest tests/test_sql_injection_prevention.py -v --tb=short -n auto- fi-- - name: Run XSS prevention tests- run: |- pdm run python -m pytest tests/security/test_xss_prevention.py -v --tb=short -n auto- # Legacy tests (if they exist)- if [ -f tests/test_xss_prevention.py ]; then- pdm run python -m pytest tests/test_xss_prevention.py -v --tb=short -n auto- fi-- - name: Run CSRF protection tests- run: |- pdm run python -m pytest tests/security/test_csrf_protection.py -v --tb=short -n auto- # Legacy tests (if they exist)- if [ -f tests/test_csrf_protection.py ]; then- pdm run python -m pytest tests/test_csrf_protection.py -v --tb=short -n auto- fi-- - name: Run authentication security tests- run: |- pdm run python -m pytest tests/security/test_auth_security.py -v --tb=short -n auto- # Legacy tests (if they exist)- if [ -f tests/test_password_security.py ]; then- pdm run python -m pytest tests/test_password_security.py -v --tb=short -n auto- fi- if [ -f tests/test_session_security.py ]; then- pdm run python -m pytest tests/test_session_security.py -v --tb=short -n auto- fi-- - name: Run cookie security tests- run: |- pdm run python -m pytest tests/security/test_cookie_security.py -v --tb=short -n auto-- - name: Run API security tests- run: |- pdm run python -m pytest tests/security/test_api_security.py -v --tb=short -n auto- # Legacy tests (if they exist)- if [ -f tests/test_rate_limiting.py ]; then- pdm run python -m pytest tests/test_rate_limiting.py -v --tb=short -n auto- fi- if [ -f tests/test_api_authentication.py ]; then- pdm run python -m pytest tests/test_api_authentication.py -v --tb=short -n auto- fi-- - name: Run input validation tests- run: |- pdm run python -m pytest tests/security/test_input_validation.py -v --tb=short -n auto- # Legacy tests (if they exist)- if [ -f tests/test_input_sanitization.py ]; then- pdm run python -m pytest tests/test_input_sanitization.py -v --tb=short -n auto- fi-- - name: Run SSRF protection tests- run: |- pdm run python -m pytest tests/security/test_ssrf_validator.py -v --tb=short -n auto- pdm run python -m pytest tests/security/test_safe_requests_hook.py -v --tb=short -n auto-- - name: Run session security constant tests- run: |- pdm run python -m pytest tests/security/test_session_constants.py -v --tb=short -n auto+ # Run the entire tests/security/ tree as a directory rather than+ # enumerating individual files. The old per-file list only covered+ # ~9 of the 87 test files and silently broke whenever a file was+ # renamed or deleted: a hardcoded reference to the deleted+ # test_input_validation.py (removed in #4243) made pytest exit with+ # code 5 ("no tests collected") and failed this gate (#4411).+ # Running the directory picks up new security tests automatically and+ # never rots when files move.+ pdm run python -m pytest tests/security/ -v --tb=short -n auto- name: Check for hardcoded secretsrun: |