Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for policy (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 May 05 19:28:20 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 May 05 19:28:20 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 May 05 19:28:20 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 May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  5. cmd/crossdomain-xml-handler.go

    import "net/http"
    
    // Standard cross domain policy information located at https://s3.amazonaws.com/crossdomain.xml
    const crossDomainXML = `<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><allow-access-from domain="*" secure="false" /></cross-domain-policy>`
    
    // Standard path where an app would find cross domain policy information.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 18 06:42:40 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  6. cmd/site-replication.go

    		// collect IAM policy replication status across sites
    		for p, pslc := range policyStats {
    			var policies []*policy.Policy
    			uPolicyCount := 0
    			for _, ps := range pslc {
    				plcy, err := policy.ParseConfig(bytes.NewReader([]byte(ps.SRIAMPolicy.Policy)))
    				if err != nil {
    					continue
    				}
    				policies = append(policies, plcy)
    				uPolicyCount++
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  7. cmd/iam-store.go

    func (store *IAMStoreSys) GetPolicy(name string) (policy.Policy, error) {
    	if name == "" {
    		return policy.Policy{}, errInvalidArgument
    	}
    
    	cache := store.rlock()
    	defer store.runlock()
    
    	policies := newMappedPolicy(name).toSlice()
    	var toMerge []policy.Policy
    	for _, policy := range policies {
    		if policy == "" {
    			continue
    		}
    		v, ok := cache.iamPolicyDocsMap[policy]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  8. cmd/iam-etcd-store.go

    }
    
    func (ies *IAMEtcdStore) loadPolicyDocWithRetry(ctx context.Context, policy string, m map[string]PolicyDoc, _ int) error {
    	return ies.loadPolicyDoc(ctx, policy, m)
    }
    
    func (ies *IAMEtcdStore) loadPolicyDoc(ctx context.Context, policy string, m map[string]PolicyDoc) error {
    	data, err := ies.loadIAMConfigBytes(ctx, getPolicyDocPath(policy))
    	if err != nil {
    		if err == errConfigNotFound {
    			return errNoSuchPolicy
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  9. cmd/admin-router.go

    		// Builtin IAM policy associations
    		adminRouter.Methods(http.MethodGet).Path(adminVersion + "/idp/builtin/policy-entities").HandlerFunc(adminMiddleware(adminAPI.ListPolicyMappingEntities))
    
    		// Remove policy IAM
    		adminRouter.Methods(http.MethodDelete).Path(adminVersion+"/remove-canned-policy").HandlerFunc(adminMiddleware(adminAPI.RemoveCannedPolicy)).Queries("name", "{name:.*}")
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  10. cmd/iam.go

    	sessionPolicyArgs.IsOwner = false
    
    	// Sub policy is set and valid.
    	return hasSessionPolicy, subPolicy.IsAllowed(sessionPolicyArgs)
    }
    
    // GetCombinedPolicy returns a combined policy combining all policies
    func (sys *IAMSys) GetCombinedPolicy(policies ...string) policy.Policy {
    	_, policy := sys.store.FilterPolicies(strings.Join(policies, ","), "")
    	return policy
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
Back to top