AmazonS3:向用户公开(公共)密钥是个好主意吗
默认情况下,所有文件的访问权限都是私有的。但我想与客户共享(有时间限制的)URL。例如。
http://bucket-test.s3.amazonaws.com/stockphotopro_75275855PCL_no_title.jpg?AWSAccessKeyId=XXXXXXXXXX&Expires=1300947912&Signature=YYYYYYYYYYYYYYYYYYYYYYY%3D
Access for all files by default is private. But I want to share (time limited) URLs with clients. eg.
http://bucket-test.s3.amazonaws.com/stockphotopro_75275855PCL_no_title.jpg?AWSAccessKeyId=XXXXXXXXXX&Expires=1300947912&Signature=YYYYYYYYYYYYYYYYYYYYYYY%3D
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AWS 访问密钥 ID 不是秘密的 - 它实际上是您用于通过 Amazon 服务进行身份验证的用户名。把它想象成一个电子邮件地址,或者你在这个网站上的用户名:我仍然需要你的密码(在亚马逊的例子中是密钥)来登录。
暴力破解私钥是非常困难的(我不想说不可能,但尽可能接近)。我想如果您反复尝试使用不正确的密钥进行身份验证,亚马逊会实施某种速率限制和 IP 阻止。
我不确定是否一定要公开您的访问密钥,但从风险角度来看,公开您的访问密钥几乎没有影响。如果您在 google 上搜索“AWSAccessKeyID=”,您会发现许多知名网站将其公钥放在其 URL 中。
只是不要到处分发你的私钥!
The AWS access key ID is not secret - it's effectively your username for authenticating with Amazon services. Think of it like an email address, or your username on this site: I still need your password (secret key, in Amazon's case) to log in.
It would be very difficult to brute force the private key (I don't want to say impossible, but as close as you can get to that). I imagine Amazon would implement some kind of rate limiting and IP blocking should you repeatedly attempt to authenticate with an incorrect secret key.
I am not sure I would necessarily make your access key publicly known, but from a risk perspective having your access key publicly known would have little to no impact. If you google "AWSAccessKeyID=" you'll find a number of well known sites who put their public keys in their URLs.
Just don't go around handing out your private key!