Skip Menu |
 

This queue is for tickets about the Net-Amazon-Signature-V4 CPAN distribution.

Report information
The Basics
Id: 124323
Status: open
Priority: 0/
Queue: Net-Amazon-Signature-V4

People
Owner: Nobody in particular
Requestors: DAVEWEBB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Authenticating requests using query parameters
Download (untitled) / with headers
text/plain 903b
Net::Amazon::Signature::V4 adds the authentication strings as HTTP headers to the request. Certain AWS API operations require you to generate a pre-signed URL which is passed as a parameter in the API request. These pre-signed URLs require AWSv4 signatures, but with all the authentication strings being passed in the querystring, rather than as headers. For example, to copy an RDS Aurora cluster snapshot to another region you have to hit the endpoint in the target region, with one of the parameters being a pre-signed URL that the target region runs in the source region. https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CopyDBClusterSnapshot.html As a feature request, could Net::Amazon::Signature::V4 optionally handle this non-header signing? The AWS docs for this process are at https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html Thanks, Dave Webb
Download (untitled) / with headers
text/plain 542b
Hi, You may want to try https://metacpan.org/pod/Signer::AWSv4::S3. It may need a bit of work to get your specific use case working. Note: I'm not an author of Net::Amazon::Signature::V4. I was just browsing its issues casually, and thought I could help, since I've authored a module just for that. There are a couple more signer modules out there on the CPAN that may suite you. Note2: I actually use Net::Amazon::Signature::V4 over Signer::AWSv4 in the Perl SDK (Paws), since it's more mature and battle tested than Signer::AWSv4.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.