Object storage backends and requirements
S3, GCS, Azure or anything object_store supports, as long as it has put-if-absent and conditional update.
On this page
What does a store need?
Anything that implements object_store::ObjectStore works: S3, GCS, Azure, local disk, memory. Itzma needs put-if-absent (writes, create) and conditional update (every manifest change: compaction, indexing, format upgrades).
| Store | Put-if-absent | Conditional update | What works |
|---|---|---|---|
| Amazon S3 and S3-compatibles | yes | yes | everything |
| Google Cloud Storage | yes | yes | everything |
| Azure Blob Storage | yes | yes | everything |
| In memory | yes | yes | everything |
| Local disk | yes | no | create, write and query; compaction, indexing and upgrades fail with a storage error |
Cloud adapters on the official SDKs
Three crates wrap the vendors’ own Rust SDKs as an ObjectStore, for when you want the SDK’s credentials, retries, timeouts and endpoints rather than object_store’s clients:
| Crate | Store | Build it from your client | Or from settings | Rust |
|---|---|---|---|---|
itzma-store-aws | Amazon S3 and compatibles | S3Store::new(client, bucket) | S3Store::connect(bucket, S3Options) | 1.94.1 |
itzma-store-gcs | Google Cloud Storage | GcsStore::new(storage, control, bucket) | GcsStore::connect(bucket, GcsOptions) | 1.91 |
itzma-store-azure | Azure Blob Storage | AzureStore::new(container_client) | AzureStore::connect(account, container, AzureOptions) | 1.88 |
Without options, GCS uses Google’s default credentials (Workload Identity on GKE and Cloud Run), Azure a managed identity, and S3 the AWS SDK’s default chain. Put-if-absent and the manifest’s conditional update map to each service’s own condition (GCS generations, Azure and S3 ETags), so a lost race is always reported as one. They are released with itzma-core, at the same version:
itzma-store-gcs = "0.2.1"Testing a custom storage adapter
If you implement your own object_store::ObjectStore, use the itzma-store conformance suite (itzma_store::conformance_tests!) to check whether the backend meets Itzma’s storage requirements: put-if-absent, conditional update, NotFound for a gone object, ranges, listings, copies and multipart uploads. A store counts as supported when it passes. The three adapters above run the same suite in CI against an emulator: MinIO for S3, storage-testbench for GCS, Azurite for Azure.
Python store URLs
In Python a store is a URL: memory://, file:///var/lib/itzma, s3://bucket/prefix, gs://bucket/prefix or az://container/prefix. They are built on the adapters above. S3 credentials and region come from the AWS SDK’s usual chain, GCS uses Google’s default credentials, and Azure a managed identity unless credential or sas_token says otherwise; keywords override them. Python API lists them.
