Commit 88cbda5
Restructure audit package and remove Reason field
- Split audit.go into separate files:
- request.go: Request struct and HTTPRequestToAuditRequest function
- logging_auditor.go: LoggingAuditor implementation and Auditor interface
- Move LoggingAuditor tests to logging_auditor_test.go
- Keep general audit tests (HTTPRequestToAuditRequest) in request_test.go
- Remove Request.Reason field and ReasonNoMatchingRules constant
- Update proxy to use concrete LoggingAuditor type instead of interface
- Simplify audit logging by removing reason parameter from DENY logs
- All tests pass with improved organization and cleaner API
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 9d90af3 commit 88cbda5
File tree
6 files changed
+289
-263
lines changed- audit
- proxy
6 files changed
+289
-263
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments