mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
add missing STS accounts loading (#20279)
PR #20268 missed loading STS accounts map properly
This commit is contained in:
@@ -802,7 +802,11 @@ func (iamOS *IAMObjectStore) loadAllFromObjStore(ctx context.Context, cache *iam
|
||||
// Store the newly populated map in the iam cache. This takes care of
|
||||
// removing stale entries from the existing map.
|
||||
cache.iamSTSAccountsMap = stsAccountsFromStore
|
||||
cache.iamSTSPolicyMap = stsAccPoliciesFromStore
|
||||
|
||||
stsAccPoliciesFromStore.Range(func(k string, v MappedPolicy) bool {
|
||||
cache.iamSTSPolicyMap.Store(k, v)
|
||||
return true
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user