Skip to content

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

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/feat-reqsign-command-execute
Nov 23, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
xuanwo/feat-reqsign-command-execute

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 23, 2026

Copy link
Copy Markdown
Member

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.

@Xuanwo
Xuanwo requested a review from PsiACE as a code owner November 23, 2026 21:07
@github-actions github-actions Bot added releases-note/feat The PR implements a new feature or has a title that begins with "feat" services/azblob services/azdls services/azfile services/gcs services/gcs_grpc OpenDAL gcs-grpc service. services/s3 size:XXL This PR changes 1000+ lines, ignoring generated files. labels Nov 23, 2026
@Xuanwo
Xuanwo merged commit e3fb0b3 into main Nov 23, 2026
90 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/feat-reqsign-command-execute branch November 23, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/feat The PR implements a new feature or has a title that begins with "feat" services/azblob services/azdls services/azfile services/gcs_grpc OpenDAL gcs-grpc service. services/gcs services/s3 size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants