Skip to content

Verify EC part objects before storage #3573

@cthulhu-rider

Description

@cthulhu-rider

after #3457, objects may be split into EC parts distributed over container. Transmission performs via PUT or REPLICATE RPC. Server can definitely distinguish EC parts. Their format must be checked

Describe the solution you'd like

extend

func (v *FormatValidator) Validate(obj *object.Object, unprepared bool) error {

if object is EC part, it must be fully compatible with production func

func FormObjectForECPart(signer neofscrypto.Signer, parent object.Object, part []byte, partInfo PartInfo) (object.Object, error) {

otherwise it must be denied

Metadata

Metadata

Assignees

Labels

I4No visible changesS3Minimally significantU2Seriously plannedenhancementImproving existing functionalityneofs-storageStorage node application issuessecurityAffects security

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions