Skip to content

S3 API

Supported S3 operations, headers and extensions.
Note

Core bucket/object CRUD, versioning, multipart uploads, SSE-S3/SSE-C encryption, webhook notifications, IAM users/policies, and service accounts are part of the pgsilo MVP target. Basic AssumeRole STS, bucket lifecycle expiration/abort, Object Lock retention/legal hold, hard bucket quotas, object annotations, and read-only ZIP extraction are Preview features.

This page summarizes the HTTP S3 operations, headers, and extensions supported by the schema 14 PostgreSQL backend. Examples use path-style addressing (/{bucket}/{key}). For hands-on examples, see SDK & CLI Access and Multipart, Lock & Notifications.

Endpoints, signatures, and clients

  • S3 and STS share the gateway API port (9000 by default); the web Console uses 9001 by default. Never pass the Console port as an S3 SDK endpoint.
  • Sign requests with AWS Signature Version 4 (s3 service name for object/bucket calls, sts for AssumeRole) using the gateway’s effective region.
  • Path-style addressing works out of the box. Virtual-hosted-style addressing requires MINIO_DOMAIN, wildcard DNS for bucket subdomains, and TLS certificates covering those hostnames.
  • Presigned GET/PUT URLs and POST policy forms are supported within their signed expiration and conditions.
ClientPrimary useConfiguration notes
mcliBuckets, objects, IAM users/policies, service accounts, quotas, and admin statusSeparate administrative aliases from application credentials
AWS CLI (s3 / s3api / sts)Versioned object calls, multipart uploads, tagging, Object Lock, and AssumeRolePass --endpoint-url, --ca-bundle, and --region
boto3 / AWS SDK for Go v2Application S3 access and automated testsUse path-style addressing; SDKs automatically retry HTTP 503 SlowDown
Custom SigV4 HTTP clientObject annotations and x-minio-extract ZIP headers not modeled by standard SDKsSign full query parameters and extension headers

Bucket and object operations

OperationHTTP formBehavior and limits
ListBucketsGET /Lists buckets visible to the caller identity
CreateBucket / HeadBucket / DeleteBucketPUT / HEAD / DELETE /{bucket}Standard DeleteBucket requires an empty bucket; LocationConstraint must match the effective region
GetBucketLocationGET /{bucket}?locationReturns the effective region
ListObjects / ListObjectsV2GET /{bucket} / GET /{bucket}?list-type=2Supports prefix, delimiter, and continuation tokens
PutObject / GetObject / HeadObjectPUT / GET / HEAD /{bucket}/{key}Supports user metadata, content type, conditionals, byte ranges, checksums, and SSE
CopyObjectPUT /{bucket}/{key} with x-amz-copy-sourceCopies across keys or buckets atomically; supports source version selection
DeleteObject / DeleteObjectsDELETE /{bucket}/{key} / POST /{bucket}?deleteCreates a delete marker in versioned buckets when versionId is omitted; batch delete handles up to 1000 keys
GetObjectAttributesGET /{bucket}/{key}?attributesReturns ETag, checksums, object size, and multipart part metadata
SelectObjectContentPOST /{bucket}/{key}?select&select-type=2S3 Select over CSV, JSON, and Parquet payloads

The default maximum object size is 256 MiB (SILO_PG_MAX_OBJECT_SIZE), configurable up to 1 GiB at initial store setup. Single PUT, CopyObject, and completed multipart objects all enforce this limit.

Sending DELETE /{bucket} with a non-empty x-minio-force-delete header (including the literal string false) requires s3:ForceDeleteBucket in addition to s3:DeleteBucket. Object-lock buckets reject force deletion with HTTP 405 even when empty.

Versioning, conditionals, ranges, and checksums

Use GET/PUT /{bucket}?versioning to inspect or change bucket versioning (Enabled or Suspended) and GET /{bucket}?versions (ListObjectVersions) to list versions and delete markers.

FeatureHeaders or query parametersNotes
Read conditionalsversionId, If-Match, If-None-Match, If-Modified-Since, If-Unmodified-SinceReturns 304 Not Modified or 412 Precondition Failed according to HTTP method
Write / Copy destination conditionalsIf-Match, If-None-MatchChecked atomically at publication without a separate HEAD race
Conditional deleteIf-Match, optional versionIdVerifies target ETag before deleting or adding a delete marker
Copy source conditionalsx-amz-copy-source-if-*Checked against the selected source version
Byte range readsRange: bytes=start-endSingle byte range supported; cannot be combined with partNumber
Part readspartNumber=NReads a specific part of a completed multipart object

