aws-sdk-rust icon indicating copy to clipboard operation
aws-sdk-rust copied to clipboard

[request]: Pre-signed URLs for Cloudfront

Open Jasperav opened this issue 3 years ago • 6 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

I expected https://github.com/awslabs/aws-sdk-rust/issues/139 would implement pre-signed url's for CloudFront (as the description of the request states it will include that), but I can not find how I should sign URL's in CloudFront. I suspect that feature didn't make it.

Jasperav avatar Oct 16 '21 14:10 Jasperav

Thanks! You are totally correct. Looking at the documentation, it seems like these are created manually: https://aws.amazon.com/blogs/developer/creating-amazon-cloudfront-signed-urls-in-node-js/ because they actually use a different signature algorithm than normal presigned URLs.

For future implementors: Javascript code that can be ported: https://github.com/jasonsims/aws-cloudfront-sign

Recording this as a feature request, but it may also be possible to do outside of the SDK.

rcoh avatar Oct 18 '21 14:10 rcoh

@rcoh @Jasperav Meanwhile you can use https://crates.io/crates/cloudfront_sign. Pretty fast, take care with white space and speacial characters... Even s3-sdk have a reported bug about white spaces. #248.

ajosecueto avatar Nov 02 '21 07:11 ajosecueto

@rcoh Isn't it possible to implement the feature in this crate? Now there are a few crates of signing cloudfront url's, I was hoping I didn't had to choose and I would just go with the official aws implementation

Jasperav avatar Nov 15 '21 11:11 Jasperav

it's definitely possible, just needs to get onto the roadmap and implemented :-). Please upvote this issue if this is an important feature for you.

rcoh avatar Nov 15 '21 15:11 rcoh

Sorry to bump this ticket with a comment, but are there any updates in regards to this ticket getting on the roadmap? This is quite a large blocker for moving S3 file upload based workflows to a completely 100% rust aws sdk backend. So it would be nice to have this soon rather than later, and to plan accordingly if progress has been made or is being made on this front.

ZelCloud avatar Apr 30 '22 02:04 ZelCloud

@ZelCloud There are no updates as of yet. We're a small team and we're only able to tackle a few requests at any given time. Encourage others to 👍 this request and we'll prioritize it accordingly. In the meantime, I'd advise you to try out the crate (cloudfront_sign) that was previously recommended in this thread. I hope it meets your needs.

Velfi avatar May 02 '22 17:05 Velfi