Skip to content

Azure Blob storage pools ​

Create a private block-blob container in the storage account and grant Arka read, write, list, and delete access. Arka stores immutable blobs under <prefix>/blobs/<shard>/<shard>/<sha256> (with generation suffixes for isolated GC) and stages resumable multi-part uploads under <prefix>/uploads/. The connectivity test writes and removes a small object under .arka-health/.

bash
# Supply ARKA_AZURE_ACCOUNT_KEY through the deployment secret mechanism.
arkactl pools create artifacts --driver azure_blob --auth-mode shared_key \
  --account-name mystorageaccount --container arka-blobs --prefix production
arkactl pools test "$POOL_ID"
  • shared_key is the default authentication mode. Use pools update "$POOL_ID" --replace-azure-key to read a replacement from ARKA_AZURE_ACCOUNT_KEY.
  • sas reads ARKA_AZURE_SAS_TOKEN on create. Rotate it with --replace-azure-sas, and include --auth-mode sas when switching modes. Supply a container SAS with read, write, create, list, and delete access (rwdcl) so chunked upload staging and orphan generation cleanup work cleanly.
  • default_credential uses Azure's default credential chain. Assign the workload identity an appropriate Blob Data role (such as Storage Blob Data Contributor) for the container.
  • --endpoint accepts the Azure account service URL, including the account path for Azurite. Cleartext HTTP is limited to loopback Azurite with shared-key or SAS authentication.

The administration API uses driver: "azure_blob" and accepts accountName, container, prefix, endpoint, authMode, accountKey and sasToken. The versioned credential envelope protects the stored pool configuration. Read responses include hasAccountKey and hasSasToken when present, along with explicit capabilities:

  • capabilities.uploadStaging: true — Azure Blob pools support cross-replica OCI chunked upload staging, checksum-verified commit, and quiet-period cleanup of expired upload sessions.
  • capabilities.generationCleanup: true — paginated generation enumeration sweeps unreferenced blob generations while skipping HNS directory markers and protecting active write-intent leases.
  • capabilities.presignedDownload: true for shared_key pools when Arka's presigned redirect policy is enabled; false for sas and default_credential pools (downloads stay on the Arka data path).

When Arka's presigned redirect policy permits it, a shared-key pool can issue a short-lived, read-only SAS for an individual blob. Use an HTTPS endpoint clients can reach before enabling redirects. Range requests are served through Arka.

For an initial default pool, set ARKA_STORAGE_DRIVER=azure_blob and set ARKA_AZURE_ACCOUNT_NAME, ARKA_AZURE_CONTAINER, and the settings for the chosen authentication mode. ARKA_AZURE_AUTH_MODE, ARKA_AZURE_ENDPOINT and ARKA_AZURE_PREFIX are optional.

Released under the Apache 2.0 License.