Skip to content

Improve proxy audit logs#82

Merged
samcm merged 1 commit intomasterfrom
sunny-whale-236
Mar 17, 2026
Merged

Improve proxy audit logs#82
samcm merged 1 commit intomasterfrom
sunny-whale-236

Conversation

@samcm
Copy link
Copy Markdown
Member

@samcm samcm commented Mar 17, 2026

Extracts the proxy auditor into its own file and adds remote_addr, query_string (captures SQL/PromQL/LogQL), request_bytes, and duration_ms (replaces the human-readable duration string) fields. Moves the auditor middleware to sit after authentication but before the authorizer and rate limiter, so authorization denials (403) and rate-limited requests (429) are now captured in audit logs.

- Extract auditor to its own file (was in rate_limiter.go)
- Reposition auditor in middleware chain after auth but before
  authorizer/rate-limiter so 403s and 429s are captured
- Add remote_addr, query_string, request_bytes fields
- Change duration from human-readable string to duration_ms (int64)
- Remove unused AuditEntry struct and AuditorConfig
@samcm samcm merged commit e921430 into master Mar 17, 2026
4 checks passed
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