From c469df9ae0e329908ad5403bfe79b257f6c84307 Mon Sep 17 00:00:00 2001 From: Michal Filka Date: Tue, 17 Mar 2026 15:31:38 +0100 Subject: [PATCH 1/4] Fixed sshPublicKey note in autoyast_compat.json --- service/share/autoyast-compat.json | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/service/share/autoyast-compat.json b/service/share/autoyast-compat.json index c9007ca6b5..71bc80b407 100644 --- a/service/share/autoyast-compat.json +++ b/service/share/autoyast-compat.json @@ -666,12 +666,7 @@ "agama": "user.hashedPassword", "notes": "If set to true, it uses \"hashedPassword\" instead of \"password\"" }, - { - "key": "authorized_keys", - "support": "yes", - "agama": "root.sshPublicKey", - "notes": "It only considers a single key." - } + { "key": "authorized_keys", "support": "yes", "agama": "root.sshPublicKey" } ] }, { "key": "zfcp", "support": "yes" } From 0c12a4cfab7fabf66a77ef5f239ded7ae5dab4bb Mon Sep 17 00:00:00 2001 From: Michal Filka Date: Tue, 17 Mar 2026 15:40:14 +0100 Subject: [PATCH 2/4] Fixed conversion of authorized_keys in root reader --- service/lib/agama/autoyast/root_reader.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/service/lib/agama/autoyast/root_reader.rb b/service/lib/agama/autoyast/root_reader.rb index c5add56bd0..eb6ddc660f 100755 --- a/service/lib/agama/autoyast/root_reader.rb +++ b/service/lib/agama/autoyast/root_reader.rb @@ -69,9 +69,6 @@ def config def setup_ssh(root_user) hsh = {} - public_key = root_user.authorized_keys.first - - hsh["sshPublicKey"] = public_key if public_key hsh["sshPublicKeys"] = root_user.authorized_keys unless root_user.authorized_keys.empty? hsh From c8cf3f23377a50e7aa95baf100e7898defcfec8b Mon Sep 17 00:00:00 2001 From: Michal Filka Date: Tue, 17 Mar 2026 15:50:41 +0100 Subject: [PATCH 3/4] Updated changelog --- rust/package/agama.changes | 9 +++++++++ service/share/autoyast-compat.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/rust/package/agama.changes b/rust/package/agama.changes index 31c386b86f..aa4773211d 100644 --- a/rust/package/agama.changes +++ b/rust/package/agama.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Mar 17 14:49:14 UTC 2026 - Michal Filka + +- jsc#PED-15434 + - fixed autoyast_compat.json to cover earlier patch which + extended capabilities of sshPublicKey / sshPublicKeys + - fixed AY root_reader. authorized_keys are converted as an array + into sshPublicKeys now (no first key only anymore) + ------------------------------------------------------------------- Tue Mar 17 12:15:22 UTC 2026 - Imobach Gonzalez Sosa diff --git a/service/share/autoyast-compat.json b/service/share/autoyast-compat.json index 71bc80b407..6259c1bdfd 100644 --- a/service/share/autoyast-compat.json +++ b/service/share/autoyast-compat.json @@ -666,7 +666,7 @@ "agama": "user.hashedPassword", "notes": "If set to true, it uses \"hashedPassword\" instead of \"password\"" }, - { "key": "authorized_keys", "support": "yes", "agama": "root.sshPublicKey" } + { "key": "authorized_keys", "support": "yes", "agama": "root.sshPublicKeys" } ] }, { "key": "zfcp", "support": "yes" } From c7db2ae4cd1560f4cf60402a0f0250b16c31ff40 Mon Sep 17 00:00:00 2001 From: Michal Filka Date: Tue, 17 Mar 2026 16:11:20 +0100 Subject: [PATCH 4/4] Fixed ruby tests --- service/test/agama/autoyast/converter_test.rb | 2 +- service/test/agama/autoyast/root_reader_test.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/service/test/agama/autoyast/converter_test.rb b/service/test/agama/autoyast/converter_test.rb index 7f2f618134..c6cfccc7f8 100644 --- a/service/test/agama/autoyast/converter_test.rb +++ b/service/test/agama/autoyast/converter_test.rb @@ -98,7 +98,7 @@ it "exports the root password and/or public SSH key" do result = subject.to_agama(profile) expect(result["root"]).to include("password" => "nots3cr3t", - "sshPublicKey" => "ssh-rsa ...") + "sshPublicKeys" => ["ssh-rsa ..."]) end end diff --git a/service/test/agama/autoyast/root_reader_test.rb b/service/test/agama/autoyast/root_reader_test.rb index 1bb011fc36..52e640a918 100644 --- a/service/test/agama/autoyast/root_reader_test.rb +++ b/service/test/agama/autoyast/root_reader_test.rb @@ -72,7 +72,6 @@ root = subject.read["root"] expect(root).to eq( "password" => "123456", - "sshPublicKey" => "ssh-key 1", "sshPublicKeys" => ["ssh-key 1", "ssh-key 2"] ) end