storj/pkg/rpc
JT Olio 6ede140df1
pkg/rpc: defeat MITM attacks in most cases (#3215)
This change adds a trusted registry (via the source code) of node address to node id mappings (currently only for well known Satellites) to defeat MITM attacks to Satellites. It also extends the uplink UI such that when entering a satellite address by hand, a node id prefix can also be added to defeat MITM attacks with unknown satellites.

When running uplink setup, satellite addresses can now be of the form 12EayRS2V1k@us-central-1.tardigrade.io (not even using a full node id) to ensure that the peer contacted is the peer that was expected. When using a known satellite address, the known node ids are used if no override is provided.
2019-10-12 14:34:41 -06:00
..
rpcpeer all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00
rpcstatus pkg/rpc/rpcstatus: Fix return type (#3162) 2019-10-02 14:46:18 -06:00
common_drpc.go all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00
common_grpc.go all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00
common.go pkg/rpc: build tag based selection of rpc details 2019-09-20 21:07:33 +00:00
compat_drpc.go storagenode/cmd: create start graceful exit CLI (#3202) 2019-10-11 09:58:12 -04:00
compat_grpc.go storagenode/cmd: create start graceful exit CLI (#3202) 2019-10-11 09:58:12 -04:00
conn.go pkg/rpc: build tag based selection of rpc details 2019-09-20 21:07:33 +00:00
dial_drpc.go pkg/rpc: don't leak goroutines during a drpc dial 2019-10-04 20:09:36 +00:00
dial_grpc.go pkg/rpc: add WithInsecure when doing non-tls dials 2019-09-27 09:07:14 -06:00
dial.go pkg/rpc: defeat MITM attacks in most cases (#3215) 2019-10-12 14:34:41 -06:00
gen.go pkg/rpc: build tag based selection of rpc details 2019-09-20 21:07:33 +00:00
known_ids_test.go pkg/rpc: defeat MITM attacks in most cases (#3215) 2019-10-12 14:34:41 -06:00
known_ids.go pkg/rpc: defeat MITM attacks in most cases (#3215) 2019-10-12 14:34:41 -06:00
rpc_test.go CI: test drpc and grpc (#3163) 2019-10-11 08:30:06 -06:00