[英]Any way we can share a specific item publicly from a private S3 bucket?
The question is pretty vague but here's the entire problem statement.这个问题很模糊,但这是整个问题陈述。 I am using Django REST APIs, and I'm generating invocies for my clients.我正在使用 Django REST API,并且正在为我的客户生成调用。 Using wkhtmltopdf, I'm able to generate a PDF file which gets automatically backed up to S3.使用 wkhtmltopdf,我能够生成一个 PDF 文件,该文件会自动备份到 S3。 Now, we need to retreive the said invoice once our client clicks on a link.现在,我们需要在客户点击链接后取回上述发票。
We're using pre-signed URLs right now, which last for 12 hours, right?我们现在使用的是预签名 URL,持续 12 小时,对吗? Once that link expires, the entire backend fails.一旦该链接过期,整个后端就会失败。
I mean, even if we go for permanent pre-signed links, would there not be a security issue?我的意思是,即使我们 go 用于永久预签名链接,也不会有安全问题吗? I could really use some guidance on this.我真的可以在这方面使用一些指导。
Now, we need to retreive the said invoice once our client clicks on a link.现在,我们需要在客户点击链接后取回上述发票。
We're using pre-signed URLs right now [...]我们现在正在使用预签名 URL [...]
Only generate the pre-signed URL for a given S3 URI when the authenticated client clicks on the link.只有在经过身份验证的客户端单击链接时,才会为给定的 S3 URI 生成预签名的 URL。 You can then give it a very short expiry.然后你可以给它一个非常短的到期时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.