Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 199 for policy (0.11 sec)

  1. cmd/bucket-policy.go

    	return args
    }
    
    // PolicyToBucketAccessPolicy converts a MinIO policy into a minio-go policy data structure.
    func PolicyToBucketAccessPolicy(bucketPolicy *policy.BucketPolicy) (*miniogopolicy.BucketAccessPolicy, error) {
    	// Return empty BucketAccessPolicy for empty bucket policy.
    	if bucketPolicy == nil {
    		return &miniogopolicy.BucketAccessPolicy{Version: policy.DefaultVersion}, nil
    	}
    
    	data, err := json.Marshal(bucketPolicy)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. cmd/bucket-policy-handlers_test.go

    	"github.com/minio/pkg/v3/policy"
    	"github.com/minio/pkg/v3/policy/condition"
    )
    
    func getAnonReadOnlyBucketPolicy(bucketName string) *policy.BucketPolicy {
    	return &policy.BucketPolicy{
    		Version: policy.DefaultVersion,
    		Statements: []policy.BPStatement{
    			policy.NewBPStatement(
    				"",
    				policy.Allow,
    				policy.NewPrincipal("*"),
    				policy.NewActionSet(policy.GetBucketLocationAction, policy.ListBucketAction),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  3. cmd/bucket-policy-handlers.go

    	"github.com/minio/mux"
    	"github.com/minio/pkg/v3/policy"
    )
    
    const (
    	// As per AWS S3 specification, 20KiB policy JSON data is allowed.
    	maxBucketPolicySize = 20 * humanize.KiByte
    
    	// Policy configuration file.
    	bucketPolicyConfig = "policy.json"
    )
    
    // PutBucketPolicyHandler - This HTTP handler stores given bucket policy configuration as per
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users_test.go

    	// 4. Verify the policy appears in listing
    	ps, err := s.adm.ListCannedPolicies(ctx)
    	if err != nil {
    		c.Fatalf("policy list err: %v", err)
    	}
    	_, ok := ps[policy1]
    	if !ok {
    		c.Fatalf("policy was missing!")
    	}
    
    	// Detach policy1 to set up for policy2
    	_, err = s.adm.DetachPolicy(ctx, madmin.PolicyAssociationReq{
    		Policies: []string{policy1},
    		User:     accessKey,
    	})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  5. cmd/kms-handlers.go

    func checkKMSActionAllowed(r *http.Request, owner bool, cred auth.Credentials, action policy.KMSAction, resource string) bool {
    	return globalIAMSys.IsAllowed(policy.Args{
    		AccountName:     cred.AccessKey,
    		Groups:          cred.Groups,
    		Action:          policy.Action(action),
    		ConditionValues: getConditionValues(r, "", cred),
    		IsOwner:         owner,
    		Claims:          cred.Claims,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. cmd/postpolicyform.go

    		formCanonicalName := http.CanonicalHeaderKey(strings.TrimPrefix(policy.Key, "$"))
    		// Operator for the current policy condition
    		op := policy.Operator
    		// Multiple values should not occur
    		if len(checkHeader[formCanonicalName]) >= 2 {
    			return fmt.Errorf("Invalid according to Policy: Policy Condition failed: [%s, %s, %s]. FormValues have multiple values: [%s]", op, policy.Key, policy.Value, strings.Join(checkHeader[formCanonicalName], ", "))
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. compat/maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java

        }
    
        public void merge(ArtifactRepositoryPolicy policy) {
            if (policy != null && policy.isEnabled()) {
                setEnabled(true);
    
                if (ordinalOfCksumPolicy(policy.getChecksumPolicy()) < ordinalOfCksumPolicy(getChecksumPolicy())) {
                    setChecksumPolicy(policy.getChecksumPolicy());
                }
    
                if (ordinalOfUpdatePolicy(policy.getUpdatePolicy()) < ordinalOfUpdatePolicy(getUpdatePolicy())) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. cmd/post-policy_test.go

    	// Generate the final policy document
    	policy = fmt.Sprintf(policy, dates...)
    
    	region := "us-east-1"
    	// Create a new POST request with success_action_redirect field specified
    	req, perr := newPostRequestV4Generic("", bucketName, keyName, []byte("objData"),
    		credentials.AccessKey, credentials.SecretKey, region, curTime,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  9. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorUtils.java

            boolean enabled = true;
            String checksums = toRepositoryChecksumPolicy(RepositoryPolicy.CHECKSUM_POLICY_WARN); // the default
            String updates = RepositoryPolicy.UPDATE_POLICY_DAILY;
    
            if (policy != null) {
                enabled = policy.isEnabled();
                if (policy.getUpdatePolicy() != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. docs/site-replication/run-multi-site-ldap.sh

    	exit_1
    fi
    
    sleep 10
    
    ./mc idp ldap policy entities minio1
    ./mc idp ldap policy entities minio2
    ./mc idp ldap policy entities minio3
    
    ./mc admin service restart minio1
    ./mc admin service restart minio2
    ./mc admin service restart minio3
    
    sleep 10
    
    ./mc idp ldap policy entities minio1
    ./mc idp ldap policy entities minio2
    ./mc idp ldap policy entities minio3
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 08:03:58 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top