The problem is apparently that the bucket is
"com.typekit.entitlement_files-staging", yet the signature in the
error message seems to include only "/entitlement_files-staging/", I
haven't seen that kind of mangling before, and it's not clear how such
a signature could validate the prefix as well.
I'll be looking for more documentation/information on this. If someone
knows what's going on, please chime in.
On Thu, Oct 3, 2013 at 2:17 AM, George Blazer <
gbl...@gmail.com> wrote:
> Hi there,
>
> I'm having trouble getting a SignedUrl for a file in the bucket up on S3.
>
> I'm definitely using correct AWS credentials, but getting an error. I have
> found an article that seems relevant
>
http://kitcarrau.tumblr.com/post/12841485836/amazon-s3-signed-urls-with-nodejs,
> but can't quite figure out what's causing the problem.
>
> Please help.
>
> ~/workspace/polka curl -i
> "
https://s3.amazonaws.com/com.typekit.entitlement_files-staging/73b5da7f4e7280e18af2441f58acab8b39c391b8?AWSAccessKeyId=AKIAJDHEEQAZEKYIVKNQ&Expires=1380777486&Signature=OuA2uAk9HOKsuC4F4ktfvuvshhk%3D"
> HTTP/1.1 403 Forbidden
> x-amz-request-id: 026ABF4EDA9578C2
> x-amz-id-2: H7OIcP8WNwiuPCJOVOr4vm8CjDWECE93I6qQAANRkjXGtamUdYdjQGMpqBjZtfhd
> Content-Type: application/xml
> Transfer-Encoding: chunked
> Date: Thu, 03 Oct 2013 05:15:13 GMT
> Server: AmazonS3
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we
> calculated does not match the signature you provided. Check your key and
> signing method.</Message><StringToSignBytes>47 45 54 0a 0a 0a 31 33 38 30 37
> 37 37 34 38 36 0a 2f 63 6f 6d 2e 74 79 70 65 6b 69 74 2e 64 65 73 6b 74 6f
> 70 5f 66 6f 6e 74 5f 65 6e 74 69 74 6c 65 6d 65 6e 74 5f 66 69 6c 65 73 2d
> 73 74 61 67 69 6e 67 2f 37 33 62 35 64 61 37 66 34 65 37 32 38 30 65 31 38
> 61 66 32 34 34 31 66 35 38 61 63 61 62 38 62 33 39 63 33 39 31 62
> 38</StringToSignBytes><RequestId>026ABF4EDA9578C2</RequestId><HostId>H7OIcP8WNwiuPCJOVOr4vm8CjDWECE93I6qQAANRkjXGtamUdYdjQGMpqBjZtfhd</HostId><SignatureProvided>OuA2uAk9HOKsuC4F4ktfvuvshhk=</SignatureProvided><StringToSign>GET
>
>
> 1380777486
> /entitlement_files-staging/73b5da7f4e7280e18af2441f58acab8b39c391b8</StringToSign><AWSAccessKeyId>AKIAJDHEEQAZEKYIVKNQ</AWSAccessKeyId></Error>%
>
> --
> You received this message because you are subscribed to the Google Groups
> "goamz" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
goamz+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
--
gustavo @
http://niemeyer.net