Barcode Betty 6b75d4906f feat: implement audit logging middleware for sensitive API operations
- Add AuditMiddleware that logs POST/PUT/PATCH/DELETE and GET /auth/me
- Logs structured JSON: event, timestamp, user_id, method, path, client_ip, status_code, duration_ms
- Excludes health endpoints and OPTIONS requests
- Never logs request/response bodies or auth headers/cookies
- Wire user_id from auth dependency via request.state
- Add add_audit_middleware() to app factory

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-14 13:41:55 +00:00
2026-03-30 20:20:07 +00:00
2026-03-30 00:50:51 +00:00
S
Description
Consumer savings platform with grocery coupon tracking, deal alerts, and price comparison
Readme 7.1 MiB
Languages
Python 85.1%
TypeScript 13.6%
Shell 0.5%
Dockerfile 0.5%
Mako 0.1%