Do not allow to create container without FrostFSID record #1278
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1278
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:fix/undefined_wallet_container_creation"
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?
Now anonymous user can create container, we should restrict container creation to registered users only.
Before fix: container created with generated wallet.
After fix:
40bfab2c87
to0244292bf8
0244292bf8
toc2ac60abf4
@ -195,6 +190,11 @@ func (cp *Processor) checkNNS(ctx *putContainerContext, cnr containerSDK.Contain
return fmt.Errorf("could not get subject from FrostfsID contract: %w", err)
}
namespace, hasNamespace := strings.CutSuffix(ctx.d.Zone(), ".ns")
Probably, this also should be done in
containersvc.Put
method implementation (it also gets frostfsid entry to determine a namespace) - at least, we can return the container creation error immediatly. Otherwise, we'll wait for a while and get only error like thattimeout: container has not been persisted on sidechain
We need to be prepared that since all anonym wallets' requests to create bucket/container will be rejected - this point is not about to fix something but just a reminder
Regarding (1) -- if possible, yes, humane user messages are good.
If it is not already implemented for the namespace case, don't bother.
2320785a75
to1bb229f10f
Please, duplicate this for
support/v0.42
Sure, after @aarifullin 's approve
1bb229f10f
to7e04083c27