Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for policySet (0.18 sec)

  1. cmd/iam-store.go

    	for _, policy := range strings.Split(mp.Policies, ",") {
    		if strings.TrimSpace(policy) == "" {
    			continue
    		}
    		policies = append(policies, policy)
    	}
    	return policies
    }
    
    func (mp MappedPolicy) policySet() set.StringSet {
    	return set.CreateStringSet(mp.toSlice()...)
    }
    
    func newMappedPolicy(policy string) MappedPolicy {
    	return MappedPolicy{Version: 1, Policies: policy, UpdatedAt: UTCNow()}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 74.4K bytes
    - Viewed (2)
  2. cmd/iam.go

    	// running server by creating the policies after start up.
    	for arn, rolePolicies := range m {
    		specifiedPoliciesSet := newMappedPolicy(rolePolicies).policySet()
    		validPolicies, _ := sys.store.FilterPolicies(rolePolicies, "")
    		knownPoliciesSet := newMappedPolicy(validPolicies).policySet()
    		unknownPoliciesSet := specifiedPoliciesSet.Difference(knownPoliciesSet)
    		if len(unknownPoliciesSet) > 0 {
    			authz := newGlobalAuthZPluginFn()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 19:09:19 GMT 2024
    - 69.9K bytes
    - Viewed (1)
  3. cmd/sts-handlers.go

    		// JWT. This is a MinIO STS API specific value, this value
    		// should be set and configured on your identity provider as
    		// part of JWT custom claims.
    		policySet, ok := policy.GetPoliciesFromClaims(claims, iamPolicyClaimNameOpenID())
    		policies := strings.Join(policySet.ToSlice(), ",")
    		if ok {
    			policyName = globalIAMSys.CurrentPolicies(policies)
    		}
    
    		if newGlobalAuthZPluginFn() == nil {
    			if !ok {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  4. cmd/admin-handlers-users.go

    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    		if len(policiesNames) == 0 {
    			policySet, _ := args.GetPolicies(iamPolicyClaimNameOpenID())
    			policiesNames = policySet.ToSlice()
    		}
    
    		stsAccountPolicy = globalIAMSys.GetCombinedPolicy(policiesNames...)
    	}
    
    	policyJSON, err := json.MarshalIndent(stsAccountPolicy, "", " ")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 15:15:02 GMT 2024
    - 76K bytes
    - Viewed (0)
  5. cmd/bucket-policy-handlers_test.go

    		// length in bytes of the bucket policy being set.
    		policyLen int
    		accessKey string
    		secretKey string
    		// expected Response.
    		expectedRespStatus int
    	}{
    		// Test case - 1.
    		{
    			bucketName:         bucketName,
    			bucketPolicyReader: bytes.NewReader([]byte(fmt.Sprintf(bucketPolicyTemplate, bucketName, bucketName))),
    
    			policyLen:          len(fmt.Sprintf(bucketPolicyTemplate, bucketName, bucketName)),
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  6. docs/sts/ldap.md

    ```sh
    mc admin policy create myminio mypolicy mypolicy.json
    ```
    
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.4K bytes
    - Viewed (1)
Back to top