frostfs-node/pkg/services/object/put
Leonard Lyubich 4661f65975 [#645] client/cache: Check response public key in all client operations
There is a need to check if public key in the RPC response matches the
public key of the related storage node declared in network map.

Define `ErrWrongPublicKey` error. Implement RPC response handler's
constructor `AssertKeyResponseCallback` which checks public key. Construct
handler and pass it to client's option `WithResponseInfoHandler`.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-09-30 20:57:00 +03:00
..
v2 [#645] client/cache: Check response public key in all client operations 2021-09-30 20:57:00 +03:00
distributed.go [#645] placement/traverser: Rename Key method of Node type to PublicKey 2021-09-30 20:57:00 +03:00
local.go [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
prm.go [#645] object/put: Pass NodeInfo instead of AddressGroup to relay func 2021-09-30 20:57:00 +03:00
remote.go [#645] *: Use helper functions to build client.NodeInfo structures 2021-09-30 20:57:00 +03:00
res.go [#33] service/object: Implement object Put distributed service 2020-10-02 11:25:35 +03:00
service.go [#645] *: Construct clients from client.NodeInfo in API client cache 2021-09-30 20:57:00 +03:00
streamer.go [#645] object/put: Pass NodeInfo instead of AddressGroup to relay func 2021-09-30 20:57:00 +03:00
validation.go [#580] v2/object/put: Check payload size of the relayed objects 2021-06-09 12:08:37 +03:00