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
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:
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
| Area | Operations |
|---|---|
| Account | ListContainers (prefix, marker, maxresults, include=metadata), GetServiceProperties, SetServiceProperties, FindBlobsByTags |
| Containers | CreateContainer, DeleteContainer, GetContainerProperties, SetContainerMetadata, GetContainerACL, SetContainerACL, LeaseContainer |
| Blobs | PutBlob, GetBlob, DeleteBlob, ListBlobs, GetBlobProperties, SetBlobProperties, GetBlobMetadata, SetBlobMetadata, SetBlobTier, SnapshotBlob, CopyBlob, AbortCopyBlob, UndeleteBlob, LeaseBlob |
| Block blobs | PutBlock, PutBlockFromURL, PutBlockList, GetBlockList |
| Append blobs | AppendBlock |
| Page blobs | PutPage, GetPageRanges |
| Tags | SetBlobTags, 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.
| Flag | Env | Default | Purpose |
|---|---|---|---|
--azure-blob-port | AZURE_BLOB_PORT | 10000 | Listener port |
--azure-blob-enforce-public-access | AZURE_BLOB_ENFORCE_PUBLIC_ACCESS | false | Reject anonymous requests the container's public-access level does not allow |
--azure-blob-verify-signatures | AZURE_BLOB_VERIFY_SIGNATURES | false | Verify SharedKey and SAS credentials (signature, validity window, IP, protocol, permissions, stored access policy) |
--azure-blob-account-keys | AZURE_BLOB_ACCOUNT_KEYS | none | account=base64key pairs used when verification is on. The development account is always known |
--azure-blob-allow-external-copy | AZURE_BLOB_ALLOW_EXTERNAL_COPY | false | Let 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. CopyBlobalways completes synchronously, soAbortCopyBlobhas 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
| Metric | Value |
|---|---|
| PARITY entries audited | 35 (35 ok) |
| Feature families | 5 (3 ok, 2 partial) |
| Known gaps | 4 |
| Deferred items | 3 |
| Resource leaks | clean |
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
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
ListContainers | ok | ok | ok | ok |
CreateContainer | ok | ok | ok | ok |
DeleteContainer | ok | ok | ok | ok |
ListBlobs | ok | ok | ok | n/a |
PutBlob | ok | ok | ok | ok |
GetBlob | ok | ok | ok | n/a |
GetBlobProperties | ok | ok | ok | n/a |
DeleteBlob | ok | ok | ok | ok |
PutBlock | ok | ok | ok | ok |
PutBlockFromURL | ok | ok | ok | ok |
PutBlockList | ok | ok | ok | ok |
GetBlockList | ok | ok | ok | n/a |
LeaseBlob | ok | ok | ok | ok |
LeaseContainer | ok | ok | ok | ok |
ConditionalHeaders | ok | ok | ok | n/a |
SetBlobTags | ok | ok | ok | ok |
GetBlobTags | ok | ok | ok | n/a |
FindBlobsByTags | ok | ok | ok | n/a |
GetServiceProperties | ok | n/a | ok | ok |
SetServiceProperties | ok | ok | ok | ok |
AppendBlock | ok | ok | ok | ok |
PutPage | ok | ok | ok | ok |
GetPageRanges | ok | ok | ok | n/a |
AbortCopyBlob | ok | ok | ok | n/a |
UndeleteBlob | ok | ok | ok | ok |
GetContainerProperties | ok | ok | ok | n/a |
SetBlobProperties | ok | ok | ok | ok |
SetBlobMetadata | ok | ok | ok | ok |
GetBlobMetadata | ok | ok | ok | n/a |
SetBlobTier | ok | ok | ok | ok |
SnapshotBlob | ok | ok | ok | ok |
CopyBlob | ok | ok | ok | ok |
SetContainerMetadata | ok | ok | ok | ok |
GetContainerACL | ok | ok | ok | n/a |
SetContainerACL | ok | ok | ok | ok |
Audited Feature Families
| Feature Family | Status |
|---|---|
auth | partial |
public_access | partial |
blob_body_headers | ok |
routing_isolation | ok |
observability | ok |
