Xuanwo opened a new issue, #8872:
URL: https://github.com/apache/opendal/issues/8872

   ## Problem
   
   None of OpenDAL's `reqsign`-backed services currently configure 
`Context::with_command_execute(...)`. Because `reqsign_core::Context` defaults 
to a no-op `CommandExecute`, several built-in `reqsign` credential providers 
silently fail to run in OpenDAL:
   
   - **`s3`** (`reqsign-aws-core`): `ProcessCredentialProvider` 
(`credential_process` in `~/.aws/config`, 
`services/aws-core/src/provide_credential/process.rs`).
   - **`azblob` / `azdls` / `azfile`** (`reqsign-azure-storage`): 
`AzureCliCredentialProvider` (`az account get-access-token`, 
`services/azure-storage/src/provide_credential/azure_cli.rs`).
   - **`gcs` / `gcs-grpc`** (`reqsign-google`): 
`ExternalAccountCredentialProvider` executable-sourced external accounts 
(`services/google/src/provide_credential/external_account.rs`).
   
   (Upcoming `reqsign 0.21` providers such as `reqsign-github`'s `gh auth 
token` will also depend on `CommandExecute`.)
   
   ## Proposal
   
   Add `reqsign-command-execute-tokio` (`3.0.9`, `default-features = false`) on 
`#[cfg(not(target_arch = "wasm32"))]` targets and wire 
`.with_command_execute(TokioCommandExecute)` into the `reqsign_core::Context` 
constructed by `s3`, `azblob`, `azdls`, `azfile`, `gcs`, and `gcs-grpc`—both at 
builder initialization and wherever `Context::new()` is rebuilt per operation 
in `*Core::signer(...)`.
   
   ## Coordination
   
   - Depends on or pairs cleanly with upgrading the `reqsign` crates to the 
`0.20.9` line (`reqsign-core 3.3.4`, `reqsign-command-execute-tokio 3.0.9`).
   - Coordinate with the S3 `disable_config_load` fix so `disable_config_load` 
disables `process` / `sso` slots rather than executing `~/.aws/config` 
`credential_process` when config loading is disabled.
   - Keep `wasm32` compilation intact by gating `reqsign-command-execute-tokio` 
with `#[cfg(not(target_arch = "wasm32"))]`.
   
   ---
   *Drafted with AI assistance (Gemini 4 Neon) and verified against 
`apache/opendal` and `apache/reqsign` `v0.20.9`.*


-- 
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