# Privacy and safety What stays local, what leaves your network, and how to export data for a bug report without exposing anything personal. [← Back to the README](../README.md) - 🏑 Everything runs **inside your network**. Data lives in the app’s own `/data`, included in Home Assistant backups. - 🧹 Presence history is kept for 90 days (latency for 7); what Vedetta knows about a device or a network stays until you delete it. A guest’s private MAC address (a phone that makes one up) without a card is forgotten after 30 days without being seen. - 🌐 Three functions reach the Internet, all **on** by default, and each one can be switched off in the Configuration tab of the app (before the first start too): a DNS query to the OpenDNS resolver that tells your public IP address (`internet_public_ip`), a traceroute to a public address, `1.1.1.1` by default (`internet_path`), and the download of the public IEEE registries to recognize manufacturers (`internet_mac_database`). The first two run at start and every 6 hours. When OpenDNS gives no address, one more query to it (`debug.opendns.com`) tells whether something on your network answers DNS in its place; only that yes/no is kept, and with no answer at all the public IP alone is asked again once, 15 minutes later. None of them carries anything about your devices, and the page shows which ones are on. - 🐳 **In Docker** the data lives in the folder you mount on `/data` (not in a Home Assistant backup: back it up yourself). It also holds the scrypt hash of your password and a digest of each open session; neither is ever in an export, and the one-time code of the first start is replaced in the exported log. One more function reaches the Internet there, on by default: every 12 hours a question to the public API of GitHub for the latest release of Vedetta (`VEDETTA_INTERNET_UPDATE_CHECK`), with no account and no data about your network. [Docker guide](DOCKER.md) - πŸ“¦ When the app starts the first time (and after an update), your Home Assistant downloads Nmap and arp-scan from the Alpine Linux package repository, as for any Alpine package: they are not in the published image because of their licences ([THIRD_PARTY_NOTICES](../THIRD_PARTY_NOTICES.md)). - ⭐ Once, after a couple of days of use, a small star on the menu invites you to star the project. It is only a link to the project page on GitHub, opened by you with a click (GitHub counts the visit, as for any page); the app sends nothing when it is shown, closed or ignored. - 🌍 The language you pick in the menu is remembered on the server for your Home Assistant user, so it follows you to every browser. The only thing stored is an anonymous code of your Home Assistant user next to the language, in `/data`; it never leaves your installation and is not in any export. - πŸ”’ Home Assistant is read for names, makers, models and areas. Vedetta writes to Home Assistant only for **Alerts**: an event on the bus for each message (`vedetta_new_device`, `vedetta_device_down`, `vedetta_device_back`, and `vedetta_test` from *Send a test*; off until you turn on *Events in Home Assistant*) and, only if you pick recipients, a notification through the notify services you chose. It calls no other service. One optional function, off by default ([Networks seen by Home Assistant](HA_NETWORKS.md)), also reads the states of the **device trackers of a router integration** and keeps six facts of each (address, MAC, host name, name, home or away, and since when); phones with a location, people and zones are dropped as soon as they are read and are never kept, shown or logged. - 🧭 **Networks behind the router** are touched only if you write them in *Networks*: a ping sweep every 15 minutes; their ports and model only if you turn on *Ports* for that network. **SNMP** is off until you write the router's address and a community: Vedetta reads only its ARP table, and the community stays in `/data`, never shown by the page or put in an export. - πŸ“‹ *Download the list* (menu) builds a CSV or JSON of your devices on your own machine; MAC and IP can be left out. - πŸšͺ The ingress panel only accepts the Supervisor; in Docker every page and call needs the login. Passwords are never exported. - πŸ”” A notification of **Alerts** travels through the notify service you pick, with the device's name and address in its text: for the Home Assistant mobile app that is Home Assistant's own push service. - πŸ“¦ *Export for analysis* (menu) builds a file on your own machine and never sends it anywhere. Its advanced option *Include VLAN data*, off unless you tick it, also reads the router trackers of Home Assistant and the network interfaces of the host, masked and sealed like the rest. **For the developer** it is masked before it is created and encrypted; **for you** it is your own data, as it is. See [Report a mistake](PRIVACY.md#report-a-mistake) just below. ## Report a mistake Vedetta got a device wrong? Open an issue on GitHub and attach an export, **all in one place**. Menu β†’ *Export for analysis* first asks **who the export is for**: | You choose | What you get | What it is for | |---|---|---| | **For the developer** | A `.txt` file, **masked and encrypted**: only the author of Vedetta can open it. Up to 20 MB. | **Attach it to a GitHub issue.** It is safe even if the issue is public. | | **For me** | A `.zip` that is **not masked and not encrypted**: your data as it is, with no size limit | To read it yourself or hand it over to someone you trust. **Never post it in public.** | Then you choose **which days** to include: tap the first and the last day on the columns (each column is a day, and its height is how much was recorded), move the chart back in time with *Before* and *After* (up to 90 days), or use the buttons *2 days* and *7 days*. The minimum is 2 days (the deep search runs at 03:00, so one night alone is rarely enough to see what happened) and the maximum 20. A short event from 5 days ago needs only those days, not everything. **For the developer, everything is masked before the file is created**, so nothing personal is in it to start with: - IP addresses keep only the last number (`10.0.0.x`); MAC addresses keep only the manufacturer prefix, which is what shows the brand. A private MAC (one the device makes up) has no manufacturer: it keeps nothing. - SSH key fingerprints become `ssh-key-1`, `ssh-key-2`… - Names of devices, areas, DHCP and Bonjour hostnames, and the names Home Assistant knows for your devices become `iPhone-1`, `Thermostat-1`, `Area-2`… Email addresses become `email-1@masked.invalid`. The same value always gets the same placeholder, so the relations stay readable. - Public addresses are masked too (yours and those of your provider's routers; only well-known public DNS servers stay readable), and every password, token or key found in a file or in a log line is replaced by `***`. Nothing is sent anywhere: you download the file yourself. - **Safety check:** once the files are masked, Vedetta looks again for anything that is still readable (home network addresses in any spelling, real MACs, SSH keys, names, emails, passwords). What it finds it **replaces by itself** with placeholders. If something cannot be replaced, the window lists the values (up to 10, only to you: they are never written to a log or to the file) and for each one you choose **Remove** (it is taken out of the export only, not out of the system) or **Keep**. There is no way around it: the file is created after you have decided. For *For me* there is no masking and no check: only the fields that look like a credential (a password, a token, a key) are still replaced, so a file handed over by mistake does not carry them. **Flag the device you are reporting.** Open the device sheet and press *Flag this device*, optionally with a short note ("turns on by itself at 3 am"). The export then has a section with that device's card, the reasons behind its name, brand and type, its last 14 days of history and your note, so the report says where to look. Up to 5 devices. The note is masked like the rest (a word that belongs to a device name is replaced too), but **do not write personal data in it**. How it is encrypted: the file is sealed with the public key in [`vedetta/app/data/report_key.pub`](../vedetta/app/data/report_key.pub) (fingerprint `84ba-bfcc-4706-163d`), and only the private key, which never leaves the author’s computer, can open it. The table that says which placeholder is which device stays in your own `/data`. If the encryption is not available in your version, Vedetta tells you and exports nothing: it never falls back to a plain file by mistake. The author opens the file with [`tools/open_report.py`](../tools/open_report.py).