Skip to content

Commit 5cdd482

Browse files
committed
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.
1 parent 9dc636f commit 5cdd482

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/asset/agent/image/unconfigured_ignition.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ func (a *UnconfiguredIgnition) Generate(_ context.Context, dependencies asset.Pa
161161
InfraEnvID: infraEnvID,
162162
OSImage: osImage,
163163
Proxy: infraEnv.Spec.Proxy,
164+
AuthType: "none",
164165
}
165166

166167
enabledServices := getDefaultEnabledServices()
@@ -202,8 +203,6 @@ func (a *UnconfiguredIgnition) Generate(_ context.Context, dependencies asset.Pa
202203
interactiveUIFile := ignition.FileFromString("/etc/assisted/interactive-ui", "root", 0644, "")
203204
config.Storage.Files = append(config.Storage.Files, interactiveUIFile)
204205

205-
// Let's disable the assisted-service authentication.
206-
agentTemplateData.AuthType = "none"
207206
}
208207

209208
// Required by assisted-service.

0 commit comments

Comments
 (0)