Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for IsOwner (0.35 sec)

  1. cmd/auth-handler.go

    			ConditionValues: conditions,
    			IsOwner:         owner,
    			Claims:          cred.Claims,
    		})
    	}
    	if globalIAMSys.IsAllowed(policy.Args{
    		AccountName:     cred.AccessKey,
    		Groups:          cred.Groups,
    		Action:          policy.PutObjectRetentionAction,
    		BucketName:      bucketName,
    		ConditionValues: conditions,
    		ObjectName:      objectName,
    		IsOwner:         owner,
    		Claims:          cred.Claims,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  2. cmd/policy_test.go

    		ConditionValues: map[string][]string{},
    		IsOwner:         true,
    	}
    
    	putObjectActionArgs := policy.BucketPolicyArgs{
    		AccountName: "Q3AM3UQ867SPQQA43P2F",
    		Action:      policy.PutObjectAction,
    		BucketName:  "mybucket",
    		ConditionValues: map[string][]string{
    			"x-amz-copy-source": {"mybucket/myobject"},
    			"SourceIp":          {"192.168.1.10"},
    		},
    		IsOwner:    true,
    		ObjectName: "myobject",
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  3. cmd/bucket-policy.go

    	if _, ok := err.(BucketPolicyNotFound); !ok {
    		internalLogIf(GlobalContext, err, logger.WarningKind)
    	}
    
    	// As policy is not available for given bucket name, returns IsOwner i.e.
    	// operation is allowed only for owner.
    	return args.IsOwner
    }
    
    // NewPolicySys - creates new policy system.
    func NewPolicySys() *PolicySys {
    	return &PolicySys{}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users.go

    	if !globalIAMSys.IsAllowed(policy.Args{
    		AccountName:     cred.AccessKey,
    		Groups:          cred.Groups,
    		Action:          policy.GetUserAdminAction,
    		ConditionValues: getConditionValues(r, "", cred),
    		IsOwner:         owner,
    		Claims:          cred.Claims,
    		DenyOnly:        checkDenyOnly,
    	}) {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAccessDenied), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 15:15:02 GMT 2024
    - 76K bytes
    - Viewed (0)
  5. cmd/s3-zip-handlers.go

    			if globalPolicySys.IsAllowed(policy.BucketPolicyArgs{
    				Action:          policy.ListBucketAction,
    				BucketName:      bucket,
    				ConditionValues: getConditionValues(r, "", auth.AnonymousCredentials),
    				IsOwner:         false,
    			}) {
    				_, err = getObjectInfo(ctx, bucket, zipPath, opts)
    				if toAPIError(ctx, err).Code == "NoSuchKey" {
    					s3Error = ErrNoSuchKey
    				}
    			}
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  6. cmd/bucket-handlers.go

    		IsOwner:         false,
    	})
    
    	// Check if anonymous (non-owner) has access to upload objects.
    	writable := globalPolicySys.IsAllowed(policy.BucketPolicyArgs{
    		Action:          policy.PutObjectAction,
    		BucketName:      bucket,
    		ConditionValues: getConditionValues(r, "", auth.AnonymousCredentials),
    		IsOwner:         false,
    	})
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  7. cmd/admin-handlers-idp-ldap.go

    			AccountName:     cred.AccessKey,
    			Groups:          cred.Groups,
    			Action:          policy.ListServiceAccountsAdminAction,
    			ConditionValues: getConditionValues(r, "", cred),
    			IsOwner:         owner,
    			Claims:          cred.Claims,
    		}) {
    			writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAccessDenied), r.URL)
    			return
    		}
    	} else {
    		if !globalIAMSys.IsAllowed(policy.Args{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Apr 06 05:26:02 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  8. cmd/iam.go

    		hasSessionPolicy = false
    		return
    	}
    
    	// As the session policy exists, even if the parent is the root account, it
    	// must be restricted by it. So, we set `.IsOwner` to false here
    	// unconditionally.
    	sessionPolicyArgs := args
    	sessionPolicyArgs.IsOwner = false
    
    	// Sub policy is set and valid.
    	return hasSessionPolicy, subPolicy.IsAllowed(sessionPolicyArgs)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 19:09:19 GMT 2024
    - 69.9K bytes
    - Viewed (1)
  9. cmd/metrics.go

    		if !globalIAMSys.IsAllowed(policy.Args{
    			AccountName:     cred.AccessKey,
    			Groups:          cred.Groups,
    			Action:          policy.PrometheusAdminAction,
    			ConditionValues: getConditionValues(r, "", cred),
    			IsOwner:         owner,
    			Claims:          cred.Claims,
    		}) {
    			if ok {
    				tc.FuncName = "handler.MetricsAuth"
    				tc.ResponseRecorder.LogErrBody = true
    			}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    			if globalPolicySys.IsAllowed(policy.BucketPolicyArgs{
    				Action:          policy.ListBucketAction,
    				BucketName:      bucket,
    				ConditionValues: getConditionValues(r, "", auth.AnonymousCredentials),
    				IsOwner:         false,
    			}) {
    				_, err = getObjectInfo(ctx, bucket, object, opts)
    				if toAPIError(ctx, err).Code == "NoSuchKey" {
    					s3Error = ErrNoSuchKey
    				}
    			}
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 05 11:39:31 GMT 2024
    - 124.7K bytes
    - Viewed (0)
Back to top