You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "delta003 (via GitHub)" <gi...@apache.org> on 2025/04/02 09:53:36 UTC
[I] configurable request signing for AWS S3 [arrow-rs-object-store]
delta003 opened a new issue, #318:
URL: https://github.com/apache/arrow-rs-object-store/issues/318
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
<!--
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and *why* for this feature, in addition to the *what*)
-->
I need to customize request signing when talking to S3-compatible APIs.
**Describe the solution you'd like**
<!--
A clear and concise description of what you want to happen.
-->
Be able to provide a signer implementation to AmazonS3Builder that is used by AwsAuthorizer / replaces AwsAuthorizer, similar to https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-core/src/main/java/com/amazonaws/auth/Signer.java#L24
It can be a small part of authorizer or all of it, but I'm curious how you think about the design of this crate and if this is or isn't something you'd consider.
AwsAuthorizer supports overriding session token name
```
/// Overrides the header name for security tokens, defaults to `x-amz-security-token`
pub(crate) fn with_token_header(mut self, header: HeaderName) -> Self {
self.token_header = Some(header);
self
}
```
but this struct is very deep in the design, so this isn't configurable to a user. Even just being able to configure the token name could work for me.
**Describe alternatives you've considered**
<!--
A clear and concise description of any alternative solutions or features you've considered.
-->
There are some discussions in OpenDAL to support customizable signer, backed by reqsign crate.
**Additional context**
<!--
Add any other context or screenshots about the feature request here.
-->
I'd be happy to propose a refactor in the PR as long as there is a chance to get it merged - don't want to waste time if this goes against your design principles for the crate. Thank you.
--
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] configurable request signing for AWS S3 [arrow-rs-object-store]
Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #318:
URL: https://github.com/apache/arrow-rs-object-store/issues/318#issuecomment-2773059222
I don't see an issue with making the token_header configurable, as you say it is already largely plumbed in to allow for S3 Express.
As for a more holistic refactor, I think we'd want to collect a bit more information on the various different use-cases first
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] configurable request signing for AWS S3 [arrow-rs-object-store]
Posted by "gruuya (via GitHub)" <gi...@apache.org>.
gruuya commented on issue #318:
URL: https://github.com/apache/arrow-rs-object-store/issues/318#issuecomment-2958372957
> As for a more holistic refactor, I think we'd want to collect a bit more information on the various different use-cases first
One such use case is when employing [remote-signing for Iceberg catalogs](https://github.com/apache/iceberg/blob/main/aws/src/main/resources/s3-signer-open-api.yaml).
When one loads a table from an Iceberg catalog with vended-credentials access delegation, [the response is sufficient](https://github.com/JanKaul/iceberg-rust/blob/main/iceberg-rust/src/object_store/parse.rs) to construct an `ObjectStore` instance, and thus perform some read/write actions on the table.
This isn't the case for remote-signing access delegation, as there's no way to hook-up the `s3.signer.uri` and `s3.signer.endpoint` [that are returned](https://github.com/lakekeeper/lakekeeper/blob/0ee94b265d4ad5c53e14dac09ccb3f4cdb270a77/crates/lakekeeper/src/service/storage/s3.rs#L542-L548) so that the `S3Client` uses them to presign the request URL.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org