-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
Question: which aws-sdk version is used #270
Comments
Hey, we don't use the aws-sdk at all (we have our own custom code). It should be fine to expose the access id as long as you don't also expose the secret (nobody can really do anything with just the access key). You can think about it as being kind of like someone having your username without a valid password for some website. It lets them know a bit more about you, but doesn't actually mean they can do anything much with that information. Does that help? |
Thank you @geemus it helps a lot.
-- not sure what you mean by that. Another question: how would you hide requests from s3? proxy it somehow ? any best example with heroku |
@rstormsf If you want the requests to appear as though they come from a non-s3 url, I think the most common way is to setup DNS for a subdomain, ie something like I'm closing this now as I think the main questions have been answered, but let me know if you have other questions. |
Thank you so much @geemus for your help! |
I don't understand which AWS SDK version is used in this gem?
the problem is that I'm seeing params appended to s3 bucket request with my AWS_ACCESS_KEY_ID, so I think it's using aws-sdk v1 because in v2 they don't do it.
UPDATE:
It seems like this gem doesn't use aws-sdk at all. But I have a concern regarding exposure of my key:
https://BUCKET_NAME.s3.amazonaws.com/avatar/19-1467771146/cropped_5Dgd5U9CWFU.jpg
?X-Amz-Expires=600&
X-Amz-Date=20160706T021232Z&
X-Amz-Algorithm=AWS4-HMAC-SHA256&
X-Amz-Credential=
MY_AWS_ACCESS_KEY_ID
/20160706/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&
X-Amz-Signature=807e357b88768c0769855c225bcf87079766ea1954392d42d50fe29910a5513a
so how do I hide the AWS_ACCESS_KEY_ID from get request. I'm not comfortable sharing it with the rest of the world
UPDATE2:
By digging more about it, I found out that exposing AWS_ACCESS_ID considered to be OK. https://stackoverflow.com/questions/23944191/does-carrierwave-direct-expose-your-s3-credentials
The text was updated successfully, but these errors were encountered: