Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for policy1 (0.07 sec)

  1. 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.MergePolicies(strings.Join(policies, ","))
    	return policy
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  2. 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]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    		// effective policy as `consoleAdmin`.
    		//
    		// In the latter case, we let the UI render everything, but individual
    		// actions would fail if not permitted by the external authZ service.
    		for _, policy := range policy.DefaultPolicies {
    			if policy.Name == "consoleAdmin" {
    				effectivePolicy = policy.Definition
    				break
    			}
    		}
    
    	case roleArn != "":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  4. cmd/sts-handlers_test.go

    		c.Fatalf("Unable to detach user policy: %v", err)
    	}
    
    	_, err = ldapID.Retrieve()
    	if err == nil {
    		c.Fatalf("Expected to fail to create a user with no associated policy!")
    	}
    
    	// Set policy via group and validate policy assignment.
    	groupDN := "cn=projectb,ou=groups,ou=swengg,dc=min,dc=io"
    	groupReq := madmin.PolicyAssociationReq{
    		Policies: []string{policy},
    		Group:    groupDN,
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  5. cmd/bucket-handlers.go

    	cred, owner, s3Error := checkRequestAuthTypeCredential(ctx, r, policy.CreateBucketAction)
    	if s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	if objectLockEnabled {
    		// Creating a bucket with locking requires the user having more permissions
    		for _, action := range []policy.Action{policy.PutBucketObjectLockConfigurationAction, policy.PutBucketVersioningAction} {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  6. cmd/api-errors.go

    	},
    	ErrAdminNoSuchPolicy: {
    		Code:           "XMinioAdminNoSuchPolicy",
    		Description:    "The canned policy does not exist.",
    		HTTPStatusCode: http.StatusNotFound,
    	},
    	ErrAdminPolicyChangeAlreadyApplied: {
    		Code:           "XMinioAdminPolicyChangeAlreadyApplied",
    		Description:    "The specified policy change is already in effect.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    
    	ErrAdminInvalidArgument: {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  7. cmd/test-utils_test.go

    			// Register PutBucket Policy handler.
    			bucket.Methods(http.MethodPut).HandlerFunc(api.PutBucketPolicyHandler).Queries("policy", "")
    		case "DeleteBucketPolicy":
    			// Register Delete bucket HTTP policy handler.
    			bucket.Methods(http.MethodDelete).HandlerFunc(api.DeleteBucketPolicyHandler).Queries("policy", "")
    		case "GetBucketPolicy":
    			// Register Get Bucket policy HTTP Handler.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  8. cmd/batch-handlers.go

    	"github.com/minio/minio/internal/ioutil"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/pkg/v3/console"
    	"github.com/minio/pkg/v3/env"
    	"github.com/minio/pkg/v3/policy"
    	"github.com/minio/pkg/v3/workers"
    	"gopkg.in/yaml.v3"
    )
    
    var globalBatchConfig batch.Config
    
    const (
    	// Keep the completed/failed job stats 3 days before removing it
    	oldJobsExpiration = 3 * 24 * time.Hour
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  9. cmd/peer-rest-server.go

    func (s *peerRESTServer) GetLocksHandler(_ *grid.MSS) (*localLockMap, *grid.RemoteErr) {
    	res := globalLockServer.DupLockMap()
    	return &res, nil
    }
    
    // DeletePolicyHandler - deletes a policy on the server.
    func (s *peerRESTServer) DeletePolicyHandler(mss *grid.MSS) (np grid.NoPayload, nerr *grid.RemoteErr) {
    	objAPI := newObjectLayerFn()
    	if objAPI == nil {
    		return np, grid.NewRemoteErr(errServerNotInitialized)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

          this.routeDatabase = okHttpClient.routeDatabase
          this.taskRunner = okHttpClient.taskRunner
        }
    
        /**
         * Sets the dispatcher used to set policy and execute asynchronous requests. Must not be null.
         */
        fun dispatcher(dispatcher: Dispatcher) =
          apply {
            this.dispatcher = dispatcher
          }
    
        /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
Back to top