Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for checkRequestAuthType (0.23 sec)

  1. cmd/object-handlers.go

    	if opts.VersionID != "" {
    		s3Error = checkRequestAuthType(ctx, r, policy.GetObjectVersionAttributesAction, bucket, object)
    		if s3Error == ErrNone {
    			s3Error = checkRequestAuthType(ctx, r, policy.GetObjectVersionAction, bucket, object)
    		}
    	} else {
    		s3Error = checkRequestAuthType(ctx, r, policy.GetObjectAttributesAction, bucket, object)
    		if s3Error == ErrNone {
    			s3Error = checkRequestAuthType(ctx, r, policy.GetObjectAction, bucket, object)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  2. cmd/s3-zip-handlers.go

    		return
    	}
    
    	getObjectInfo := objectAPI.GetObjectInfo
    
    	// Check for auth type to return S3 compatible error.
    	// type to return the correct error (NoSuchKey vs AccessDenied)
    	if s3Error := checkRequestAuthType(ctx, r, policy.GetObjectAction, bucket, zipPath); s3Error != ErrNone {
    		if getRequestAuthType(r) == authTypeAnonymous {
    			// As per "Permission" section in
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. cmd/bucket-handlers.go

    	}
    
    	// Make sure to update context to print ObjectNames for multi objects.
    	ctx = updateReqContext(ctx, objects...)
    
    	// Call checkRequestAuthType to populate ReqInfo.AccessKey before GetBucketInfo()
    	// Ignore errors here to preserve the S3 error behavior of GetBucketInfo()
    	checkRequestAuthType(ctx, r, policy.DeleteObjectAction, bucket, "")
    
    	deleteObjectsFn := objectAPI.DeleteObjects
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  4. cmd/object-multipart-handlers.go

    	}
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    	object, err := unescapePath(vars["object"])
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutObjectAction, bucket, object); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Check if bucket encryption is enabled
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  5. cmd/bucket-object-lock.go

    			// If you try to delete objects protected by governance mode and have s3:BypassGovernanceRetention, the operation will succeed.
    			if checkRequestAuthType(ctx, r, policy.BypassGovernanceRetentionAction, bucket, object.ObjectName) != ErrNone {
    				return errAuthentication
    			}
    		}
    	}
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  6. cmd/auth-handler.go

    //   - validates the policy action if anonymous tests bucket policies if any,
    //     for authenticated requests validates IAM policies.
    //
    // returns APIErrorCode if any to be replied to the client.
    func checkRequestAuthType(ctx context.Context, r *http.Request, action policy.Action, bucketName, objectName string) (s3Err APIErrorCode) {
    	logger.GetReqInfo(ctx).BucketName = bucketName
    	logger.GetReqInfo(ctx).ObjectName = objectName
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
Back to top