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

Aperta
#9,551 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
azure, rust
Ambito
backend, cloud

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
5.5k
Fork
869
Merge medio
8h 2m
PR unite (30g)
862

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/opendal

Tutte le issue di apache/opendal

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.