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: aavmurphy [...] gmail.com
DAVEWEBB [...] cpan.org
Cc:
AdminCc:

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



Subject: Authenticating requests using query parameters
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
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.
Subject: #124323
Date: Sun, 12 Jul 2020 21:03:27 +0100
To: bug-Net-Amazon-Signature-V4 [...] rt.cpan.org
From: Andrew Murphy <aavmurphy [...] gmail.com>
Sorry, couldn't see how to add a comment to an existing bug (maybe move issue tracking to github?) https://rt.cpan.org/Public/Bug/Display.html?id=124323 AWS::Signature4 implements this but no longer seems to be maintained. Would it be possible to add this functionality... there are already too many aws signature4 modules (which must say more about aws than perl!). Thanks for taking the time. It's appreciated! -- Andrew Murphy