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

   # Which issue does this PR close?
   
   Part of apache/reqsign#685. Uses the Reqsign integration merged in #9271.
   
   # Rationale for this change
   
   The published `reqsign-vercel` crate provides a signer for the Vercel Blob 
API. Using it lets Reqsign own bearer authentication while OpenDAL decides 
which requests carry the configured token.
   
   # What changes are included in this PR?
   
   The service passes the explicit token to `BlobStaticCredentialProvider` and 
signs Blob API requests with `BlobRequestSigner` from `reqsign-vercel` 1.0.0. 
Downloads still fetch the URL returned by Blob directly.
   
   The Blob service files in `9b7fcb47d9` match the independently reviewed 
`b9890afb16` byte for byte. Relative to its parent `7df7776b07`, the lockfile 
adds `reqsign-vercel` 1.0.0 and lists it and the existing `reqsign-core` 4.0.0 
as dependencies of the Blob service.
   
   An offline `Operator` replay on `7df7776b07` and `9b7fcb47d9` matched all 33 
request captures, including raw body bytes, at the composed HTTP transport 
before serialization. Each of the 30 Blob API requests had one sensitive 
`Authorization: Bearer <token>` header. The three data GETs used the returned 
URL verbatim without an authorization header. The full read omitted `Range`, 
and the bounded and suffix reads retained `bytes=1-3` and `bytes=-3`. The 
transport supplied scripted responses. Live Vercel Blob behavior remains 
unverified.
   
   On `9b7fcb47d9`, native `cargo build --locked --offline` passed on Linux 
with Rust 1.99.1 and `services-vercel-blob`, both with and without facade 
defaults. Both the parent and candidate passed five Blob unit tests and two 
doctests.
   
   # Are there any user-facing changes?
   
   A missing token, including an empty string normalized by the builder, still 
returns `ConfigInvalid` at operator construction, even if 
`BLOB_READ_WRITE_TOKEN` is set. Reqsign validates an explicitly supplied token 
when signing the first Blob API request.
   
   All seven malformed inputs tested on `9b7fcb47d9` allowed operator 
construction. The first list request returned permanent `Unexpected` with 
`signing http request` before dispatch. On `7df7776b07`, the scripted transport 
received requests for six inputs, including typed-config `Some("")`, spaces 
only, a leading space, a trailing space, an embedded tab, and non-ASCII text. 
An embedded newline already failed before dispatch on the parent with `building 
http request`. Supply a nonempty token of visible ASCII characters without 
spaces.
   
   # Breaking changes
   
   # AI Usage Statement
   
   All three models ran in the Pi coding agent via T3 Code. Xuanwo is the 
accountable maintainer.
   
   - `magpie/codex/gpt-6.2-sol` (effort `max`) implemented the migration and 
verified the lockfile, offline replay and native builds on `9b7fcb47d9`.
   - `magpie/devin/swe-2-1` (no explicit effort setting) independently reviewed 
`b9890afb16` and reproduced the request comparison.
   - `magpie/codex/gpt-6.2-astra` (effort `high`) identified the Blob API 
signing boundary and drafted the PR text.
   - `magpie/codex/gpt-6.2-sol` (effort `high`) independently reviewed and 
accepted `9b7fcb47d9`, replayed the offline requests on that commit and its 
parent `7df7776b07`, and verified the native build with facade defaults 
disabled on the combined Blob and Artifacts tree `b68405d87d`.
   


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