cms.c2sgmbh/src
Martin Porwoll f667792ba7 fix: complete audit logging integration based on audit review
Fixes identified gaps from the monitoring & alerting audit:

1. Auth Events Integration:
   - Add auditAuthEvents.ts hook for login/logout tracking
   - Integrate afterLogin and afterLogout hooks in Users collection
   - Log successful logins, logouts, and password reset requests

2. Rate-Limit Logging:
   - Add logRateLimit calls to /api/send-email endpoint
   - Log when users exceed rate limits

3. Access-Denied Logging:
   - Add logAccessDenied calls to all protected endpoints:
     - /api/send-email
     - /api/email-logs/export
     - /api/email-logs/stats

4. Tenant Delete Sanitizing Fix:
   - Extract sanitizeTenantDoc as reusable function
   - Apply sanitization to auditTenantAfterDelete hook
   - SMTP passwords are now properly masked in delete audit logs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-07 21:24:28 +00:00
..
app fix: complete audit logging integration based on audit review 2025-12-07 21:24:28 +00:00
blocks feat: add content blocks and global settings 2025-12-01 08:19:15 +00:00
collections fix: complete audit logging integration based on audit review 2025-12-07 21:24:28 +00:00
globals feat: add content blocks and global settings 2025-12-01 08:19:15 +00:00
hooks fix: complete audit logging integration based on audit review 2025-12-07 21:24:28 +00:00
jobs chore: add jobs, backups, and migration history 2025-12-01 08:24:26 +00:00
lib feat: implement monitoring & alerting system 2025-12-07 20:58:20 +00:00
migrations feat: implement monitoring & alerting system 2025-12-07 20:58:20 +00:00
migrations_backup chore: add jobs, backups, and migration history 2025-12-01 08:24:26 +00:00
instrumentation.ts feat: add i18n, SEO, and frontend infrastructure 2025-12-01 08:19:35 +00:00
middleware.ts feat: add i18n, SEO, and frontend infrastructure 2025-12-01 08:19:35 +00:00
payload-generated-schema.ts chore: update core configuration and dependencies 2025-12-01 08:18:41 +00:00
payload-types.ts feat: implement monitoring & alerting system 2025-12-07 20:58:20 +00:00
payload.config.ts feat: implement monitoring & alerting system 2025-12-07 20:58:20 +00:00