a54f30ddcb
Security hardening - all 8 patches applied
...
Patch 1: Add requireFamily to chat route
Patch 2: Add requireFamily to family routes
Patch 3: Create admin-auth.ts, apply to all admin routes
Patch 4: Delete debug and migrate routes, update middleware
Patch 5: Create audit_log table and schema
Patch 6: Create password reset flow (reset-request, reset-confirm)
Patch 7: Replace with real HTTP security tests
Patch 8: RLS migrations already exist (01-app-role, 02-enable-rls)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 23:59:43 +05:30
f4a1d4544b
Fix scoped.ts TypeScript error - simplify to avoid transaction type issue
...
The Drizzle transaction generic type was causing a type mismatch error.
Since withFamilyContext and getScopedDb were not used anywhere,
simplify the file to just re-export sql and dbUnscoped.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 23:17:38 +05:30
2196c3d07d
Security hardening: auth, bcrypt, rate-limiting, RLS, audit
2026-05-16 23:11:01 +05:30
4cf886ea43
Add security libs: auth, audit, rate-limit, scoped db
2026-05-16 23:10:56 +05:30
797eedaeb3
Add logging schema: feeds, diapers, sleeps, vaccinations, growth, medications
2026-05-10 05:24:57 +05:30
68b571d321
fix: build errors and simplify auth
2026-05-10 04:14:23 +05:30
7098339200
feat: add Drizzle config and auth/family schema
2026-05-10 04:08:39 +05:30