omofolarin opened a new pull request, #904:
URL: https://github.com/apache/arrow-rs-object-store/pull/904
## Summary
Expose an opt-in error-metadata hook for HTTP-backed object-store requests.
The hook runs when a terminal HTTP response is converted into `RetryError`,
while status, headers, and a bounded response-body view are still available.
Retained metadata contains only bounded status, provider code, request ID, and
retry-after fields; response bodies and arbitrary headers are not retained in
`ErrorMetadata`.
The hook is configurable through `ClientOptions` and is propagated through
built-in and custom connector paths for AWS, GCP, Azure, and HTTP stores.
Existing behavior remains unchanged when no hook is configured.
## Verification
- `cargo fmt --all -- --check`
- `cargo clippy --all-features --lib --tests -- -D warnings`
- `cargo test --all-features`
- 268 library tests passed, 6 ignored
- 3 integration test binaries passed
- 57 doctests passed, 2 ignored
- Added regression coverage for bounded metadata extraction and retry-error
propagation.
This addresses the need for an upstream opt-in metadata boundary without
exposing response bodies, credentials, signed URLs, or sensitive headers
through retained error metadata.
--
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]