From 05a6b7d559ab6e2d94c0fb20d63cdb4bf661079d Mon Sep 17 00:00:00 2001 From: Olivier Leroy Date: Wed, 3 Jun 2026 04:05:50 +0200 Subject: [PATCH] fix(install_script): enable remote_configuration when remote_updates is set When DD_REMOTE_UPDATES=true is used on GovCloud (ddog-gov.com), IsRemoteConfigEnabled() returns false unless remote_configuration.enabled is explicitly set in datadog.yaml. The installer daemon then crashes at startup with "remote config is required to create the updater". Add remote_configuration.enabled: true alongside remote_updates: true so the installer can start on GovCloud. Co-Authored-By: Claude Sonnet 4.6 (1M context) --- install_script.sh.template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install_script.sh.template b/install_script.sh.template index 71ca6135..7f7f005b 100644 --- a/install_script.sh.template +++ b/install_script.sh.template @@ -2076,6 +2076,12 @@ function update_remote_updates(){ else echo "remote_updates: $remote_updates" | $sudo_cmd tee -a "$config_file" > /dev/null fi + # On GovCloud (ddog-gov.com), remote_configuration.enabled defaults to false and must be + # explicitly set. Without it the installer daemon crashes at startup with + # "remote config is required to create the updater". + if ! $sudo_cmd grep -qE "^remote_configuration:" "$config_file"; then + printf "remote_configuration:\n enabled: true\n" | $sudo_cmd tee -a "$config_file" > /dev/null + fi fi } function update_security_and_or_compliance(){