bug(services/azblob,azdls): filter empty account keys consistently and verify multipart copy auth paths

Open
#9,551 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
azure, rust
Domain
backend, cloud

Research direction

Start with core/services/azblob/src/backend.rs and core/services/azdls/src/backend.rs, then trace azblob_put_block_from_url in core/services/azblob/src/core.rs and its caller in copier.rs. Check existing credential selection tests and related issues #8104 and #9407; done means empty credentials are handled consistently and segmented-copy support matches verified authentication paths against real Azure Blob.

Written by the indexing model from the issue text.

Description

bug services/azblob services/azdls
Background

Two configuration and capability consistency issues were identified in azblob and azdls:

  1. Inconsistent empty account_name / account_key filtering across Config and connection-string paths:
    • Commit #9498 ensured empty sas_token placeholders do not shadow other credentials, and azfile filters empty account_name/account_key.
    • In azblob (core/services/azblob/src/backend.rs:531-550) and azdls (core/services/azdls/src/backend.rs:336-342), direct builder setters ignore empty strings, but config structs and connection strings (AccountKey=;) can still supply Some(""). Furthermore, azblob checks has_shared_key, static provider registration, and user_delegation_account (L550) using inconsistent predicates (self.config.account_key.is_none() vs non-empty checks).
  2. azblob copy_can_multi auth-path verification:
    • core/services/azblob/src/backend.rs:628 unconditionally advertises copy_can_multi: true, while azblob_put_block_from_url (core/services/azblob/src/core.rs:700-712, triggered from copier.rs:54) calls self.sign_query (which passes through on skip_signature at L145, but uses SAS query signing rather than x-ms-copy-source-authorization or user_delegation_account).
    • Verify segmented PutBlockFromUrl against real Azure Blob across Shared Key, Azure AD / OAuth, and skip_signature (related to #8104, #9407) and ensure copy_can_multi accurately matches supported authentication paths.
Acceptance Criteria
  • Filter empty account_name and account_key consistently across config, connection-string, and builder paths in azblob and azdls (unifying has_shared_key, static provider registration, and user_delegation_account), with unit tests verifying credential selection.
  • Verify segmented copy auth modes against real Azure Blob and align azblob's copy_can_multi capability or auth implementation accordingly.

This issue was drafted and independently verified with AI assistance as part of the Apache OpenDAL v0.60.0 pre-release audit.

Dominant language
Rust
Stars
5.5k
Forks
869
Avg merge
8h 2m
Merged PRs (30d)
862

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/opendal

All issues in apache/opendal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.