Skip to content

Azure Blob Storage ​

Parity grade: C · SDK azure-sdk-for-go/sdk/storage/azblob@v1.8.2 · last audited 2026-09-03 (f1427114b)

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

In-memory Azure Blob Storage with an Azurite-compatible wire protocol. Block, append and page blobs, blob index tags, leases and snapshots.

Quick start ​

bash
curl -X PUT "http://localhost:10000/devstoreaccount1/my-container?restype=container"

curl -X PUT "http://localhost:10000/devstoreaccount1/my-container/hello.txt" \
    -H "x-ms-blob-type: BlockBlob" -H "x-ms-version: 2020-10-02" \
    --data-binary "hello world"

curl "http://localhost:10000/devstoreaccount1/my-container?restype=container&comp=list"
curl "http://localhost:10000/devstoreaccount1/my-container/hello.txt"

Go SDK:

go
cred, _ := azblob.NewSharedKeyCredential("devstoreaccount1",
    "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==")
client, _ := azblob.NewClientWithSharedKeyCredential(
    "http://localhost:10000/devstoreaccount1", cred, nil)
_, _ = client.CreateContainer(ctx, "my-container", nil)
_, _ = client.UploadBuffer(ctx, "my-container", "hello.txt", []byte("hello"), nil)

The account is path-style: the account name is the first path segment. The built-in account is Azurite's devstoreaccount1 with its published development key.

Supported operations ​

AreaOperations
AccountListContainers (prefix, marker, maxresults, include=metadata), GetServiceProperties, SetServiceProperties, FindBlobsByTags
ContainersCreateContainer, DeleteContainer, GetContainerProperties, SetContainerMetadata, GetContainerACL, SetContainerACL, LeaseContainer
BlobsPutBlob, GetBlob, DeleteBlob, ListBlobs, GetBlobProperties, SetBlobProperties, GetBlobMetadata, SetBlobMetadata, SetBlobTier, SnapshotBlob, CopyBlob, AbortCopyBlob, UndeleteBlob, LeaseBlob
Block blobsPutBlock, PutBlockFromURL, PutBlockList, GetBlockList
Append blobsAppendBlock
Page blobsPutPage, GetPageRanges
TagsSetBlobTags, GetBlobTags

ListBlobs supports prefix, delimiter, maxresults, marker and include=snapshots,metadata. GetBlob accepts one range through Range or x-ms-range (x-ms-range wins). Multi-range requests are rejected.

Configuration ​

Blob runs on its own TCP port, not the shared AWS router. Startup fails if the port is taken.

FlagEnvDefaultPurpose
--azure-blob-portAZURE_BLOB_PORT10000Listener port
--azure-blob-enforce-public-accessAZURE_BLOB_ENFORCE_PUBLIC_ACCESSfalseReject anonymous requests the container's public-access level does not allow
--azure-blob-verify-signaturesAZURE_BLOB_VERIFY_SIGNATURESfalseVerify SharedKey and SAS credentials (signature, validity window, IP, protocol, permissions, stored access policy)
--azure-blob-account-keysAZURE_BLOB_ACCOUNT_KEYSnoneaccount=base64key pairs used when verification is on. The development account is always known
--azure-blob-allow-external-copyAZURE_BLOB_ALLOW_EXTERNAL_COPYfalseLet CopyBlob fetch non-loopback source URLs

Differences from Azure ​

WARNING

Signatures are not verified by default. Any credentials, or none, are accepted. Turn on --azure-blob-verify-signatures to check them.

  • Blob versions (x-ms-version-id, include=versions) are not modelled.
  • CopyBlob always completes synchronously, so AbortCopyBlob has nothing to abort. Incremental Copy, Append Block From URL and Put Page From URL are not implemented.
  • User delegation SAS and bearer tokens are not verified.
  • Page blobs: sequence-number actions and conditions, Get Page Ranges Diff and blobs above 256 MiB are not supported.

See also the service parity audit and AZURE.md.

Parity & Coverage ​

MetricValue
PARITY entries audited35 (35 ok)
Feature families5 (3 ok, 2 partial)
Known gaps4
Deferred items3
Resource leaksclean

Known Gaps ​

  • Blob versions (x-ms-version-id, include=versions, version-scoped read/delete) are not modeled: account versioning is an ARM blobServices setting and services/azurearm keeps no blobServices state (handler_ops.go:277), so the data plane has nothing to read it from.
  • Copy Blob always completes synchronously (x-ms-copy-status success), so a copy is never pending and Abort Copy has nothing to abort; Incremental Copy, Append Block From URL and Put Page From URL are not implemented.
  • User delegation SAS and bearer tokens are not verified (needs AAD user delegation keys; RBAC is out of scope).
  • Page blobs: sequence-number actions/conditions, Get Page Ranges Diff and a blob size above 256 MiB are not supported.

Deferred Items ​

  • Initial implementation pass (2026-09-02): seeded this service from scratch per AZURE.md M0. No prior audit history to reconcile.
  • M0 review pass (2026-09-03): pkgs/azureauth, cli.go registration, and test/integration/azureblob_test.go all landed in the same PR as this service (see AZURE.md's M0 entry) -- the file was previously drafted assuming a multi-PR sequence that did not happen. sdk_module bumped to the azblob v1.8.0 actually pinned in go.mod (used by the integration test).
  • Dead-code sweep (2026-09-06, gopherstack-rxdr): removed errors.go's ErrInvalidBlobType/ErrInvalidRange sentinels -- unlike every other sentinel in this file (ErrContainerNotFound/ErrContainerAlreadyExists/ErrBlobNotFound, all returned by store.go and consumed via errors.Is at the handler.go boundary, matching the repo-wide convention seen in services/s3, services/sqs, services/dynamodb), these two were never returned by anything: putBlob's x-ms-blob-type check and getBlob's parseRange check are pure handler-local HTTP validation that never crosses into the backend layer. grep confirmed zero references anywhere in the repo outside their own declaration. TestPutBlob_RequiresBlockBlobType and TestGetBlob_RangeHeaderPartialRead/unsatisfiable assert on HTTP status/body strings, not the sentinels, and pass unchanged.

Audited Operations ​

35 audited operations
OperationWireErrorsStatePersist
ListContainersokokokok
CreateContainerokokokok
DeleteContainerokokokok
ListBlobsokokokn/a
PutBlobokokokok
GetBlobokokokn/a
GetBlobPropertiesokokokn/a
DeleteBlobokokokok
PutBlockokokokok
PutBlockFromURLokokokok
PutBlockListokokokok
GetBlockListokokokn/a
LeaseBlobokokokok
LeaseContainerokokokok
ConditionalHeadersokokokn/a
SetBlobTagsokokokok
GetBlobTagsokokokn/a
FindBlobsByTagsokokokn/a
GetServicePropertiesokn/aokok
SetServicePropertiesokokokok
AppendBlockokokokok
PutPageokokokok
GetPageRangesokokokn/a
AbortCopyBlobokokokn/a
UndeleteBlobokokokok
GetContainerPropertiesokokokn/a
SetBlobPropertiesokokokok
SetBlobMetadataokokokok
GetBlobMetadataokokokn/a
SetBlobTierokokokok
SnapshotBlobokokokok
CopyBlobokokokok
SetContainerMetadataokokokok
GetContainerACLokokokn/a
SetContainerACLokokokok

Audited Feature Families ​

Feature FamilyStatus
authpartial
public_accesspartial
blob_body_headersok
routing_isolationok
observabilityok

Released under the MIT License.