mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
site replication: Avoid returning root svcacct info in sr metadata (#15608)
Service accounts of root users should not be replicated.
This commit is contained in:
parent
97376f6e8f
commit
929b9e164e
@ -3322,8 +3322,11 @@ func (c *SiteReplicationSys) SiteReplicationMetaInfo(ctx context.Context, objAPI
|
|||||||
return info, errSRBackendIssue(err)
|
return info, errSRBackendIssue(err)
|
||||||
}
|
}
|
||||||
for _, svcAcct := range svcAccts {
|
for _, svcAcct := range svcAccts {
|
||||||
info.UserInfoMap[svcAcct.AccessKey] = madmin.UserInfo{
|
// report all non-root user accounts for syncing
|
||||||
Status: madmin.AccountStatus(svcAcct.Status),
|
if svcAcct.ParentUser != "" && svcAcct.ParentUser != globalActiveCred.AccessKey {
|
||||||
|
info.UserInfoMap[svcAcct.AccessKey] = madmin.UserInfo{
|
||||||
|
Status: madmin.AccountStatus(svcAcct.Status),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tempAccts, err := globalIAMSys.ListTempAccounts(ctx, user)
|
tempAccts, err := globalIAMSys.ListTempAccounts(ctx, user)
|
||||||
|
Loading…
Reference in New Issue
Block a user