frostfs-node/pkg/services/object/put/v2
Leonard Lyubich 096acb2a44 [#580] v2/object/put: Check payload size of the relayed objects
NeoFS network dictates the limitation of the maximum size of the "finished"
objects. The payload size of an object is recorded in its header. When
writing finished objects, the nodes must check:

  * satisfying the constraint;
  * matching the value in the header to the number of payload bytes.

Provide value returned by `MaxSizeSource` component to `validatingTarget`.
Check max size value during the stream of the "finished" objects. Check
header value during the streaming and on-close. Check payload size in v2
relay scenario.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-09 12:08:37 +03:00
..
service.go [#501] object/put: reduce TTL of the relayed request 2021-06-02 10:31:14 +03:00
streamer.go [#580] v2/object/put: Check payload size of the relayed objects 2021-06-09 12:08:37 +03:00
util.go [#501] object/put: relay requests for signed objects 2021-06-02 10:31:14 +03:00