mantimon-tcg/backend/app/db
Cal Corum 3ec670753b Fix security and validation issues from code review
Critical fixes:
- Add admin API key authentication for admin endpoints
- Add race condition protection via unique partial index for starter decks
- Make starter deck selection atomic with combined method

Moderate fixes:
- Fix DI pattern violation in validate_deck_endpoint
- Add card ID format validation (regex pattern)
- Add card quantity validation (1-99 range)
- Fix exception chaining with from None (B904)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 14:16:07 -06:00
..
migrations Fix security and validation issues from code review 2026-01-28 14:16:07 -06:00
models Fix security and validation issues from code review 2026-01-28 14:16:07 -06:00
__init__.py Add FastAPI lifespan hooks and fix Phase 1 gaps 2026-01-27 15:37:19 -06:00
base.py Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
redis.py Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
session.py Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00