Commit Graph

13 Commits

Author SHA1 Message Date
leocrm-bot 3ab4925783 T01: core infrastructure + auth + multi-tenant + RLS
- 10 models: tenants, users, user_tenants, roles, sessions, audit_log, deletion_log, notifications, password_reset_tokens, api_tokens
- Session-based auth (Redis + PostgreSQL audit trail)
- Multi-tenant with ORM-level filtering + PostgreSQL RLS (set_config)
- RBAC with roles/permissions + field-level permissions
- CSRF protection via Origin header validation
- Auth rate limiting (Redis counters with TTL)
- CORS with explicit origins (no wildcard)
- Health endpoint (no auth required)
- Notification service + audit log middleware
- 29 tests, 26 ACs, all passing
- Coverage: 62% (infrastructure modules pending coverage in later tasks)
2026-06-29 08:02:14 +02:00
Agent Zero b5f7a220fe chore(quality): apply ruff autofixes and formatting (223 fixes, regression-free: 118/118 tests pass) 2026-06-29 08:01:45 +02:00
Leopoldadmin 525d86002c Upload app/services/user_service.py 2026-06-29 08:01:45 +02:00
Leopoldadmin 7024575c9a Upload app/services/tag_service.py 2026-06-29 08:01:45 +02:00
Leopoldadmin 8b3febe1a7 Upload app/services/note_service.py 2026-06-29 08:01:45 +02:00
Leopoldadmin 2b9bd76a78 Upload app/services/deal_service.py 2026-06-29 08:01:45 +02:00
Leopoldadmin 8d904c316b Upload app/services/dashboard_service.py 2026-06-29 08:01:45 +02:00
Leopoldadmin 26fe49490d Upload app/services/contact_service.py 2026-06-29 08:01:45 +02:00
Leopoldadmin f9a4ae2a00 Upload app/services/auth_service.py 2026-06-29 08:01:45 +02:00
Leopoldadmin 57354f1fdd Upload app/services/activity_service.py 2026-06-29 08:01:45 +02:00
Leopoldadmin e3526bad50 Upload app/services/account_service.py 2026-06-29 08:01:45 +02:00
Leopoldadmin 2d5f9e7a3e Upload app/services/_base.py 2026-06-29 08:01:45 +02:00
Leopoldadmin 43d30e5f48 Upload app/services/__init__.py 2026-06-29 08:01:45 +02:00