-
-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public and private objects on S3 via Cloudfront? #456
Comments
I just came across this issue, my current solution is to override |
@mrmachine if you use the branch that is #587 you can specify one or more RSA keys and the signing function will use the first key or the key by the ID you specify. |
Is there an existing solution for this problem? |
@jschneier @terencehonles it's great the django-storages supports Cloudfront URL Signing, but there seems to be no documentation at all. How do I make it work? |
@DataGreed it looks like you figured it out and posted an example on #587, I commented there, but any chance you want to expand the documentation? 🙂 |
It will be great if you can include an example regarding cloudfront settings. I am new to cloudfront and this library 😁 |
@shawnngtq you can use @DataGreed and my comments starting here #587 (comment) to probably get yourself set up 🙂 |
The django-storages docs just say I should set the
AWS_S3_CUSTOM_DOMAIN
setting and configure Cloudfront. The Cloudfront docs say I can restrict access and require signed URLs.I already use signed S3 URLs with django-storages, and these URLs have
Expires
,Signature
andAWSAccessKeyId
querystring params. The Cloudfront docs say signed cloudfront URLs needExpires
,Signature
andKey-Pair-Id
querystring params.How can I get
django-storages
to generate a signed Cloudfront URL? Is it even possible?The text was updated successfully, but these errors were encountered: