Skip to content
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

Respect SERVER_REGION in more targets and fix various bugs #369

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

derpsteb
Copy link

@derpsteb derpsteb commented Sep 6, 2023

Hey everyone,
I tried using the tool based on main but encountered various errors. I went through them and tried to fix the ones that are relevant to us.

Tbh, I am a bit confused by these errors as they are very surface level. Is the tool actively used inside the minio org?

Please also see the commit bodies as I included some info there.

Proposed changes:

  • Respect SERVER_REGION env variable in aws-sdk-go, aws-sdk-java and versioning target
  • Add locationconstraint flag that is necessary when using the AWS CLI
  • Remove a header that caused API errors in aws-sdk-ruby. Please note that I have no idea what this header might be used for. Removing it might silently break some expectations. However, in it's current form I don't think the request ever succeeded.
  • Fix bugs inside versioning target that caused API errors
  • The code removed here didn't make sense to me. Again, I am uncertain what this might be currently used for. Especially after setting a correct value for ObjectLockLegalHoldStatus in line 263

Please ping me if I should give more context to the changes.

* run gofmt
* extend cleanupBucket with argument to control
the use of BypassGovernanceRetention.
* handle error when cleanupBucket fails
* set ObjectLockLegalHoldStatus to a valid value and remove
outdated code
This header creates problems as the requests signature is not calculated
correctly if it is present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant