-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: update usage of minio admin library #28
Conversation
// Get sha256 for request header | ||
sum := sha256.Sum256(nil) | ||
req.Header.Set("X-Amz-Content-Sha256", hex.EncodeToString(sum[:])) |
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.
Do we still need to set the header even though it's nil?
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.
Yes the minio server still expects the sha to be set correctly even with nil content
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.
Apart from my minor comment LGTM. I'll leave it to Hugo to validate the minio specific functionality
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.
(I wasn't able to try this in actual Boundary -- I got an error when trying to import the plugin: Interesting that go mod didn't seem to follow the I'll test the functionality once this gets merged & tagged |
Update's Boundary's usage of the madmin-go library, please note the madmin package created in this PR will be tagged and updated after this is merged, at that point we can update ci to run madmin tests as well.