frostfs-node/pkg/services/object/search
Leonard Lyubich 4661f65975 [] 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 [] client/cache: Check response public key in all client operations 2021-09-30 20:57:00 +03:00
container.go [] *: Use helper functions to build client.NodeInfo structures 2021-09-30 20:57:00 +03:00
exec.go [] *: Construct clients from client.NodeInfo in API client cache 2021-09-30 20:57:00 +03:00
local.go [] object/search: Refactor service processing 2020-12-11 17:19:37 +03:00
prm.go [] *: Construct clients from client.NodeInfo in API client cache 2021-09-30 20:57:00 +03:00
remote.go [] *: Construct clients from client.NodeInfo in API client cache 2021-09-30 20:57:00 +03:00
search.go [] object/search: Refactor service processing 2020-12-11 17:19:37 +03:00
search_test.go [] *: Construct clients from client.NodeInfo in API client cache 2021-09-30 20:57:00 +03:00
service.go [] *: Construct clients from client.NodeInfo in API client cache 2021-09-30 20:57:00 +03:00
util.go [] *: Construct clients from client.NodeInfo in API client cache 2021-09-30 20:57:00 +03:00