mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05: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