frostfs-node/pkg/network
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
..
cache [#645] client/cache: Check response public key in all client operations 2021-09-30 20:57:00 +03:00
transport [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
address.go [#645] network: Remove no longer used IsLocalAddress function 2021-09-07 09:53:18 +03:00
address_test.go [#607] network: Support URI address strings 2021-06-28 15:52:50 +03:00
group.go [#607] *: Do not use deprecated elements of code 2021-06-28 15:52:50 +03:00
tls.go [#735] pkg/network: Delete tls multiaddr implementation 2021-08-02 14:28:58 +03:00
tls_test.go [#607] network: Support URI address strings 2021-06-28 15:52:50 +03:00
validation.go [#607] *: Do not use deprecated elements of code 2021-06-28 15:52:50 +03:00
validation_test.go [#607] *: Do not use deprecated elements of code 2021-06-28 15:52:50 +03:00