hyperlane-plugin-audit 23.3.0

A tamper-evident SHA-256 hash-chained security audit trail plugin for the Hyperlane framework with bounded in-memory ring-buffer sink, pluggable AuditSink trait, header redaction, and chain integrity verification.
Documentation
//! hyperlane-plugin-audit
//!
//! Tamper-evident SHA-256 hash-chained security audit trail plugin for
//! Hyperlane with bounded ring-buffer storage, pluggable [`AuditSink`] hooks,
//! header redaction, and cryptographic chain verification.

mod r#const;
mod r#fn;
mod r#impl;
mod r#static;
mod r#struct;
mod r#trait;

#[cfg(test)]
#[path = "../tests/mod.rs"]
mod tests;

pub use {r#const::*, r#fn::*, r#struct::*, r#trait::*};

pub(crate) use r#static::*;

use std::{
    collections::VecDeque,
    str::from_utf8,
    sync::{
        Arc, Mutex, OnceLock,
        atomic::{AtomicU64, Ordering},
    },
    time::{Instant, SystemTime, UNIX_EPOCH},
};

use {
    hyperlane::{AUTHORIZATION, COOKIE, Context, Method, Request, ServerHook, Status, Stream},
    lombok_macros::*,
    serde::{Deserialize, Serialize},
};