Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 207 for wspolicy (0.24 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)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  2. internal/kms/policy-manager.go

    // PolicyManager is the generic interface that handles KMS policy] operations
    type PolicyManager interface {
    	// DescribePolicy describes a policy by returning its metadata.
    	// e.g. who created the policy at which point in time.
    	DescribePolicy(ctx context.Context, policy string) (*kes.PolicyInfo, error)
    
    	// GetPolicy gets a policy from KMS.
    	GetPolicy(ctx context.Context, policy string) (*kes.Policy, error)
    
    	// ListPolicies lists all policies.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. cmd/bucket-policy-handlers.go

    	"github.com/minio/mux"
    	"github.com/minio/pkg/v2/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
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. 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,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  5. internal/config/browser/browser.go

    var configLock sync.RWMutex
    
    // Config storage class configuration
    type Config struct {
    	CSPPolicy             string `json:"csp_policy"`
    	HSTSSeconds           int    `json:"hsts_seconds"`
    	HSTSIncludeSubdomains bool   `json:"hsts_include_subdomains"`
    	HSTSPreload           bool   `json:"hsts_preload"`
    	ReferrerPolicy        string `json:"referrer_policy"`
    }
    
    // Update Updates browser with new config
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  6. 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[policy]
    	if !ok {
    		c.Fatalf("policy was missing!")
    	}
    
    	// 5. Check that policy cannot be deleted when attached to a user.
    	err = s.adm.RemoveCannedPolicy(ctx, policy)
    	if err == nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
  7. cmd/sts-handlers.go

    		sessionPolicy, err := policy.ParseConfig(bytes.NewReader([]byte(sessionPolicyStr)))
    		if err != nil {
    			writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, err)
    			return
    		}
    
    		// Version in policy must not be empty
    		if sessionPolicy.Version == "" {
    			writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, fmt.Errorf("Invalid session policy version"))
    			return
    		}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  8. cmd/sts-handlers_test.go

    		c.Fatalf("Expected to fail to create STS cred with no associated policy!")
    	}
    
    	// Attempting to set a non-existent policy should fail.
    	userDN := "uid=dillon,ou=people,ou=swengg,dc=min,dc=io"
    	err = s.adm.SetPolicy(ctx, policy+"x", userDN, false)
    	if err == nil {
    		c.Fatalf("should not be able to set non-existent policy")
    	}
    
    	err = s.adm.SetPolicy(ctx, policy, userDN, false)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

                    }
                }
                return "";
            }
        }
    
        private static RepositoryPolicy toPolicy(ArtifactRepositoryPolicy policy) {
            RepositoryPolicy result = null;
            if (policy != null) {
                result = new RepositoryPolicy(policy.isEnabled(), policy.getUpdatePolicy(), policy.getChecksumPolicy());
            }
            return result;
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 16K bytes
    - Viewed (0)
  10. cmd/site-replication.go

    	},
    		replicateIAMItem,
    	)
    	return errors.Unwrap(cerr)
    }
    
    // PeerAddPolicyHandler - copies IAM policy to local. A nil policy argument,
    // 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() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
Back to top