-
Notifications
You must be signed in to change notification settings - Fork 132
Description
I appreciate that there's an option during WiFi setup to disable outgoing connections to AirGradient Cloud. The problem is that the setting actually disables connections to any server.
For privacy reasons, I'd like to prevent my AirGradient ONE from sending data to AirGradient Cloud, but I'd like to configure my device to send data to my own AirGradient endpoint that implements the same HTTP APIs as AirGradient Cloud.
It seems like I have two options:
- During initial WiFi setup, choose the option to disable connections to AirGradient Cloud.
- Result: I cannot collect data from my AirGradient device at all
- During initial WiFi setup, allow my device to make outbound connections to AirGradient Cloud, then set
httpDomain
to my server after device has booted.- Result: I can collect data from AirGradient locally, but it still sends data to AirGradient Cloud until I override
httpDomain
, leaking private data to third-party servers.
- Result: I can collect data from AirGradient locally, but it still sends data to AirGradient Cloud until I override
Proposed fix
Setting httpDomain
should override disableCloudConnection
.
If the user is setting a custom domain, it should be safe to assume they want to connect to it. disableCloudConnection
just indicates that the user wants to avoid connecting to AirGradient's servers specifically.
Alternative fix
Make it possible to change the disableCloudConnection
after initial WiFi setup. That would at least allow the user to do a flow like:
- Set
disableCloudConnection
totrue
on initial WiFi setup - Specify a custom
httpDomain
- Set
disableCloudConnection
tofalse
afterhttpDomain
has a domain the user controls.