Repository navigation
zs3 v0.2.0
zs3 serves any directory over the S3 API from a single static binary, with no
dependencies and no config file. Version 0.2.0 adds the APIs that aws s3 sync, rclone and boto3 expect, plus snapshots, a browser console, and
fsync-on-write.
Documentation: index ·
configuration ·
API reference ·
security and limits
New in this release
CopyObjectandUploadPartCopy, soaws s3 mv/syncandrclone move
work.ListPartsis new as well. Request-by-request detail in the
API reference.- Presigned URLs: query-string SigV4 with expiry enforced server-side, for
direct uploads and share links. - Content-Type and user metadata are stored per object and returned on GET and
HEAD. Files zs3 did not write get a type from an extension table. x-amz-checksum-*checksums are accepted, stored and echoed back, including
theSTREAMING-...-TRAILERforms.zs3 snapshotandzs3 clonewrite content-addressed bucket snapshots
(BLAKE3 chunks plus a JSON manifest) and dedup on both ends. A warm re-clone
transfers only the manifest. See
snapshots.GET /_zs3/consoleserves a single-file browser UI, with keys kept in
localStorage.GET /metricsexposes Prometheus counters.- A multi-arch image is published to GHCR on every tag, musl and macOS
binaries are attached below, andpackaging/homebrew/holds a tap template.
Systemd, Docker and reverse-proxy setups are in
deployment.
Correctness fixes
- Writes fsync the file contents, and the parent directory where it can,
before the response goes out.--fastrestores the old
rename-without-fsync path that the benchmarks use. Both modes measured in
benchmarks. - Single-object ETags are the MD5 of the content, so
aws s3 sync,
rclone checkandmd5sumagree, including over trees zs3 did not write.
Multipart keeps the composite"md5-of-part-md5s-N"form. - Request paths are percent-decoded, so keys containing spaces,
+,#or
non-ASCII characters are stored under their real names. Data directories
written before this change still read correctly. See
deployment. - LIST no longer returns sidecar, attrs or snapshot system objects, and
ListBuckets skips directories whose names are not valid bucket names.
Distributed mode
The live mesh is frozen. It stays in the binary and still works, but takes no
new development. To move data between machines, use zs3 snapshot and
zs3 clone over the content-addressed store.
How the mesh works,
and the reasoning for freezing it.
Install
docker run -p 9000:9000 -v $PWD/data:/data ghcr.io/lulzx/zs3:v0.2.0
Or download a binary below, chmod +x it, and run it in the directory you
want to serve. Replacing a MinIO service in Compose:
migration guide.
Full changelog: https://github.com/Lulzx/zs3/blob/v0.2.0/CHANGELOG.md