Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for policy_name (0.15 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  2. cmd/sts-handlers.go

    		if ok {
    			policyName = globalIAMSys.CurrentPolicies(policies)
    		}
    
    		if newGlobalAuthZPluginFn() == nil {
    			if !ok {
    				writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue,
    					fmt.Errorf("%s claim missing from the JWT token, credentials will not be generated", iamPolicyClaimNameOpenID()))
    				return
    			} else if policyName == "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  3. internal/config/identity/openid/openid.go

    			p.DiscoveryDoc.ScopesSupported = scopes
    		}
    
    		// Check if claim name is the non-default value and role policy is set.
    		if p.ClaimName != policy.PolicyName && p.RolePolicy != "" {
    			// In the unlikely event that the user specifies
    			// `policy.PolicyName` as the claim name explicitly and sets
    			// a role policy, this check is thwarted, but we will be using
    			// the role policy anyway.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. cmd/iam-object-store.go

    	for index := range policies {
    		index := index
    		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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  5. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  6. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  7. cmd/peer-rest-server.go

    	objAPI := newObjectLayerFn()
    	if objAPI == nil {
    		return np, grid.NewRemoteErr(errServerNotInitialized)
    	}
    
    	policyName := mss.Get(peerRESTPolicy)
    	if policyName == "" {
    		return np, grid.NewRemoteErr(errors.New("policyName is missing"))
    	}
    
    	if err := globalIAMSys.DeletePolicy(context.Background(), policyName, false); err != nil {
    		return np, grid.NewRemoteErr(err)
    	}
    
    	return
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  8. cmd/peer-rest-client.go

    func (client *peerRESTClient) DeletePolicy(ctx context.Context, policyName string) (err error) {
    	_, err = deletePolicyRPC.Call(ctx, client.gridConn(), grid.NewMSSWith(map[string]string{
    		peerRESTPolicy: policyName,
    	}))
    	return err
    }
    
    // LoadPolicy - reload a specific canned policy.
    func (client *peerRESTClient) LoadPolicy(ctx context.Context, policyName string) (err error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top