You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add comprehensive resource protection to database schemas
- Add resource limits constants to prevent resource exhaustion attacks
- Implement database-level CHECK constraints for large text/JSONB fields
- Add varchar length limits for all text fields across all schemas
- Replace magic numbers with well-documented constants
- Protect against large journal entries, pages, and AI prompts
Resource limits implemented:
- Text chunks: 1MB max
- Block data: 10MB max
- JSONB metadata: 1MB max
- Page children arrays: 10,000 blocks max
- Various varchar fields with appropriate length limits
Addresses: #39
0 commit comments