Telemetry Privacy Tracking Issue
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.
In terms of actual changes, I'd go for:
- Adding a privacy setting to the
TelemetryEndpointsstruct (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 apubkeyword in front of a field name, people are just going to randomly or accidentally putpubwithout knowing what it means.
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).
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.
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.