-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
storage/minio: Add options to disable signature and multipart for Minio Client #21780
base: main
Are you sure you want to change the base?
storage/minio: Add options to disable signature and multipart for Minio Client #21780
Conversation
Are you able to test it? From looking at the minio code it may be enough to set |
@KN4CK3R that's exactly the reason I put this on draft Indeed, I tracked some |
I can confirm that by disabling signature in Minio client, Docker registry works (I have both pushed an image, pulled it back, and ran the image). I'm not sure about others though. |
This comment was marked as duplicate.
This comment was marked as duplicate.
I have ran this internally in my company for the last few month and it pretty much works. I'm looking to get it merged ASAP |
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.
Missing documentation changes, see #23166 for example
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.
Thanks for this PR! Could you resolve conflicts?
Still missing documentation |
I agree with KN4CK3R here. After reading the code again, I think the callers to Especially the |
I can confirm the size parameter was added to fix the memory problem. |
Gimme a moment, I was on a trip and didn't catch up so soon :) |
I have another idea about multi-part upload, and that is to use mmap. If we can lock the file beforehand, using a memory map will not only solve the potential DoS problem, but that it will also drastically speed it up. I will see if I can implement it soon |
Please resolve the conflicts |
Still missing documentation |
disableSignature, disableMultipart = m.cfg.DisableSignature, m.cfg.DisableMultipart | ||
} | ||
|
||
if disableMultipart && size < 0 { |
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.
So how to handle when size == 0?
Hi there, do you have any news. I am having the same issue. What were the remaining points to get this merged ? I can do another PR if needed. |
Fixes #21778, hopefully
This may also help rclone/rclone#6461 in the future, I don't think gofakes3 would have those two features implemented well either.
The Docker package is available at https://github.com/users/stevefan1999-personal/packages/container/package/gitea, feel free to checkout and test.