Skip to content

feat:Audit Logging for Sensitive Actions #285

Open
Skinny001 wants to merge 1 commit intoRemitwise-Org:mainfrom
Skinny001:main
Open

feat:Audit Logging for Sensitive Actions #285
Skinny001 wants to merge 1 commit intoRemitwise-Org:mainfrom
Skinny001:main

Conversation

@Skinny001
Copy link

  • Add audit logging module (/lib/audit/) with types, logger, sanitizer, and middleware
  • Log sensitive actions: login, logout, split updates, goals operations, bills creation
  • Audit events include: timestamp, action, address, ip, resource, result
  • Security: sanitize sensitive data (passwords, keys, tokens) from logs
  • Support stdout (JSON) and database destinations
  • Add AuditLog model to Prisma schema with indexes
  • Integrate logging in 11 API routes (auth, goals, split, bills)
  • Environment config: AUDIT_LOG_ENABLED, AUDIT_LOG_DESTINATION, AUDIT_RETENTION_DAYS

close #176

- Add audit logging module (/lib/audit/) with types, logger, sanitizer, and middleware
- Log sensitive actions: login, logout, split updates, goals operations, bills creation
- Audit events include: timestamp, action, address, ip, resource, result
- Security: sanitize sensitive data (passwords, keys, tokens) from logs
- Support stdout (JSON) and database destinations
- Add AuditLog model to Prisma schema with indexes
- Integrate logging in 11 API routes (auth, goals, split, bills)
- Environment config: AUDIT_LOG_ENABLED, AUDIT_LOG_DESTINATION, AUDIT_RETENTION_DAYS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audit Logging for Sensitive Actions

1 participant