Skip to content

feat(storage): add Azure Blob Storage driver - #280

Merged
LouisHaftmann merged 20 commits into
devfrom
feat/azblob-storage
Oct 23, 2026
Merged

LouisHaftmann merged 20 commits into
devfrom
feat/azblob-storage

Conversation

@LouisHaftmann

Copy link
Copy Markdown
Collaborator

Adds an azblob storage driver. Takes over #257 by @Jonas-Beck: his commits are kept as-is, with dev merged in and one commit of review fixes on top.

Auth is either STORAGE_AZBLOB_CONNECTION_STRING (shared key) or STORAGE_AZBLOB_ACCOUNT (+ optional STORAGE_AZBLOB_ENDPOINT) with DefaultAzureCredential. STORAGE_AZBLOB_CONTAINER is required and must exist. Supports direct downloads (SAS) and eager merge (Put Block From URL). The Helm chart exposes config.storage.azblob; the connection string goes through existingSecret.

Review fixes on top of #257:

  • signed source URLs are no longer logged when staging a block fails
  • the user delegation key is fetched once per compose instead of once per part
  • batch deletes fail when any sub-request fails, and only count deleted blobs
  • the container must exist (like S3's bucket) instead of being created
  • account name and shared-key mode come from the client

Tested against Azurite with the full suite (sqlite + azblob). The DefaultAzureCredential path is not covered by CI since Azurite only does shared keys; @Jonas-Beck, a check with workload identity would be appreciated.

Closes #256

🤖 Generated with Claude Code

Jonas-Beck and others added 20 commits July 30, 2026 10:42
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
…oint from client

Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
Signed-off-by: Jonas Beck <dev@jonasbeck.dk>
- stop logging signed source URLs when staging a block fails
- fetch the user delegation key once per compose instead of per part
- fail deletions when batch sub-requests fail, count only deleted blobs
- require the container to exist instead of creating it, like S3
- derive account and shared-key mode from the client

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LouisHaftmann
LouisHaftmann merged commit b4c6648 into dev Oct 23, 2026
30 checks passed
@LouisHaftmann
LouisHaftmann deleted the feat/azblob-storage branch October 23, 2026 09:54
chenrui333 added a commit to chenrui333/github-actions-cache-server that referenced this pull request Oct 24, 2026
`lib/storage.ts` imported `@azure/storage-blob`, `@azure/identity` and
`@google-cloud/storage` at the top level, so every server loaded all three
SDKs whatever `STORAGE_DRIVER` said. Since the Azure Blob driver (falcondev-oss#280) that
adds about 40 MB of live heap to an idle S3 or filesystem server, and every
GC cycle has to walk it.

Import each SDK inside its adapter's `fromEnv`; only types stay as static
imports.

Signed-off-by: Rui Chen <rui@chenrui.dev>
(cherry picked from commit 00a7d6c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Azure Blob Storage driver

2 participants