Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setDefaultCannedPolicies (0.21 sec)

  1. cmd/iam-store.go

    type iamStorageWatcher interface {
    	watch(ctx context.Context, keyPath string) <-chan iamWatchEvent
    }
    
    // Set default canned policies only if not already overridden by users.
    func setDefaultCannedPolicies(policies map[string]PolicyDoc) {
    	for _, v := range policy.DefaultPolicies {
    		if _, ok := policies[v.Name]; !ok {
    			policies[v.Name] = defaultPolicyDoc(v.Definition)
    		}
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 86.7K bytes
    - Viewed (0)
  2. cmd/iam.go

    			}
    			iamLogIf(ctx, fmt.Errorf("IAM sub-system is partially initialized, unable to write the IAM format: %w", err), logger.WarningKind)
    			return
    		}
    
    		break
    	}
    
    	cache := sys.store.lock()
    	setDefaultCannedPolicies(cache.iamPolicyDocsMap)
    	sys.store.unlock()
    
    	// Load IAM data from storage.
    	for {
    		if err := sys.Load(retryCtx, true); err != nil {
    			if configRetriableErrors(err) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 75.3K bytes
    - Viewed (0)
Back to top