-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Use AWS S3 SDK instead of Minio Client SDK #36118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
I think we should rename |
|
Seems like I was wrong and GitHub's (or git's) move heuristic has split the diff of https://github.com/go-gitea/gitea/pull/36118/changes/BASE..7064923a7d27181e0a22df8cb3073bbeee4eaf57 |
wxiaoguang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry but there are still concerns needing to address.
data, err := io.ReadAll(r)will cause OOM when uploading files with GB sizes- It will make the instance crash and lead to DoS attack
- Changed logic, need to review carefully (I haven't really looked into details)
And another question is: whether it's worth to use AWS SDK to replace MinIO SDK?
- Server side:
- AWS: closed source
- MinIO: still open-source (althought only the core code)
- SDK side:
- AWS: Apache-2, actively maintained
- MinIO: Apache-2, actively maintained
So I don't see necessity at the moment.
Feel free to dismiss the change request if these concerns get addressed.
| // Buffer the content - required for proper Content-Length handling | ||
| data, err := io.ReadAll(r) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will cause OOM if the uploaded file is large.
No description provided.