There doesn’t seem to be a category that can accommodate security and privacy (I couldn’t even find a tag relating to those topics) so I’ll post it as “Uncategorized”.
OS: DietPi v6.14 ARMv8 Stretch
Platform: OdroidC2
Application: Home Assistant 0.91.4 on Python 3.6.3
On a clean installation of DietPi on an Odroid C2, the operating system’s startup configuration utility offers to install software. One of the optional items it can install is Home Assistant.
After updating and upgrading the OS and rebooting, I continued configuring basic OS settings like a static IP address for the ethernet connection, the time zone, and the system language. I opted to install Home Assistant using the dietpi-software utility along with MQTT.
Immediately after rebooting, I noticed traffic from the device being sent over port 443 to the IP address 157.249.177.128 at intervals of about every 20 minutes or so. When I stop the home-assistant service, that communication stops until the service is restarted.
Upon starting home-assistant, the service first appears to check internet connectivity by querying connectivity-check.ubuntu.com
. Then a DNS query is made to resolve aa015h6buqvih86i1.api.met.no
, which is chased to os-157-249-177-128.ares.met.no
, which resolves, of course, to 157.249.177.128.
That address resolves to a block belonging to the met.no domain. While this suggests that it could have something to do with weather reporting, I did not ask Home Assistant to communicate outside of my local network. It doesn’t even know what locale it should query for weather reports.
If I want someone to know the location of my devices, I will specifically allow it. In the case of my home automation controller, I do not want that. I also do not want it communicating with the outside world without my permission.
The DietPi utility uses apt to install Home Assistant. The only repositories registered are at debian.org
for stretch, but they include stretch-backports. As far as I can tell, an official version was installed.
-
For what purpose is Home Assistant calling
connectivity-check.ubuntu.com
? -
For what purpose is Home Assistant calling
aa015h6buqvih86i1.api.met.no
? -
Why does Home Assistant require /any/ internet connectivity unless I specifically connect it to an internet service?
-
How can I secure it so as to maintain my privacy and not accidentally leak private information without my knowledge?
Right now, I am blocking access to that IP address at my firewall (I use pfSense on my test network). However, I would like to disable whatever services within Home Assistant are accessing the internet without my consent. While I expect it to operate on the LAN and within the IP block to which it’s address belongs, other communications should be opt-in rather than opt-out.
I’ll be grateful for any information that anyone can provide.
UPDATE:
gpbenton provided the solution. It involves editing the file configuration.yaml. It’s default location on DietPi is /home/homeassistant/.homeassistant. Then it is necessary to edit the Home UI on the web front end to remove the weather icon. Otherwise, an error is shown. I’m grateful to gpbenton for the information.