I am signing a private resource available on S3 to make it temporarily publicly available. This is what I get after signing the URL with the v3 version of the protocol:
Suppose I want to replace s3.amazonaws.com with some other domain and for that purpose I enter new CNAME entry in my DNS settings (I map my.stuff.net to be an alias of s3.amazonaws.com.). If I now try to query the following URL, I will get elaborate description from Amazon that signature verification failed.
v3 signing doesn't include host name, so my guess is that signature is actually correct, but Amazon verifies from which domain is request coming and rejects everything not coming from s3.amazonaws.com.
Does anybody know if my guess is correct and if there's some workaround to that?