Supported checksum algorithms include CRC32, CRC32C, CRC64NVME, SHA1, SHA256, MD5, SHA512, XXHASH64, XXHASH3, and XXHASH128. Note that ETag values for multipart or encrypted objects are not plain MD5 digests.

Multipart uploads

StageHTTP formS3 operation
InitiatePOST /{bucket}/{key}?uploadsCreateMultipartUpload
Upload partPUT /{bucket}/{key}?partNumber=N&uploadId=IDUploadPart
Copy partPUT /{bucket}/{key}?partNumber=N&uploadId=ID + x-amz-copy-sourceUploadPartCopy
List partsGET /{bucket}/{key}?uploadId=IDListParts
List active uploadsGET /{bucket}?uploadsListMultipartUploads
CompletePOST /{bucket}/{key}?uploadId=IDCompleteMultipartUpload
AbortDELETE /{bucket}/{key}?uploadId=IDAbortMultipartUpload

Part numbers run from 1 to 10000, and every part except the last must be at least 5 MiB. Unfinished parts consume physical database storage but do not count toward logical bucket quota until CompleteMultipartUpload publishes the assembled object in a single transaction. Abort failed uploads explicitly or configure an AbortIncompleteMultipartUpload lifecycle rule.

Subresources: tags, lock, encryption, lifecycle, CORS, notifications

SubresourceMethodsScope and status
Object ?taggingGET / PUT / DELETEUp to 10 key-value tags per object version (MVP)
Bucket ?taggingGET / PUT / DELETEBucket-level tag set (MVP)
Bucket ?policyGET / PUT / DELETEBucket policies persisted in PostgreSQL; combined with native role grants under iam_and_pg (MVP)
Bucket ?encryptionGET / PUT / DELETEDefault AES256 encryption using built-in static KMS; external SSE-KMS is unsupported (MVP)
Bucket ?corsGET / PUT / DELETE, OPTIONSPer-bucket CORS rules; does not bypass SigV4 or IAM checks (MVP)
Bucket ?notificationGET / PUTPublishes S3 object events to configured webhook targets (MVP)
Bucket ?object-lockGET / PUT (enabled at bucket creation)Default GOVERNANCE or COMPLIANCE retention on versioned buckets (Preview)
Object ?retention, ?legal-holdGET / PUTPer-version retention and legal hold; governance bypass requires x-amz-bypass-governance-retention: true and s3:BypassGovernanceRetention (Preview)
Bucket ?lifecycleGET / PUT / DELETECurrent/noncurrent expiration, expired delete-marker cleanup, and incomplete multipart abort; no remote tiering (Preview)

Webhook notifications

  1. Configure a webhook target on the gateway via MINIO_NOTIFY_WEBHOOK_ENABLE_<ID>=on and MINIO_NOTIFY_WEBHOOK_ENDPOINT_<ID>=https://....
  2. Attach bucket notification rules referencing arn:minio:sqs:<region>:<ID>:webhook using PutBucketNotificationConfiguration or mcli event add.

S3 HTTP mutations and background lifecycle expirations emit bucket notifications after transaction commit (at-least-once delivery; consumers must handle duplicates). Direct SQL mutations via silo_api never emit S3 bucket notifications.

IAM service accounts and STS

IAM users, groups, policies, service accounts, and STS metadata are stored in PostgreSQL and managed through mcli admin user, mcli admin policy, and mcli admin user svcacct.

  • Service accounts belong to a parent IAM user, optionally carry a session policy (up to 2048 serialized bytes) that narrows the parent’s permissions, and support an optional expiration between 15 minutes and 365 days from issuance.
  • Basic AssumeRole STS (Preview) accepts a form POST / signed with an ordinary IAM user’s SigV4 credentials (Action=AssumeRole&Version=2011-06-15). DurationSeconds defaults to 3600 (1 hour) and accepts 900–31536000 seconds (15 minutes to 365 days) unless overridden by MINIO_STS_DURATION.
  • Service accounts and STS temporary credentials cannot call AssumeRole recursively to extend credential chains.
  • Direct exchange of PostgreSQL database usernames/passwords for STS credentials is not implemented, and external OIDC/LDAP STS flows (AssumeRoleWithWebIdentity, AssumeRoleWithLDAPIdentity) are not part of the validated pgsilo scope.

Unsupported S3 APIs

The PostgreSQL backend does not implement bucket or site replication, remote storage tiering, RestoreObject, object-level canned ACLs, S3 Inventory, static website hosting, server access logging, Transfer Acceleration, RequestPayment, BitTorrent, or external SSE-KMS. See Compatibility for the complete matrix.

Scan to open this page
https://mimus.pgsty.com/docs/s3/reference/s3-api/