Skip to content

Commit 4306187

Browse files
author
Jenkins
committed
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 aggregation
1 parent db944ba commit 4306187

9 files changed

Lines changed: 1119 additions & 0 deletions

File tree

crates/llmtrace-proxy/src/api.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ mod tests {
661661
cost_estimator,
662662
alert_engine: None,
663663
cost_tracker: None,
664+
report_store: crate::compliance::new_report_store(),
664665
})
665666
}
666667

@@ -708,6 +709,7 @@ mod tests {
708709
cost_estimator,
709710
alert_engine: None,
710711
cost_tracker,
712+
report_store: crate::compliance::new_report_store(),
711713
})
712714
}
713715

crates/llmtrace-proxy/src/auth.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ mod tests {
612612
cost_estimator,
613613
alert_engine: None,
614614
cost_tracker: None,
615+
report_store: crate::compliance::new_report_store(),
615616
})
616617
}
617618

0 commit comments

Comments
 (0)