Skip to content

Commit c4e92d8

Browse files
fix(builder): correct SSH key type assignments in LoginSet
RSA and ECDSA keys were swapped in the secret data mapping. This fix aligns key types with their filenames.
1 parent d66f81e commit c4e92d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/builder/login_secret.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ func (b *Builder) BuildLoginSshHostKeys(loginset *slinkyv1beta1.LoginSet) (*core
3232
Key: loginset.SshHostKeys(),
3333
Metadata: loginset.Spec.Template.PodMetadata,
3434
Data: map[string][]byte{
35-
sshHostEcdsaKeyFile: keyPairRsa.PrivateKey(),
36-
sshHostEcdsaPubKeyFile: keyPairRsa.PublicKey(),
35+
sshHostEcdsaKeyFile: keyPairEcdsa.PrivateKey(),
36+
sshHostEcdsaPubKeyFile: keyPairEcdsa.PublicKey(),
3737
sshHostEd25519KeyFile: keyPairEd25519.PrivateKey(),
3838
sshHostEd25519PubKeyFile: keyPairEd25519.PublicKey(),
39-
sshHostRsaKeyFile: keyPairEcdsa.PrivateKey(),
40-
sshHostRsaPubKeyFile: keyPairEcdsa.PublicKey(),
39+
sshHostRsaKeyFile: keyPairRsa.PrivateKey(),
40+
sshHostRsaPubKeyFile: keyPairRsa.PublicKey(),
4141
},
4242
Immutable: true,
4343
}

0 commit comments

Comments
 (0)