feat(logging): add Kafka and Webhook audit targets

- Implemented `KafkaAuditTarget` to send audit entries to a Kafka topic.
- Implemented `WebhookAuditTarget` to send audit entries to a specified webhook URL.
- Updated `AuditLogger` to support multiple audit targets including Kafka and Webhook.
- Added examples and documentation for the new audit targets.
This commit is contained in:
houseme
2025-02-21 18:49:25 +08:00
parent 03589201fb
commit c04536b132
5 changed files with 137 additions and 1 deletions
+1
View File
@@ -74,6 +74,7 @@ protobuf = "3.7"
protos = { path = "./common/protos" }
rand = "0.8.5"
reqwest = { version = "0.12.12", default-features = false, features = ["rustls-tls", "charset", "http2", "macos-system-configuration", "stream"] }
rdkafka = { version = "0.37", features = ["tokio"] }
rfd = "0.15.2"
rmp = "0.8.14"
rmp-serde = "1.3.0"