From 5cdd482a2f0929d9bdc7b3b6c2bb56a3de8ea94e Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Thu, 6 Nov 2025 09:53:03 +1300 Subject: [PATCH] Always explicitly set AuthType to none in unconfigured-ignition The unconfigured-ignition does not contain any auth keys. In the appliance, all of the auth settings are part of the config-image. Whatever settings are applied in the ignition get overwritten before any of the services that use them start. However, for the interactive install we must explicitly set the AuthType to "none" to prevent services looking for keys that are not actually generated. --- pkg/asset/agent/image/unconfigured_ignition.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/asset/agent/image/unconfigured_ignition.go b/pkg/asset/agent/image/unconfigured_ignition.go index be78458ab8..1f32b267f9 100644 --- a/pkg/asset/agent/image/unconfigured_ignition.go +++ b/pkg/asset/agent/image/unconfigured_ignition.go @@ -161,6 +161,7 @@ func (a *UnconfiguredIgnition) Generate(_ context.Context, dependencies asset.Pa InfraEnvID: infraEnvID, OSImage: osImage, Proxy: infraEnv.Spec.Proxy, + AuthType: "none", } enabledServices := getDefaultEnabledServices() @@ -202,8 +203,6 @@ func (a *UnconfiguredIgnition) Generate(_ context.Context, dependencies asset.Pa interactiveUIFile := ignition.FileFromString("/etc/assisted/interactive-ui", "root", 0644, "") config.Storage.Files = append(config.Storage.Files, interactiveUIFile) - // Let's disable the assisted-service authentication. - agentTemplateData.AuthType = "none" } // Required by assisted-service.