@crvouga/mockingbird-service-s3 3.9.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/errors.generated.ts", "../src/errors.ts", "../src/auth.ts"],
4
+ "sourcesContent": ["// Generated by scripts/minio-errors.ts from MinIO's cmd/api-errors.go; do not edit.\n/** MinIO's error table: name \u2192 [S3 code, message, HTTP status]. */\nexport const MINIO_ERRORS = {\n InvalidCopyDest: [\n \"InvalidRequest\",\n \"This copy request is illegal because it is trying to copy an object to itself without changing the object's metadata, storage class, website redirect location or encryption attributes.\",\n 400,\n ],\n InvalidCopySource: [\n \"InvalidArgument\",\n \"Copy Source must mention the source bucket and key: sourcebucket/sourcekey.\",\n 400,\n ],\n InvalidMetadataDirective: [\"InvalidArgument\", \"Unknown metadata directive.\", 400],\n InvalidStorageClass: [\"InvalidStorageClass\", \"Invalid storage class.\", 400],\n InvalidRequestBody: [\"InvalidArgument\", \"Body shouldn't be set for this request.\", 400],\n InvalidMaxUploads: [\n \"InvalidArgument\",\n \"Argument max-uploads must be an integer between 0 and 2147483647\",\n 400,\n ],\n InvalidMaxKeys: [\n \"InvalidArgument\",\n \"Argument maxKeys must be an integer between 0 and 2147483647\",\n 400,\n ],\n InvalidEncodingMethod: [\"InvalidArgument\", \"Invalid Encoding Method specified in Request\", 400],\n InvalidMaxParts: [\n \"InvalidArgument\",\n \"Part number must be an integer between 1 and 10000, inclusive\",\n 400,\n ],\n InvalidPartNumberMarker: [\n \"InvalidArgument\",\n \"Argument partNumberMarker must be an integer.\",\n 400,\n ],\n InvalidPartNumber: [\"InvalidPartNumber\", \"The requested partnumber is not satisfiable\", 416],\n InvalidPolicyDocument: [\n \"InvalidPolicyDocument\",\n \"The content of the form does not meet the conditions specified in the policy document.\",\n 400,\n ],\n AccessDenied: [\"AccessDenied\", \"Access Denied.\", 403],\n BadDigest: [\"BadDigest\", \"The Content-Md5 you specified did not match what we received.\", 400],\n EntityTooSmall: [\n \"EntityTooSmall\",\n \"Your proposed upload is smaller than the minimum allowed object size.\",\n 400,\n ],\n EntityTooLarge: [\n \"EntityTooLarge\",\n \"Your proposed upload exceeds the maximum allowed object size.\",\n 400,\n ],\n ExcessData: [\"ExcessData\", \"More data provided than indicated content length\", 400],\n PolicyInvalidName: [\"PolicyInvalidName\", \"Policy name may not contain comma\", 400],\n AdminOpenIDNotEnabled: [\"OpenIDNotEnabled\", \"No enabled OpenID Connect identity providers\", 400],\n PolicyTooLarge: [\"PolicyTooLarge\", \"Policy exceeds the maximum allowed document size.\", 400],\n IncompleteBody: [\n \"IncompleteBody\",\n \"You did not provide the number of bytes specified by the Content-Length HTTP header.\",\n 400,\n ],\n InternalError: [\"InternalError\", \"We encountered an internal error, please try again.\", 500],\n InvalidAccessKeyID: [\n \"InvalidAccessKeyId\",\n \"The Access Key Id you provided does not exist in our records.\",\n 403,\n ],\n AccessKeyDisabled: [\n \"InvalidAccessKeyId\",\n \"Your account is disabled; please contact your administrator.\",\n 403,\n ],\n InvalidArgument: [\"InvalidArgument\", \"Invalid argument\", 400],\n InvalidBucketName: [\"InvalidBucketName\", \"The specified bucket is not valid.\", 400],\n InvalidDigest: [\"InvalidDigest\", \"The Content-Md5 you specified is not valid.\", 400],\n InvalidRange: [\"InvalidRange\", \"The requested range is not satisfiable\", 416],\n InvalidRangePartNumber: [\n \"InvalidRequest\",\n \"Cannot specify both Range header and partNumber query parameter\",\n 400,\n ],\n MalformedXML: [\n \"MalformedXML\",\n \"The XML you provided was not well-formed or did not validate against our published schema.\",\n 400,\n ],\n MissingContentLength: [\n \"MissingContentLength\",\n \"You must provide the Content-Length HTTP header.\",\n 411,\n ],\n MissingContentMD5: [\n \"MissingContentMD5\",\n \"Missing or invalid required header for this request: Content-Md5 or Amz-Content-Checksum\",\n 400,\n ],\n MissingSecurityHeader: [\n \"MissingSecurityHeader\",\n \"Your request was missing a required header\",\n 400,\n ],\n MissingRequestBodyError: [\"MissingRequestBodyError\", \"Request body is empty.\", 411],\n NoSuchBucket: [\"NoSuchBucket\", \"The specified bucket does not exist\", 404],\n NoSuchBucketPolicy: [\"NoSuchBucketPolicy\", \"The bucket policy does not exist\", 404],\n NoSuchBucketLifecycle: [\n \"NoSuchBucketLifecycle\",\n \"The bucket lifecycle configuration does not exist\",\n 404,\n ],\n NoSuchLifecycleConfiguration: [\n \"NoSuchLifecycleConfiguration\",\n \"The lifecycle configuration does not exist\",\n 404,\n ],\n InvalidLifecycleWithObjectLock: [\n \"InvalidLifecycleWithObjectLock\",\n \"The lifecycle configuration containing MaxNoncurrentVersions is not supported with object locking\",\n 400,\n ],\n NoSuchBucketSSEConfig: [\n \"ServerSideEncryptionConfigurationNotFoundError\",\n \"The server side encryption configuration was not found\",\n 404,\n ],\n NoSuchKey: [\"NoSuchKey\", \"The specified key does not exist.\", 404],\n NoSuchUpload: [\n \"NoSuchUpload\",\n \"The specified multipart upload does not exist. The upload ID may be invalid, or the upload may have been aborted or completed.\",\n 404,\n ],\n InvalidVersionID: [\"InvalidArgument\", \"Invalid version id specified\", 400],\n NoSuchVersion: [\"NoSuchVersion\", \"The specified version does not exist.\", 404],\n NotImplemented: [\n \"NotImplemented\",\n \"A header you provided implies functionality that is not implemented\",\n 501,\n ],\n PreconditionFailed: [\n \"PreconditionFailed\",\n \"At least one of the pre-conditions you specified did not hold\",\n 412,\n ],\n RequestTimeTooSkewed: [\n \"RequestTimeTooSkewed\",\n \"The difference between the request time and the server's time is too large.\",\n 403,\n ],\n SignatureDoesNotMatch: [\n \"SignatureDoesNotMatch\",\n \"The request signature we calculated does not match the signature you provided. Check your key and signing method.\",\n 403,\n ],\n MethodNotAllowed: [\n \"MethodNotAllowed\",\n \"The specified method is not allowed against this resource.\",\n 405,\n ],\n InvalidPart: [\n \"InvalidPart\",\n \"One or more of the specified parts could not be found. The part may not have been uploaded, or the specified entity tag may not match the part's entity tag.\",\n 400,\n ],\n MissingPart: [\"InvalidRequest\", \"You must specify at least one part\", 400],\n InvalidPartOrder: [\n \"InvalidPartOrder\",\n \"The list of parts was not in ascending order. The parts list must be specified in order by part number.\",\n 400,\n ],\n InvalidObjectState: [\n \"InvalidObjectState\",\n \"The operation is not valid for the current state of the object.\",\n 403,\n ],\n AuthorizationHeaderMalformed: [\n \"AuthorizationHeaderMalformed\",\n \"The authorization header is malformed; the region is wrong; expecting 'us-east-1'.\",\n 400,\n ],\n MalformedPOSTRequest: [\n \"MalformedPOSTRequest\",\n \"The body of your POST request is not well-formed multipart/form-data.\",\n 400,\n ],\n POSTFileRequired: [\"InvalidArgument\", \"POST requires exactly one file upload per request.\", 400],\n SignatureVersionNotSupported: [\n \"InvalidRequest\",\n \"The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.\",\n 400,\n ],\n BucketNotEmpty: [\"BucketNotEmpty\", \"The bucket you tried to delete is not empty\", 409],\n BucketAlreadyExists: [\n \"BucketAlreadyExists\",\n \"The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.\",\n 409,\n ],\n AllAccessDisabled: [\"AllAccessDisabled\", \"All access to this resource has been disabled.\", 403],\n PolicyInvalidVersion: [\"MalformedPolicy\", \"The policy must contain a valid version string\", 400],\n MissingFields: [\"MissingFields\", \"Missing fields in request.\", 400],\n MissingCredTag: [\"InvalidRequest\", \"Missing Credential field for this request.\", 400],\n CredMalformed: [\n \"AuthorizationQueryParametersError\",\n 'Error parsing the X-Amz-Credential parameter; the Credential is mal-formed; expecting \"<YOUR-AKID>/YYYYMMDD/REGION/SERVICE/aws4_request\".',\n 400,\n ],\n MalformedDate: [\n \"MalformedDate\",\n \"Invalid date format header, expected to be in ISO8601, RFC1123 or RFC1123Z time format.\",\n 400,\n ],\n MalformedPresignedDate: [\n \"AuthorizationQueryParametersError\",\n \"X-Amz-Date must be in the ISO8601 Long Format \\\"yyyyMMdd'T'HHmmss'Z'\\\"\",\n 400,\n ],\n MalformedCredentialDate: [\n \"AuthorizationQueryParametersError\",\n 'Error parsing the X-Amz-Credential parameter; incorrect date format. This date in the credential must be in the format \"yyyyMMdd\".',\n 400,\n ],\n InvalidRegion: [\"InvalidRegion\", \"Region does not match.\", 400],\n InvalidServiceS3: [\n \"AuthorizationParametersError\",\n 'Error parsing the Credential/X-Amz-Credential parameter; incorrect service. This endpoint belongs to \"s3\".',\n 400,\n ],\n InvalidServiceSTS: [\n \"AuthorizationParametersError\",\n 'Error parsing the Credential parameter; incorrect service. This endpoint belongs to \"sts\".',\n 400,\n ],\n InvalidRequestVersion: [\n \"AuthorizationQueryParametersError\",\n 'Error parsing the X-Amz-Credential parameter; incorrect terminal. This endpoint uses \"aws4_request\".',\n 400,\n ],\n MissingSignTag: [\"AccessDenied\", \"Signature header missing Signature field.\", 400],\n MissingSignHeadersTag: [\"InvalidArgument\", \"Signature header missing SignedHeaders field.\", 400],\n MalformedExpires: [\"AuthorizationQueryParametersError\", \"X-Amz-Expires should be a number\", 400],\n NegativeExpires: [\"AuthorizationQueryParametersError\", \"X-Amz-Expires must be non-negative\", 400],\n AuthHeaderEmpty: [\n \"InvalidArgument\",\n \"Authorization header is invalid -- one and only one ' ' (space) required.\",\n 400,\n ],\n MissingDateHeader: [\n \"AccessDenied\",\n \"AWS authentication requires a valid Date or x-amz-date header\",\n 400,\n ],\n InvalidQuerySignatureAlgo: [\n \"AuthorizationQueryParametersError\",\n 'X-Amz-Algorithm only supports \"AWS4-HMAC-SHA256\".',\n 400,\n ],\n ExpiredPresignRequest: [\"AccessDenied\", \"Request has expired\", 403],\n RequestNotReadyYet: [\"AccessDenied\", \"Request is not valid yet\", 403],\n SlowDownRead: [\n \"SlowDownRead\",\n \"Resource requested is unreadable, please reduce your request rate\",\n 503,\n ],\n SlowDownWrite: [\n \"SlowDownWrite\",\n \"Resource requested is unwritable, please reduce your request rate\",\n 503,\n ],\n MaxVersionsExceeded: [\n \"MaxVersionsExceeded\",\n \"You've exceeded the limit on the number of versions you can create on this object\",\n 400,\n ],\n InvalidPrefixMarker: [\"InvalidPrefixMarker\", \"Invalid marker prefix combination\", 400],\n BadRequest: [\"BadRequest\", \"400 BadRequest\", 400],\n KeyTooLongError: [\"KeyTooLongError\", \"Your key is too long\", 400],\n UnsignedHeaders: [\n \"AccessDenied\",\n \"There were headers present in the request which were not signed\",\n 400,\n ],\n InvalidQueryParams: [\n \"AuthorizationQueryParametersError\",\n \"Query-string authentication version 4 requires the X-Amz-Algorithm, X-Amz-Credential, X-Amz-Signature, X-Amz-Date, X-Amz-SignedHeaders, and X-Amz-Expires parameters.\",\n 400,\n ],\n BucketAlreadyOwnedByYou: [\n \"BucketAlreadyOwnedByYou\",\n \"Your previous request to create the named bucket succeeded and you already own it.\",\n 409,\n ],\n InvalidDuration: [\"InvalidDuration\", \"Duration provided in the request is invalid.\", 400],\n InvalidBucketObjectLockConfiguration: [\n \"InvalidRequest\",\n \"Bucket is missing ObjectLockConfiguration\",\n 400,\n ],\n BucketTaggingNotFound: [\"NoSuchTagSet\", \"The TagSet does not exist\", 404],\n ObjectLockConfigurationNotFound: [\n \"ObjectLockConfigurationNotFoundError\",\n \"Object Lock configuration does not exist for this bucket\",\n 404,\n ],\n ObjectLockConfigurationNotAllowed: [\n \"InvalidBucketState\",\n \"Object Lock configuration cannot be enabled on existing buckets\",\n 409,\n ],\n NoSuchCORSConfiguration: [\n \"NoSuchCORSConfiguration\",\n \"The CORS configuration does not exist\",\n 404,\n ],\n NoSuchWebsiteConfiguration: [\n \"NoSuchWebsiteConfiguration\",\n \"The specified bucket does not have a website configuration\",\n 404,\n ],\n ReplicationConfigurationNotFoundError: [\n \"ReplicationConfigurationNotFoundError\",\n \"The replication configuration was not found\",\n 404,\n ],\n RemoteDestinationNotFoundError: [\n \"RemoteDestinationNotFoundError\",\n \"The remote destination bucket does not exist\",\n 404,\n ],\n ReplicationDestinationMissingLock: [\n \"ReplicationDestinationMissingLockError\",\n \"The replication destination bucket does not have object locking enabled\",\n 400,\n ],\n RemoteTargetNotFoundError: [\n \"XMinioAdminRemoteTargetNotFoundError\",\n \"The remote target does not exist\",\n 404,\n ],\n ReplicationRemoteConnectionError: [\n \"XMinioAdminReplicationRemoteConnectionError\",\n \"Remote service connection error\",\n 503,\n ],\n ReplicationBandwidthLimitError: [\n \"XMinioAdminReplicationBandwidthLimitError\",\n \"Bandwidth limit for remote target must be at least 100MBps\",\n 400,\n ],\n ReplicationNoExistingObjects: [\n \"XMinioReplicationNoExistingObjects\",\n \"No matching ExistingObjects rule enabled\",\n 400,\n ],\n RemoteTargetDenyAddError: [\n \"XMinioAdminRemoteTargetDenyAdd\",\n \"Cannot add remote target endpoint since this server is in a cluster replication setup\",\n 400,\n ],\n ReplicationDenyEditError: [\n \"XMinioReplicationDenyEdit\",\n \"Cannot alter local replication config since this server is in a cluster replication setup\",\n 400,\n ],\n BucketRemoteIdenticalToSource: [\n \"XMinioAdminRemoteIdenticalToSource\",\n \"The remote target cannot be identical to source\",\n 400,\n ],\n BucketRemoteAlreadyExists: [\n \"XMinioAdminBucketRemoteAlreadyExists\",\n \"The remote target already exists\",\n 400,\n ],\n BucketRemoteLabelInUse: [\n \"XMinioAdminBucketRemoteLabelInUse\",\n \"The remote target with this label already exists\",\n 400,\n ],\n BucketRemoteRemoveDisallowed: [\n \"XMinioAdminRemoteRemoveDisallowed\",\n \"This ARN is in use by an existing configuration\",\n 400,\n ],\n BucketRemoteArnTypeInvalid: [\n \"XMinioAdminRemoteARNTypeInvalid\",\n \"The bucket remote ARN type is not valid\",\n 400,\n ],\n BucketRemoteArnInvalid: [\n \"XMinioAdminRemoteArnInvalid\",\n \"The bucket remote ARN does not have correct format\",\n 400,\n ],\n RemoteTargetNotVersionedError: [\n \"RemoteTargetNotVersionedError\",\n \"The remote target does not have versioning enabled\",\n 400,\n ],\n ReplicationSourceNotVersionedError: [\n \"ReplicationSourceNotVersionedError\",\n \"The replication source does not have versioning enabled\",\n 400,\n ],\n ReplicationNeedsVersioningError: [\n \"InvalidRequest\",\n \"Versioning must be 'Enabled' on the bucket to apply a replication configuration\",\n 400,\n ],\n ReplicationBucketNeedsVersioningError: [\n \"InvalidRequest\",\n \"Versioning must be 'Enabled' on the bucket to add a replication target\",\n 400,\n ],\n ReplicationValidationError: [\"InvalidRequest\", \"Replication validation failed on target\", 400],\n ReplicationPermissionCheckError: [\n \"ReplicationPermissionCheck\",\n \"X-Minio-Source-Replication-Check cannot be specified in request. Request cannot be completed\",\n 400,\n ],\n NoSuchObjectLockConfiguration: [\n \"NoSuchObjectLockConfiguration\",\n \"The specified object does not have a ObjectLock configuration\",\n 400,\n ],\n ObjectLocked: [\"InvalidRequest\", \"Object is WORM protected and cannot be overwritten\", 400],\n InvalidRetentionDate: [\"InvalidRequest\", \"Date must be provided in ISO 8601 format\", 400],\n PastObjectLockRetainDate: [\"InvalidRequest\", \"the retain until date must be in the future\", 400],\n UnknownWORMModeDirective: [\"InvalidRequest\", \"unknown wormMode directive\", 400],\n ObjectLockInvalidHeaders: [\n \"InvalidRequest\",\n \"x-amz-object-lock-retain-until-date and x-amz-object-lock-mode must both be supplied\",\n 400,\n ],\n ObjectRestoreAlreadyInProgress: [\n \"RestoreAlreadyInProgress\",\n \"Object restore is already in progress\",\n 409,\n ],\n TransitionStorageClassNotFoundError: [\n \"TransitionStorageClassNotFoundError\",\n \"The transition storage class was not found\",\n 404,\n ],\n EventNotification: [\n \"InvalidArgument\",\n \"A specified event is not supported for notifications.\",\n 400,\n ],\n ARNNotification: [\n \"InvalidArgument\",\n \"A specified destination ARN does not exist or is not well-formed. Verify the destination ARN.\",\n 400,\n ],\n RegionNotification: [\n \"InvalidArgument\",\n \"A specified destination is in a different region than the bucket. You must use a destination that resides in the same region as the bucket.\",\n 400,\n ],\n OverlappingFilterNotification: [\n \"InvalidArgument\",\n \"An object key name filtering rule defined with overlapping prefixes, overlapping suffixes, or overlapping combinations of prefixes and suffixes for the same event types.\",\n 400,\n ],\n FilterNameInvalid: [\"InvalidArgument\", \"filter rule name must be either prefix or suffix\", 400],\n FilterNamePrefix: [\n \"InvalidArgument\",\n \"Cannot specify more than one prefix rule in a filter.\",\n 400,\n ],\n FilterNameSuffix: [\n \"InvalidArgument\",\n \"Cannot specify more than one suffix rule in a filter.\",\n 400,\n ],\n FilterValueInvalid: [\n \"InvalidArgument\",\n \"Size of filter rule value cannot exceed 1024 bytes in UTF-8 representation\",\n 400,\n ],\n OverlappingConfigs: [\n \"InvalidArgument\",\n \"Configurations overlap. Configurations on the same bucket cannot share a common event type.\",\n 400,\n ],\n UnsupportedNotification: [\n \"UnsupportedNotification\",\n \"MinIO server does not support Topic or Cloud Function based notifications.\",\n 400,\n ],\n InvalidCopyPartRange: [\n \"InvalidArgument\",\n \"The x-amz-copy-source-range value must be of the form bytes=first-last where first and last are the zero-based offsets of the first and last bytes to copy\",\n 400,\n ],\n InvalidCopyPartRangeSource: [\n \"InvalidArgument\",\n \"Range specified is not valid for source object\",\n 400,\n ],\n MetadataTooLarge: [\n \"MetadataTooLarge\",\n \"Your metadata headers exceed the maximum allowed metadata size.\",\n 400,\n ],\n InvalidTagDirective: [\"InvalidArgument\", \"Unknown tag directive.\", 400],\n InvalidEncryptionMethod: [\n \"InvalidArgument\",\n \"Server Side Encryption with AWS KMS managed key requires HTTP header x-amz-server-side-encryption : aws:kms\",\n 400,\n ],\n IncompatibleEncryptionMethod: [\n \"InvalidArgument\",\n \"Server Side Encryption with Customer provided key is incompatible with the encryption method specified\",\n 400,\n ],\n InvalidEncryptionKeyID: [\n \"InvalidRequest\",\n \"The specified KMS KeyID contains unsupported characters\",\n 400,\n ],\n InsecureSSECustomerRequest: [\n \"InvalidRequest\",\n \"Requests specifying Server Side Encryption with Customer provided keys must be made over a secure connection.\",\n 400,\n ],\n SSEMultipartEncrypted: [\n \"InvalidRequest\",\n \"The multipart upload initiate requested encryption. Subsequent part requests must include the appropriate encryption parameters.\",\n 400,\n ],\n SSEEncryptedObject: [\n \"InvalidRequest\",\n \"The object was stored using a form of Server Side Encryption. The correct parameters must be provided to retrieve the object.\",\n 400,\n ],\n InvalidEncryptionParameters: [\n \"InvalidRequest\",\n \"The encryption parameters are not applicable to this object.\",\n 400,\n ],\n InvalidEncryptionParametersSSEC: [\n \"InvalidRequest\",\n \"SSE-C encryption parameters are not supported on replicated bucket.\",\n 400,\n ],\n InvalidSSECustomerAlgorithm: [\n \"InvalidArgument\",\n \"Requests specifying Server Side Encryption with Customer provided keys must provide a valid encryption algorithm.\",\n 400,\n ],\n InvalidSSECustomerKey: [\n \"InvalidArgument\",\n \"The secret key was invalid for the specified algorithm.\",\n 400,\n ],\n MissingSSECustomerKey: [\n \"InvalidArgument\",\n \"Requests specifying Server Side Encryption with Customer provided keys must provide an appropriate secret key.\",\n 400,\n ],\n MissingSSECustomerKeyMD5: [\n \"InvalidArgument\",\n \"Requests specifying Server Side Encryption with Customer provided keys must provide the client calculated MD5 of the secret key.\",\n 400,\n ],\n SSECustomerKeyMD5Mismatch: [\n \"InvalidArgument\",\n \"The calculated MD5 hash of the key did not match the hash that was provided.\",\n 400,\n ],\n InvalidSSECustomerParameters: [\n \"InvalidArgument\",\n \"The provided encryption parameters did not match the ones used originally.\",\n 400,\n ],\n KMSNotConfigured: [\n \"NotImplemented\",\n \"Server side encryption specified but KMS is not configured\",\n 501,\n ],\n KMSKeyNotFoundException: [\"KMS.NotFoundException\", \"Invalid keyId\", 400],\n KMSDefaultKeyAlreadyConfigured: [\n \"KMS.DefaultKeyAlreadyConfiguredException\",\n \"A default encryption already exists and cannot be changed on KMS\",\n 409,\n ],\n NoAccessKey: [\"AccessDenied\", \"No AWSAccessKey was presented\", 403],\n InvalidToken: [\"InvalidTokenId\", \"The security token included in the request is invalid\", 403],\n NoTokenRevokeType: [\n \"InvalidArgument\",\n \"No token revoke type specified and one could not be inferred from the request\",\n 400,\n ],\n AdminNoSuchAccessKey: [\n \"XMinioAdminNoSuchAccessKey\",\n \"The specified access key does not exist.\",\n 404,\n ],\n ContentSHA256Mismatch: [\n \"XAmzContentSHA256Mismatch\",\n \"The provided 'x-amz-content-sha256' header does not match what was computed.\",\n 400,\n ],\n ContentChecksumMismatch: [\n \"XAmzContentChecksumMismatch\",\n \"The provided 'x-amz-checksum' header does not match what was computed.\",\n 400,\n ],\n StorageFull: [\n \"XMinioStorageFull\",\n \"Storage backend has reached its minimum free drive threshold. Please delete a few objects to proceed.\",\n 507,\n ],\n RequestBodyParse: [\"XMinioRequestBodyParse\", \"The request body failed to parse.\", 400],\n ObjectExistsAsDirectory: [\n \"XMinioObjectExistsAsDirectory\",\n \"Object name already exists as a directory.\",\n 400,\n ],\n InvalidObjectName: [\n \"XMinioInvalidObjectName\",\n \"Object name contains unsupported characters.\",\n 400,\n ],\n InvalidObjectNamePrefixSlash: [\n \"XMinioInvalidObjectName\",\n \"Object name contains a leading slash.\",\n 400,\n ],\n InvalidResourceName: [\n \"XMinioInvalidResourceName\",\n 'Resource name contains bad components such as \"..\" or \".\".',\n 400,\n ],\n ServerNotInitialized: [\n \"XMinioServerNotInitialized\",\n \"Server not initialized yet, please try again.\",\n 503,\n ],\n IAMNotInitialized: [\n \"XMinioIAMNotInitialized\",\n \"IAM sub-system not initialized yet, please try again.\",\n 503,\n ],\n BucketMetadataNotInitialized: [\n \"XMinioBucketMetadataNotInitialized\",\n \"Bucket metadata not initialized yet, please try again.\",\n 503,\n ],\n MalformedJSON: [\n \"XMinioMalformedJSON\",\n \"The JSON you provided was not well-formed or did not validate against our published format.\",\n 400,\n ],\n InvalidLifecycleQueryParameter: [\n \"XMinioInvalidLifecycleParameter\",\n \"The boolean value provided for withUpdatedAt query parameter was invalid.\",\n 400,\n ],\n AdminNoSuchUser: [\"XMinioAdminNoSuchUser\", \"The specified user does not exist.\", 404],\n AdminNoSuchUserLDAPWarn: [\n \"XMinioAdminNoSuchUser\",\n \"The specified user does not exist. If you meant a user in LDAP, use `mc idp ldap`\",\n 404,\n ],\n AdminNoSuchGroup: [\"XMinioAdminNoSuchGroup\", \"The specified group does not exist.\", 404],\n AdminNoSuchJob: [\"XMinioAdminNoSuchJob\", \"The specified job does not exist.\", 404],\n AdminGroupNotEmpty: [\n \"XMinioAdminGroupNotEmpty\",\n \"The specified group is not empty - cannot remove it.\",\n 400,\n ],\n AdminGroupDisabled: [\"XMinioAdminGroupDisabled\", \"The specified group is disabled.\", 400],\n AdminNoSuchPolicy: [\"XMinioAdminNoSuchPolicy\", \"The canned policy does not exist.\", 404],\n AdminPolicyChangeAlreadyApplied: [\n \"XMinioAdminPolicyChangeAlreadyApplied\",\n \"The specified policy change is already in effect.\",\n 400,\n ],\n AdminInvalidArgument: [\"XMinioAdminInvalidArgument\", \"Invalid arguments specified.\", 400],\n AdminInvalidAccessKey: [\"XMinioAdminInvalidAccessKey\", \"The access key is invalid.\", 400],\n AdminInvalidSecretKey: [\"XMinioAdminInvalidSecretKey\", \"The secret key is invalid.\", 400],\n AdminNoAccessKey: [\"XMinioAdminNoAccessKey\", \"No access key was provided.\", 400],\n AdminNoSecretKey: [\"XMinioAdminNoSecretKey\", \"No secret key was provided.\", 400],\n AdminConfigNoQuorum: [\n \"XMinioAdminConfigNoQuorum\",\n \"Configuration update failed because server quorum was not met\",\n 503,\n ],\n AdminConfigTooLarge: [\n \"XMinioAdminConfigTooLarge\",\n \"Configuration data provided exceeds the allowed maximum of %d bytes\",\n 400,\n ],\n AdminNoSuchConfigTarget: [\n \"XMinioAdminNoSuchConfigTarget\",\n \"No such named configuration target exists\",\n 400,\n ],\n AdminConfigBadJSON: [\n \"XMinioAdminConfigBadJSON\",\n \"JSON configuration provided is of incorrect format\",\n 400,\n ],\n AdminConfigEnvOverridden: [\n \"XMinioAdminConfigEnvOverridden\",\n \"Unable to update config via Admin API due to environment variable override\",\n 400,\n ],\n AdminConfigDuplicateKeys: [\n \"XMinioAdminConfigDuplicateKeys\",\n \"JSON configuration provided has objects with duplicate keys\",\n 400,\n ],\n AdminConfigInvalidIDPType: [\n \"XMinioAdminConfigInvalidIDPType\",\n \"Invalid IDP configuration type - must be one of %v\",\n 400,\n ],\n AdminConfigLDAPNonDefaultConfigName: [\n \"XMinioAdminConfigLDAPNonDefaultConfigName\",\n \"Only a single LDAP configuration is supported - config name must be empty or `_`\",\n 400,\n ],\n AdminConfigLDAPValidation: [\n \"XMinioAdminConfigLDAPValidation\",\n \"LDAP Configuration validation failed\",\n 400,\n ],\n AdminConfigIDPCfgNameAlreadyExists: [\n \"XMinioAdminConfigIDPCfgNameAlreadyExists\",\n \"An IDP configuration with the given name already exists\",\n 400,\n ],\n AdminConfigIDPCfgNameDoesNotExist: [\n \"XMinioAdminConfigIDPCfgNameDoesNotExist\",\n \"No such IDP configuration exists\",\n 400,\n ],\n AdminConfigNotificationTargetsFailed: [\n \"XMinioAdminNotificationTargetsTestFailed\",\n \"Configuration update failed due an unsuccessful attempt to connect to one or more notification servers\",\n 400,\n ],\n AdminProfilerNotEnabled: [\n \"XMinioAdminProfilerNotEnabled\",\n \"Unable to perform the requested operation because profiling is not enabled\",\n 400,\n ],\n AdminBucketQuotaExceeded: [\"XMinioAdminBucketQuotaExceeded\", \"Bucket quota exceeded\", 400],\n AdminNoSuchQuotaConfiguration: [\n \"XMinioAdminNoSuchQuotaConfiguration\",\n \"The quota configuration does not exist\",\n 404,\n ],\n InsecureClientRequest: [\n \"XMinioInsecureClientRequest\",\n \"Cannot respond to plain-text request from TLS-encrypted server\",\n 400,\n ],\n RequestTimedout: [\n \"RequestTimeout\",\n \"A timeout occurred while trying to lock a resource, please reduce your request rate\",\n 503,\n ],\n TooManyRequests: [\"TooManyRequests\", \"Please reduce your request rate\", 429],\n UnsupportedMetadata: [\"InvalidArgument\", \"Your metadata headers are not supported.\", 400],\n UnsupportedHostHeader: [\"InvalidArgument\", \"Your Host header is malformed.\", 400],\n SiteReplicationInvalidRequest: [\n \"XMinioSiteReplicationInvalidRequest\",\n \"Invalid site-replication request\",\n 400,\n ],\n SiteReplicationPeerResp: [\n \"XMinioSiteReplicationPeerResp\",\n \"Error received when contacting a peer site\",\n 400,\n ],\n SiteReplicationBackendIssue: [\n \"XMinioSiteReplicationBackendIssue\",\n \"Error when requesting object layer backend\",\n 503,\n ],\n SiteReplicationServiceAccountError: [\n \"XMinioSiteReplicationServiceAccountError\",\n \"Site replication related service account error\",\n 503,\n ],\n SiteReplicationBucketConfigError: [\n \"XMinioSiteReplicationBucketConfigError\",\n \"Error while configuring replication on a bucket\",\n 503,\n ],\n SiteReplicationBucketMetaError: [\n \"XMinioSiteReplicationBucketMetaError\",\n \"Error while replicating bucket metadata\",\n 503,\n ],\n SiteReplicationIAMError: [\n \"XMinioSiteReplicationIAMError\",\n \"Error while replicating an IAM item\",\n 503,\n ],\n SiteReplicationConfigMissing: [\n \"XMinioSiteReplicationConfigMissingError\",\n \"Site not found in site replication configuration\",\n 400,\n ],\n SiteReplicationIAMConfigMismatch: [\n \"XMinioSiteReplicationIAMConfigMismatch\",\n \"IAM configuration mismatch between sites\",\n 400,\n ],\n AdminRebalanceAlreadyStarted: [\n \"XMinioAdminRebalanceAlreadyStarted\",\n \"Pool rebalance is already started\",\n 409,\n ],\n AdminRebalanceNotStarted: [\n \"XMinioAdminRebalanceNotStarted\",\n \"Pool rebalance is not started\",\n 404,\n ],\n MaximumExpires: [\n \"AuthorizationQueryParametersError\",\n \"X-Amz-Expires must be less than a week (in seconds); that is, the given X-Amz-Expires must be less than 604800 seconds\",\n 400,\n ],\n InvalidRequest: [\"InvalidRequest\", \"Invalid Request\", 400],\n HealNotImplemented: [\n \"XMinioHealNotImplemented\",\n \"This server does not implement heal functionality.\",\n 400,\n ],\n HealNoSuchProcess: [\n \"XMinioHealNoSuchProcess\",\n \"No such heal process is running on the server\",\n 400,\n ],\n HealInvalidClientToken: [\"XMinioHealInvalidClientToken\", \"Client token mismatch\", 400],\n HealMissingBucket: [\n \"XMinioHealMissingBucket\",\n \"A heal start request with a non-empty object-prefix parameter requires a bucket to be specified.\",\n 400,\n ],\n HealAlreadyRunning: [\"XMinioHealAlreadyRunning\", \"\", 400],\n HealOverlappingPaths: [\"XMinioHealOverlappingPaths\", \"\", 400],\n BackendDown: [\"XMinioBackendDown\", \"Remote backend is unreachable\", 400],\n IncorrectContinuationToken: [\n \"InvalidArgument\",\n \"The continuation token provided is incorrect\",\n 400,\n ],\n EmptyRequestBody: [\"EmptyRequestBody\", \"Request body cannot be empty.\", 400],\n UnsupportedFunction: [\"UnsupportedFunction\", \"Encountered an unsupported SQL function.\", 400],\n InvalidDataSource: [\n \"InvalidDataSource\",\n \"Invalid data source type. Only CSV and JSON are supported at this time.\",\n 400,\n ],\n InvalidExpressionType: [\n \"InvalidExpressionType\",\n \"The ExpressionType is invalid. Only SQL expressions are supported at this time.\",\n 400,\n ],\n Busy: [\"ServerBusy\", \"The service is unavailable. Please retry.\", 503],\n UnauthorizedAccess: [\n \"UnauthorizedAccess\",\n \"You are not authorized to perform this operation\",\n 401,\n ],\n ExpressionTooLong: [\n \"ExpressionTooLong\",\n \"The SQL expression is too long: The maximum byte-length for the SQL expression is 256 KB.\",\n 400,\n ],\n IllegalSQLFunctionArgument: [\n \"IllegalSqlFunctionArgument\",\n \"Illegal argument was used in the SQL function.\",\n 400,\n ],\n InvalidKeyPath: [\"InvalidKeyPath\", \"Key path in the SQL expression is invalid.\", 400],\n InvalidCompressionFormat: [\n \"InvalidCompressionFormat\",\n \"The file is not in a supported compression format. Only GZIP is supported at this time.\",\n 400,\n ],\n InvalidFileHeaderInfo: [\n \"InvalidFileHeaderInfo\",\n \"The FileHeaderInfo is invalid. Only NONE, USE, and IGNORE are supported.\",\n 400,\n ],\n InvalidJSONType: [\n \"InvalidJsonType\",\n \"The JsonType is invalid. Only DOCUMENT and LINES are supported at this time.\",\n 400,\n ],\n InvalidQuoteFields: [\n \"InvalidQuoteFields\",\n \"The QuoteFields is invalid. Only ALWAYS and ASNEEDED are supported.\",\n 400,\n ],\n InvalidRequestParameter: [\n \"InvalidRequestParameter\",\n \"The value of a parameter in SelectRequest element is invalid. Check the service API documentation and try again.\",\n 400,\n ],\n InvalidDataType: [\"InvalidDataType\", \"The SQL expression contains an invalid data type.\", 400],\n InvalidTextEncoding: [\n \"InvalidTextEncoding\",\n \"Invalid encoding type. Only UTF-8 encoding is supported at this time.\",\n 400,\n ],\n InvalidTableAlias: [\n \"InvalidTableAlias\",\n \"The SQL expression contains an invalid table alias.\",\n 400,\n ],\n MissingRequiredParameter: [\n \"MissingRequiredParameter\",\n \"The SelectRequest entity is missing a required parameter. Check the service documentation and try again.\",\n 400,\n ],\n ObjectSerializationConflict: [\n \"ObjectSerializationConflict\",\n \"The SelectRequest entity can only contain one of CSV or JSON. Check the service documentation and try again.\",\n 400,\n ],\n UnsupportedSQLOperation: [\n \"UnsupportedSqlOperation\",\n \"Encountered an unsupported SQL operation.\",\n 400,\n ],\n UnsupportedSQLStructure: [\n \"UnsupportedSqlStructure\",\n \"Encountered an unsupported SQL structure. Check the SQL Reference.\",\n 400,\n ],\n UnsupportedSyntax: [\"UnsupportedSyntax\", \"Encountered invalid syntax.\", 400],\n UnsupportedRangeHeader: [\n \"UnsupportedRangeHeader\",\n \"Range header is not supported for this operation.\",\n 400,\n ],\n LexerInvalidChar: [\"LexerInvalidChar\", \"The SQL expression contains an invalid character.\", 400],\n LexerInvalidOperator: [\n \"LexerInvalidOperator\",\n \"The SQL expression contains an invalid literal.\",\n 400,\n ],\n LexerInvalidLiteral: [\n \"LexerInvalidLiteral\",\n \"The SQL expression contains an invalid operator.\",\n 400,\n ],\n LexerInvalidIONLiteral: [\n \"LexerInvalidIONLiteral\",\n \"The SQL expression contains an invalid operator.\",\n 400,\n ],\n ParseExpectedDatePart: [\n \"ParseExpectedDatePart\",\n \"Did not find the expected date part in the SQL expression.\",\n 400,\n ],\n ParseExpectedKeyword: [\n \"ParseExpectedKeyword\",\n \"Did not find the expected keyword in the SQL expression.\",\n 400,\n ],\n ParseExpectedTokenType: [\n \"ParseExpectedTokenType\",\n \"Did not find the expected token in the SQL expression.\",\n 400,\n ],\n ParseExpected2TokenTypes: [\n \"ParseExpected2TokenTypes\",\n \"Did not find the expected token in the SQL expression.\",\n 400,\n ],\n ParseExpectedNumber: [\n \"ParseExpectedNumber\",\n \"Did not find the expected number in the SQL expression.\",\n 400,\n ],\n ParseExpectedRightParenBuiltinFunctionCall: [\n \"ParseExpectedRightParenBuiltinFunctionCall\",\n \"Did not find the expected right parenthesis character in the SQL expression.\",\n 400,\n ],\n ParseExpectedTypeName: [\n \"ParseExpectedTypeName\",\n \"Did not find the expected type name in the SQL expression.\",\n 400,\n ],\n ParseExpectedWhenClause: [\n \"ParseExpectedWhenClause\",\n \"Did not find the expected WHEN clause in the SQL expression. CASE is not supported.\",\n 400,\n ],\n ParseUnsupportedToken: [\n \"ParseUnsupportedToken\",\n \"The SQL expression contains an unsupported token.\",\n 400,\n ],\n ParseUnsupportedLiteralsGroupBy: [\n \"ParseUnsupportedLiteralsGroupBy\",\n \"The SQL expression contains an unsupported use of GROUP BY.\",\n 400,\n ],\n ParseExpectedMember: [\n \"ParseExpectedMember\",\n \"The SQL expression contains an unsupported use of MEMBER.\",\n 400,\n ],\n ParseUnsupportedSelect: [\n \"ParseUnsupportedSelect\",\n \"The SQL expression contains an unsupported use of SELECT.\",\n 400,\n ],\n ParseUnsupportedCase: [\n \"ParseUnsupportedCase\",\n \"The SQL expression contains an unsupported use of CASE.\",\n 400,\n ],\n ParseUnsupportedCaseClause: [\n \"ParseUnsupportedCaseClause\",\n \"The SQL expression contains an unsupported use of CASE.\",\n 400,\n ],\n ParseUnsupportedAlias: [\n \"ParseUnsupportedAlias\",\n \"The SQL expression contains an unsupported use of ALIAS.\",\n 400,\n ],\n ParseUnsupportedSyntax: [\n \"ParseUnsupportedSyntax\",\n \"The SQL expression contains unsupported syntax.\",\n 400,\n ],\n ParseUnknownOperator: [\n \"ParseUnknownOperator\",\n \"The SQL expression contains an invalid operator.\",\n 400,\n ],\n ParseMissingIdentAfterAt: [\n \"ParseMissingIdentAfterAt\",\n \"Did not find the expected identifier after the @ symbol in the SQL expression.\",\n 400,\n ],\n ParseUnexpectedOperator: [\n \"ParseUnexpectedOperator\",\n \"The SQL expression contains an unexpected operator.\",\n 400,\n ],\n ParseUnexpectedTerm: [\n \"ParseUnexpectedTerm\",\n \"The SQL expression contains an unexpected term.\",\n 400,\n ],\n ParseUnexpectedToken: [\n \"ParseUnexpectedToken\",\n \"The SQL expression contains an unexpected token.\",\n 400,\n ],\n ParseUnexpectedKeyword: [\n \"ParseUnexpectedKeyword\",\n \"The SQL expression contains an unexpected keyword.\",\n 400,\n ],\n ParseExpectedExpression: [\n \"ParseExpectedExpression\",\n \"Did not find the expected SQL expression.\",\n 400,\n ],\n ParseExpectedLeftParenAfterCast: [\n \"ParseExpectedLeftParenAfterCast\",\n \"Did not find expected the left parenthesis in the SQL expression.\",\n 400,\n ],\n ParseExpectedLeftParenValueConstructor: [\n \"ParseExpectedLeftParenValueConstructor\",\n \"Did not find expected the left parenthesis in the SQL expression.\",\n 400,\n ],\n ParseExpectedLeftParenBuiltinFunctionCall: [\n \"ParseExpectedLeftParenBuiltinFunctionCall\",\n \"Did not find the expected left parenthesis in the SQL expression.\",\n 400,\n ],\n ParseExpectedArgumentDelimiter: [\n \"ParseExpectedArgumentDelimiter\",\n \"Did not find the expected argument delimiter in the SQL expression.\",\n 400,\n ],\n ParseCastArity: [\"ParseCastArity\", \"The SQL expression CAST has incorrect arity.\", 400],\n ParseInvalidTypeParam: [\n \"ParseInvalidTypeParam\",\n \"The SQL expression contains an invalid parameter value.\",\n 400,\n ],\n ParseEmptySelect: [\"ParseEmptySelect\", \"The SQL expression contains an empty SELECT.\", 400],\n ParseSelectMissingFrom: [\n \"ParseSelectMissingFrom\",\n \"GROUP is not supported in the SQL expression.\",\n 400,\n ],\n ParseExpectedIdentForGroupName: [\n \"ParseExpectedIdentForGroupName\",\n \"GROUP is not supported in the SQL expression.\",\n 400,\n ],\n ParseExpectedIdentForAlias: [\n \"ParseExpectedIdentForAlias\",\n \"Did not find the expected identifier for the alias in the SQL expression.\",\n 400,\n ],\n ParseUnsupportedCallWithStar: [\n \"ParseUnsupportedCallWithStar\",\n \"Only COUNT with (*) as a parameter is supported in the SQL expression.\",\n 400,\n ],\n ParseNonUnaryAggregateFunctionCall: [\n \"ParseNonUnaryAggregateFunctionCall\",\n \"Only one argument is supported for aggregate functions in the SQL expression.\",\n 400,\n ],\n ParseMalformedJoin: [\"ParseMalformedJoin\", \"JOIN is not supported in the SQL expression.\", 400],\n ParseExpectedIdentForAt: [\n \"ParseExpectedIdentForAt\",\n \"Did not find the expected identifier for AT name in the SQL expression.\",\n 400,\n ],\n ParseAsteriskIsNotAloneInSelectList: [\n \"ParseAsteriskIsNotAloneInSelectList\",\n \"Other expressions are not allowed in the SELECT list when '*' is used without dot notation in the SQL expression.\",\n 400,\n ],\n ParseCannotMixSqbAndWildcardInSelectList: [\n \"ParseCannotMixSqbAndWildcardInSelectList\",\n \"Cannot mix [] and * in the same expression in a SELECT list in SQL expression.\",\n 400,\n ],\n ParseInvalidContextForWildcardInSelectList: [\n \"ParseInvalidContextForWildcardInSelectList\",\n \"Invalid use of * in SELECT list in the SQL expression.\",\n 400,\n ],\n IncorrectSQLFunctionArgumentType: [\n \"IncorrectSqlFunctionArgumentType\",\n \"Incorrect type of arguments in function call in the SQL expression.\",\n 400,\n ],\n ValueParseFailure: [\"ValueParseFailure\", \"Time stamp parse failure in the SQL expression.\", 400],\n EvaluatorInvalidArguments: [\n \"EvaluatorInvalidArguments\",\n \"Incorrect number of arguments in the function call in the SQL expression.\",\n 400,\n ],\n IntegerOverflow: [\"IntegerOverflow\", \"Int overflow or underflow in the SQL expression.\", 400],\n LikeInvalidInputs: [\n \"LikeInvalidInputs\",\n \"Invalid argument given to the LIKE clause in the SQL expression.\",\n 400,\n ],\n CastFailed: [\n \"CastFailed\",\n \"Attempt to convert from one data type to another using CAST failed in the SQL expression.\",\n 400,\n ],\n InvalidCast: [\n \"InvalidCast\",\n \"Attempt to convert from one data type to another using CAST failed in the SQL expression.\",\n 400,\n ],\n EvaluatorInvalidTimestampFormatPattern: [\n \"EvaluatorInvalidTimestampFormatPattern\",\n \"Time stamp format pattern requires additional fields in the SQL expression.\",\n 400,\n ],\n EvaluatorInvalidTimestampFormatPatternSymbolForParsing: [\n \"EvaluatorInvalidTimestampFormatPatternSymbolForParsing\",\n \"Time stamp format pattern contains a valid format symbol that cannot be applied to time stamp parsing in the SQL expression.\",\n 400,\n ],\n EvaluatorTimestampFormatPatternDuplicateFields: [\n \"EvaluatorTimestampFormatPatternDuplicateFields\",\n \"Time stamp format pattern contains multiple format specifiers representing the time stamp field in the SQL expression.\",\n 400,\n ],\n EvaluatorTimestampFormatPatternHourClockAmPmMismatch: [\n \"EvaluatorUnterminatedTimestampFormatPatternToken\",\n \"Time stamp format pattern contains unterminated token in the SQL expression.\",\n 400,\n ],\n EvaluatorUnterminatedTimestampFormatPatternToken: [\n \"EvaluatorInvalidTimestampFormatPatternToken\",\n \"Time stamp format pattern contains an invalid token in the SQL expression.\",\n 400,\n ],\n EvaluatorInvalidTimestampFormatPatternToken: [\n \"EvaluatorInvalidTimestampFormatPatternToken\",\n \"Time stamp format pattern contains an invalid token in the SQL expression.\",\n 400,\n ],\n EvaluatorInvalidTimestampFormatPatternSymbol: [\n \"EvaluatorInvalidTimestampFormatPatternSymbol\",\n \"Time stamp format pattern contains an invalid symbol in the SQL expression.\",\n 400,\n ],\n EvaluatorBindingDoesNotExist: [\n \"ErrEvaluatorBindingDoesNotExist\",\n \"A column name or a path provided does not exist in the SQL expression\",\n 400,\n ],\n MissingHeaders: [\n \"MissingHeaders\",\n \"Some headers in the query are missing from the file. Check the file and try again.\",\n 400,\n ],\n InvalidColumnIndex: [\n \"InvalidColumnIndex\",\n \"The column index is invalid. Please check the service documentation and try again.\",\n 400,\n ],\n InvalidDecompressedSize: [\n \"XMinioInvalidDecompressedSize\",\n \"The data provided is unfit for decompression\",\n 400,\n ],\n AddUserInvalidArgument: [\n \"XMinioInvalidIAMCredentials\",\n \"Credential is not allowed to be same as admin access key\",\n 403,\n ],\n AdminResourceInvalidArgument: [\n \"XMinioInvalidResource\",\n \"Policy, user or group names are not allowed to begin or end with space characters\",\n 400,\n ],\n AdminAccountNotEligible: [\n \"XMinioInvalidIAMCredentials\",\n \"The administrator key is not eligible for this operation\",\n 403,\n ],\n AccountNotEligible: [\n \"XMinioInvalidIAMCredentials\",\n \"The account key is not eligible for this operation\",\n 403,\n ],\n AdminServiceAccountNotFound: [\n \"XMinioInvalidIAMCredentials\",\n \"The specified service account is not found\",\n 404,\n ],\n PostPolicyConditionInvalidFormat: [\n \"PostPolicyInvalidKeyName\",\n \"Invalid according to Policy: Policy Condition failed\",\n 403,\n ],\n InvalidChecksum: [\"InvalidArgument\", \"Invalid checksum provided.\", 400],\n LambdaARNInvalid: [\"LambdaARNInvalid\", \"The specified lambda ARN is invalid\", 400],\n LambdaARNNotFound: [\"LambdaARNNotFound\", \"The specified lambda ARN does not exist\", 404],\n PolicyAlreadyAttached: [\n \"XMinioPolicyAlreadyAttached\",\n \"The specified policy is already attached.\",\n 409,\n ],\n PolicyNotAttached: [\"XMinioPolicyNotAttached\", \"The specified policy is not found.\", 404],\n InvalidAttributeName: [\"InvalidArgument\", \"Invalid attribute name specified.\", 400],\n AdminLDAPNotEnabled: [\n \"XMinioLDAPNotEnabled\",\n \"LDAP is not enabled. LDAP must be enabled to make LDAP requests.\",\n 501,\n ],\n AdminLDAPExpectedLoginName: [\n \"XMinioLDAPExpectedLoginName\",\n \"Expected LDAP short username but was given full DN.\",\n 400,\n ],\n AdminInvalidGroupName: [\"XMinioInvalidGroupName\", \"The group name is invalid.\", 400],\n AddUserValidUTF: [\"XMinioInvalidUTF\", \"Invalid UTF-8 character detected.\", 400],\n} as const satisfies Record<string, readonly [string, string, number]>\nexport type ErrorName = keyof typeof MINIO_ERRORS\n", "import { type ErrorName, MINIO_ERRORS } from \"./errors.generated.js\"\n\nexport type { ErrorName }\n\nexport type S3ErrorOptions = {\n /** Replace the catalog message. */\n message?: string\n /** Replace the catalog status. */\n status?: number\n /** Replace the catalog code (for codes MinIO builds on the fly, e.g. `BadRequest`). */\n code?: string\n /** Extra response headers (e.g. `x-amz-delete-marker`). */\n headers?: Record<string, string>\n /** Override the `<Key>` / `<BucketName>` the request context would add (\"\" removes it). */\n key?: string\n bucket?: string\n /** Override `<Resource>`. */\n resource?: string\n /** `<ActualObjectSize>` / `<RangeRequested>` on InvalidRange. */\n actualObjectSize?: string\n rangeRequested?: string\n /** Extra elements after `<Message>` (e.g. `<Method>`/`<ResourceType>` on a CORS refusal). */\n fields?: Record<string, string>\n /** Answer with the `x-minio-error-*` headers and no body even for GET (`writeErrorResponseHeadersOnly`). */\n headersOnly?: boolean\n}\n\n/** An S3 error response from MinIO's own error table. Throw it from any handler. */\nexport class S3Error extends Error {\n readonly code: string\n readonly status: number\n constructor(\n readonly errorName: ErrorName,\n readonly options: S3ErrorOptions = {},\n ) {\n const [code, message, status] = MINIO_ERRORS[errorName]\n super(options.message ?? message)\n this.code = options.code ?? code\n this.status = options.status ?? status\n }\n}\n\nexport const fail = (name: ErrorName, options?: S3ErrorOptions): never => {\n throw new S3Error(name, options)\n}\n", "/**\n * Request authentication, ported from MinIO's `cmd/auth-handler.go`, `signature-v4*.go`,\n * `generic-handlers.go` (`setAuthMiddleware`) and `signature-v2.go` (in `auth-v2.ts`): which\n * scheme a request uses, and whether its signature holds, in MinIO's exact error precedence.\n */\nimport { fail, S3Error } from \"./errors.js\"\n\nexport type AuthType =\n | \"anonymous\"\n | \"signed-v2\"\n | \"presigned-v2\"\n | \"streaming-signed\"\n | \"streaming-signed-trailer\"\n | \"streaming-unsigned-trailer\"\n | \"signed\"\n | \"presigned\"\n | \"post-policy\"\n /** `Authorization: Bearer ...`: MinIO's console JWT, which S3 operations treat as anonymous. */\n | \"jwt\"\n /** An `Action=` query (STS), which S3 operations treat as anonymous. */\n | \"sts\"\n | \"unknown\"\n\nexport const SIGN_V4 = \"AWS4-HMAC-SHA256\"\nexport const EMPTY_SHA256 = \"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"\nexport const UNSIGNED_PAYLOAD = \"UNSIGNED-PAYLOAD\"\nexport const STREAMING_PAYLOAD = \"STREAMING-AWS4-HMAC-SHA256-PAYLOAD\"\nexport const STREAMING_PAYLOAD_TRAILER = \"STREAMING-AWS4-HMAC-SHA256-PAYLOAD-TRAILER\"\nexport const STREAMING_UNSIGNED_TRAILER = \"STREAMING-UNSIGNED-PAYLOAD-TRAILER\"\n/** MinIO's `globalMaxSkewTime`. */\nexport const MAX_SKEW_MS = 15 * 60 * 1000\n\nconst encoder = new TextEncoder()\n\nexport const hex = (bytes: ArrayBuffer | Uint8Array) =>\n [...(bytes instanceof Uint8Array ? bytes : new Uint8Array(bytes))]\n .map((value) => value.toString(16).padStart(2, \"0\"))\n .join(\"\")\nexport const sha256Hex = async (data: string | Uint8Array) =>\n hex(\n await crypto.subtle.digest(\n \"SHA-256\",\n (typeof data === \"string\" ? encoder.encode(data) : data) as BufferSource,\n ),\n )\nexport const hmacRaw = async (hash: \"SHA-256\" | \"SHA-1\", key: Uint8Array, value: string) => {\n const imported = await crypto.subtle.importKey(\n \"raw\",\n key as BufferSource,\n { name: \"HMAC\", hash },\n false,\n [\"sign\"],\n )\n return new Uint8Array(await crypto.subtle.sign(\"HMAC\", imported, encoder.encode(value)))\n}\nexport const hmac256 = (key: Uint8Array, value: string) => hmacRaw(\"SHA-256\", key, value)\n\n/** RFC 3986 percent-encoding of every byte outside `A-Za-z0-9-_.~` (and `/` when kept). */\nexport const uriEncode = (value: string, keepSlash = false) => {\n let out = \"\"\n for (const byte of encoder.encode(value)) {\n const char = String.fromCharCode(byte)\n if (/[A-Za-z0-9\\-_.~]/.test(char) || (keepSlash && char === \"/\")) out += char\n else out += `%${byte.toString(16).toUpperCase().padStart(2, \"0\")}`\n }\n return out\n}\n\n/** Go's `url.Values.Encode()` with `+` \u2192 `%20`: keys sorted, values in request order. */\nexport const canonicalQuery = (pairs: readonly (readonly [string, string])[]) => {\n const keys = [...new Set(pairs.map(([name]) => name))].sort()\n return keys\n .flatMap((key) =>\n pairs\n .filter(([name]) => name === key)\n .map(([, value]) => `${uriEncode(key)}=${uriEncode(value)}`),\n )\n .join(\"&\")\n}\n\nexport const isSignatureV4 = (headers: Headers) =>\n (headers.get(\"authorization\") ?? \"\").startsWith(SIGN_V4)\nexport const isSignatureV2 = (headers: Headers) => {\n const value = headers.get(\"authorization\") ?? \"\"\n return value.startsWith(\"AWS\") && !value.startsWith(SIGN_V4)\n}\nexport const isPresignedV4 = (query: URLSearchParams) => query.has(\"X-Amz-Credential\")\nexport const isPresignedV2 = (query: URLSearchParams) => query.has(\"AWSAccessKeyId\")\nexport const isPostPolicy = (method: string, headers: Headers) =>\n method === \"POST\" &&\n (headers.get(\"content-type\") ?? \"\").split(\";\")[0]?.trim().toLowerCase() === \"multipart/form-data\"\n\n/** MinIO's `getRequestAuthType`. */\nexport const authType = (method: string, headers: Headers, query: URLSearchParams): AuthType => {\n const sha = headers.get(\"x-amz-content-sha256\")\n if (isSignatureV2(headers)) return \"signed-v2\"\n if (isPresignedV2(query)) return \"presigned-v2\"\n if (sha === STREAMING_PAYLOAD && method === \"PUT\") return \"streaming-signed\"\n if (sha === STREAMING_PAYLOAD_TRAILER && method === \"PUT\") return \"streaming-signed-trailer\"\n if (sha === STREAMING_UNSIGNED_TRAILER && method === \"PUT\") return \"streaming-unsigned-trailer\"\n if (isSignatureV4(headers)) return \"signed\"\n if (isPresignedV4(query)) return \"presigned\"\n if ((headers.get(\"authorization\") ?? \"\").startsWith(\"Bearer\")) return \"jwt\"\n if (isPostPolicy(method, headers)) return \"post-policy\"\n if (query.has(\"Action\")) return \"sts\"\n if (!headers.has(\"authorization\")) return \"anonymous\"\n return \"unknown\"\n}\n\n/** MinIO's `hasMultipleAuth`: more than one of the schemes at once is refused. */\nexport const hasMultipleAuth = (method: string, headers: Headers, query: URLSearchParams) =>\n [\n isSignatureV2(headers),\n isPresignedV2(query),\n isSignatureV4(headers),\n isPresignedV4(query),\n isPostPolicy(method, headers),\n ].filter(Boolean).length > 1\n\nconst MONTHS = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\nconst DAYS = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"]\n\n/** `Date.UTC` that refuses out-of-range fields, as Go's `time.Parse` does. */\nconst utc = (year: number, month: number, day: number, hour = 0, minute = 0, second = 0) => {\n if (month < 1 || month > 12 || hour > 23 || minute > 59 || second > 59) return Number.NaN\n const ms = Date.UTC(year, month - 1, day, hour, minute, second)\n const check = new Date(ms)\n return check.getUTCDate() === day && check.getUTCMonth() === month - 1 ? ms : Number.NaN\n}\n\n/** Go `time.Parse(\"20060102T150405Z\", value)` \u2192 epoch ms, or NaN. */\nexport const parseAmzDate = (value: string) => {\n const match = /^(\\d{4})(\\d{2})(\\d{2})T(\\d{2})(\\d{2})(\\d{2})Z$/.exec(value)\n if (!match) return Number.NaN\n const [, y, mo, d, h, mi, s] = match.map(Number) as number[]\n return utc(y as number, mo as number, d as number, h, mi, s)\n}\n\n/** Go `time.Parse(\"20060102\", value)` \u2192 epoch ms, or NaN. */\nexport const parseYyyymmdd = (value: string) => {\n const match = /^(\\d{4})(\\d{2})(\\d{2})$/.exec(value)\n if (!match) return Number.NaN\n const [, y, mo, d] = match.map(Number) as number[]\n return utc(y as number, mo as number, d as number)\n}\n\n/** Go `time.RFC1123` (`Mon, 02 Jan 2006 15:04:05 MST`) and `time.RFC1123Z` (`... -0700`). */\nconst parseRfc1123 = (value: string) => {\n const match =\n /^([A-Z][a-z]{2}), (\\d{2}) ([A-Z][a-z]{2}) (\\d{4}) (\\d{2}):(\\d{2}):(\\d{2}) (?:([A-Z]{3,5})|([+-])(\\d{2})(\\d{2}))$/.exec(\n value,\n )\n if (!match || !DAYS.includes(match[1] as string)) return Number.NaN\n const month = MONTHS.indexOf(match[3] as string) + 1\n if (!month) return Number.NaN\n const ms = utc(\n Number(match[4]),\n month,\n Number(match[2]),\n Number(match[5]),\n Number(match[6]),\n Number(match[7]),\n )\n if (match[9] === undefined) return ms\n const offset = (Number(match[10]) * 60 + Number(match[11])) * 60 * 1000\n return match[9] === \"+\" ? ms - offset : ms + offset\n}\n\n/** MinIO's `amztime.Parse`: ISO8601 basic, RFC1123 or RFC1123Z. */\nexport const parseAnyAmzDate = (value: string) => {\n const iso = parseAmzDate(value)\n return Number.isNaN(iso) ? parseRfc1123(value) : iso\n}\n\n/**\n * MinIO's `setAuthMiddleware`, which runs before any request validation: an unknown scheme is\n * refused, and a header-signed request must carry a parseable date within 15 minutes of now.\n */\nexport const checkAuthMiddleware = (auth: AuthType, headers: Headers, now: number) => {\n if (auth === \"unknown\") fail(\"SignatureVersionNotSupported\")\n if (![\"signed\", \"signed-v2\", \"streaming-signed\", \"streaming-signed-trailer\"].includes(auth))\n return\n let date = Number.NaN\n let found = false\n for (const name of [\"x-amz-date\", \"date\"]) {\n const value = headers.get(name)\n if (!value) continue\n found = true\n date = parseAnyAmzDate(value)\n if (Number.isNaN(date)) fail(\"MalformedDate\")\n break\n }\n if (!found) fail(\"MissingDateHeader\")\n if (Math.abs(now - date) > MAX_SKEW_MS) fail(\"RequestTimeTooSkewed\")\n}\n\nexport type Credential = {\n accessKey: string\n date: string\n region: string\n service: string\n request: string\n}\nexport const scopeOf = (credential: Credential) =>\n `${credential.date}/${credential.region}/${credential.service}/${credential.request}`\n\n/** MinIO's `isValidRegion` (its default region is `\"\"`, so `US` only matches an unset region). */\nconst isValidRegion = (requestRegion: string, configured: string) => {\n if (!configured) return true\n const normalize = (value: string) => (value === \"US\" ? \"\" : value)\n return normalize(requestRegion) === normalize(configured)\n}\n\n/** The AuthorizationHeaderMalformed error, whose message names the server region. */\nconst regionError = (region: string) =>\n new S3Error(\"AuthorizationHeaderMalformed\", {\n message: `The authorization header is malformed; the region is wrong; expecting '${region}'.`,\n })\n\n/**\n * MinIO's `parseCredentialHeader`: `Credential=<key>/<yyyymmdd>/<region>/s3/aws4_request`.\n * `region` is the server region, or `\"\"` to accept any (GetBucketLocation, ListBuckets).\n */\nexport const parseCredential = (\n element: string,\n region: string,\n serverRegion = region,\n): Credential => {\n const trimmed = element.trim()\n const equals = trimmed.indexOf(\"=\")\n if (equals < 0) fail(\"MissingFields\")\n if (trimmed.slice(0, equals) !== \"Credential\") fail(\"MissingCredTag\")\n const elements = trimmed\n .slice(equals + 1)\n .trim()\n .replace(/\\/+$/, \"\")\n .split(\"/\")\n if (elements.length < 5) fail(\"CredMalformed\")\n const accessKey = elements.slice(0, -4).join(\"/\")\n if (accessKey.length < 3) fail(\"InvalidAccessKeyID\")\n const [date, scopeRegion, service, request] = elements.slice(-4) as [\n string,\n string,\n string,\n string,\n ]\n if (Number.isNaN(parseYyyymmdd(date))) fail(\"MalformedCredentialDate\")\n if (!isValidRegion(scopeRegion, region || scopeRegion)) throw regionError(serverRegion)\n if (service !== \"s3\") fail(\"InvalidServiceS3\")\n if (request !== \"aws4_request\") fail(\"InvalidRequestVersion\")\n return { accessKey, date, region: scopeRegion, service, request }\n}\n\nconst parseSignedHeaders = (element: string) => {\n const fields = element.trim().split(\"=\")\n if (fields.length !== 2) fail(\"MissingFields\")\n if (fields[0] !== \"SignedHeaders\") fail(\"MissingSignHeadersTag\")\n if (!fields[1]) fail(\"MissingFields\")\n return (fields[1] as string).split(\";\")\n}\nconst parseSignature = (element: string) => {\n const fields = element.trim().split(\"=\")\n if (fields.length !== 2) fail(\"MissingFields\")\n if (fields[0] !== \"Signature\") fail(\"MissingSignTag\")\n if (!fields[1]) fail(\"MissingFields\")\n return fields[1] as string\n}\n\n/** MinIO's `parseSignV4` over an `Authorization` header. */\nconst parseSignV4 = (raw: string, region: string, serverRegion: string) => {\n const first = raw.trim().split(\",\")[0] ?? \"\"\n const credentialElement = first.startsWith(SIGN_V4) ? first.slice(SIGN_V4.length) : first\n const compact = raw.replace(/ /g, \"\")\n if (!compact) fail(\"AuthHeaderEmpty\")\n if (!compact.startsWith(SIGN_V4)) fail(\"SignatureVersionNotSupported\")\n const fields = compact.slice(SIGN_V4.length).trim().split(\",\")\n if (fields.length !== 3) fail(\"MissingFields\")\n const credential = parseCredential(credentialElement.trim(), region, serverRegion)\n const signedNames = parseSignedHeaders(fields[1] as string)\n const signature = parseSignature(fields[2] as string)\n return { credential, signedNames, signature }\n}\n\nexport const signingKey = async (secret: string, date: string, region: string) => {\n let key = await hmac256(encoder.encode(`AWS4${secret}`), date)\n key = await hmac256(key, region)\n key = await hmac256(key, \"s3\")\n return hmac256(key, \"aws4_request\")\n}\n\n/** The request facts signature checks read. */\nexport type SignedRequest = {\n method: string\n /** Decoded path (`/bucket/a b`), as Go's `URL.Path`. */\n path: string\n /** The path as sent, still percent-encoded, path-style (SigV2 signs it as is). */\n rawPath: string\n /** The query string as sent, without `?`. */\n rawQuery: string\n host: string\n headers: Headers\n query: URLSearchParams\n}\n\nconst trimAll = (value: string) => value.trim().replace(/\\s+/g, \" \")\n\n/** MinIO's `extractSignedHeaders`: the value of every signed header, `host` mandatory. */\nconst extractSignedHeaders = (names: string[], request: SignedRequest) => {\n if (!names.includes(\"host\")) fail(\"UnsignedHeaders\")\n const out = new Map<string, string>()\n for (const name of names) {\n const lower = name.toLowerCase()\n const value = lower === \"host\" ? null : request.headers.get(lower)\n if (value !== null) out.set(lower, value)\n else if (lower !== \"host\" && request.query.has(name))\n out.set(lower, request.query.getAll(name).join(\",\"))\n else if (name === \"expect\") out.set(lower, \"100-continue\")\n else if (name === \"host\") out.set(lower, request.host)\n else if (name === \"transfer-encoding\") out.set(lower, \"\")\n else if (name === \"content-length\") out.set(lower, request.headers.get(\"content-length\") ?? \"0\")\n else fail(\"UnsignedHeaders\")\n }\n return [...out].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))\n}\n\n/** MinIO's `checkMetaHeaders` (presigned only): every `x-amz-meta-*` header must be signed. */\nconst checkMetaHeaders = (signed: [string, string][], request: SignedRequest) => {\n const values = new Map(signed)\n for (const [name, value] of request.headers)\n if (name.startsWith(\"x-amz-meta-\") && values.get(name) !== value) fail(\"UnsignedHeaders\")\n}\n\nconst canonicalRequest = (\n request: SignedRequest,\n headers: [string, string][],\n query: string,\n payload: string,\n) =>\n [\n request.method,\n uriEncode(request.path, true),\n query,\n headers.map(([name, value]) => `${name}:${trimAll(value)}\\n`).join(\"\"),\n headers.map(([name]) => name).join(\";\"),\n payload,\n ].join(\"\\n\")\n\nconst stringToSign = async (canonical: string, stamp: string, scope: string) =>\n [SIGN_V4, stamp, scope, await sha256Hex(canonical)].join(\"\\n\")\n\n/** What a verified V4 request proves: the key, and for streaming payloads the chunk seed. */\nexport type Verified = {\n accessKey: string\n /** For streaming payloads: the seed signature, signing key, scope and stamp. */\n seed?: { signature: string; key: Uint8Array; scope: string; stamp: string }\n}\n\nexport type Lookup = (accessKey: string) => string | undefined\n\n/** MinIO's `checkKeyValid`: the secret of a configured key, or InvalidAccessKeyId. */\nexport const checkKey = (lookup: Lookup, accessKey: string) => {\n const secret = lookup(accessKey)\n if (secret === undefined) fail(\"InvalidAccessKeyID\")\n return secret as string\n}\n\n/** MinIO's `getContentSha256Cksum`: the payload hash a V4 signature covers. */\nexport const contentSha256 = (request: SignedRequest, presigned: boolean) => {\n if (presigned)\n return (\n request.query.get(\"X-Amz-Content-Sha256\") ??\n request.headers.get(\"x-amz-content-sha256\") ??\n UNSIGNED_PAYLOAD\n )\n return request.headers.get(\"x-amz-content-sha256\") ?? EMPTY_SHA256\n}\n\n/** MinIO's `skipContentSha256Cksum`: no payload hash to verify. */\nexport const skipContentSha256 = (request: SignedRequest, presigned: boolean) => {\n const value = presigned\n ? (request.query.get(\"X-Amz-Content-Sha256\") ?? request.headers.get(\"x-amz-content-sha256\"))\n : request.headers.get(\"x-amz-content-sha256\")\n return value === null || value === UNSIGNED_PAYLOAD || value === STREAMING_UNSIGNED_TRAILER\n}\n\n/**\n * MinIO's `doesSignatureMatch` for an `Authorization: AWS4-HMAC-SHA256 ...` request, signed over\n * `payload` (the `x-amz-content-sha256` value, or a streaming marker).\n */\nexport const verifyHeaderV4 = async (\n request: SignedRequest,\n region: string,\n serverRegion: string,\n lookup: Lookup,\n payload: string,\n options: { streaming?: boolean } = {},\n): Promise<Verified> => {\n const { credential, signedNames, signature } = parseSignV4(\n request.headers.get(\"authorization\") ?? \"\",\n region,\n serverRegion,\n )\n if (options.streaming && request.headers.get(\"x-amz-content-sha256\") !== payload)\n fail(\"ContentSHA256Mismatch\")\n const headers = extractSignedHeaders(signedNames, request)\n const secret = checkKey(lookup, credential.accessKey)\n const stamp = request.headers.get(\"x-amz-date\") || request.headers.get(\"date\")\n if (!stamp) fail(\"MissingDateHeader\")\n if (Number.isNaN(parseAmzDate(stamp as string))) fail(\"MalformedDate\")\n const query = canonicalQuery([...request.query])\n const canonical = canonicalRequest(request, headers, query, payload)\n const key = await signingKey(secret, credential.date, credential.region)\n const scope = scopeOf(credential)\n const expected = hex(await hmac256(key, await stringToSign(canonical, stamp as string, scope)))\n if (expected !== signature) fail(\"SignatureDoesNotMatch\")\n // Chunk signatures are keyed by the request date (MinIO's `seedDate`), not the scope date.\n const day = (stamp as string).slice(0, 8)\n return {\n accessKey: credential.accessKey,\n seed: {\n signature: expected,\n key: day === credential.date ? key : await signingKey(secret, day, credential.region),\n scope: `${day}/${credential.region}/s3/aws4_request`,\n stamp: stamp as string,\n },\n }\n}\n\nconst PRESIGN_PARAMS = [\n \"X-Amz-Algorithm\",\n \"X-Amz-Credential\",\n \"X-Amz-Signature\",\n \"X-Amz-Date\",\n \"X-Amz-SignedHeaders\",\n \"X-Amz-Expires\",\n]\nconst DEFAULT_SIG_PARAMS = new Set([\n \"X-Amz-Content-Sha256\",\n \"X-Amz-Security-Token\",\n \"X-Amz-Algorithm\",\n \"X-Amz-Date\",\n \"X-Amz-Expires\",\n \"X-Amz-SignedHeaders\",\n \"X-Amz-Credential\",\n \"X-Amz-Signature\",\n])\nconst DURATION_UNITS: Record<string, number> = {\n ns: 1e-9,\n us: 1e-6,\n \u00B5s: 1e-6,\n ms: 1e-3,\n s: 1,\n m: 60,\n h: 3600,\n}\n\n/** Go's `time.ParseDuration(value + \"s\")` in seconds, or NaN. */\nconst parseExpires = (value: string) => {\n const text = `${value}s`\n const match = /^([-+]?)((?:(?:\\d+\\.?\\d*|\\.\\d+)(?:ns|us|\u00B5s|ms|s|m|h))+)$/.exec(text)\n if (!match) return Number.NaN\n let total = 0\n for (const part of (match[2] as string).matchAll(/(\\d+\\.?\\d*|\\.\\d+)(ns|us|\u00B5s|ms|s|m|h)/g))\n total += Number(part[1]) * (DURATION_UNITS[part[2] as string] as number)\n return match[1] === \"-\" ? -total : total\n}\n\n/** MinIO's `doesPresignedSignatureMatch`. */\nexport const verifyPresignV4 = async (\n request: SignedRequest,\n region: string,\n serverRegion: string,\n lookup: Lookup,\n now: number,\n): Promise<Verified> => {\n const query = request.query\n for (const name of PRESIGN_PARAMS) if (!query.has(name)) fail(\"InvalidQueryParams\")\n if (query.get(\"X-Amz-Algorithm\") !== SIGN_V4) fail(\"InvalidQuerySignatureAlgo\")\n const credential = parseCredential(\n `Credential=${query.get(\"X-Amz-Credential\")}`,\n region,\n serverRegion,\n )\n const date = parseAmzDate(query.get(\"X-Amz-Date\") ?? \"\")\n if (Number.isNaN(date)) fail(\"MalformedPresignedDate\")\n const expires = parseExpires(query.get(\"X-Amz-Expires\") ?? \"\")\n if (Number.isNaN(expires)) fail(\"MalformedExpires\")\n if (expires < 0) fail(\"NegativeExpires\")\n if (expires > 604800) fail(\"MaximumExpires\")\n const signedNames = parseSignedHeaders(`SignedHeaders=${query.get(\"X-Amz-SignedHeaders\")}`)\n parseSignature(`Signature=${query.get(\"X-Amz-Signature\")}`)\n const secret = checkKey(lookup, credential.accessKey)\n const headers = extractSignedHeaders(signedNames, request)\n checkMetaHeaders(headers, request)\n if (date > now + MAX_SKEW_MS) fail(\"RequestNotReadyYet\")\n if (now - date > expires * 1000) fail(\"ExpiredPresignRequest\")\n // MinIO rebuilds the auth parameters from what it parsed; a value that does not round-trip\n // (`X-Amz-Expires=900.5`, a credential with a trailing slash) cannot match.\n const rebuilt: [string, string][] = []\n const payload = contentSha256(request, true)\n if (query.get(\"X-Amz-Content-Sha256\")) rebuilt.push([\"X-Amz-Content-Sha256\", payload])\n rebuilt.push(\n [\"X-Amz-Algorithm\", SIGN_V4],\n [\"X-Amz-Date\", query.get(\"X-Amz-Date\") as string],\n [\"X-Amz-Expires\", String(Math.trunc(expires))],\n [\"X-Amz-SignedHeaders\", signedNames.join(\";\")],\n [\"X-Amz-Credential\", `${credential.accessKey}/${scopeOf(credential)}`],\n )\n for (const [name, value] of rebuilt)\n if (name !== \"X-Amz-Algorithm\" && name !== \"X-Amz-Content-Sha256\" && query.get(name) !== value)\n fail(\"SignatureDoesNotMatch\")\n const pairs = [...rebuilt, ...[...query].filter(([name]) => !DEFAULT_SIG_PARAMS.has(name))]\n const canonical = canonicalRequest(request, headers, canonicalQuery(pairs), payload)\n const key = await signingKey(secret, credential.date, credential.region)\n const expected = hex(\n await hmac256(\n key,\n await stringToSign(canonical, query.get(\"X-Amz-Date\") as string, scopeOf(credential)),\n ),\n )\n if (expected !== query.get(\"X-Amz-Signature\")) fail(\"SignatureDoesNotMatch\")\n return { accessKey: credential.accessKey }\n}\n\n/**\n * MinIO's `getReqAccessKeyV4`: the access key a V4 request names (the presigned credential, else\n * the `Authorization` credential), checked against the configured keys. No signature check.\n */\nexport const requestAccessKeyV4 = (\n request: SignedRequest,\n region: string,\n serverRegion: string,\n lookup: Lookup,\n) => {\n let credential: Credential\n try {\n credential = parseCredential(\n `Credential=${request.query.get(\"X-Amz-Credential\") ?? \"\"}`,\n region,\n serverRegion,\n )\n } catch {\n const header = request.headers.get(\"authorization\") ?? \"\"\n const raw = header.startsWith(SIGN_V4) ? header.slice(SIGN_V4.length) : header\n const fields = raw.trim().split(\",\")\n if (fields.length !== 3) fail(\"MissingFields\")\n credential = parseCredential(fields[0] as string, region, serverRegion)\n }\n checkKey(lookup, credential.accessKey)\n return credential.accessKey\n}\n\n/** MinIO's `etag.FromContentMD5`: false when `Content-MD5` is present but not a base64 MD5. */\nexport const validContentMd5 = (headers: Headers) => {\n const value = headers.get(\"content-md5\")\n if (value === null) return true\n if (!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(value) || !value)\n return false\n return atob(value).length === 16\n}\n\n/** The access key a request names, without verifying anything (lenient mode). */\nexport const claimedAccessKey = (headers: Headers, query: URLSearchParams) => {\n const header = /Credential=([^/,\\s]+)/.exec(headers.get(\"authorization\") ?? \"\")?.[1]\n const presigned = (query.get(\"X-Amz-Credential\") ?? \"\").split(\"/\")[0]\n const v2 =\n /^AWS ([^:]+):/.exec(headers.get(\"authorization\") ?? \"\")?.[1] ?? query.get(\"AWSAccessKeyId\")\n return header ?? (presigned || undefined) ?? v2 ?? undefined\n}\n\n/** Go's `hex.DecodeString` succeeds. */\nconst isHex = (value: string) => value.length % 2 === 0 && /^[0-9a-fA-F]*$/.test(value)\n\n/** Operations whose handler authenticates itself, after its own checks (`isPutActionAllowed`). */\nconst PUT_ACTIONS = new Set([\"PutObject\", \"UploadPart\"])\nconst STREAMING_TYPES: readonly AuthType[] = [\n \"streaming-signed\",\n \"streaming-signed-trailer\",\n \"streaming-unsigned-trailer\",\n]\n/** A 5 TiB object or part is MinIO's `isMaxObjectSize`. */\nconst MAX_OBJECT_SIZE = 5 * 1024 ** 4\n\nexport type AuthInput = {\n op: string\n auth: AuthType\n signed: SignedRequest\n /** The server region. */\n region: string\n lookup: Lookup\n now: number\n strict: boolean\n}\nexport type Authenticated = {\n identity: { anonymous: boolean; accessKey?: string }\n verified?: Verified\n}\n\n/** The checks PutObject and UploadPart make before they authenticate. */\nconst putPreflight = (op: string, auth: AuthType, request: SignedRequest) => {\n const { headers, query } = request\n if (headers.has(\"x-amz-copy-source\")) fail(\"InvalidCopySource\")\n if (!validContentMd5(headers)) fail(\"InvalidDigest\")\n let size = Number(headers.get(\"content-length\") ?? \"0\")\n const decoded = headers.get(\"x-amz-decoded-content-length\")\n if (STREAMING_TYPES.includes(auth) && decoded !== null) {\n if (decoded === \"\") fail(\"MissingContentLength\")\n if (!/^[+-]?\\d+$/.test(decoded))\n fail(\"InternalError\", {\n message: `We encountered an internal error, please try again.: cause(strconv.ParseInt: parsing ${JSON.stringify(decoded)}: invalid syntax)`,\n })\n size = Number(decoded)\n }\n if (size === -1) fail(\"MissingContentLength\")\n if (op === \"UploadPart\") {\n const part = query.get(\"partNumber\") ?? \"\"\n // Go's strconv.Atoi: anything outside int64 is a parse failure too.\n if (!/^[+-]?\\d+$/.test(part) || Number(part) <= 0 || BigInt(part) > 9223372036854775807n)\n fail(\"InvalidPart\")\n }\n if (size > MAX_OBJECT_SIZE) fail(\"EntityTooLarge\")\n if (op === \"UploadPart\" && Number(query.get(\"partNumber\")) > 10000) fail(\"InvalidMaxParts\")\n}\n\n/** `x-amz-content-sha256` / `X-Amz-Content-Sha256` must decode as hex (`isReqAuthenticated`). */\nconst checkPayloadHashFormat = (request: SignedRequest, presigned: boolean, put: boolean) => {\n if (skipContentSha256(request, presigned)) return\n if (put) {\n if (!isHex(contentSha256(request, presigned))) fail(\"ContentSHA256Mismatch\")\n return\n }\n if (presigned) {\n const value = request.query.get(\"X-Amz-Content-Sha256\")\n if (value && !isHex(value)) fail(\"ContentSHA256Mismatch\")\n return\n }\n const value = request.headers.get(\"x-amz-content-sha256\")\n if (value !== null && (!value || !isHex(value))) fail(\"ContentSHA256Mismatch\")\n}\n\nconst anonymous: Authenticated = { identity: { anonymous: true } }\n\n/**\n * Who sent the request, in MinIO's order: `authenticateRequest` (+ `isReqAuthenticated`) for\n * most operations, `isPutActionAllowed` then the signature check for PutObject / UploadPart.\n * Lenient mode checks presigned signatures only and treats everything else as the owner.\n */\nexport const authenticate = async (input: AuthInput): Promise<Authenticated> => {\n const { op, auth, signed, region, lookup, now, strict } = input\n if (!strict) {\n if (auth === \"unknown\") fail(\"SignatureVersionNotSupported\")\n if (auth === \"presigned\") {\n const verified = await verifyPresignV4(signed, region, region, lookup, now)\n return { identity: { anonymous: false, accessKey: verified.accessKey }, verified }\n }\n const accessKey = claimedAccessKey(signed.headers, signed.query)\n return { identity: { anonymous: false, ...(accessKey ? { accessKey } : {}) } }\n }\n const { verifyV2, requestAccessKeyV2 } = await import(\"./auth-v2.js\")\n if (op === \"PostObject\" && auth === \"post-policy\") return { identity: { anonymous: false } }\n // DeleteMultipleObjectsHandler's validateLengthAndChecksum runs before it authenticates.\n if (op === \"DeleteObjects\") {\n const md5 = signed.headers.get(\"content-md5\")\n if (md5 && !/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(md5))\n fail(\"MissingContentMD5\")\n }\n if (PUT_ACTIONS.has(op)) {\n putPreflight(op, auth, signed)\n let accessKey: string | undefined\n switch (auth) {\n case \"unknown\":\n fail(\"SignatureVersionNotSupported\")\n break\n case \"signed-v2\":\n case \"presigned-v2\":\n accessKey = requestAccessKeyV2(signed, lookup)\n break\n case \"signed\":\n case \"presigned\":\n case \"streaming-signed\":\n case \"streaming-signed-trailer\":\n accessKey = requestAccessKeyV4(signed, region, region, lookup)\n break\n case \"streaming-unsigned-trailer\":\n try {\n accessKey = requestAccessKeyV4(signed, region, region, lookup)\n } catch (error) {\n if (!(error instanceof S3Error && error.errorName === \"MissingFields\")) throw error\n }\n break\n }\n if (!accessKey) return anonymous\n switch (auth) {\n case \"streaming-signed\":\n case \"streaming-signed-trailer\": {\n const payload = auth === \"streaming-signed\" ? STREAMING_PAYLOAD : STREAMING_PAYLOAD_TRAILER\n const verified = await verifyHeaderV4(signed, region, region, lookup, payload, {\n streaming: true,\n })\n return { identity: { anonymous: false, accessKey }, verified }\n }\n case \"streaming-unsigned-trailer\":\n if (signed.headers.get(\"authorization\"))\n await verifyHeaderV4(signed, region, region, lookup, STREAMING_UNSIGNED_TRAILER)\n return { identity: { anonymous: false, accessKey } }\n case \"signed-v2\":\n case \"presigned-v2\":\n await verifyV2(signed, lookup, now, auth === \"presigned-v2\")\n return { identity: { anonymous: false, accessKey } }\n default: {\n const presigned = auth === \"presigned\"\n const verified = presigned\n ? await verifyPresignV4(signed, region, region, lookup, now)\n : await verifyHeaderV4(signed, region, region, lookup, contentSha256(signed, false))\n checkPayloadHashFormat(signed, presigned, true)\n return { identity: { anonymous: false, accessKey }, verified }\n }\n }\n }\n switch (auth) {\n case \"unknown\":\n case \"streaming-signed\":\n case \"streaming-signed-trailer\":\n case \"streaming-unsigned-trailer\":\n return fail(\"SignatureVersionNotSupported\")\n case \"signed-v2\":\n case \"presigned-v2\": {\n const accessKey = await verifyV2(signed, lookup, now, auth === \"presigned-v2\")\n return { identity: { anonymous: false, accessKey } }\n }\n case \"signed\":\n case \"presigned\": {\n // GetBucketLocation and ListBuckets accept a signature scoped to any region.\n const scopeRegion = op === \"GetBucketLocation\" || op === \"ListBuckets\" ? \"\" : region\n const presigned = auth === \"presigned\"\n const verified = presigned\n ? await verifyPresignV4(signed, scopeRegion, region, lookup, now)\n : await verifyHeaderV4(signed, scopeRegion, region, lookup, contentSha256(signed, false))\n if (!validContentMd5(signed.headers)) fail(\"InvalidDigest\")\n checkPayloadHashFormat(signed, presigned, false)\n return { identity: { anonymous: false, accessKey: verified.accessKey }, verified }\n }\n default:\n return anonymous\n }\n}\n"],
5
+ "mappings": ";AAEO,IAAM,eAAe;AAAA,EAC1B,iBAAiB;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,mBAAmB;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,0BAA0B,CAAC,mBAAmB,+BAA+B,GAAG;AAAA,EAChF,qBAAqB,CAAC,uBAAuB,0BAA0B,GAAG;AAAA,EAC1E,oBAAoB,CAAC,mBAAmB,2CAA2C,GAAG;AAAA,EACtF,mBAAmB;AA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WAAW,IAAI;AAC9C,eAAO,EAAE,UAAU,EAAE,WAAW,OAAO,UAAU,GAAG,SAAS;AAAA,MAC/D;AAAA,IACF;AAAA,EACF;AACA,UAAQ,MAAM;AAAA,IACZ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO,KAAK,8BAA8B;AAAA,IAC5C,KAAK;AAAA,IACL,KAAK,gBAAgB;AACnB,YAAM,YAAY,MAAM,SAAS,QAAQ,QAAQ,KAAK,SAAS,cAAc;AAC7E,aAAO,EAAE,UAAU,EAAE,WAAW,OAAO,UAAU,EAAE;AAAA,IACrD;AAAA,IACA,KAAK;AAAA,IACL,KAAK,aAAa;AAEhB,YAAM,cAAc,OAAO,uBAAuB,OAAO,gBAAgB,KAAK;AAC9E,YAAM,YAAY,SAAS;AAC3B,YAAM,WAAW,YACb,MAAM,gBAAgB,QAAQ,aAAa,QAAQ,QAAQ,GAAG,IAC9D,MAAM,eAAe,QAAQ,aAAa,QAAQ,QAAQ,cAAc,QAAQ,KAAK,CAAC;AAC1F,UAAI,CAAC,gBAAgB,OAAO,OAAO,EAAG,MAAK,eAAe;AAC1D,6BAAuB,QAAQ,WAAW,KAAK;AAC/C,aAAO,EAAE,UAAU,EAAE,WAAW,OAAO,WAAW,SAAS,UAAU,GAAG,SAAS;AAAA,IACnF;AAAA,IACA;AACE,aAAO;AAAA,EACX;AACF;",
6
+ "names": ["value"]
7
+ }
package/dist/cli.js CHANGED
@@ -3,8 +3,10 @@ import {
3
3
  runCli,
4
4
  serveCommand,
5
5
  serveTarget
6
- } from "./chunk-CBPRXHNC.js";
7
- import "./chunk-IULKWCQO.js";
6
+ } from "./chunk-TOYOL22V.js";
7
+ import "./chunk-T2XQWUBW.js";
8
+ import "./chunk-Y75YGK7R.js";
9
+ import "./chunk-OLJWFVFY.js";
8
10
 
9
11
  // src/cli.ts
10
12
  var code = await runCli(
package/dist/cli.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/cli.ts"],
4
4
  "sourcesContent": ["#!/usr/bin/env node\n/// <reference types=\"node\" />\nimport { runCli, serveCommand } from \"@crvouga/mockingbird-adapter-node\"\nimport { serveTarget } from \"./server.js\"\n\nconst code = await runCli(\n {\n bin: \"mockingbird-s3\",\n description: \"stateful Amazon S3 mock\",\n commands: { serve: serveCommand(serveTarget) },\n },\n process.argv.slice(2),\n)\nif (code !== 0) process.exitCode = code\n"],
5
- "mappings": ";;;;;;;;;AAKA,IAAM,OAAO,MAAM;AAAA,EACjB;AAAA,IACE,KAAK;AAAA,IACL,aAAa;AAAA,IACb,UAAU,EAAE,OAAO,aAAa,WAAW,EAAE;AAAA,EAC/C;AAAA,EACA,QAAQ,KAAK,MAAM,CAAC;AACtB;AACA,IAAI,SAAS,EAAG,SAAQ,WAAW;",
5
+ "mappings": ";;;;;;;;;;;AAKA,IAAM,OAAO,MAAM;AAAA,EACjB;AAAA,IACE,KAAK;AAAA,IACL,aAAa;AAAA,IACb,UAAU,EAAE,OAAO,aAAa,WAAW,EAAE;AAAA,EAC/C;AAAA,EACA,QAAQ,KAAK,MAAM,CAAC;AACtB;AACA,IAAI,SAAS,EAAG,SAAQ,WAAW;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,11 @@
1
+ import {
2
+ md5Base64,
3
+ md5Hex,
4
+ multipartEtag
5
+ } from "./chunk-OLJWFVFY.js";
6
+ export {
7
+ md5Base64,
8
+ md5Hex,
9
+ multipartEtag
10
+ };
11
+ //# sourceMappingURL=digest-3YQZ27RJ.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }