OrbitDocs

S3 API

Supported operations

Which S3 operations Orbit implements, how they behave, and what is not supported.

Orbit implements the part of the S3 API that file tools use. Check this page before you rely on an operation that isn't listed.

Drives (buckets)

OperationNotes
ListBucketsLists the drives the key can reach.
HeadBucket
CreateBucketCreates a drive. Needs a full-control key. Can also fork a drive.
DeleteBucketDeletes a drive, including one that still has files. Needs a full-control key.
GetBucketLocation
GetBucketVersioningAlways Enabled. Versioning can't be turned off.

Files (objects)

OperationNotes
GetObjectOne Range per request. Supports versionId, If-Match, If-None-Match, If-Modified-Since, If-Unmodified-Since and the response-* overrides.
HeadObjectSame conditions as GetObject.
PutObjectUp to 95 MB. Supports If-Match, If-None-Match: *, Content-MD5 and x-amz-checksum-*. A key ending in / creates a folder.
CopyObjectWithin a drive, the copy shares the source's data. Across drives, the data is copied. Supports x-amz-metadata-directive and copying a specific versionId.
DeleteObjectRemoves the file. Its history is kept.
DeleteObjectsUp to 1,000 keys per request.

Listing

OperationNotes
ListObjectsV2prefix, delimiter, max-keys (up to 1,000), continuation-token, start-after, encoding-type.
ListObjects (v1)With marker.
ListObjectVersionsprefix, delimiter, key-marker, version-id-marker. Includes delete markers.

Multipart upload

OperationNotes
CreateMultipartUpload
UploadPartPart numbers 1 to 10,000. Each part up to 95 MB.
ListParts
CompleteMultipartUpload
AbortMultipartUpload
ListMultipartUploads

Abandoned multipart uploads are not expired automatically. Abort uploads you don't intend to finish.

Authentication

MethodSupported
Signature Version 4 in headersYes
Presigned URLsYes
UNSIGNED-PAYLOADYes
Streaming signed payloads (aws-chunked), with or without trailersYes
Trailing checksums: CRC32, CRC32C, CRC64NVME, SHA-1, SHA-256Yes
Signature Version 2No

Conditional writes

If-Match: <etag> writes only if the file is unchanged since you read it. If-None-Match: * writes only if the file doesn't exist. Both work on PutObject, CopyObject, DeleteObject and the Orbit extensions. When the condition fails you get 412 PreconditionFailed and nothing is written.

Use them whenever two writers might touch the same file.

Orbit extensions

These go beyond S3. Each is a normal signed request with an x-uls- query parameter or header, so any Signature Version 4 signer can send them. Every x-uls-* header you send must be included in the signature.

ExtensionRequestGuide
Write at an offset, truncatePUT /<drive>/<key>?x-uls-writeEdit files in place
Apply many edits at oncePOST /<drive>/<key>?x-uls-patchEdit files in place
Insert or remove bytesPUT /<drive>/<key>?x-uls-spliceEdit files in place
Rename a file or folderPUT /<drive>/<new-key>?x-uls-renameRename
List a file's versionsGET /<drive>/<key>?x-uls-versionsHistory and restore
Read a file as of a timeGET with x-uls-as-ofHistory and restore
Restore a versionPOST /<drive>/<key>?x-uls-restore&versionId=History and restore
Fork a drivePUT /<new-drive> with x-uls-fork-sourceFork a drive
Describe a driveGET /<drive>?x-uls-driveFork a drive
Create a child keyPOST /_uls/keysAccess keys

Every response includes x-uls-protocol: 1.

Rename

S3 has no rename, so tools copy and delete. Orbit renames in one step, and a folder rename takes the same time whatever it contains.

PUT /my-drive/final/scene.blend?x-uls-rename
x-uls-source: drafts/scene.blend

x-uls-source is the current key, percent-encoded. To rename a folder, end both keys with /. The file keeps its history under the new name.

Not supported

These return 501 NotImplemented:

  • Multi-range GetObject requests, and GetObject by partNumber
  • UploadPartCopy. The AWS CLI uses it to copy files larger than 8 MB. Raise the threshold with aws configure set s3.multipart_threshold 5GB, or copy with rclone.
  • Object and bucket ACLs
  • Object tagging
  • Lifecycle rules, CORS configuration, bucket policies
  • Object Lock, legal hold and retention
  • S3 Select
  • DeleteObject with a versionId. History is immutable. To go back, restore a version.