services/s3: Migrate to aws-sdk-go-v2: Authenticating requests using query parameters
JinnyYi opened this issue · 1 comments
JinnyYi commented
Authenticating Requests: Using Query Parameters
Comparison
aws-sdk-go
: It providesxxxRequest()
to generate a "aws/request.Request" representing the client's request for almost all the operations. Then for query string authentication, we can usePresign
to get the request's signed URL.aws-sdk-go-v2
:PresignClient
represents the presign url client. And onlyPresignGetObject
/PresignPutObject
/PresignHeadObject
/PresignUploadPart
are provided.
When migrating to aws-sdk-go-v2, is it possible to provide services equivalent to the current version on authenticating requests? More specifically, how to implement MultipartHTTPSigner
and QuerySignHTTPDelete
?
Steps
- New
s3.PresignClient
withs3.PresignOptions
- Figure out whether more interfaces can support authentication with query parameters.
JinnyYi commented
Maybe we need support from upstream: aws/aws-sdk-go-v2#1469