substrate icon indicating copy to clipboard operation
substrate copied to clipboard

Telemetry Privacy Tracking Issue

Open maciejhirsz opened this issue 7 years ago • 4 comments

After talking to @kirushik, we've narrowed down some issues regarding privacy/regulation compliance that should be tackled before public launch of the network.

To avoid telemetry (netstats) opt-in itself, we can add a separate opt-in flag, that gets transmitted to the server and enables sending of, or displaying of, what would be considered personal data, such as:

  • IP geolocation (done on the server side, but the server needs to be informed about consent).
  • Node network_id, public address and/or ip address in network state (including network state dumps of other nodes - that can be filtered on the server side).
  • The pseudo-random node name is okay, but should be rotated periodically (every 24 hours?) — this rotation is something the opt-in flag can also disable.
  • Probably some other fields might provide ways to identify the particular node/opeartor? Probably we need some extension for the telemetry! macro to mark private/non-private fields in the payloads.
  • If you're running a validator node, and didn't opt out for the "please use my personal data" flag, this should emit a warning in the logs (as well as running without a custom node name, maybe?)

Will keep this issue updated.

maciejhirsz avatar Jun 12 '19 14:06 maciejhirsz

In terms of actual changes, I'd go for:

  • Adding a privacy setting to the TelemetryEndpoints struct (the change could be done as the same time as #2803).
  • Marking each field of telemetry! as public/private (and private by default), but in a way that makes it clear that this is for handling privacy of data. If we just add a pub keyword in front of a field name, people are just going to randomly or accidentally put pub without knowing what it means.

tomaka avatar Jun 13 '19 10:06 tomaka

There's an issue with public nodes that are on telemetry. Validator IPs are passed to these public nodes even if the validator has --no-telemetry flagged. The nodes include this validator IP in 'network state' available at telemetry under knownaddresses - and it's quite easy/obvious to find them by referencing against VPN subnets (used to securely connect validators and public nodes).

crsCR avatar Sep 12 '19 12:09 crsCR

Hmm, you can also just join the network and you will find the validator addresses after some time anyway. They are stored in the internal DHT, that every node can query.

bkchr avatar Sep 12 '19 12:09 bkchr

Hmm, you can also just join the network and you will find the validator addresses after some time anyway. They are stored in the internal DHT, that every node can query.

So any kind of node can query their internal DHT and find all validator IPs - however (validator connected only to own public nodes, whatever) they are connected? Not seen/done so don't know how decipherable that is but sounds dodgy... :/ What I described is simple - just use search on a json editor.

crsCR avatar Sep 12 '19 12:09 crsCR