do not expose secret-key to lambda event handler (#20870)

This commit is contained in:
Harshavardhana 2025-01-24 11:27:43 -08:00 committed by GitHub
parent ed29a525b3
commit c5d19ecebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,8 +93,8 @@ func getLambdaEventData(bucket, object string, cred auth.Credentials, r *http.Re
},
UserIdentity: levent.Identity{
Type: "IAMUser",
PrincipalID: cred.AccessKey,
AccessKeyID: cred.SecretKey,
PrincipalID: cred.ParentUser,
AccessKeyID: cred.AccessKey,
},
}
return eventData, nil