S3 API
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 (
9000by default); the web Console uses9001by default. Never pass the Console port as an S3 SDK endpoint. - Sign requests with AWS Signature Version 4 (
s3service name for object/bucket calls,stsforAssumeRole) 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.
| Client | Primary use | Configuration notes |
|---|---|---|
mcli | Buckets, objects, IAM users/policies, service accounts, quotas, and admin status | Separate administrative aliases from application credentials |
AWS CLI (s3 / s3api / sts) | Versioned object calls, multipart uploads, tagging, Object Lock, and AssumeRole | Pass --endpoint-url, --ca-bundle, and --region |
boto3 / AWS SDK for Go v2 | Application S3 access and automated tests | Use path-style addressing; SDKs automatically retry HTTP 503 SlowDown |
| Custom SigV4 HTTP client | Object annotations and x-minio-extract ZIP headers not modeled by standard SDKs | Sign full query parameters and extension headers |
Bucket and object operations
| Operation | HTTP form | Behavior and limits |
|---|---|---|
ListBuckets | GET / | Lists buckets visible to the caller identity |
CreateBucket / HeadBucket / DeleteBucket | PUT / HEAD / DELETE /{bucket} | Standard DeleteBucket requires an empty bucket; LocationConstraint must match the effective region |
GetBucketLocation | GET /{bucket}?location | Returns the effective region |
ListObjects / ListObjectsV2 | GET /{bucket} / GET /{bucket}?list-type=2 | Supports prefix, delimiter, and continuation tokens |
PutObject / GetObject / HeadObject | PUT / GET / HEAD /{bucket}/{key} | Supports user metadata, content type, conditionals, byte ranges, checksums, and SSE |
CopyObject | PUT /{bucket}/{key} with x-amz-copy-source | Copies across keys or buckets atomically; supports source version selection |
DeleteObject / DeleteObjects | DELETE /{bucket}/{key} / POST /{bucket}?delete | Creates a delete marker in versioned buckets when versionId is omitted; batch delete handles up to 1000 keys |
GetObjectAttributes | GET /{bucket}/{key}?attributes | Returns ETag, checksums, object size, and multipart part metadata |
SelectObjectContent | POST /{bucket}/{key}?select&select-type=2 | S3 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.
| Feature | Headers or query parameters | Notes |
|---|---|---|
| Read conditionals | versionId, If-Match, If-None-Match, If-Modified-Since, If-Unmodified-Since | Returns 304 Not Modified or 412 Precondition Failed according to HTTP method |
| Write / Copy destination conditionals | If-Match, If-None-Match | Checked atomically at publication without a separate HEAD race |
| Conditional delete | If-Match, optional versionId | Verifies target ETag before deleting or adding a delete marker |
| Copy source conditionals | x-amz-copy-source-if-* | Checked against the selected source version |
| Byte range reads | Range: bytes=start-end | Single byte range supported; cannot be combined with partNumber |
| Part reads | partNumber=N | Reads 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
| Stage | HTTP form | S3 operation |
|---|---|---|
| Initiate | POST /{bucket}/{key}?uploads | CreateMultipartUpload |
| Upload part | PUT /{bucket}/{key}?partNumber=N&uploadId=ID | UploadPart |
| Copy part | PUT /{bucket}/{key}?partNumber=N&uploadId=ID + x-amz-copy-source | UploadPartCopy |
| List parts | GET /{bucket}/{key}?uploadId=ID | ListParts |
| List active uploads | GET /{bucket}?uploads | ListMultipartUploads |
| Complete | POST /{bucket}/{key}?uploadId=ID | CompleteMultipartUpload |
| Abort | DELETE /{bucket}/{key}?uploadId=ID | AbortMultipartUpload |
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
| Subresource | Methods | Scope and status |
|---|---|---|
Object ?tagging | GET / PUT / DELETE | Up to 10 key-value tags per object version (MVP) |
Bucket ?tagging | GET / PUT / DELETE | Bucket-level tag set (MVP) |
Bucket ?policy | GET / PUT / DELETE | Bucket policies persisted in PostgreSQL; combined with native role grants under iam_and_pg (MVP) |
Bucket ?encryption | GET / PUT / DELETE | Default AES256 encryption using built-in static KMS; external SSE-KMS is unsupported (MVP) |
Bucket ?cors | GET / PUT / DELETE, OPTIONS | Per-bucket CORS rules; does not bypass SigV4 or IAM checks (MVP) |
Bucket ?notification | GET / PUT | Publishes S3 object events to configured webhook targets (MVP) |
Bucket ?object-lock | GET / PUT (enabled at bucket creation) | Default GOVERNANCE or COMPLIANCE retention on versioned buckets (Preview) |
Object ?retention, ?legal-hold | GET / PUT | Per-version retention and legal hold; governance bypass requires x-amz-bypass-governance-retention: true and s3:BypassGovernanceRetention (Preview) |
Bucket ?lifecycle | GET / PUT / DELETE | Current/noncurrent expiration, expired delete-marker cleanup, and incomplete multipart abort; no remote tiering (Preview) |
Webhook notifications
- Configure a webhook target on the gateway via
MINIO_NOTIFY_WEBHOOK_ENABLE_<ID>=onandMINIO_NOTIFY_WEBHOOK_ENDPOINT_<ID>=https://.... - Attach bucket notification rules referencing
arn:minio:sqs:<region>:<ID>:webhookusingPutBucketNotificationConfigurationormcli 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
AssumeRoleSTS (Preview) accepts a formPOST /signed with an ordinary IAM user’s SigV4 credentials (Action=AssumeRole&Version=2011-06-15).DurationSecondsdefaults to3600(1 hour) and accepts900–31536000seconds (15 minutes to 365 days) unless overridden byMINIO_STS_DURATION. - Service accounts and STS temporary credentials cannot call
AssumeRolerecursively 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 validatedpgsiloscope.
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.
