Skip to content

feat(services): wire reqsign-command-execute-tokio for process, Azure CLI, and GCP external-account credentials #8872

Done

Description

@Xuanwo

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions