Merge pull request #13034 from appwrite/fix/install-telemetry-no-pii

fix(install): honor DO_NOT_TRACK for self-hosted install telemetry
This commit is contained in:
Chirag Aggarwal authored and GitHub committed 2026-07-29 16:41:04 +05:30
commit c8d2222f94
1 file changed
+7
+7
View File
@@ -15,6 +15,7 @@ use Utopia\Config\Config;
use Utopia\Console;
use Utopia\Fetch\Client;
use Utopia\Platform\Action;
use Utopia\System\System;
use Utopia\Validator\Boolean;
use Utopia\Validator\Text;
use Utopia\Validator\WhiteList;
@@ -851,6 +852,12 @@ class Install extends Action
return;
}
// Opt out via DO_NOT_TRACK (https://donottrack.sh/)
$doNotTrack = \strtolower((string) System::getEnv('DO_NOT_TRACK', ''));
if (\in_array($doNotTrack, ['1', 'true', 'yes'], true)) {
return;
}
$appEnv = $input['_APP_ENV'] ?? 'development';
$domain = $input['_APP_DOMAIN'] ?? 'localhost';