Commit Graph

18 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 c6b3430ebc Upload tests/test_tags.py 2026-06-29 08:01:44 +02:00
Leopoldadmin f5e91f185d Upload tests/__init__.py 2026-06-29 08:01:44 +02:00
Leopoldadmin 6001ae06f7 Upload tests/test_frontend_assets.py 2026-06-29 08:01:44 +02:00
Leopoldadmin 7c1dcb852d Upload tests/test_contacts.py 2026-06-29 08:01:44 +02:00
Leopoldadmin 6d66592478 Upload tests/conftest.py 2026-06-29 08:01:44 +02:00
Leopoldadmin b515bf7bd8 Upload tests/test_deals.py 2026-06-29 08:01:44 +02:00
Leopoldadmin e7ab652cba Upload tests/test_health.py 2026-06-29 08:01:44 +02:00
Leopoldadmin 46157805b1 Upload tests/test_users_me.py 2026-06-29 08:01:44 +02:00
Leopoldadmin 405375978f Upload tests/test_auth.py 2026-06-29 08:01:44 +02:00
Leopoldadmin c450f3579e Upload tests/test_dashboard.py 2026-06-29 08:01:44 +02:00
Leopoldadmin 9f1187f667 Upload tests/test_notes.py 2026-06-29 08:01:44 +02:00
Leopoldadmin 9e2d843e19 Upload tests/test_frontend_security.py 2026-06-29 08:01:44 +02:00
Leopoldadmin 62d4eec260 Upload tests/test_accounts.py 2026-06-29 08:01:44 +02:00
Leopoldadmin d677815d23 Upload tests/test_activities.py 2026-06-29 08:01:44 +02:00
Leopoldadmin e9a23b0739 Upload tests/test_frontend_pages.py 2026-06-29 08:01:44 +02:00
Leopoldadmin 3c6cf100a1 Upload tests/test_soft_delete_isolation.py 2026-06-29 08:01:44 +02:00