Skip to content

S3 ​

Parity grade: A · SDK aws-sdk-go-v2/service/s3@v1.114.3 · last audited 2026-10-07 (30db30dd8) · protocol REST-XML

Category: Storage · View PARITY.md on GitHub · All Services

In-memory S3 with versioning, multipart upload, Object Lock, replication, bucket configuration APIs and S3 Select. Data lives in memory; with --persist it survives restarts.

Quick start ​

bash
export AWS_ENDPOINT_URL=http://localhost:8000
aws s3api create-bucket --bucket my-bucket
aws s3 cp file.txt s3://my-bucket/
aws s3 ls s3://my-bucket/
aws s3api put-bucket-versioning --bucket my-bucket \
    --versioning-configuration Status=Enabled
aws s3api put-object --bucket my-bucket --key f.txt --body file.txt \
    --tagging "env=dev&project=myapp"

Create buckets at startup with --s3-bucket a,b (env S3_BUCKETS).

Supported operations ​

AreaOperations
BucketsCreateBucket, DeleteBucket, ListBuckets, HeadBucket, GetBucketLocation, ListDirectoryBuckets
ObjectsPutObject, GetObject, HeadObject, DeleteObject, DeleteObjects, CopyObject, RenameObject, RestoreObject, PostObject, GetObjectAttributes, GetObjectTorrent, SelectObjectContent
ListingListObjects, ListObjectsV2, ListObjectVersions
MultipartCreateMultipartUpload, UploadPart, UploadPartCopy, CompleteMultipartUpload, AbortMultipartUpload, ListMultipartUploads, ListParts
VersioningGet/PutBucketVersioning
TaggingGet/Put/DeleteBucketTagging, Get/Put/DeleteObjectTagging
ACL and policyGet/PutBucketAcl, Get/PutObjectAcl, Get/Put/DeleteBucketPolicy, GetBucketPolicyStatus, Get/Put/DeletePublicAccessBlock, Get/Put/DeleteBucketOwnershipControls
CORS, lifecycle, websiteGet/Put/DeleteBucketCors, Get/PutBucketLifecycleConfiguration, DeleteBucketLifecycle, Get/Put/DeleteBucketWebsite
EncryptionGet/Put/DeleteBucketEncryption, UpdateObjectEncryption
Object LockGet/PutObjectLockConfiguration, Get/PutObjectRetention, Get/PutObjectLegalHold
Notification, logging, replicationGet/PutBucketNotificationConfiguration, Get/PutBucketLogging, Get/Put/DeleteBucketReplication
Analytics, inventory, metrics, tieringPut/Get/Delete/ListBucket{Analytics,Inventory,Metrics,IntelligentTiering}Configuration
Misc bucket settingsGet/PutBucketAccelerateConfiguration, Get/PutBucketRequestPayment, Get/PutBucketAbac
Metadata tablesCreate/Get/DeleteBucketMetadataConfiguration, Create/Get/DeleteBucketMetadataTableConfiguration, UpdateBucketMetadata{Inventory,Journal,Annotation}TableConfiguration
AnnotationsPut/Get/Delete/ListObjectAnnotation(s)
Express One Zone, Object LambdaCreateSession, WriteGetObjectResponse

Presigned URLs work with the SDK's presigners.

Configuration ​

Flag / envDefaultPurpose
--s3-bucket / S3_BUCKETSnoneBuckets created at startup
S3_REGIONus-east-1Default region
S3_JANITOR_INTERVAL500msBackground janitor tick
S3_COMPRESSION_MIN_BYTES1024Minimum object size for zstd compression; 0 compresses everything
GOPHERSTACK_S3_VALIDATE_SIGNATURESoffVerify S3 request and presigned-URL signatures against --sigv4-secret
GOPHERSTACK_S3_SKIP_KMS_KEY_VALIDATIONoffAccept SSE-KMS key IDs that do not exist in the KMS emulator
GOPHERSTACK_S3_DISABLE_CUSTOM_CORSoffIgnore per-bucket CORS rules

Objects are compressed in memory (zstd; gzip blobs from older snapshots still decode). Clients do not see this.

Differences from AWS ​

WARNING

x-amz-mfa is not validated. With MFA Delete enabled a missing token is AccessDenied, but any token value is accepted.

  • Bucket policy and ACL checks cover object requests. Explicit Deny always applies. Anonymous and public-ACL gating applies only when authorization enforcement is on.
  • XXHASH64, XXHASH3 and XXHASH128 checksums are not modelled.
  • Replication and per-storage-class request metrics, and SelectRequests/SelectBytes* metrics, are not produced.
  • CreateBucket x-amz-bucket-namespace and PutBucketPolicy x-amz-confirm-remove-self-bucket-access are not evaluated.
  • ListDirectoryBuckets through a custom endpoint needs DisableS3ExpressSessionAuth = true in the SDK client.

Parity & Coverage ​

MetricValue
PARITY entries audited26 (25 ok, 1 gap)
Feature families8 (8 ok)
Known gapsnone
Structural gaps (can't be emulated)4
Deferred items0
Resource leaksclean

Structural Gaps ​

These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.

  • x-amz-mfa: a missing token is AccessDenied when MFA Delete is enabled, but the token value is never validated: no MFA device model.
  • XXHASH64/XXHASH3/XXHASH128 checksums: the module carries no XXH3/XXH128 implementation (xxhash/v2 is an indirect XXH64-only dependency) and go.mod must not change; the fields are not modeled.
  • Replication and per-storage-class request metrics, SelectRequests/SelectBytes* metrics: no per-request replication or storage-class traffic model.
  • CreateBucket x-amz-bucket-namespace and PutBucketPolicy x-amz-confirm-remove-self-bucket-access: no account-regional namespace or self-lockout policy evaluation exists.

Audited Operations ​

26 audited operations
OperationWireErrorsStatePersist
GetObject/HeadObjectfixedokokok
CreateMultipartUpload/ListParts (abort headers)fixedokokn/a
PutBucketAclokokokok
PutBucketReplicationokokokok
GetObjectAttributesokokokok
DeleteBucketokokokok
PutBucketPolicyokokokok
PostObjectokokokok
SelectObjectContentokokokn/a
PutObjectLockConfigurationokfixedfixedok
CreateBucketfixedokokok
CopyObject (AnnotationDirective)fixedokokok
CopyObject (X-Amz-Copy-Source escaping)fixedokokok
ListBucketsokokokn/a
PutBucketAbac/GetBucketAbacfixedfixedokok
CreateMultipartUpload/CompleteMultipartUpload/ListMultipartUploadsfixedokfixedok
PutBucketReplication (object-put replication matching)fixedokokok
RenameObjectokokfixedn/a
WriteGetObjectResponsefixedokfixedn/a
PutObjectAnnotation/GetObjectAnnotation/DeleteObjectAnnotation/ListObjectAnnotations/UpdateBucketMetadataAnnotationTableConfigurationokokokok
ListObjects/ListObjectsV2fixedokokn/a
GetBucketVersioning/PutBucketVersioningfixedokokok
GetBucketMetadataTableConfigurationokn/an/aok
GetBucketMetadataConfigurationgapn/an/aok
CreateSession (S3 Express One Zone)fixedokokn/a
ListDirectoryBucketsokokokn/a

Audited Feature Families ​

Feature FamilyStatus
multipartok
conditionalsok
versioningok
paginationok
errorsok
copyok
bucket_deleteok
bucket_config_listsok

Released under the MIT License.