Skip to content

Add audit logging and configurable Centrifuge log level#9

Merged
pscheid92 merged 1 commit intomainfrom
audit-logging-and-centrifuge-log-level
Feb 22, 2026
Merged

Add audit logging and configurable Centrifuge log level#9
pscheid92 merged 1 commit intomainfrom
audit-logging-and-centrifuge-log-level

Conversation

@pscheid92
Copy link
Owner

@pscheid92 pscheid92 commented Feb 22, 2026

Summary

  • Add slog.InfoContext audit logs after successful sensitive operations: login, logout, config save, sentiment reset, overlay UUID rotation
  • Wire correlation ID middleware into the Echo middleware chain so all HTTP request logs automatically include correlation_id
  • Make Centrifuge respect the app's LOG_LEVEL setting instead of always logging at Info level

Test plan

  • make build compiles cleanly
  • make test-short — all unit tests pass
  • make lint — no lint errors
  • Manual: set LOG_LEVEL=warn, verify Centrifuge doesn't emit Info-level logs
  • Manual: perform login, config save, UUID rotation, sentiment reset, logout — verify each produces an audit log line with correlation_id

…e log level

Add slog.InfoContext audit logs after successful login, logout, config save,
sentiment reset, and overlay UUID rotation. Wire correlation ID middleware into
the Echo middleware chain so all HTTP request logs include a correlation_id.

Make Centrifuge respect the app's LOG_LEVEL setting instead of always logging
at Info level, reducing noise in production.
@pscheid92 pscheid92 merged commit 09e1558 into main Feb 22, 2026
1 check passed
@pscheid92 pscheid92 deleted the audit-logging-and-centrifuge-log-level branch February 22, 2026 23:22
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.

1 participant