Open
Description
openedon Oct 28, 2024
Your current Halo version
2.20.7
Describe this feature
Currently, if we upload a file into S3 bucket with private read permission, the object cannot be accessed directly. We have to build a presigned URL to share the object, but the URL has expiration. So we cannot put the presigned URL into attachment permalink.
If we set the attachment permalink like <http://localhost:8090/attachments/{attachment.metadata.name}/{attachment.spec.displayName} and redirect to presigned URL when accessing the permalink, the problem will be resolved.
References
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html
- cloudflare R2 无法正确获取文件访问地址 plugin-s3#177
Additional information
/kind feature
/area core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment