mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
fix: access for root user's STS credential (#13947)
add a test to cover this case
This commit is contained in:
committed by
GitHub
parent
0557e18472
commit
1f4e0bd17c
@@ -1425,6 +1425,8 @@ func (sys *IAMSys) IsAllowedSTS(args iampolicy.Args, parentUser string) bool {
|
||||
return false
|
||||
}
|
||||
policies = newMappedPolicy(sys.rolesMap[arn]).toSlice()
|
||||
} else if parentUser == globalActiveCred.AccessKey {
|
||||
policies = []string{"consoleAdmin"}
|
||||
} else {
|
||||
// Lookup the parent user's mapping if there's no role-ARN.
|
||||
mp, ok := sys.store.GetMappedPolicy(parentUser, false)
|
||||
|
||||
Reference in New Issue
Block a user