mirror of
https://github.com/minio/minio.git
synced 2025-01-27 22:46:00 -05:00
do not expose secret-key to lambda event handler (#20870)
This commit is contained in:
parent
ed29a525b3
commit
c5d19ecebb
@ -93,8 +93,8 @@ func getLambdaEventData(bucket, object string, cred auth.Credentials, r *http.Re
|
|||||||
},
|
},
|
||||||
UserIdentity: levent.Identity{
|
UserIdentity: levent.Identity{
|
||||||
Type: "IAMUser",
|
Type: "IAMUser",
|
||||||
PrincipalID: cred.AccessKey,
|
PrincipalID: cred.ParentUser,
|
||||||
AccessKeyID: cred.SecretKey,
|
AccessKeyID: cred.AccessKey,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
return eventData, nil
|
return eventData, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user