mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
fix: checking for stale STS account under site replication (#16109)
This commit is contained in:
1 parent
98ba622679
commit
04948b4d55
3 files changed
+43
-8
No files matched your search
@@ -1257,9 +1257,8 @@ func (c *SiteReplicationSys) PeerSTSAccHandler(ctx context.Context, stsCred *mad
|
||||
}
|
||||
// skip overwrite of local update if peer sent stale info
|
||||
if !updatedAt.IsZero() {
|
||||
if u, err := globalIAMSys.GetUserInfo(ctx, stsCred.AccessKey); err == nil {
|
||||
ok, _, _ := globalIAMSys.IsTempUser(stsCred.AccessKey)
|
||||
if ok && u.UpdatedAt.After(updatedAt) {
|
||||
if u, _, err := globalIAMSys.getTempAccount(ctx, stsCred.AccessKey); err == nil {
|
||||
if u.UpdatedAt.After(updatedAt) {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user