Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 18 of 18 for getPolicy (0.18 seconds)

  1. cmd/bucket-policy-handlers_test.go

    			if err != nil {
    				t.Fatalf("unexpected error. %v", err)
    			}
    			var gotPolicy *policy.BucketPolicy
    			gotPolicy, err = policy.ParseBucketPolicyConfig(bytes.NewReader(bucketPolicyReadBuf), testCase.bucketName)
    			if err != nil {
    				t.Fatalf("unexpected error. %v", err)
    			}
    
    			if !reflect.DeepEqual(expectedPolicy, gotPolicy) {
    				t.Errorf("Test %d: %s: Bucket policy differs from expected value.", i+1, instanceType)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 32.9K bytes
    - Click Count (0)
  2. cmd/kms-handlers_test.go

    	if p != "" {
    		p = `{"Version":"2012-10-17","Statement":[` + p + `]}`
    		policyData, err := policy.ParseConfig(strings.NewReader(p))
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, err = globalIAMSys.SetPolicy(ctx, testKMSPolicyName, *policyData)
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, err = globalIAMSys.PolicyDBSet(ctx, accessKey, testKMSPolicyName, regUser, false)
    		if err != nil {
    			t.Fatal(err)
    		}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  3. cmd/iam.go

    	}
    
    	return sys.store.ListPolicyDocs(ctx, bucketName)
    }
    
    // SetPolicy - sets a new named policy.
    func (sys *IAMSys) SetPolicy(ctx context.Context, policyName string, p policy.Policy) (time.Time, error) {
    	if !sys.Initialized() {
    		return time.Time{}, errServerNotInitialized
    	}
    
    	updatedAt, err := sys.store.SetPolicy(ctx, policyName, p)
    	if err != nil {
    		return updatedAt, err
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 76.5K bytes
    - Click Count (0)
  4. cmd/sts-handlers_test.go

    	// \uFE52 is the unicode dot SMALL FULL STOP used below:
    	userDNWithUnicodeDot := "uid=svc﹒algorithm,OU=swengg,DC=min,DC=io"
    
    	if err = s.adm.SetPolicy(ctx, policy, userDNWithUnicodeDot, false); err != nil {
    		c.Fatalf("Unable to set policy: %v", err)
    	}
    
    	value, err := ldapID.Retrieve()
    	if err != nil {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 103.4K bytes
    - Click Count (1)
  5. cmd/admin-handlers-users.go

    	// Version in policy must not be empty
    	if iamPolicy.Version == "" {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrPolicyInvalidVersion), r.URL)
    		return
    	}
    
    	updatedAt, err := globalIAMSys.SetPolicy(ctx, policyName, *iamPolicy)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	// Call cluster-replication policy creation hook to replicate policy to
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 90.6K bytes
    - Click Count (0)
  6. CHANGELOG.md

     *  New: `HttpLoggingInterceptor.redactQueryParams()` configures the query parameters to redact
        in logs. For best security, don't put sensitive information in query parameters.
    
     *  New: `ConnectionPool.setPolicy()` configures a minimum connection pool size for a target
        address. Use this to proactively open HTTP connections.
    
        Connections opened to fulfill this policy are subject to the connection pool's
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 05 16:02:59 GMT 2025
    - 36.2K bytes
    - Click Count (2)
  7. cmd/server_test.go

    	expectedPolicy, err := policy.ParseBucketPolicyConfig(strings.NewReader(bucketPolicyStr), bucketName)
    	c.Assert(err, nil)
    	gotPolicy, err := policy.ParseBucketPolicyConfig(bytes.NewReader(bucketPolicyReadBuf), bucketName)
    	c.Assert(err, nil)
    	c.Assert(reflect.DeepEqual(expectedPolicy, gotPolicy), true)
    
    	// Delete policy.
    	request, err = newTestSignedRequest(http.MethodDelete, getDeletePolicyURL(s.endPoint, bucketName), 0, nil,
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 118.1K bytes
    - Click Count (0)
  8. cmd/site-replication.go

    			return nil
    		}
    	}
    	if p == nil {
    		err = globalIAMSys.DeletePolicy(ctx, policyName, true)
    	} else {
    		_, err = globalIAMSys.SetPolicy(ctx, policyName, *p)
    	}
    	if err != nil {
    		return wrapSRErr(err)
    	}
    	return nil
    }
    
    // PeerIAMUserChangeHandler - copies IAM user to local.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 184.8K bytes
    - Click Count (1)
Back to Top