bugfix/306-use_APE_instead_eACL #310

Merged
alexvanin merged 15 commits from dkirillov/frostfs-s3-gw:bugfix/306-use_APE_instead_eACL into master 2024-09-04 19:51:13 +00:00
Member

close #306

This should work when we will start handle no rules found as deny

close #306 This should work when we will start handle `no rules found` as deny
dkirillov self-assigned this 2024-02-13 09:56:54 +00:00
dkirillov force-pushed bugfix/306-use_APE_instead_eACL from 548ce6d215 to 37d5ff84d3 2024-02-13 09:59:28 +00:00 Compare
dkirillov changed title from bugfix/306-use_APE_instead_eACL to WIP: bugfix/306-use_APE_instead_eACL 2024-02-13 11:37:43 +00:00
Author
Member

Blocked until we know how to create new container (probably for this purpose new value for basic acl will be introduced) TrueCloudLab/frostfs-node#986

Blocked until we know how to create new container (probably for this purpose new value for basic acl will be introduced) https://git.frostfs.info/TrueCloudLab/frostfs-node/pulls/986
dkirillov added 2 commits 2024-02-14 14:10:47 +00:00
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
[#306] Add flag to enable old ACL bucket creation
Some checks failed
/ DCO (pull_request) Successful in 1m36s
/ Vulncheck (pull_request) Successful in 1m59s
/ Builds (1.20) (pull_request) Successful in 2m43s
/ Builds (1.21) (pull_request) Successful in 2m41s
/ Lint (pull_request) Failing after 2m51s
/ Tests (1.20) (pull_request) Successful in 2m58s
/ Tests (1.21) (pull_request) Successful in 1m40s
4646f0f445
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
dkirillov changed title from WIP: bugfix/306-use_APE_instead_eACL to bugfix/306-use_APE_instead_eACL 2024-02-27 09:56:03 +00:00
alexvanin reviewed 2024-02-28 14:25:20 +00:00
alexvanin left a comment
Owner

Overall looks good to me.

Overall looks good to me.
@ -335,0 +420,4 @@
}
}()
written, err := io.Copy(io.Discard, r.Body)
Owner

thought: People without eACL -> APE transition context might be confused the heck is going on here 😄

thought: People without eACL -> APE transition context might be confused the heck is going on here 😄
@ -149,10 +156,6 @@ func (n *layer) createContainer(ctx context.Context, p *CreateBucketParams) (*da
bktInfo.CID = res.ContainerID
bktInfo.HomomorphicHashDisabled = res.HomomorphicHashDisabled
if err = n.setContainerEACLTable(ctx, bktInfo.CID, p.EACL, p.SessionEACL); err != nil {
Owner

question: if p.APEEnabled == false, shouldn't we set EACLTable as it was before to keep previous behaviour?

question: if `p.APEEnabled == false`, shouldn't we set EACLTable as it was before to keep previous behaviour?
Author
Member

We set here

We set [here](https://git.frostfs.info/dkirillov/frostfs-s3-gw/src/commit/f1cd70ca782d421535fe9d26dcf5abbfcf9a5b9b/api/handler/put.go#L911)
alexvanin marked this conversation as resolved
@ -31,1 +28,3 @@
)
var _ engine.MorphRuleChainStorage = (*MorphRuleChainStorage)(nil)
const bucketPolicyPrefix = 'b'
Owner

question: This prefix used to manage bucket policies, which are out of scope for 3rd party IAM services, therefore it should not be a part of policy-engine/iam library, right?

question: This prefix used to manage bucket policies, which are out of scope for 3rd party IAM services, therefore it should not be a part of [policy-engine/iam](https://git.frostfs.info/TrueCloudLab/policy-engine/src/branch/master/iam) library, right?
Author
Member

policy-engine doesn't form chain id at all

policy-engine doesn't form chain id at all
alexvanin marked this conversation as resolved
dkirillov force-pushed bugfix/306-use_APE_instead_eACL from f1cd70ca78 to 7de1ffdbe9 2024-02-28 15:00:38 +00:00 Compare
alexvanin approved these changes 2024-02-29 06:41:57 +00:00
alexvanin merged commit 7de1ffdbe9 into master 2024-02-29 07:05:34 +00:00
alexvanin deleted branch bugfix/306-use_APE_instead_eACL 2024-02-29 07:05:35 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#310
No description provided.