19 Commits

Author SHA1 Message Date
d644281b26 Fix 5 security and quality bugs
BUG-030: Add rate limiting via slowapi middleware
- Added slowapi to requirements
- Configurable limits: 100/min default, 30/min search, 10/min auth
- Rate limit settings in settings.py

BUG-028: Fix filter validation in embeddings.py
- Unknown filter keys now logged and ignored instead of passed through
- Prevents potential filter injection

BUG-034: Fix timezone handling in oauth_provider.py
- Now uses timezone-aware UTC comparison for refresh tokens

BUG-050: Fix SQL injection in test database handling
- Added validate_db_identifier() function
- Validates database names contain only safe characters

Also:
- Updated tests for bcrypt password format
- Updated test for filter validation behavior
- Updated INVESTIGATION.md with fix status

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 21:41:16 +00:00
Daniel O'Connell
93b77a16d6 Add pytest markers for fast/slow test separation
- Add --run-slow flag to optionally include slow tests
- Auto-detect tests that use db_session, test_db, db_engine, or qdrant fixtures
- Skip slow tests by default for faster development iteration
- Usage: pytest (fast only) or pytest --run-slow (all tests)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 18:21:41 +01:00
Daniel O'Connell
ad6510bd17 add a bunch of tests 2025-11-03 23:23:41 +01:00
Daniel O'Connell
1606348d8b discord integration 2025-10-20 03:47:13 +02:00
Daniel O'Connell
99d3843f47 move to general LLM providers 2025-10-13 03:23:20 +02:00
Daniel O'Connell
4d057d1ec6 discord notification on error 2025-06-05 02:21:52 +02:00
Daniel O'Connell
ac3b48a04c notes and observations triggered as jobs 2025-06-02 14:34:39 +02:00
Daniel O'Connell
29b8ce6860 Fix search + proper integration tests 2025-06-02 02:53:32 +02:00
Daniel O'Connell
e505f9b53c summarize before chunking 2025-05-29 01:26:10 +02:00
Daniel O'Connell
1291ca9d08 better handling of errors 2025-05-27 22:39:24 +02:00
Daniel O'Connell
4aaa45e09c unify tasks 2025-05-25 20:02:47 +02:00
Daniel O'Connell
e8070a3557 proper chunk sizes for books 2025-05-25 11:23:19 +02:00
Daniel O'Connell
743a76c3d1 skip db tests when no db 2025-05-20 21:22:53 +02:00
Daniel O'Connell
c6cd809eb7 proper chunks path 2025-05-03 16:21:07 +02:00
Daniel O'Connell
453aed7c19 celery beat + image embedding 2025-04-28 22:10:18 +02:00
Daniel O'Connell
2d2f37536a add chunker 2025-04-28 14:17:02 +02:00
Daniel O'Connell
a104a3211b add qdrant 2025-04-27 22:24:30 +02:00
Daniel O'Connell
128f8e3d64 integration tests for process_message 2025-04-27 19:48:39 +02:00
Daniel O'Connell
03b5c908ee email provider 2025-04-27 19:03:50 +02:00