mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: username replacements for aws:username must use parentUser (#16591)
This commit is contained in:
@@ -75,6 +75,11 @@ func getConditionValues(r *http.Request, lc string, cred auth.Credentials) map[s
|
||||
groups = cred.Groups
|
||||
)
|
||||
|
||||
if cred.IsTemp() || cred.IsServiceAccount() {
|
||||
// For derived credentials, check the parent user's permissions.
|
||||
username = cred.ParentUser
|
||||
}
|
||||
|
||||
principalType := "Anonymous"
|
||||
if username != "" {
|
||||
principalType = "User"
|
||||
|
||||
Reference in New Issue
Block a user