mirror of
https://github.com/minio/minio.git
synced 2026-11-25 23:23:49 +00:00
fix: username replacements for aws:username must use parentUser (#16591)
This commit is contained in:
1 parent
6b41f941b6
commit
b363400587
2 files changed
+99
No files matched your search
@@ -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