Commit 4306187
Jenkins
feat: add compliance reporting for SOC2, GDPR, and HIPAA (Loop 24)
Implement automated compliance report generation with structured JSON output:
- Add compliance.rs module with report generation for three report types:
- SOC2: audit trail, security findings, access patterns, unique actors
- GDPR: data processing records by provider/model, PII findings, lifecycle events
- HIPAA: access logs by operation, unauthorized access findings, failed attempts
- API endpoints:
- POST /api/v1/reports/generate: async report generation (returns 202 with ID)
- GET /api/v1/reports/:id: retrieve completed report with full content
- Reports query real audit events, security findings, traces, and spans
for configurable time periods with tenant isolation
- In-memory report store (ReportStore) with pending/completed/failed status
- 12 tests covering all report types, validation, tenant isolation,
empty data handling, and audit event aggregation1 parent db944ba commit 4306187
9 files changed
Lines changed: 1119 additions & 0 deletions
File tree
- crates/llmtrace-proxy
- src
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
| 664 | + | |
664 | 665 | | |
665 | 666 | | |
666 | 667 | | |
| |||
708 | 709 | | |
709 | 710 | | |
710 | 711 | | |
| 712 | + | |
711 | 713 | | |
712 | 714 | | |
713 | 715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| 615 | + | |
615 | 616 | | |
616 | 617 | | |
617 | 618 | | |
| |||
0 commit comments