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

Disable ACL by default #1018

Merged

Conversation

smallhive
Copy link
Contributor

Closes #1016.

api/cache/eacls.go Outdated Show resolved Hide resolved
api/handler/copy.go Outdated Show resolved Hide resolved
api/handler/multipart_upload.go Outdated Show resolved Hide resolved
api/handler/put.go Outdated Show resolved Hide resolved
@@ -168,6 +168,9 @@ const (
basicACLReadOnly = "public-read"
basicACLPublic = "public-read-write"
cannedACLAuthRead = "authenticated-read"

amzBucketOwnerField = "x-amz-object-ownership"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this collide with some real header? I'd expect a bit more magic value here. Although if the rule is always the last one (after default policies) it can't change much.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would and there is no guarantee the rule is always be the last, renamed

api/handler/put.go Outdated Show resolved Hide resolved
api/handler/copy.go Outdated Show resolved Hide resolved
@smallhive smallhive force-pushed the 1016-object-puts-into-private-buckets-lead-to-eacl-bloat branch from 7192f48 to 729dee0 Compare November 1, 2024 08:32
Closes #1016.

Signed-off-by: Evgenii Baidakov <[email protected]>
@smallhive smallhive force-pushed the 1016-object-puts-into-private-buckets-lead-to-eacl-bloat branch from 729dee0 to a792f48 Compare November 1, 2024 10:12
roman-khimov
roman-khimov previously approved these changes Nov 2, 2024
smallhive and others added 6 commits November 5, 2024 18:19
Signed-off-by: Evgenii Baidakov <[email protected]>
Signed-off-by: Evgenii Baidakov <[email protected]>
Bucket owner already has full access to the object. We just add the support of the ACL.

Signed-off-by: Evgenii Baidakov <[email protected]>
It's much more useful this way especially if we have many requests with EACLs.
ACL status can be deduced from EACL, so we don't need to cache it separately
(at least for now, walking through the list takes some time, but it's nothing
like getting EACL from the network that we did previously in many cases).

Signed-off-by: Roman Khimov <[email protected]>
@roman-khimov roman-khimov force-pushed the 1016-object-puts-into-private-buckets-lead-to-eacl-bloat branch from b755aa9 to 8008392 Compare November 5, 2024 16:06
@roman-khimov roman-khimov merged commit 8a090d4 into master Nov 5, 2024
15 of 18 checks passed
@roman-khimov roman-khimov deleted the 1016-object-puts-into-private-buckets-lead-to-eacl-bloat branch November 5, 2024 17:54
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.

Object PUTs into private buckets lead to EACL bloat
2 participants