From 6dc55fe5ed234fa28b7672d6fdfe6e61c5b066a1 Mon Sep 17 00:00:00 2001 From: Shubhendu Date: Thu, 13 Jul 2023 04:08:49 +0530 Subject: [PATCH] Corrected the API name for audit logging purpose (#17642) This would better to record the correct API name so that any verification around audit logs to figure out if required APIs are called required no of times, would be correct. Here in this case of policy attached, API `AttachDetachPolicyBuiltin` would be called with `requestPath` as `/minio/admin/v3/idp/builtin/policy/attach` and in case of detach policy the value would be `/minio/admin/v3/idp/builtin/policy/detach` Signed-off-by: Shubhendu Ram Tripathi --- cmd/admin-handlers-users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/admin-handlers-users.go b/cmd/admin-handlers-users.go index 914db2541..2ad2d7348 100644 --- a/cmd/admin-handlers-users.go +++ b/cmd/admin-handlers-users.go @@ -1772,7 +1772,7 @@ func (a adminAPIHandlers) ListPolicyMappingEntities(w http.ResponseWriter, r *ht // AttachDetachPolicyBuiltin - POST /minio/admin/v3/idp/builtin/policy/{operation} func (a adminAPIHandlers) AttachDetachPolicyBuiltin(w http.ResponseWriter, r *http.Request) { - ctx := newContext(r, w, "AttachPolicyBuiltin") + ctx := newContext(r, w, "AttachDetachPolicyBuiltin") defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))