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

   # Which issue does this PR close?
   
   Part of apache/reqsign#685.
   
   # Rationale for this change
   
   Reqsign provides a bearer-token signer for Vercel Artifacts. Using it lets 
Reqsign validate the configured token and form the `Authorization` header. 
OpenDAL builds the artifact URL, team query and range, and dispatches the 
signed request through the operation's HTTP transport.
   
   # What changes are included in this PR?
   
   The Vercel Artifacts service uses `ArtifactsStaticCredentialProvider` and 
`ArtifactsRequestSigner` from `reqsign-vercel` 1.0.0 for HEAD, GET and PUT. The 
signer needs only the explicit access token.
   
   A downstream crate exercised the public `Operator` with synthetic 
credentials and scripted offline HTTP on `70909b105b` and its parent 
`0f43aa4fb9`. For valid or absent tokens, all 22 captured requests and 23 
caller outcomes matched. The captures covered bearer-header bytes and 
sensitivity, request bodies, encoded keys, team selectors, default and custom 
endpoints, and bounded and suffix `Range` headers. A reader kept its initial 
transport when a cloned operator switched transports. The parent and candidate 
traces also matched the corresponding traces from the independent replay of the 
earlier private candidate `369a2fe8dc`.
   
   Earlier self-hosted tests ran on `c5a3e41666`. ducktors v3.0.4 omitted 
`Content-Length` on HEAD and GET. fast-turbo-cache-server v0.1.1 returned the 
full 36-byte object for a seven-byte range. Successful bounded and suffix reads 
used scripted HTTP 206 responses. Hosted Vercel remains unverified. Wasm 
validation covered compilation only.
   
   With default features and Vercel Artifacts as the only selected service, 
this head still pulls in `reqsign-crypto-rustcrypto`. Applying #9433 
(`91e04a1deb`) separately on top produced tree 
`f15d2b60901ab71aab479807312792cef887a156`. That build dropped the dependency 
from the same feature configuration and produced identical supported and 
malformed-token traces to this head.
   
   # Are there any user-facing changes?
   
   Existing valid raw tokens need no change. Omitting the token still returns 
`ConfigInvalid` at operator construction, even when environment tokens are set.
   
   All 11 malformed explicit tokens tested still allowed the operator to build. 
On this head, all 33 HEAD, GET and PUT operations returned permanent 
`Unexpected` with `signing http request` before dispatch. The parent dispatched 
requests for eight cases covering empty tokens supplied through the builder or 
typed config, spaces only, leading, embedded or trailing spaces, an embedded 
tab, and non-ASCII text. For newline, carriage return and NUL, the parent 
already failed before dispatch with `building http request`. Supply the raw 
token as a nonempty string of visible ASCII characters without spaces or a 
`Bearer ` prefix.
   
   # Breaking changes
   
   # AI Usage Statement
   
   Xuanwo is the accountable maintainer. All models ran in Pi.
   
   | Model | Effort | Role |
   | --- | --- | --- |
   | `magpie/codex/gpt-6.2-sol` | `max` | Implemented the migration, compared 
requests and outcomes for the earlier candidate, and ran the downstream replay 
and validation for this head and the separate #9433 integration. |
   | `magpie/devin/swe-2-1` | Unset | Independently reviewed `369a2fe8dc` and 
reproduced its scripted comparison with its parent. |
   | `magpie/codex/gpt-6.2-astra` | `xhigh` | Coordinated implementation, 
independent review of the earlier candidate, and preparation of this head for 
publication. |
   | `magpie/codex/gpt-6.2-astra` | `high` | Drafted the title and body, 
assessed release impact, and updated the body against the evidence for this 
head. |
   


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