mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
Add the access key and parent user in the audit log (#16572)
This commit is contained in:
parent
b1d98febfd
commit
fadc46b906
@ -116,6 +116,9 @@ func AuditLog(ctx context.Context, w http.ResponseWriter, r *http.Request, reqCl
|
|||||||
headerBytes = int64(st.HeaderSize())
|
headerBytes = int64(st.HeaderSize())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entry.AccessKey = reqInfo.Cred.AccessKey
|
||||||
|
entry.ParentUser = reqInfo.Cred.ParentUser
|
||||||
|
|
||||||
entry.API.Name = reqInfo.API
|
entry.API.Name = reqInfo.API
|
||||||
entry.API.Bucket = reqInfo.BucketName
|
entry.API.Bucket = reqInfo.BucketName
|
||||||
entry.API.Object = reqInfo.ObjectName
|
entry.API.Object = reqInfo.ObjectName
|
||||||
|
@ -66,6 +66,9 @@ type Entry struct {
|
|||||||
RespHeader map[string]string `json:"responseHeader,omitempty"`
|
RespHeader map[string]string `json:"responseHeader,omitempty"`
|
||||||
Tags map[string]interface{} `json:"tags,omitempty"`
|
Tags map[string]interface{} `json:"tags,omitempty"`
|
||||||
|
|
||||||
|
AccessKey string `json:"accessKey,omitempty"`
|
||||||
|
ParentUser string `json:"parentUser,omitempty"`
|
||||||
|
|
||||||
Error string `json:"error,omitempty"`
|
Error string `json:"error,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user