-
Notifications
You must be signed in to change notification settings - Fork 148
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
Adding bucket_as_host
flag to generate signed url
#156
Conversation
s3_bucket_endpoint
…endpoint adding s3_bucket_endpoint flag
@bernardd FYI |
fixing formatting issue
fixing formatting issue for s3.ex
Hi @gr8Adakron - the change itself looks good; just a couple of little requests:
Thanks! |
@bernardd I choose this
|
Also it would be great to have a test case to cover this use. |
Rename toggle to bucket_as_host and relative documentation
s3_bucket_endpoint
flag to generate signed urlbucket_as_host
flag to generate signed url
Please review. |
Thanks @gr8Adakron - that all looks good. One tiny little request. The docs say:
but actually
If you can make that tweak, I'll get this all merged. Thanks for all your work on it :) |
updating code doc
@bernardd Updated for the mentioned tweak. |
Fantastic, thanks heaps for your work on this @gr8Adakron! |
The following PR will allow us to create signed url in the following nomenclature:
https://custom.domain.com/image.jpg?
which wasn't feasible before with this library. This allow us to be independent of amazon host. As in real time scenario when generating signed url for clients side application the IP whitelisting is a well known problem. Certainly this resolve the prior issue as one get better control over custom domain IPs.Further benefits with been custom domain as host - provision us to configure authentication layer on access of
presigned
url too.Inspired from the following issues: