如何保护 Amazon S3 URL 的安全
我对 Amazon S3 还很陌生,正在寻找一种方法来保护 s3 上的大量数据,用户将通过我们的网站访问这些数据。
我遇到的问题是,我根本不希望 Amazon s3 上的数据公开,因此它需要是私有的,但仍然可以通过我们的网站访问。
由于一直在访问和添加大量新文件,因此预先签名每个 url 请求将是一件很痛苦的事情。我知道有选项 http_referer
mod,应该是 快速、简单,并且可能与非常晦涩的 URL 结合使用 (路径中的长随机代码)可能就足够了?
有没有其他方法可以使 s3 url 安全?
干杯
I'm quite new to Amazon S3 and looking for a way to secure large amount of data on s3 that will be accessed by users via our website.
The issue I have is that I don't want the data on Amazon s3 to be public at all so it need sto be private but still accessible via our site.
Presigning each url request would be a pain due to the amount of new files being accessed and added all the time. I know there is option http_referer
mod, should be
quick and easy, and maybe in combination with very obscure URLs
(long random codes in the path) that might be enough?
Is there any other way to make s3 urls secure?
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
S3 确实提供了对图像进行签名的功能,因此 URL 仅在有限的时间内有效。 此处有更多详细
信息此处所述的处理访问的方法
S3 does provide the ability to sign an image so that the URL is only valid for a limited period of time. There are more details of that here
There are a number of ways of handling access as described here