Xuanwo opened a new pull request, #8945:
URL: https://github.com/apache/opendal/pull/8945

   # Which issue does this PR close?
   
   Closes #8872.
   
   # Rationale for this change
   
   `reqsign-aws-v4`, `reqsign-azure-storage`, and `reqsign-google` already 
support command-backed credential flows (AWS `credential_process`, Azure CLI 
`az account get-access-token`, and GCP executable external-account 
credentials), but OpenDAL's `reqsign_core::Context` construction previously 
wired `TokioFileRead` without `TokioCommandExecute`. As a result, these 
credential providers always failed at runtime with `no command execute 
configured`.
   
   # What changes are included in this PR?
   
   - Added `reqsign-command-execute-tokio = { version = "3.0.9", 
default-features = false }` under `[target.'cfg(not(target_arch = 
"wasm32"))'.dependencies]` in `opendal-service-s3`, `opendal-service-azblob`, 
`opendal-service-azdls`, `opendal-service-azfile`, `opendal-service-gcs`, and 
`opendal-service-gcs-grpc`, preserving `wasm32-unknown-unknown` builds.
   - Wired `TokioCommandExecute` onto `reqsign_core::Context` via 
`#[cfg(not(target_arch = "wasm32"))]` in `s3`, `azblob`, `azdls`, `azfile`, 
`gcs`, and `gcs-grpc`.
   - Fixed explicit Service Principal credential precedence in `azblob`, 
`azdls`, and `azfile`: when `tenant_id`, `client_id`, and `client_secret` are 
all non-empty, `ClientSecretCredentialProvider` is inserted ahead of 
`DefaultCredentialProvider::builder().no_client_secret().build()` (still below 
`sas_token` and `account_key`) so Azure CLI cannot shadow explicitly configured 
Service Principal credentials.
   - Updated `core/Cargo.lock` and `bindings/ruby/Cargo.lock`.
   - Added deterministic unit tests covering `TokioCommandExecute` execution 
through each service's signing context, `disable_config_load` isolation for 
`s3`, `gcs`, and `gcs-grpc`, `AssumeRole` context inheritance in `s3`, and 
explicit Service Principal precedence in `azblob`, `azdls`, and `azfile`.
   
   # Are there any user-facing changes?
   
   Yes. On non-`wasm32` targets, `s3`, `azblob`, `azdls`, `azfile`, `gcs`, and 
`gcs-grpc` now support `reqsign`'s command-backed credential providers 
(`credential_process`, Azure CLI, and GCP executable external-account 
credentials) out of the box when configuration loading is enabled.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Harness: pi
   - Model: Gemini 4 Neon
   - Effort: high
   - Role: Implemented the `reqsign-command-execute-tokio` wiring, Azure 
Service Principal provider precedence fix, lockfile updates, and unit tests 
across the six services, and ran local formatting, lint, test, rustdoc, 
license, and `wasm32` checks. Verification used local deterministic credential 
scripts rather than live cloud provider endpoints; live AWS/Azure/GCP CLI 
integration remains covered by upstream `reqsign` behavior and service-specific 
CI.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to