mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-02 11:29:17 +00:00
feat(admin): audit KMS management operations
Every KMS admin endpoint now builds an OperationContext from the authenticated caller and hands it to the KMS layer, so the record the manager already produces carries the principal, source address and canonical request id instead of the internal placeholder. A new adapter maps those records onto the server's existing AuditEntry format and installs itself as the KMS audit sink at service assembly, so KMS activity reaches the targets a deployment already operates. The handlers emit directly for what the KMS layer cannot see: a request the authorization gate rejects, and the endpoints with no context-aware KMS entry point (data-key derivation and service control). Only the failure class is recorded, never the error message, and the new module joins the logging guardrail's checked files alongside the handlers it serves.
This commit is contained in:
@@ -14,7 +14,10 @@ checked_files=(
|
||||
"rustfs/src/admin/router.rs"
|
||||
"rustfs/src/admin/handlers/table_catalog.rs"
|
||||
"rustfs/src/admin/handlers/service_account.rs"
|
||||
"rustfs/src/admin/handlers/kms_audit.rs"
|
||||
"rustfs/src/admin/handlers/kms_dynamic.rs"
|
||||
"rustfs/src/admin/handlers/kms_keys.rs"
|
||||
"rustfs/src/admin/handlers/kms_key_lifecycle.rs"
|
||||
"rustfs/src/admin/handlers/site_replication.rs"
|
||||
"rustfs/src/admin/handlers/group.rs"
|
||||
"rustfs/src/admin/handlers/quota.rs"
|
||||
|
||||
Reference in New Issue
Block a user