Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for policy_name (0.09 sec)

  1. cmd/admin-handlers-users.go

    				return
    			}
    			for policyName, policy := range allPolicies {
    				if policy.IsEmpty() {
    					err = globalIAMSys.DeletePolicy(ctx, policyName, true)
    					removed.Policies = append(removed.Policies, policyName)
    				} else {
    					_, err = globalIAMSys.SetPolicy(ctx, policyName, policy)
    					added.Policies = append(added.Policies, policyName)
    				}
    				if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 90.6K bytes
    - Viewed (0)
  2. cmd/sts-handlers.go

    		return
    	}
    
    	_, policyName, err := globalIAMSys.GetRolePolicy(roleArnStr)
    	if err != nil {
    		writeSTSErrorResponse(ctx, w, ErrSTSAccessDenied, err)
    		return
    	}
    
    	if newGlobalAuthZPluginFn() == nil { // if authZ is not set - we expect the policyname to be present.
    		if globalIAMSys.CurrentPolicies(policyName) == "" {
    			writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  3. cmd/iam-object-store.go

    	g := errgroup.WithNErrs(len(policies))
    
    	for index := range policies {
    		g.Go(func() error {
    			policyName := path.Dir(policies[index])
    			policyDoc, err := iamOS.loadPolicy(ctx, policyName)
    			if err != nil && !errors.Is(err, errNoSuchPolicy) {
    				return fmt.Errorf("unable to load the policy doc `%s`: %w", policyName, err)
    			}
    			policyDocs[index] = policyDoc
    			return nil
    		}, index)
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  4. cmd/iam.go

    func (sys *IAMSys) DeletePolicy(ctx context.Context, policyName string, notifyPeers bool) error {
    	if !sys.Initialized() {
    		return errServerNotInitialized
    	}
    
    	for _, v := range policy.DefaultPolicies {
    		if v.Name == policyName {
    			if err := checkConfig(ctx, globalObjectAPI, getPolicyDocPath(policyName)); err != nil && err == errConfigNotFound {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 75.3K bytes
    - Viewed (0)
  5. cmd/iam-store.go

    	if accessKey == "" || !cred.IsTemp() || cred.IsExpired() || cred.ParentUser == "" {
    		return time.Time{}, errInvalidArgument
    	}
    
    	ttl := int64(cred.Expiration.Sub(UTCNow()).Seconds())
    
    	cache := store.lock()
    	defer store.unlock()
    
    	if policyName != "" {
    		mp := newMappedPolicy(policyName)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 86.7K bytes
    - Viewed (0)
  6. cmd/ftp-server-driver.go

    			cred.ParentUser = lookupResult.NormDN
    
    			// Set this value to LDAP groups, LDAP user can be part
    			// of large number of groups
    			cred.Groups = targetGroups
    
    			// Set the newly generated credentials, policyName is empty on purpose
    			// LDAP policies are applied automatically using their ldapUser, ldapGroups
    			// mapping.
    			updatedAt, err := globalIAMSys.SetTempUser(context.Background(), cred.AccessKey, cred, "")
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  7. cmd/iam-etcd-store.go

    			return err
    		}
    	}
    	return nil
    }
    
    func (ies *IAMEtcdStore) savePolicyDoc(ctx context.Context, policyName string, p PolicyDoc) error {
    	return ies.saveIAMConfig(ctx, &p, getPolicyDocPath(policyName))
    }
    
    func (ies *IAMEtcdStore) saveMappedPolicy(ctx context.Context, name string, userType IAMUserType, isGroup bool, mp MappedPolicy, opts ...options) error {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  8. cmd/notification.go

    func (sys *NotificationSys) DeletePolicy(ctx context.Context, policyName string) []NotificationPeerErr {
    	ng := WithNPeers(len(sys.peerClients)).WithRetries(1)
    	for idx, client := range sys.peerClients {
    		ng.Go(ctx, func() error {
    			if client == nil {
    				return errPeerNotReachable
    			}
    			return client.DeletePolicy(ctx, policyName)
    		}, idx, *client.host)
    	}
    	return ng.Wait()
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 45.9K bytes
    - Viewed (0)
  9. cmd/sftp-server.go

    	cred.ParentUser = lookupResult.NormDN
    
    	// Set this value to LDAP groups, LDAP user can be part
    	// of large number of groups
    	cred.Groups = targetGroups
    
    	// Set the newly generated credentials, policyName is empty on purpose
    	// LDAP policies are applied automatically using their ldapUser, ldapGroups
    	// mapping.
    	updatedAt, err := globalIAMSys.SetTempUser(context.Background(), cred.AccessKey, cred, "")
    	if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  10. cmd/site-replication.go

    // causes the named policy to be deleted.
    func (c *SiteReplicationSys) PeerAddPolicyHandler(ctx context.Context, policyName string, p *policy.Policy, updatedAt time.Time) error {
    	var err error
    	// skip overwrite of local update if peer sent stale info
    	if !updatedAt.IsZero() {
    		if p, err := globalIAMSys.store.GetPolicyDoc(policyName); err == nil && p.UpdateDate.After(updatedAt) {
    			return nil
    		}
    	}
    	if p == nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 184.7K bytes
    - Viewed (0)
Back to top