llm-config-audit

Crates.iollm-config-audit
lib.rsllm-config-audit
version0.5.0
created_at2025-11-21 21:51:42.779694+00
updated_at2025-11-21 21:51:42.779694+00
descriptionComprehensive audit logging system with tamper-proof logs, change tracking, and compliance reporting
homepagehttps://github.com/globalbusinessadvisors/llm-config-manager
repositoryhttps://github.com/globalbusinessadvisors/llm-config-manager
max_upload_size
id1944327
size63,248
GBA (globalbusinessadvisors)

documentation

https://docs.rs/llm-config-manager

README

llm-config-audit

Crates.io Documentation License

Comprehensive audit logging system with tamper-proof logs, change tracking, and compliance reporting for LLM Config Manager.

Features

  • Tamper-Proof Logging: Cryptographic hashing of audit entries
  • Change Tracking: Record all configuration changes with before/after values
  • User Attribution: Track who made what changes when
  • Compliance Reports: SOC2, HIPAA, ISO27001 audit trails
  • Query Interface: Search and filter audit logs

Usage

[dependencies]
llm-config-audit = "0.5.0"
use llm_config_audit::{AuditLogger, AuditEvent};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let logger = AuditLogger::new()?;

    // Log an event
    logger.log(AuditEvent {
        user_id: "user123",
        action: "UPDATE",
        resource: "app.database.url",
        old_value: Some("old-url"),
        new_value: Some("new-url"),
        timestamp: Utc::now(),
    }).await?;

    // Query audit logs
    let logs = logger.query()
        .user("user123")
        .since(start_date)
        .execute()
        .await?;

    Ok(())
}

License

Licensed under the Apache License, Version 2.0.

Commit count: 0

cargo fmt