What problem does it solve?
This Skill provides a robust framework for logging all significant actions within the application, ensuring a complete and immutable record for security audits, forensic analysis, and compliance reporting.
Core Features & Use Cases
- Immutable Logging: Ensures audit records cannot be altered or deleted after creation.
- Comprehensive Capture: Logs state-changing operations, authentication events, and agent activities.
- Correlation: Links events to specific users, requests, and agent runs via correlation IDs.
- Retention Policies: Manages data lifecycle with configurable retention periods for different event types.
- Query API: Provides a secure endpoint for authorized users to retrieve audit data.
- Use Case: When a user updates a sensitive document, this Skill automatically records who made the change, when, from what IP address, and the outcome, creating an auditable trail.
Quick Start
Implement the Audit Trail skill by adding the AuditMiddleware to your FastAPI application.