audit
Module: sidecar::audit
Section titled “Module: sidecar::audit”Contents
Section titled “Contents”Structs
AuditConfig- Audit emitter configuration.
Enums
AuditSink- Audit event output sink selector.
firma_config_schema::sidecar::audit::AuditConfig
Section titled “firma_config_schema::sidecar::audit::AuditConfig”Struct
Audit emitter configuration.
| Sink | Required fields |
|---|---|
stdout | none |
file | file_path |
grpc | grpc_url, buffer_path |
wal | grpc_url, wal_path |
Fields:
sink: AuditSink- Output sink. Default:stdout.file_path: Option<std::path::PathBuf>- Path for thefilesink. Ignored by other sinks.grpc_url: Option<String>- Downstream audit service URL for thegrpcsink.buffer_path: Option<std::path::PathBuf>- Local buffer file backing thegrpcsink while the stream isbuffer_max_size: firma_config_utils::NonZeroByteSize- Maximum size of thegrpcsink’s local buffer. Default: 100 MiB.replay_ack_timeout: firma_config_utils::NonZeroDuration- How long thegrpcsink waits for the audit service to acknowledge awal_path: Option<std::path::PathBuf>- Local WAL file; sibling files retain destination scope and rejections.wal_max_size: firma_config_utils::NonZeroByteSize- Maximum pending WAL size. Exhaustion stops the sink without eviction.wal_request_timeout: firma_config_utils::NonZeroDuration- Bound on eachwalsink delivery attempt: connecting, sending, andsigning_key_path: Option<std::path::PathBuf>- Path to the ECDSA private key used for event signing. Mutuallysigning_key_env: Option<String>- Environment variable containing the ECDSA private key (PEM). Mutuallyredact_query_params: Vec<String>- Additional query parameter names to redact in audit logs.
Trait Implementations:
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Serialize
fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private229::Result<<__S as >::Ok, <__S as >::Error>
- Deserialize
fn deserialize<__D>(__deserializer: __D) -> _serde::__private229::Result<Self, <__D as >::Error>
- Clone
fn clone(self: &Self) -> Self
- Default
fn default() -> Self
firma_config_schema::sidecar::audit::AuditSink
Section titled “firma_config_schema::sidecar::audit::AuditSink”Enum
Audit event output sink selector.
Variants:
Stdout- Structured JSON lines written to stdout (default for containers).File- Append-only file sink.Grpc- Durable streaming gRPC sink to a downstream audit service. BuffersWal- Journal before delivery; reclaim only after a committed receipt or
Methods:
Traits: Copy, Eq
Trait Implementations:
- Clone
fn clone(self: &Self) -> Self
- Default
fn default() -> Self
- Display
fn fmt(self: &Self, f: & mut fmt::Formatter) -> fmt::Result
- PartialEq
fn eq(self: &Self, other: &Self) -> bool
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Serialize
fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private229::Result<<__S as >::Ok, <__S as >::Error>
- Deserialize
fn deserialize<D>(deserializer: D) -> Result<Self, <D as >::Error>