mirror of
https://github.com/minio/minio.git
synced 2025-03-26 07:20:56 -04:00
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 <shubhendu@minio.io>
This commit is contained in:
parent
2d1cda2061
commit
6dc55fe5ed
@ -1772,7 +1772,7 @@ func (a adminAPIHandlers) ListPolicyMappingEntities(w http.ResponseWriter, r *ht
|
|||||||
|
|
||||||
// AttachDetachPolicyBuiltin - POST /minio/admin/v3/idp/builtin/policy/{operation}
|
// AttachDetachPolicyBuiltin - POST /minio/admin/v3/idp/builtin/policy/{operation}
|
||||||
func (a adminAPIHandlers) AttachDetachPolicyBuiltin(w http.ResponseWriter, r *http.Request) {
|
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))
|
defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user