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

   # Which issue does this PR close?
   
   Closes #9427
   Closes #9428
   Closes #9430
   
   # Rationale for this change
   
   An application can follow the split-crate S3 example, build an operator with 
static keys, and discover that it lacks a crypto provider only when it calls 
`presign_read`. The upgrade guide also promises `ConfigInvalid` for every 
signed request without a provider, although credential lookup and forwarding an 
existing signature have different outcomes. This guidance applies to the 
Reqsign 0.21 migration in #9271. OpenDAL 0.59.5 on crates.io predates that 
migration.
   
   # What changes are included in this PR?
   
   - Update the core, S3, and GCS split-crate examples. Enable 
`opendal-core/reqsign-rustcrypto` to use RustCrypto, or call 
`opendal_core::reqsign_core::crypto::install_default(provider)` once before 
building operators. A process-wide provider installed at that point takes 
precedence.
   - Document the outcomes without a provider. S3 `presign_read` with static 
keys returns `ConfigInvalid` directly from signing. Azure Blob `stat` with only 
a client-certificate credential provider returns `Unexpected` with the source 
`failed to load signing credential` after the credential chain exhausts its 
options. Azure Blob `presign_read` with a supplied SAS succeeds because it 
forwards the existing signature.
   - Explain the GCS service-account requirement for signed URLs and RS256 
assertions for OAuth token exchange. RustCrypto supports RSA PKCS#1 v1.5 with 
SHA-256 on native targets. On `wasm32-unknown-unknown`, these flows require a 
process-wide provider that implements that operation on Wasm.
   
   The issue reports document the original offline reproductions. This PR 
repeated the S3, Azure Blob, and GCS checks on `ccbba108a6` with the split 
OpenDAL crates, published Reqsign crates, and synthetic credentials. S3 signed 
with RustCrypto through the Cargo feature and through explicit installation. 
GCS emitted `X-Goog-Signature` on the native build and returned `Unexpected` 
with the RustCrypto RSA diagnostic when run in Node on 
`wasm32-unknown-unknown`. Reqsign Google 4.0.0 uses the same RSA operation to 
sign RS256 assertions.
   
   The earlier #9271 check separately verified S3 signing with a process-wide 
BoringSSL provider in a facade consumer with default features disabled.
   
   # Are there any user-facing changes?
   
   Documentation only. This updates five Markdown files and Rustdoc comments in 
two source files.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Pi, `magpie/codex/gpt-6.2-sol`, `max` — implemented the documentation 
changes and ran the downstream checks.
   - Pi, `magpie/codex/gpt-6.2-astra`, `high` — triaged the issue reports and 
drafted the PR description.
   - Pi, `magpie/codex/gpt-6.2-astra`, `xhigh` — coordinated the work and 
verified the scope against the three issues.
   


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