- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for IsOwner (0.24 sec)
-
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 Mar 24 19:28:08 GMT 2024 - Last Modified: Mon Sep 04 19:57:37 GMT 2023 - 8.9K bytes - Viewed (0) -
cmd/bucket-policy.go
} // Log unhandled errors. if _, ok := err.(BucketPolicyNotFound); !ok { logger.LogIf(GlobalContext, err) } // 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 Mar 24 19:28:08 GMT 2024 - Last Modified: Mon Feb 05 19:44:23 GMT 2024 - 7.9K bytes - Viewed (0) -
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 Mar 24 19:28:08 GMT 2024 - Last Modified: Thu Mar 07 22:30:00 GMT 2024 - 26K bytes - Viewed (0) -
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 Mar 24 19:28:08 GMT 2024 - Last Modified: Mon Feb 12 16:46:46 GMT 2024 - 61.8K bytes - Viewed (0) -
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 Mar 24 19:28:08 GMT 2024 - Last Modified: Wed Feb 28 17:09:09 GMT 2024 - 77.2K bytes - Viewed (0) -
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 Mar 24 19:28:08 GMT 2024 - Last Modified: Thu Oct 12 04:18:17 GMT 2023 - 15.7K bytes - Viewed (0) -
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 Mar 24 19:28:08 GMT 2024 - Last Modified: Fri Feb 02 00:13:57 GMT 2024 - 12.8K bytes - Viewed (0) -
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 Mar 24 19:28:08 GMT 2024 - Last Modified: Mon Feb 26 21:30:28 GMT 2024 - 63.3K bytes - Viewed (1) -
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 Mar 24 19:28:08 GMT 2024 - Last Modified: Mon Mar 04 18:05:56 GMT 2024 - 16.9K bytes - Viewed (0) -
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 Mar 24 19:28:08 GMT 2024 - Last Modified: Mon Mar 18 04:19:43 GMT 2024 - 124.5K bytes - Viewed (0)