mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
parent
02c24a860d
commit
c19b1a143e
@ -2228,6 +2228,12 @@ func (sys *IAMSys) policyDBGet(name string, isGroup bool) (policies []string, er
|
|||||||
|
|
||||||
mp, ok := sys.iamUserPolicyMap[name]
|
mp, ok := sys.iamUserPolicyMap[name]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
// Service accounts with root credentials, inherit parent permissions
|
||||||
|
if parentName == globalActiveCred.AccessKey && u.IsServiceAccount() {
|
||||||
|
// even if this is set, the claims present in the service
|
||||||
|
// accounts apply the final permissions if any.
|
||||||
|
return []string{"consoleAdmin"}, nil
|
||||||
|
}
|
||||||
if parentName != "" {
|
if parentName != "" {
|
||||||
mp = sys.iamUserPolicyMap[parentName]
|
mp = sys.iamUserPolicyMap[parentName]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user