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

Bucket import acl #130

Merged
merged 6 commits into from
Mar 22, 2022
Merged

Bucket import acl #130

merged 6 commits into from
Mar 22, 2022

Conversation

BuJo
Copy link
Collaborator

@BuJo BuJo commented Jan 21, 2022

Add bucket import handling to not force bucket recreation due to changes in the acl field.

The way mc (or ration minio) detects the acl name is... horrible? But I think this way could work. I'm not sure about using the minio internals inside payload.go is wanted.. It's already used for StringSet, so I think it should be ok?

The tests are good, but I haven't run it for real yet.

@BuJo BuJo self-assigned this Jan 21, 2022
@BuJo
Copy link
Collaborator Author

BuJo commented Jan 21, 2022

Progress Note: A basic import with a bucket having no bucket policy works (acl = "none").

BuJo added 4 commits March 21, 2022 12:04
* prepares local builds for debuggability via delve
* To be able to use bucket policy functions, the policy Statement
  types have to be used.
@BuJo BuJo force-pushed the bucket_import_acl branch from db4f34c to 16f6301 Compare March 21, 2022 12:16
BuJo added 2 commits March 21, 2022 13:37
@BuJo BuJo force-pushed the bucket_import_acl branch from 743d763 to 4fac9d1 Compare March 21, 2022 12:37
@BuJo BuJo marked this pull request as ready for review March 21, 2022 12:41
@BuJo
Copy link
Collaborator Author

BuJo commented Mar 21, 2022

Alright, this can be reviewed.

I have removed the exclusions for "acl" in the tests and added one for changes regarding that field. Tests are finally green.

@felladrin felladrin removed the request for review from aminueza March 22, 2022 21:53
@felladrin
Copy link
Collaborator

The code is clear, and everything I tested worked great!
Excellent addition!

@felladrin felladrin merged commit 5f1ec73 into aminueza:master Mar 22, 2022
@BuJo BuJo deleted the bucket_import_acl branch March 23, 2022 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants