[#553] authmate: Don't use basic acl #554

Merged
alexvanin merged 1 commit from dkirillov/frostfs-s3-gw:featue/553-dont_use_basic_acl into master 2024-11-20 15:43:56 +00:00
Member

close #553

close #553
dkirillov self-assigned this 2024-11-18 12:31:45 +00:00
dkirillov added 1 commit 2024-11-18 12:31:45 +00:00
[#553] authmate: Don't use basic acl
All checks were successful
/ DCO (pull_request) Successful in 1m44s
/ Vulncheck (pull_request) Successful in 2m8s
/ Builds (pull_request) Successful in 2m27s
/ Lint (pull_request) Successful in 3m45s
/ Tests (pull_request) Successful in 2m42s
a45bbe9c14
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
dkirillov force-pushed featue/553-dont_use_basic_acl from a45bbe9c14 to 4253fc5b90 2024-11-18 12:32:20 +00:00 Compare
dkirillov added 1 commit 2024-11-19 08:22:48 +00:00
[#553] authmate: Add retryer to create access box
All checks were successful
/ DCO (pull_request) Successful in 1m28s
/ Vulncheck (pull_request) Successful in 1m45s
/ Builds (pull_request) Successful in 1m48s
/ Lint (pull_request) Successful in 2m23s
/ Tests (pull_request) Successful in 1m49s
ed4cc417b7
After using AddChain to provide access to container we have to wait:
* tx with APE chain be accepted by blockchain
* cache in storage node be updated

it takes a while. So we add retry
 (the same as when we add bucket settings during bucket creation)

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
dkirillov changed title from WIP: [#553] authmate: Don't use basic acl to [#553] authmate: Don't use basic acl 2024-11-19 08:23:04 +00:00
dkirillov requested review from storage-services-developers 2024-11-19 08:23:12 +00:00
dkirillov requested review from storage-services-committers 2024-11-19 08:23:17 +00:00
alexvanin reviewed 2024-11-19 12:02:18 +00:00
@ -47,1 +44,4 @@
type PrmAddContainerPolicyChain struct {
ContainerID cid.ID
Chain chain.Chain
Owner

Don't you want to add comments like in other param structs?

Don't you want to add comments like in other param structs?
Author
Member

Sure

Sure
@ -73,0 +84,4 @@
Op: chain.CondStringEquals,
Kind: chain.KindRequest,
Key: native.PropertyKeyActorPublicKey,
Value: hex.EncodeToString(prm.Owner.Bytes()),
Owner

Do we need explicit allow rule for container owner? As far as I understand, we can use frostfs-cli to create container and then upload object without additional APEs

Do we need explicit allow rule for container owner? As far as I understand, we can use frostfs-cli to create container and then upload object without additional APEs
Author
Member

Yes, we have to add explicit rule for container owner. We will create AccessBox there and we need access.

Yes, we have to add explicit rule for container owner. We will create AccessBox there and we need access.
alexvanin marked this conversation as resolved
@ -138,0 +138,4 @@
// AddContainerPolicyChain implements frostfs.FrostFS interface method.
func (x *FrostFS) AddContainerPolicyChain(ctx context.Context, prm frostfs.PrmAddContainerPolicyChain) error {
var prmAddAPEChain pool.PrmAddAPEChain
prmAddAPEChain.Target = ape.ChainTarget{
Owner

According to internal code style, could you remind me, do we prefer such var definition or use := straight away?

According to internal code style, could you remind me, do we prefer such `var` definition or use `:=` straight away?
Author
Member

Oh, I just extended your branch. I'll fix style

Oh, I just extended your branch. I'll fix style
alexvanin marked this conversation as resolved
dkirillov force-pushed featue/553-dont_use_basic_acl from ed4cc417b7 to dce34ddb9b 2024-11-19 12:12:11 +00:00 Compare
dkirillov force-pushed featue/553-dont_use_basic_acl from dce34ddb9b to b1775f9478 2024-11-19 12:46:10 +00:00 Compare
alexvanin approved these changes 2024-11-19 14:49:11 +00:00
alexvanin merged commit b1775f9478 into master 2024-11-20 08:13:11 +00:00
alexvanin deleted branch featue/553-dont_use_basic_acl 2024-11-20 08:13:16 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
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#554
No description provided.