Revert #31396 fix from main, update changelog for fleetd 1.47.2 (#32591)

This commit is contained in:
Ian Littman 2025-09-04 12:54:34 -05:00 committed by GitHub
parent 84fda87f40
commit 3830657031
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 11 deletions

View file

@ -1,10 +1,7 @@
## Orbit 1.47.1 (Sep 03, 2025)
## Orbit 1.47.2 (Sep 04, 2025)
* Fixed bug where "Self-service" was still shown in Fleet Desktop menu when the host was offline.
* Orbit now sets `DEBIAN_FRONTEND=noninteractive` by default when installing Debian packages. This prevents package installation from hanging for debconf questions. Administrators may override this in install scripts if desired.
* Note that installs can still hang when a configuration file differs from the version originally installed by the package. You'll need to include `--force-confdef` (or `confnew` or `confold`) in the `dpkg` command (wrap with `-o Dpkg::Options='...'` if installing using `apt`) to prevent dpkg from hanging in these cases.
* Added automatic host identity certificate renewal for TPM-backed certificates. When a certificate is within 180 days of expiration, orbit will automatically renew it using proof-of-possession with the existing certificate's private key.
* Updated go to 1.24.6

View file

@ -322,7 +322,7 @@ func (r *Runner) installSoftware(ctx context.Context, installID string, logger z
if strings.HasSuffix(installerPath, ".tgz") || strings.HasSuffix(installerPath, ".tar.gz") {
logger.Info().Msg("detected tar.gz archive, extracting to subdirectory")
extractDestination := filepath.Join(tmpDir, extractionDirectoryName)
err := os.Mkdir(extractDestination, 0o700)
err := os.Mkdir(extractDestination, 0700)
if err != nil {
logger.Err(err).Msg("failed to create directory for .tar.gz extraction")
// Using download failed exit code here to indicate that installer extraction failed
@ -424,12 +424,6 @@ func (r *Runner) runInstallerScript(ctx context.Context, scriptContents string,
env := os.Environ()
installerPathEnv := fmt.Sprintf("INSTALLER_PATH=%s", installerPath)
env = append(env, installerPathEnv)
if strings.HasSuffix(installerPath, ".deb") {
// On Debian and Ubuntu systems, packages sometimes ask the user questions
// during installation. This will cause package installation to hang
// indefinitely. Setting this envvar prevents that.
env = append(env, "DEBIAN_FRONTEND=noninteractive")
}
output, exitCode, err := execFn(ctx, scriptPath, env)
if err != nil {