AmazonS3:向用户公开(公共)密钥是个好主意吗

发布于 2024-10-26 00:29:30 字数 328 浏览 3 评论 0原文

默认情况下,所有文件的访问权限都是私有的。但我想与客户共享(有时间限制的)URL。例如。

http://bucket-test.s3.amazonaws.com/stockphotopro_75275855PCL_no_title.jpg?AWSAccessKeyId=XXXXXXXXXX&Expires=1300947912&Signature=YYYYYYYYYYYYYYYYYYYYYYY%3D

  • 共享 AWSAccessKeyId(公钥)是否安全?
  • 有人可以猜出私钥(使用暴力)吗?

  • 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
    
  • Is it safe to share AWSAccessKeyId (public key) ?
  • Can someone guess private key (using brute force) ?

  • 如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

    扫码二维码加入Web技术交流群

    发布评论

    需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

    评论(1

    暮年慕年 2024-11-02 00:29:30

    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!

    ~没有更多了~
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文