fix: notify parent user in notification events (#11934)

fixes #11885
This commit is contained in:
Harshavardhana
2021-03-31 13:21:10 -07:00
committed by GitHub
parent 18dee6a333
commit f60eaabfcd
2 changed files with 8 additions and 3 deletions

View File

@@ -233,10 +233,15 @@ func extractReqParams(r *http.Request) map[string]string {
region := globalServerRegion
cred := getReqAccessCred(r, region)
principalID := cred.AccessKey
if cred.ParentUser != "" {
principalID = cred.ParentUser
}
// Success.
m := map[string]string{
"region": region,
"accessKey": cred.AccessKey,
"principalId": principalID,
"sourceIPAddress": handlers.GetSourceIP(r),
// Add more fields here.
}