Commit 62f208e
feat: Phase 1 Compliance - Logging & Audit Foundation (v2.3.0)
New src/compliance/ module with enterprise-grade audit logging:
## Audit Logger (audit-logger.ts)
- Structured events with full attribution (actor, resource, outcome)
- Hash-chained integrity for tamper detection
- Event categories: auth, access, modify, delete, export, admin, security
- Severity levels: info, low, medium, high, critical
- Compliance tagging (SOC2, GDPR, PCI-DSS, ISO27001)
## Log Formats
- CEF (Common Event Format) for SIEM integration
- JSON-LD for compliance tools and knowledge graphs
## Log Shipping (log-shipper.ts)
- Webhook (HTTPS POST)
- Syslog (RFC 3164 / RFC 5424)
- S3/GCS cloud storage (placeholder)
- Batching and retry
## Retention Manager (retention-manager.ts)
- Daily/weekly/size-based rotation
- Compression (gzip)
- Secure deletion with certificates
- Configurable retention (default: 365 days)
## Log Verifier (log-verifier.ts)
- Hash chain verification
- Sequence continuity checking
- Gap and tampering detection
- Verification certificates
Part of Compliance Roadmap: SOC2, GDPR, PCI-DSS
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 7fd11ad commit 62f208e
File tree
10 files changed
+3059
-2
lines changed- src/compliance
- formats
10 files changed
+3059
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
8 | 79 | | |
9 | 80 | | |
10 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments