Changing canned ACL from public-read-write
to public-read
doesn't work #316
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#316
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changing canned ACL from
public-read-write
topublic-read
doesn't workExpected Behavior
Setting bucket acl to
public-read
afterpublic-read-write
forbid non bucket owner to put objects.Current Behavior
Non owner still can put object to the bucket.
Possible Solution
Revise mergeAst function.
The problem: to find if diff between current and wanted "AST" exists we go through all new ast operation and finds them in current. If current fully contains wanted we don't do anything. But in case of changing acl from
public-read-write
topublic-read
this isn't correct because we must consider missing operations in wanted "ast" as deny.Steps to Reproduce (for bugs)
public-read-write
bucket:Workaround
Set
private
acl first:Regression
I'm not sure
Your Environment
cc34f659d1
As far as I understand, #306 is going to fix it for all new buckets, right?
yes
Closed due to #306.